/* Shooting Draft web design tokens, draft 2 (Oct 7, 2026).
   Pulled from the round 3 homepage prototype. Step 4 of the brief will finalize this file.
   Color values come from the brand sheet (Ink, Warm Paper, Hero Blue) and the live site's measured supporting tones.
   The ChatGPT draft used #101117 and #F1EEE5; these replace them. */

:root {
  /* Color: ink, paper and one blue */
  --ink: #171510;          /* Ink: dark grounds, text on paper */
  --ink-2: #201E19;        /* panels and pills on ink */
  --ink-rule: #37342E;     /* hairlines on ink */
  --on-ink: #F4F0E6;       /* primary text on ink */
  --on-ink-2: #D9D5CC;     /* lead text on ink */
  --on-ink-3: #B7B2A8;     /* secondary text on ink, 8.5:1 */
  --paper: #F4F0E6;        /* Warm Paper: light grounds */
  --paper-2: #EDE8DC;      /* alternate paper */
  --sheet: #FFFDF6;        /* a page, an index card */
  --on-paper: #171510;     /* primary text on paper */
  --on-paper-2: #514D45;   /* secondary text on paper, 7.4:1 */
  --paper-rule: #C9C1B2;   /* hairlines on paper */
  --blue: #2563EB;         /* Hero Blue: the only accent. Caret, playhead, links, one italic word */
  --blue-deep: #1D4ED8;    /* hover on blue */
  --blue-glow: rgba(37, 99, 235, 0.24);

  /* Type: two roles */
  --font-display: "Forevs", Georgia, "Times New Roman", serif;  /* 300 for headlines, 300 italic for the accent word, 400 for the wordmark */
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* 400 body, 500 nav, 600 labels and buttons */
  --font-page: "Courier Prime", "Courier New", Courier, monospace; /* screenplay pages only, never interface text */

  /* Type scale (desktop, phone) */
  --t-hero: clamp(48px, 7.6vw, 112px);    /* line-height 0.96, tracking -0.02em */
  --t-section: clamp(40px, 6.4vw, 92px);  /* line-height 1, tracking -0.015em */
  --t-lead: clamp(17px, 1.5vw, 21px);     /* line-height 1.5 */
  --t-body: 16px;
  --t-label: 13px;                        /* 600, uppercase, tracking 0.14em */
  --t-slug: 12px;                         /* scene headings: 600, uppercase, tracking 0.08em */
  --t-numeral: 26px;                      /* scene numbers: Forevs italic */

  /* Space, on a 4 px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 120px;
  --gutter: 40px;         /* 20px on phones */
  --max: 1280px;          /* nav and footer */
  --max-visual: 1200px;   /* captures and grids */

  /* Radii */
  --r-card: 6px;    /* index cards */
  --r-frame: 10px;  /* frames and stills */
  --r-window: 14px; /* product captures */
  --r-pill: 999px;  /* buttons */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* reveals, flips, rises */
  --ease-gate: cubic-bezier(0.65, 0, 0.35, 1);   /* the projector gate */
  --d-hover: 200ms;
  --d-ui: 600ms;
  --d-flip: 800ms;
  --d-load: 1100ms;
  --d-gate: 1500ms;
  --reel-shot: 5s;        /* one shot in the hero reel, 4 shots per 20 s loop */
  --reveal-range: entry 0% cover 30%;  /* scroll reveals */
  --chip-cycle: 2.6s;     /* feature buttons around page 1 */
  --helix-turn: 16s;      /* Voice DNA helix */

  /* Writing assistant animation (rates, not CSS durations) */
  --type-rate: 40;        /* characters per second, your line */
  --stream-rate: 11;      /* words per second, the assistant */
  --page-rate: 200;       /* characters per second, the page */
  --talk-hold: 7s;        /* finished state before the loop restarts */

  /* Screenplay page geometry, in inches of an 8.5 x 11 page */
  --page-top: 1;          /* top margin */
  --page-left: 1.5;       /* heading and action */
  --page-width: 6;        /* action width, 60 characters */
  --page-cue: 3.7;        /* character cue */
  --page-dialogue: 2.5;   /* dialogue start, 3.5 in wide */
}

/* Forevs has contextual alternates that keep "f" clear of the dot on "i".
   Chromium switches them off whenever letter-spacing is not zero, so ask for them explicitly. */
html { font-feature-settings: "calt" 1; }

/* Calm when reduced motion is on: no loops, no scroll animation, videos stay paused on their poster. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
