/* Syzora Health design tokens. v0.3 Navy + Gold, 25 Nov 2026. Placeholder story site ("night to dawn").
   Colour values follow the Syzora PA design system (Navy + Gold, 27 Oct 2026). Type, space and motion are v0.2.
   Extends v0.1 (website_handoff_2026-10-13/design/tokens.css). Every value marked NEW is a
   proposal for founder approval. Contrast ratios are WCAG 2.x, computed and floored to 2 dp.
   Font paths assume this file stays at design/tokens.css beside brand/fonts/. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../brand/fonts/SchibstedGrotesk-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../brand/fonts/SchibstedGrotesk-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour: v0.1 core, unchanged */
  --color-ink: #1B2A4A;      /* navy. Text on ground 13.26:1; the night surface */
  --color-ground: #F6F7F8;   /* the day surface; text on ink 13.26:1 */
  --color-muted: #56617A;    /* secondary text on ground 5.78:1. Never on ink (use fog) */
  --color-line: #DADFE7;     /* hairline on ground, decorative */
  --color-ground-2: #EDF0F4; /* tonal band (S3). Muted on it 5.42:1 */
  --color-accent: #E3A21A;   /* saffron: the light. Text on ink 6.40:1; ink on accent 6.40:1. Never text on ground */
  --color-white: #FFFFFF;    /* the reversed logo on ink only */

  /* Colour: NEW night tokens */
  --color-fog: #AEB8CC;        /* secondary text on ink 7.13:1 */
  --color-line-night: #344770; /* hairline on ink, decorative */
  --color-dawn-1: #303355;     /* NEW for navy: dusk. Gradient stop only (dawn band), never text or surface */
  --color-dawn-2: #A8764A;     /* NEW for navy: copper. Gradient stop only */
  --color-dawn-3: #EAD9B6;     /* NEW gradient stop only */

  /* Light (NEW): the "ora" effect. Gradient stops for light only, never text */
  --light-core: #FFF3D1;
  --light-warm: rgba(227, 162, 26, 0.85);
  --light-haze: rgba(227, 162, 26, 0.18);
  /* NEW (30 Nov 2026), hero bloom only, never text or surface. They need founder approval. */
  --light-apricot: #F7B272;
  --light-amber: #EFA545;
  --light-rose: #E0876A;
  --light-plum: #6A4470;

  /* Type: Schibsted Grotesk only, 400 and 600 */
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.375rem, 1.1rem + 5.2vw, 4.75rem); /* NEW display: 38 to 76 px. Home h1 and 404 h1 */
  --lh-display: 1.0;
  --ls-display: -0.035em;
  --fs-h2: clamp(1.75rem, 1.15rem + 2.5vw, 3.25rem);    /* NEW: 28 to 52 px */
  --fs-h2-sm: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);      /* NEW: 24 to 32 px, S2 aligned line */
  --lh-h2: 1.06;
  --ls-h2: -0.025em;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);      /* 20 to 24 px, weight 600 */
  --lh-h3: 1.25;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem); /* NEW lead: 19 to 22 px, always above body */
  --lh-lead: 1.5;
  --fs-body: 1.125rem;                                  /* 18 px */
  --lh-body: 1.55;
  --fs-small: 0.875rem;                                 /* 14 px */
  --lh-small: 1.45;

  /* Space: 4 px base */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;     --space-10: 8rem;   --space-11: 10rem;  /* 11 is NEW: section rhythm */

  /* Layout */
  --content-max: 70rem;   /* 1120 px text column */
  --stage-max: 80rem;     /* NEW 1280 px: wide stages for effects */
  --measure: 36rem;       /* 576 px */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(6rem, 4rem + 8vw, 10rem);

  /* Radius: the mark is square-cornered */
  --radius-0: 0;
  --radius-1: 2px;

  /* Focus */
  --focus-width: 2px;
  --focus-offset: 3px;
  --focus-on-ground: var(--color-ink);
  --focus-on-ink: var(--color-accent);

  /* Motion (NEW). One authored moment per section; nothing loops. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* UI response */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* things moving into alignment */
  --ease-light: cubic-bezier(0.16, 1, 0.3, 1);     /* light opening */
  --dur-ui: 160ms;
  --dur-press: 120ms;
  --dur-align: 1400ms;
  --dur-light: 1800ms;
  --dur-bodies: 700ms;
  --dur-sweep: 1200ms;
}

/* Higher contrast on request (NEW, 13 Oct 2026 review). Ratios on the matching surface. */
@media (prefers-contrast: more) {
  :root {
    --color-muted: #414B62;
    --color-line: #737D93;
    --color-line-night: #8592AE;
    --color-fog: #CBD3E2;
  }
}
