/* Storytime Hecklers — the shared tokens (design-brief.md §1). Yellow, black, white. Nothing else, on any page. */
:root {
  --yellow: #FDC80B; --yellow-press: #E0AE00; --amber: #FFB000;
  --ink: #000000; --night: #1C1220; --night-2: #241A2B; --night-3: #2E2336;
  --white: #F9F6F2; --white-pure: #FFFFFF; --grey: #A6A6A6; --grey-2: #6F6A75;
  --shadow-tape: rgba(0,0,0,.35);
  --scrim: linear-gradient(180deg, rgba(28,18,32,0) 0%, rgba(28,18,32,.82) 60%, #1C1220 100%);
  --focus: #FDC80B; --focus-on-yellow: #F9F6F2;
  --heckle-a: #FDC80B; --heckle-b: #F9F6F2;
  --display: 'Anton', Impact, 'Arial Narrow Bold', 'Helvetica Neue', sans-serif;
  --body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left));
  --t-micro: 120ms; --t-ctl: 200ms; --t-card: 320ms; --t-arrive: 450ms; --t-shift: 500ms; --t-fade: 600ms;
  --ease-out: cubic-bezier(.2,.8,.2,1); --ease-in: cubic-bezier(.4,0,1,1); --ease-io: cubic-bezier(.65,0,.35,1);
  --r-card: 6px; --r-input: 6px; --r-pill: 999px; --r-tv: 12px; --r-qr: 16px;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--white); font-family: var(--body); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
@media (min-width: 1024px) { body { font-size: 1.125rem; line-height: 1.55; } }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:is(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.is-yellow:focus-visible, .btn--yellow:focus-visible { outline-color: var(--focus-on-yellow); }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- type roles (.heckle is deliberately NOT uppercased: a heckle renders mixed case, as sent) */
.heckle { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.h-beat, .h-section, .h-card, .h-date, .btn, .wm b, .wm .tape { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.h-beat { font-size: 2.75rem; line-height: .94; margin: 0; text-wrap: balance; }
.h-section { font-size: 2.25rem; line-height: .96; margin: 0 0 .5em; text-wrap: balance; }
.h-card { font-size: 1.5rem; line-height: 1.05; margin: 0; }
.h-date { font-size: 2rem; line-height: 1; letter-spacing: .02em; }
.kicker { font-family: var(--body); font-weight: 700; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.tagline { font-family: var(--body); font-style: italic; font-size: 1rem; letter-spacing: .02em; line-height: 1.3; }
.meta { font-size: .8125rem; line-height: 1.4; letter-spacing: .02em; color: var(--grey); }
.label { font-family: var(--body); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.body-copy { max-width: 62ch; }
@media (min-width: 1024px) {
  .h-beat { font-size: clamp(2.75rem, 1rem + 6.6vw, 5.25rem); }
  .h-section { font-size: 3.5rem; } .h-card { font-size: 1.75rem; } .h-date { font-size: 2.75rem; }
  .kicker { font-size: .75rem; } .tagline { font-size: 1.1875rem; } .meta, .label { font-size: .875rem; }
}
@media (max-height: 500px) { .h-beat { font-size: 2.125rem; } }

/* ---------- the tape strip (the brand device) */
.tape { display: inline-block; background: var(--white); color: var(--ink); padding: .55em 1.1em .6em; line-height: 1;
  clip-path: polygon(0 8%, 2% 0, 98% 4%, 100% 0, 100% 92%, 98% 100%, 3% 96%, 0 100%);
  transform: rotate(var(--tilt, -2deg)); box-shadow: 0 6px 18px var(--shadow-tape); opacity: .96; text-decoration: none; }
.tape--yellow { background: var(--yellow); color: var(--ink); }
.tape--ink { background: var(--ink); color: var(--white); }
.tape--sm { font-size: .6875rem; padding: .5em .9em .55em; }
.kicker.tape { --tilt: -2deg; }
.tw { display: inline-block; background: var(--white); color: var(--ink); padding: .02em .14em .05em; margin-top: .06em;
  clip-path: polygon(0 8%, 2% 0, 98% 4%, 100% 0, 100% 92%, 98% 100%, 3% 96%, 0 100%); transform: rotate(-1.6deg); box-shadow: 0 6px 18px var(--shadow-tape); }

/* ---------- the horizontal wordmark, typed until her file arrives (swap .wm for an <img> in one place) */
.wm { display: inline-flex; align-items: baseline; gap: .35em; text-decoration: none; white-space: nowrap; font-size: var(--wm, 22px); line-height: 1; }
.wm b { color: var(--yellow); letter-spacing: .03em; font-size: 1em; }
.wm .tape { --tilt: -1.5deg; font-size: .92em; padding: .18em .42em .2em; color: var(--ink); }

/* ---------- buttons + controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 1.4em; border-radius: var(--r-pill);
  font-size: .9375rem; letter-spacing: .08em; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform var(--t-micro) var(--ease-out), background var(--t-micro), color var(--t-micro); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-press); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: rgba(249,246,242,.08); }
.btn--ghost { background: var(--night-3); color: var(--grey); cursor: default; }
.btn--ban { background: var(--ink); color: var(--white); border-top: 6px solid transparent; border-image: repeating-linear-gradient(135deg, var(--yellow) 0 8px, var(--ink) 8px 16px) 6; }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .875rem; }
.btn--xl { min-height: 64px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (min-width: 1024px) { .btn { font-size: 1rem; } }
.input, .textarea, .select { width: 100%; background: var(--night-2); color: var(--white); border: 1px solid var(--grey-2); border-radius: var(--r-input); font: inherit; font-size: 1.0625rem; line-height: 1.3; padding: 14px 14px; min-height: 48px; }
.input::placeholder, .textarea::placeholder { color: var(--grey); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253,200,11,.6); }
.textarea { resize: vertical; min-height: 120px; }
.chip { display: inline-flex; align-items: center; text-align: left; line-height: 1.2; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--night-3); background: var(--night-2); color: var(--white); font: inherit; font-size: .9375rem; cursor: pointer; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.card { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r-card); padding: 16px; }
@media (min-width: 768px) { .card { padding: 24px; } }
.hr { border: 0; border-top: 1px solid var(--night-3); margin: 24px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section { padding-block: 64px; padding-inline: var(--gutter); }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.wrap { max-width: 1120px; margin-inline: auto; }
.heckle--yellow { color: var(--heckle-a); } .heckle--white { color: var(--heckle-b); }
.heckle--host { background: var(--white); color: var(--ink); display: inline-block; padding: .05em .3em; clip-path: polygon(0 8%, 2% 0, 98% 4%, 100% 0, 100% 92%, 98% 100%, 3% 96%, 0 100%); transform: rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
