/* y2kplayer.app 4.0: tokens.
   Every colour is SAMPLED from the approved store set (marketing/design/r263/shots/set-v1, 1320 x 2868)
   by marketing/site-4-0/tools/sample.py and sample2.py; contrasts by tools/contrast.py (WCAG 2.x).
   ONE scheme, dark: every slide of the set is a dark, saturated world with white words and a green plate.
   A light twin would be a second, invented language, so there is none (color-scheme: dark). */

:root {
  color-scheme: dark;

  /* ---- the plate (all ten slides: #1ED760 measured on the plate, 4,063 to 14,527 px per slide) */
  --plate: #1ED760;            /* Spotify's app green, his tap C; the payoff word sits on it */
  --plate-ink: #062C16;        /* the set's dark ink (slides12.py INK 6,44,22)  ink on plate 7.93 : 1  */
  --plate-press: #0E8A3A;      /* the plate's own darker face, for the pressed edge (not text) */
  --plate-hi: #5BF08E;         /* hover light on the plate (not text) */

  /* ---- words */
  --text: #FFFFFF;             /* the slides' white headline  white on every ground 11.66 : 1 or better (themes 07 lowest) */
  --text-2: #E9E1F7;           /* body on grounds: white tinted to the set's violet (chosen, not sampled)  9.20 : 1 lowest (themes 07) */
  --text-3: #C9BEDF;           /* captions, the ad label  10.29 : 1 on --ground; only on --ground, --ground-2, --surface */

  /* ---- the page between worlds */
  --ground: #1C0840;           /* slide 03's top band  white 18.13, text-2 14.31, plate as UI 9.45 */
  --ground-2: #2D0B43;         /* slide 10's deep  white 16.93, text-2 13.36 */
  --surface: #241046;          /* cards and the bar, solid (white 16.97, text-2 13.40) */
  --surface-glass: rgb(36 16 70 / .78);
  --line: rgb(255 255 255 / .16);
  --line-strong: rgb(255 255 255 / .32);

  /* ---- the worlds: deep = the band under the headline (text sits on it), glow = the world's light (never under text) */
  --w-promise-deep: #420639;  --w-promise-glow: #E769F0;   /* 01 violet-magenta (Bijou)     white 15.95 */
  --w-speed-deep: #071D4E;    --w-speed-glow: #7ABEFE;     /* 02 blue rays (Whoosh)          white 16.22 */
  --w-viz-deep: #1C0840;      --w-viz-glow: #A973FF;       /* 03 violet wall                 white 18.13 */
  --w-vocal-deep: #062F4B;    --w-vocal-glow: #3BAAFE;     /* 04 sea blue (Delphine)        white 13.85 */
  --w-sky-deep: #051342;      --w-sky-glow: #FFB882;       /* 05 the flight, sunset          white 17.82 */
  --w-video-deep: #3D140C;    --w-video-glow: #FECA3E;     /* 06 ember and neon stars        white 16.11 */
  --w-themes-deep: #5E146E;   --w-themes-glow: #7DA0CC;    /* 07 rainbow rings               white 11.66 */
  --w-edit-deep: #420524;     --w-edit-glow: #B87B8B;      /* 08 eclipse                     white 16.42 */
  --w-rain-deep: #053941;     --w-rain-glow: #F0A667;      /* 09 the wet window, teal + amber white 12.59 */
  --w-keys-deep: #310542;     --w-keys-glow: #5F2979;      /* 10 keyword violet              white 17.06 */
  /* glows as TEXT (kickers): on --ground only: promise 6.63, speed 9.17, viz 5.68, vocal 7.22, sunset 10.73, video 11.86 */

  /* ---- the film (r263 SITE-HOME-TRAILER): the home's ground, SAMPLED from the trailer (creative-assets/trailer/v2/trailer-v2.mp4) */
  --film-deep: #3D093D;        /* the end card's corner (frame 870)  white 16.09 : 1 */
  --film-mid: #5A2053;         /* the end card's centre              white 11.89 : 1 */
  --film-night: #0D103A;       /* shot 1's low left corner (frame 0) white 18.22 : 1 */
  --film-floor: #260627;       /* the footer under the end card: --film-deep, darker (chosen, not sampled) */

  /* the two lanes of slide 04 (slides.py VPINK, VTEAL) */
  --lane-vocals: #FF4DDB;
  --lane-music: #40EBF2;

  /* ---- type: two faces. Display = the set's SF Pro Rounded Heavy via ui-rounded (Safari, every iPhone);
     Apple's licence forbids serving it, so elsewhere the nearest installed rounded face, then the system face. */
  /* round 1b: "Y2K Rounded" (base.css) is the installed Arial Rounded MT Bold DECLARED at 900, so Chrome/Edge stop faking a bold
     on its single weight (the smeared look on round 1's board); Safari still takes ui-rounded = SF Pro Rounded Heavy first. */
  --font-display: ui-rounded, "SF Pro Rounded", "Y2K Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* nine steps, fluid between 320 and 1440 px. Body never under 16 px; nothing under 12 px. */
  --fs-1: clamp(0.75rem, 0.7143rem + 0.1786vw, 0.875rem);   /* 12 -> 14  labels, the ad tag */
  --fs-2: clamp(0.875rem, 0.8393rem + 0.1786vw, 1rem);      /* 14 -> 16  pills, captions */
  --fs-3: clamp(1rem, 0.9643rem + 0.1786vw, 1.125rem);      /* 16 -> 18  body */
  --fs-4: clamp(1.125rem, 1.0536rem + 0.3571vw, 1.375rem);  /* 18 -> 22  lede, buttons */
  --fs-5: clamp(1.375rem, 1.2321rem + 0.7143vw, 1.875rem);  /* 22 -> 30  card titles */
  --fs-6: clamp(1.75rem, 1.4643rem + 1.4286vw, 2.75rem);    /* 28 -> 44  section heads */
  --fs-7: clamp(2.25rem, 1.7143rem + 2.6786vw, 4.125rem);   /* 36 -> 66  world claims */
  --fs-8: clamp(2.5rem, 1.6071rem + 4.4643vw, 5.625rem);    /* 40 -> 90  hero headline */
  --fs-9: clamp(3rem, 1.75rem + 6.25vw, 7.375rem);          /* 48 -> 118 poster words */

  --lh-tight: 1.02;   /* the slides set their headlines at lead 1.02 */
  --lh-snug: 1.2;
  --lh-body: 1.55;
  --track-logo: 0.36em;   /* BreathingWordmark: 4 pt on an 11 pt word */
  --measure: 62ch;

  /* ---- space: a 4 px scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --container: 1240px;

  /* ---- radii: friendly and round, like the app's chips */
  --r-xs: 8px; --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;
  --r-plate: 0.22em;     /* the plate's corner, in em of its word */

  /* ---- one shadow set, tinted toward the ground (never grey) */
  --shadow-1: 0 2px 6px rgb(12 2 30 / .35);
  --shadow-2: 0 10px 30px -8px rgb(12 2 30 / .55), 0 2px 6px rgb(12 2 30 / .3);
  --shadow-3: 0 40px 80px -20px rgb(8 0 24 / .7), 0 16px 32px -12px rgb(8 0 24 / .5);
  --shadow-hard: 0 0.075em 0 var(--hard, #12002E);   /* the slides' hard type shadow (headline_sym shadow) */

  /* ---- motion: overshoot and settle (design-moves 17) */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 420ms; --dur-4: 700ms; --dur-5: 1200ms;
  --tilt: -2deg;          /* the slides tilt their plates -2 degrees */

  /* ---- fixed chrome */
  --header-h: 64px;
  --bar-h: 72px;
  --tap: 44px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 1ms; --dur-2: 1ms; --dur-3: 1ms; --dur-4: 1ms; --dur-5: 1ms; }
}
