/* S5DLI design tokens — S5 Dynamic Learning Initiative brand (from s5dli.ca), tuned for accessibility.
   Brand burgundy #800020 · gold #E1AD01 (decorative only: fails text contrast on white) · Metropolis.
   Every text/background pair below meets WCAG AA (checked); status is never conveyed by color alone. */

@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/metropolis-latin-400-normal.7b9a798c0a74.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/metropolis-latin-500-normal.372fc7d16a6d.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/metropolis-latin-600-normal.10f01a9f175b.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/metropolis-latin-700-normal.dc6926c36da3.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  /* Brand */
  --brand: #800020;
  --brand-strong: #5d0017;
  --brand-contrast: #ffffff;
  --brand-soft: #f8e8ec;
  --accent: #E1AD01;                 /* gold: fills, stripes, logo — never text on light surfaces */
  --hero-from: #5d0017;
  --hero-via: #800020;
  --hero-to: #9a3412;                /* white text stays ≥ 7:1 across the gradient */
  --on-hero: #ffffff;
  --on-hero-muted: #f3d9de;

  /* Surfaces & text */
  --bg: #f2f6fc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #1f2530;
  --text-muted: #4f5763;
  --border: #dde3ec;

  /* Roles */
  --learn: #1f5aa6;       --learn-soft: #e7effb;
  --practice: #6b4a00;    --practice-soft: #fcf1cf;
  --milestone: #800020;   --milestone-soft: #f8e8ec;

  /* Status */
  --done: #1b6b3a;        --done-soft: #e2f3e8;
  --focus: #5d0017;
  --danger: #b3261e;

  /* Type */
  --font-sans: "Metropolis", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: 2.2rem;
  --leading: 1.6;
  --heading-weight: 600;

  /* Space & shape */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow: 0 0.15rem 1.75rem 0 rgb(33 40 50 / 12%);
  --content-width: 1140px;
  --reading-width: 72ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #f0a3b3;
    --brand-strong: #f7c4cf;
    --brand-contrast: #2a0710;
    --brand-soft: #3a1720;
    --accent: #f2c94c;
    --hero-from: #3d000f;
    --hero-via: #5d0017;
    --hero-to: #6e2410;
    --on-hero: #ffffff;
    --on-hero-muted: #f3d9de;

    --bg: #121419;
    --surface: #1a1d24;
    --surface-raised: #20242c;
    --text: #eef0f4;
    --text-muted: #aab1bd;
    --border: #2e333d;

    --learn: #9cc0f5;       --learn-soft: #1b2c47;
    --practice: #f2c94c;    --practice-soft: #3a2f0f;
    --milestone: #f0a3b3;   --milestone-soft: #3a1720;

    --done: #86d9a4;        --done-soft: #15352a;
    --focus: #f2c94c;
    --danger: #ff8a80;
    --shadow: none;
  }
}
