/* =====================================================================
   css/tokens.css — "Your Name in Lights" (Birthday-Website V3)
   The room is dark; light is the only colour. Every value used by any
   stylesheet lives here. Scene CSS may only reference these tokens.
   ===================================================================== */
:root{
  /* ---- Palette: 6 named colours ------------------------------------ */
  --c-midnight:#0B0D1B;   /* the room with the lights off: page bg, every shadow      */
  --c-tungsten:#FFB25B;   /* every lamp: bulb halos, candle glow, live time, focus    */
  --c-wick:#FFF1D6;       /* hottest light + paper: primary text, cue-card stock       */
  --c-surprise:#E8577B;   /* the one painted thing: sign faces, glaze, candle stripes  */
  --c-smoke:#9DA1BC;      /* stage directions, secondary text, cord, wire, smoke       */
  --c-sky:#64AEEA;        /* their blue sky: confetti foil only, never text            */

  /* ---- Materials (objects in the room, not palette colours) -------- */
  --c-tape:#ECE1C4;       /* masking tape = primary controls                           */
  --c-gaffer:#24252F;     /* gaffer tape = secondary controls                          */
  --c-ink:#1B1720;        /* marker ink on tape and cards                              */
  --c-brass:#D9B480;      /* the cord pull                                             */
  --c-frosting:#F6DDB8;   /* cake frosting in warm light                               */
  --c-foil:#DEA852;       /* gold foil confetti: the sign's light caught in foil (canvas) */
  --rgb-midnight:11,13,27;
  --rgb-tungsten:255,178,91;
  --rgb-wick:255,241,214;
  --rgb-moon:120,146,230; /* moonlight fill through a window we never see              */

  /* ---- Type families ------------------------------------------------ */
  --font-display:'Shrikhand', Georgia, 'Times New Roman', serif;            /* used exactly twice   */
  --font-script:'Courier Prime', 'Courier New', Courier, monospace;          /* the screenplay voice */
  --font-hand:'Shantell Sans', 'Noto Serif Georgian', 'Chalkboard SE', 'Segoe Print', 'Comic Sans MS', system-ui, sans-serif; /* his hand */
  --font-sign:'Bungee Hairline', 'Helvetica Neue', Roboto, 'Segoe UI', sans-serif;  /* canvas skeleton only */
  --hand-axes:"INFM" 100, "BNCE" 30;

  /* ---- Fluid type scale (min @360px → max @1440px) ------------------ */
  --step--2:clamp(0.75rem, 0.7292rem + 0.0926vw, 0.8125rem);   /* 12 → 13px  chrome labels, counters   */
  --step--1:clamp(0.8125rem, 0.7812rem + 0.1389vw, 0.9062rem); /* 13 → 14.5px notes                    */
  --step-0:clamp(0.9812rem, 0.9292rem + 0.2315vw, 1.137rem);   /* 15.7 → 18.2px script lines, body     */
  --step-1:clamp(1.125rem, 1.042rem + 0.3704vw, 1.375rem);     /* 18 → 22px lead line, tape labels     */
  --step-2:clamp(1.375rem, 1.208rem + 0.7407vw, 1.875rem);     /* 22 → 30px countdown, small cards     */
  --step-3:clamp(1.625rem, 1.375rem + 1.111vw, 2.375rem);      /* 26 → 38px cue-card lettering         */
  --step-display:clamp(3rem, 2.333rem + 2.963vw, 5rem);        /* 48 → 80px "Happy birthday," (peak)   */
  --step-display-2:clamp(2.375rem, 1.833rem + 2.407vw, 4rem);  /* 38 → 64px curtain line               */
  --lh-tight:.9; --lh-snug:1.18; --lh-body:1.5;
  --track-caps:.14em;

  /* ---- Spacing ------------------------------------------------------ */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px; --sp-8:64px;
  --gutter:16px;
  --chrome-h:48px;          /* top bar: slate + music toggle            */
  --dock-h:200px;           /* space every shot reserves for the dock   */
  --measure:34rem;          /* max line length for script blocks        */

  /* ---- Radii -------------------------------------------------------- */
  --r-paper:3px; --r-card:6px; --r-focus:8px; --r-round:999px;
  --tear:polygon(0 6%, 2.5% 0, 5% 7%, 7% 1%, 9% 5%, 91% 4%, 93% 0, 95.5% 6%, 98% 1%, 100% 5%,
                 100% 95%, 97.5% 100%, 95% 93%, 92.5% 99%, 90% 95%, 10% 96%, 7.5% 100%, 5% 94%, 2.5% 99%, 0 94%);

  /* ---- Shadows & glows (static; never animate these) ---------------- */
  --sh-tape:drop-shadow(0 6px 8px rgba(0,0,0,.55));
  --sh-tape-lift:drop-shadow(0 9px 10px rgba(0,0,0,.6));
  --sh-tape-press:drop-shadow(0 3px 4px rgba(0,0,0,.6));
  --sh-card:0 22px 44px -14px rgba(0,0,0,.75), 0 2px 0 rgba(0,0,0,.25);
  --glow-text:0 .05em .5em rgba(255,170,90,.38);
  --glow-lamp:0 0 18px rgba(var(--rgb-tungsten),.45);
  --focus-ring:2px solid var(--c-tungsten);
  --focus-ring-ink:2px solid var(--c-ink);  /* focus on paper (a cue card that scrolls), 15.8:1 on Wick */

  /* ---- Layers ------------------------------------------------------- */
  --z-room:0; --z-festoon:5; --z-shot:10; --z-scene:12; --z-fx:20; --z-ui:30;
  --z-dimmer:40; --z-chrome:50; --z-overlay:60; --z-grain:80; --z-debug:90;

  /* ---- Motion ------------------------------------------------------- */
  --ease-out:cubic-bezier(.22,.8,.24,1);      /* things settling          */
  --ease-in:cubic-bezier(.5,0,.75,0);         /* things falling           */
  --ease-inout:cubic-bezier(.65,0,.35,1);     /* light cues, camera push  */
  --ease-spring:cubic-bezier(.2,.9,.2,1.15);  /* the title landing        */
  --t-instant:80ms; --t-fast:160ms; --t-base:300ms; --t-slow:600ms;
  --t-dip:300ms;            /* each half of a scene-change blackout     */
  --t-light:1600ms;         /* room light cues (string lights warming)  */
  --t-move:1;               /* multiplier for movement; 0 under reduced motion */
  --t-scale:1;              /* scene-duration multiplier: .25 with ?fast (html[data-fast] in base.css) */

  /* ---- Breakpoints (reference; media queries use the literal values) --
     phone   : < 600px  (master frame 390×844, min 360×640)
     wide    : ≥ 760px  (script/cord diagonal, docks go horizontal)
     desktop : ≥ 1024px ;  xl : ≥ 1440px (max composition width 1440)
     short   : (max-height: 700px)   landscape phone: (orientation: landscape) and (max-height: 500px) */
}
@media (min-width:760px){ :root{ --gutter:24px; --dock-h:176px; } }
@media (min-width:1024px){ :root{ --gutter:32px; } }
@media (max-height:700px){ :root{ --dock-h:172px; } }
@media (orientation:landscape) and (max-height:500px){ :root{ --dock-h:0px; --chrome-h:40px; } }
@media (prefers-contrast:more){ :root{ --c-smoke:#D5D7E4; } }   /* 12.3:1 on Midnight, >= 6:1 on any lit wall */
@media (prefers-reduced-motion:reduce){
  :root{ --t-light:200ms; --t-dip:120ms; --t-slow:200ms; --t-move:0; }
}
