/* Nina home 2026 - tokens. Light theme only. 3 font files (about 55 KB). */
@font-face{font-family:Anton;src:url(fonts/anton-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Cabinet Grotesk";src:url(fonts/cabinet-800.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"General Sans";src:url(fonts/general-400.woff2) format("woff2");font-weight:400 500;font-display:swap}
@font-face{font-family:"General Sans";src:url(fonts/general-600.woff2) format("woff2");font-weight:600 800;font-display:swap}

:root{
  color-scheme:light;

  /* Nina palette (brief/VISUAL.md, 2026-11-18). Raw values: never use them directly in
     components, use the roles below. */
  --red:#C8102E;         /* her leggings: brand, buttons, giant time on light grounds */
  --red-deep:#9E0C24;    /* NINA tab on red ground, small text / links on light grounds, giant time on rose */
  --pink:#F7D6D9;        /* hero ground */
  --rose:#EFA9B2;        /* deeper pink: card 4, closing section */
  --butter:#FFD866;      /* soft ground, chips, action + time on red/ink */
  --ink:#0E1220;         /* text */
  --ink-2:#4A5068;       /* secondary text on pink, butter, page and white only (NOT on rose) */
  --cream:#FBF5F0;       /* page */
  --white:#FFFFFF;
  --photo-ring:#EDB9BF;  /* decorative only, never carries text */

  /* ROLES. One colour = one meaning.
     action  red with a white label on light grounds; butter with an ink label on red/ink.
     time    the giant minutes and numbers: red on pink/butter/page/white, butter on red/ink,
             red-deep on rose. Large text only where the pair is under 4.5.
     ground  pink, red, butter, ink, rose, page, white: sections, never actions.
     text    ink on light, white on red/ink. Never white on pink/rose/butter, never ink on red,
             never ink-2 on rose. */
  --page:var(--cream);
  --text:var(--ink);
  --text-2:var(--ink-2);
  --link:var(--red-deep);     /* 7.67 on page */
  --focus:var(--ink);

  /* Default ground = page. Sections override with .ground-*. */
  --ground:var(--cream);
  --on-ground:var(--ink);
  --on-ground-2:var(--ink-2);
  --time:var(--red);          /* large text only where under 4.5 */
  --action:var(--red);
  --on-action:var(--white);
  --tab:var(--red);
  --on-tab:var(--white);
  --card:var(--white);

  /* Type. Anton slanted for display, General Sans for text. */
  --font-display:Anton,Impact,"Arial Narrow",sans-serif;
  --font-text:"General Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --slant:-11deg;
  --fs-giant:clamp(7rem,38vw,16rem);     /* minutes / card numbers */
  --fs-hero:clamp(3.25rem,13vw,7.5rem);
  --fs-h2:clamp(2.25rem,7vw,4rem);
  --fs-h3:clamp(1.5rem,3.4vw,2rem);
  --fs-lead:clamp(1.125rem,2.2vw,1.375rem);
  --fs-body:1.0625rem;
  --fs-small:.9375rem;
  --lh-display:.96;
  --lh-text:1.5;

  /* Space (4 px base), radii, layout */
  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem; --s-5:1.5rem; --s-6:2rem; --s-7:3rem; --s-8:4.5rem; --s-9:7rem;
  --gutter:clamp(1rem,4vw,2rem);
  --wrap:72rem;
  --r-sm:.5rem; --r-md:.75rem; --r-lg:1.25rem; --r-tab:1rem;
  --tap:2.75rem;                          /* 44 px minimum target */

  /* Motion */
  --ease-out:cubic-bezier(.22,1,.36,1);
  --ease-snap:cubic-bezier(.34,1.56,.64,1);
  --d-fast:.12s; --d-base:.22s; --d-slow:.6s; --d-view:.28s;
}

/* Breakpoints (media queries cannot use var(); keep these numbers in sync):
   --bp-sm 30rem (480) | --bp-md 48rem (768) | --bp-lg 64rem (1024) | --bp-xl 80rem (1280) */

/* Ground classes set the roles together so a pair is never mixed by hand (contrast table in brief/VISUAL.md). */
.ground-pink{--ground:var(--pink);--on-ground:var(--ink);--on-ground-2:var(--ink-2);--time:var(--red);--action:var(--red);--on-action:var(--white);--tab:var(--red);--on-tab:var(--white);--focus:var(--ink);--link:var(--red-deep)}
.ground-page{--ground:var(--cream);--on-ground:var(--ink);--on-ground-2:var(--ink-2);--time:var(--red);--action:var(--red);--on-action:var(--white);--tab:var(--red);--on-tab:var(--white);--focus:var(--ink);--link:var(--red-deep)}
.ground-red{--ground:var(--red);--on-ground:var(--white);--on-ground-2:var(--white);--time:var(--butter);--action:var(--butter);--on-action:var(--ink);--tab:var(--red-deep);--on-tab:var(--white);--focus:var(--white);--link:var(--white)}
.ground-butter{--ground:var(--butter);--on-ground:var(--ink);--on-ground-2:var(--ink-2);--time:var(--red);--action:var(--red);--on-action:var(--white);--tab:var(--red);--on-tab:var(--white);--focus:var(--ink);--link:var(--red-deep)}
.ground-ink{--ground:var(--ink);--on-ground:var(--white);--on-ground-2:var(--white);--time:var(--butter);--action:var(--butter);--on-action:var(--ink);--tab:var(--red);--on-tab:var(--white);--focus:var(--white);--link:var(--white)}
.ground-rose{--ground:var(--rose);--on-ground:var(--ink);--on-ground-2:var(--ink);--time:var(--red-deep);--action:var(--red);--on-action:var(--white);--tab:var(--red);--on-tab:var(--white);--focus:var(--ink);--link:var(--ink)}
.ground-paper{--ground:var(--white);--on-ground:var(--ink);--on-ground-2:var(--ink-2);--time:var(--red);--action:var(--red);--on-action:var(--white);--tab:var(--red);--on-tab:var(--white);--focus:var(--ink);--link:var(--red-deep)}

/* h3 fix: the ring of an element that carries its own ground (a card) sits OUTSIDE it,
   on the parent ground, so it must use the parent's focus colour. Sections publish it as --ring. */
:root{--ring:var(--ink)}
.section,.ticker,.footer{--ring:var(--focus)}
