/* Tell page — sibling of /ask. Same body-fixed perlin canvas and glass
   language, but a single 680px survey column instead of ask's card fan.
   The focused question card carries a lime left edge; chips light lime
   when selected. */

@font-face {
  font-family: 'Yellowtail Blank';
  src: url('https://fonts.noisefactor.io/fonts/yellowtail/Yellowtail-Blank.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Yellowtail';
  src: url('https://fonts.noisefactor.io/fonts/yellowtail/Yellowtail-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: var(--hf-bg-base);
  color: var(--hf-text-normal);
  font-family: var(--hf-font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background canvas — full viewport, fixed, behind everything */
.tell-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.blog-header {
  position: relative;
  z-index: 10;
  background: color-mix(in srgb, var(--hf-bg-surface) 65%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.tell-top-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Single survey column, Google-Forms width */
.tell-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tell-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* The intro sits on the canvas + black top fade in BOTH schemes, so its
   colors are pinned to the dark-backdrop values rather than the tokens
   (which flip dark in light mode and would vanish against the fade). */
.tell-intro h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: oklch(98% 0 0);
  margin: 0;
  background: none;
  padding: 0;
  display: block;
  line-height: 1.15;
}

.tell-tagline {
  font-family: 'Yellowtail', 'Yellowtail Blank', cursive;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  color: oklch(80% 0.196 128);
  line-height: 1;
  margin: 0;
}

.tell-tagline-do {
  font-family: var(--hf-font-family);
  font-weight: 800;
  font-size: 0.55em;
  vertical-align: middle;
  margin-right: 0.15em;
}

.tell-flourish {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  color: color-mix(in srgb, oklch(80% 0.196 128) 80%, transparent);
}

.tell-flourish svg {
  width: 280px;
  height: 24px;
  max-width: 80%;
  display: block;
}

/* Question cards — ask's glass panels, stacked. The 3px left edge is
   transparent at rest and lime while a field inside holds focus, so the
   accent marks where you are in the form. */
.tell-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* display:flex above would defeat the hidden attribute's UA display:none,
   so restate it: the form really disappears after a successful send. */
.tell-form[hidden] {
  display: none;
}

.tell-card {
  padding: 1.4rem;
  border-radius: var(--hf-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hf-accent) 25%, transparent);
  border-left: 3px solid transparent;
  background: color-mix(in srgb, var(--hf-bg-base) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hf-accent) 6%, transparent);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tell-card:focus-within {
  border-color: color-mix(in srgb, var(--hf-accent) 45%, transparent);
  border-left-color: var(--hf-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--hf-accent) 12%, transparent);
}

.tell-card-intro p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hf-text-normal);
}

.tell-card-intro p + p {
  margin-top: 0.6rem;
}

.tell-intro-fine {
  font-size: 0.85rem;
  color: var(--hf-text-dim);
}

.tell-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.tell-question {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hf-text-bright);
  margin: 0 0 0.35rem 0;
  padding: 0;
  background: none;
}

.tell-hint {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--hf-text-dim);
}

/* Chip multi-selects — real checkboxes underneath */
.tell-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.tell-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tell-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--hf-border-subtle);
  background: color-mix(in srgb, var(--hf-bg-base) 60%, transparent);
  color: var(--hf-text-normal);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.tell-chip span:hover {
  border-color: color-mix(in srgb, var(--hf-accent) 60%, transparent);
}

.tell-chip input:checked + span {
  background: var(--hf-accent);
  border-color: var(--hf-accent);
  color: var(--hf-color-1);
  font-weight: 700;
}

.tell-chip input:focus-visible + span {
  outline: 2px solid var(--hf-accent);
  outline-offset: 2px;
}

/* Text fields */
.tell-field {
  display: block;
  margin-top: 0.75rem;
}

.tell-fieldset .tell-field:first-of-type {
  margin-top: 0.5rem;
}

.tell-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hf-text-dim);
  margin-bottom: 0.4rem;
}

.tell-optional {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  opacity: 0.8;
}

.tell-field input[type="text"],
.tell-field input[type="email"],
.tell-field textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-sm, 4px);
  background: color-mix(in srgb, var(--hf-bg-base) 60%, transparent);
  color: var(--hf-text-normal);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.tell-field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.tell-field input:focus,
.tell-field textarea:focus {
  outline: none;
  border-color: var(--hf-accent);
  background: color-mix(in srgb, var(--hf-bg-base) 80%, transparent);
}

.tell-contact-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0 1rem;
}

/* Counters — mono, appear only near the cap */
.tell-count {
  margin: 0.3rem 0 0 0;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.7rem;
  color: var(--hf-text-dim);
  text-align: right;
}

/* Errors */
.tell-field-error,
.tell-form-error {
  font-size: 0.85rem;
  color: var(--hf-red, #e57373);
  margin: 0.4rem 0 0 0;
  line-height: 1.4;
}

.tell-form-error {
  flex: 1;
  margin: 0;
}

/* Honeypot — parked far off-canvas; bots see a field, humans never do */
.tell-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit row */
.tell-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.tell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--hf-radius-sm, 4px);
  border: 1px solid var(--hf-border-subtle);
  background: transparent;
  color: var(--hf-text-normal);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.tell-btn-primary {
  background: var(--hf-accent);
  color: var(--hf-color-1);
  border-color: var(--hf-accent);
}

.tell-btn-primary:hover {
  opacity: 0.9;
}

.tell-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.tell-btn:focus-visible {
  outline: 2px solid var(--hf-accent);
  outline-offset: 2px;
}

.tell-noscript {
  margin: 0.75rem 0 0 0;
  font-size: 0.85rem;
  color: var(--hf-text-dim);
}

.tell-noscript a,
.tell-notes a {
  color: var(--hf-link-color);
  text-decoration: none;
}

.tell-noscript a:hover,
.tell-notes a:hover {
  color: var(--hf-link-hover);
}

/* Success card */
.tell-success {
  text-align: center;
}

.tell-success-title {
  margin: 0 0 0.4rem 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hf-text-bright);
  background: none;
  padding: 0;
}

.tell-success p {
  margin: 0.4rem 0 0 0;
  color: var(--hf-text-normal);
}

/* Footer — same full-bleed glassy band as /ask */
.tell-notes {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--hf-accent) 25%, transparent);
  background: color-mix(in srgb, var(--hf-bg-base) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 -2px 18px color-mix(in srgb, var(--hf-accent) 6%, transparent);
  box-sizing: border-box;
  flex: 0 0 auto;
}

.tell-notes-inner {
  max-width: 680px;
  margin: 0 auto;
}

.tell-notes p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--hf-text-dim);
}

.tell-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.tell-bottom-row > p {
  margin: 0;
  flex: 1;
}

.tell-bottom-row .status-link {
  flex: 0 0 auto;
}

.status-link {
  font-size: 0.7rem;
  color: var(--hf-text-dim);
  opacity: 0.5;
}

.status-link a {
  text-decoration: none;
  color: inherit;
}

.status-link a:hover {
  color: var(--hf-text-bright);
}

@media (max-width: 720px) {
  .tell-main {
    padding: 1.5rem 1rem 2.5rem;
  }
  .tell-contact-row {
    grid-template-columns: 1fr;
  }
  .tell-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tell-card,
  .tell-chip span,
  .tell-btn,
  .tell-field input,
  .tell-field textarea {
    transition: none;
  }
}
