/* My Big Little Wins: website tokens (v2, 2 October 2026; merged with refresh v1 and the app's elevate tokens)
   Changes from v1 are marked  v2:
   Drop into /styles/tokens.css and load before site.css and motion.css.
   Drop into /styles/tokens.css and load before site.css.
   Names match the app (tokens.ts) wherever the meaning is the same. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Colour (light) */
  --background: #FBF6EE;
  --surface: #FFFDF9;
  --warm: #FCE3D6;
  --line: #EADFD2;
  --card-line: #F0E7DC;
  --calm: #CFDCC8;
  --sage-ink: #4A6843;
  --soft: #DCD6EE;
  --add-win: #F2735A;      /* v2: means adding a win. Logo dot, the one-tap chip's dot, the status-pill dot. Never a button. */
  --celebrate: #FFD166;    /* being given credit: celebration sparks, I Need a Win button */
  --sun-wash: #FFF1CC;     /* halo, I Need a Win demo, closing band */
  --keep-wash: #FFF7E0;    /* v2: kept-close (favourite) rows, as in the app */
  --marker-dot: #9DB594;   /* v2: plain win marker, as in the app */
  --calm-wash: #EEF3EA;    /* v2: the promises panel */
  --halo-sage: #E4EBDE;    /* v2: the large sage disc behind the hero phone */
  --soft-row: #EEEAF6;     /* v2: weekly letter row */
  --postmark: rgba(59,42,34,.35); /* v2 */
  --lift: 0 2px 4px rgba(59,42,34,.06), 0 14px 30px rgba(120,80,20,.12); /* v2: handed card */
  --text: #3B2A22;
  --text-muted: #6B5448;
  --on-accent: #2A1A14;
  --danger: #A8452F;       /* v2: matches the app (was #B34A33) */
  --danger-wash: #FBE3DC;  /* new: error banner */
  --link-line: #CFDCC8;    /* new: link underline */
  --focus: #3B2A22;
  --e1: 0 1px 2px rgba(59,42,34,.05), 0 6px 16px rgba(59,42,34,.06);

  /* Type (rem, 1rem = 16px; scales with browser zoom) */
  --font: "Nunito", ui-rounded, system-ui, sans-serif;
  --display: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);         /* 40 to 64, line 1.08, 800, tracking -0.015em */
  --page-title: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);      /* 40 to 56, line 1.1, 800 */
  --h2: clamp(1.875rem, 1.6rem + 1vw, 2.5rem);            /* 30 to 40, line 1.2, 800 */
  --legal-h2: clamp(1.5rem, 1.4rem + .4vw, 1.75rem);      /* 24 to 28, line 1.28, 800 */
  --h3: 1.375rem;          /* 22, line 1.27, 800 */
  --lead: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);       /* 18 to 20, line 1.5, 400 */
  --body: 1.125rem;        /* 18, line 1.6 (legal pages) or 1.55 */
  --callout: 1.0625rem;    /* 17, line 1.5 */
  --label: 1rem;           /* 16, 800: form labels */
  --small: .9375rem;       /* 15, line 1.45 */
  --caption: .875rem;      /* 14, line 1.4 */

  /* Space (px, 4-point steps) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-7: 32px; --space-8: 48px; --space-9: 64px; --space-10: 96px;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;          /* 390 */
  --section-gap: 48px;     /* phone; 96px from 1024 */

  /* Radii */
  --radius-field: 20px;
  --radius-card: 24px;
  --radius-panel: 32px;    /* big bands: Who it's for, promises, closing */
  --radius-demo: 28px;     /* v2: win cards and How it feels demos */
  --radius-postcard: 22px; /* v2 */
  --radius-pill: 999px;

  /* Motion */
  --quick: 200ms;
  --standard: 320ms;
  --ease: cubic-bezier(.2,.8,.2,1);
  --halo: 400ms;           /* v2: from the app */
  --land: 1200ms;          /* v2: landing wash fade */
  --chip-hold: 1600ms;     /* v2: one-tap saved state */
  --ease-out: cubic-bezier(.22,1,.36,1);       /* v2: the app's "out" */
  --ease-standard: cubic-bezier(.4,0,.2,1);    /* v2: the app's "standard" */
}

@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section-gap: 96px; } }

/* Dark: the visitor's device setting (Auto), unless they chose Light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #1F1A17; --surface: #2A231F; --warm: #3A2C26; --line: #3E342E; --card-line: #342B26;
    --calm: #3B4A38; --sage-ink: #B8D1AE; --soft: #3B3650; --sun-wash: #3F3022;
    --keep-wash: #352A1F; --marker-dot: #7E9A75; --calm-wash: #252B23; --halo-sage: #2E3A2C; --soft-row: #2F2B3E;
    --postmark: rgba(246,237,228,.4); --lift: 0 14px 30px rgba(0,0,0,.35);
    --text: #F6EDE4; --text-muted: #CDBBAF; --danger: #F59A86; --danger-wash: #3F2621;
    --link-line: #5E7F56; --focus: #F6EDE4; --e1: none;
  }
}
/* Dark: chosen with the theme switch. */
:root[data-theme="dark"] {
  color-scheme: dark;
    --background: #1F1A17; --surface: #2A231F; --warm: #3A2C26; --line: #3E342E; --card-line: #342B26;
    --calm: #3B4A38; --sage-ink: #B8D1AE; --soft: #3B3650; --sun-wash: #3F3022;
    --keep-wash: #352A1F; --marker-dot: #7E9A75; --calm-wash: #252B23; --halo-sage: #2E3A2C; --soft-row: #2F2B3E;
    --postmark: rgba(246,237,228,.4); --lift: 0 14px 30px rgba(0,0,0,.35);
    --text: #F6EDE4; --text-muted: #CDBBAF; --danger: #F59A86; --danger-wash: #3F2621;
    --link-line: #5E7F56; --focus: #F6EDE4; --e1: none;
}
:root[data-theme="light"] { color-scheme: light; }

/* v2: reduced motion is handled per moment in motion.css so final frames still show. Do not blanket-disable here. */

/* Breakpoints: 480 (sm), 768 (md), 1024 (lg), 1280 (xl). Layout switches to two columns at 1024. */
