/* Design tokens (D-042): brand, light scheme (B1), dark scheme (B3), type, space. */

/* The cascade layer order. It lives here, in the first stylesheet, and not in an
   inline <style>, so the CSP can refuse inline <style> elements (D-068). */
@layer tokens, base, components, motion;

@layer tokens {
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  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 {
  /* Brand */
  --navy: #14213d;
  --orange: #f25c05;

  /* Light scheme (B1). Contrast on --bg: text 15.9, muted 7.1, link 5.8, rank 3.1 (large). */
  --bg: #ffffff;
  --surface: #f6f7fa;
  --text: #14213d;
  --muted: #4d5872;
  --rank: #8a93a8;
  --line: #e1e5ee;
  --line-strong: #14213d;
  --hover: #f5f7fb;
  --track: #edf0f6;
  --link: #b33f00;
  --accent-text: #b33f00;
  --focus: #b33f00;
  --mark: rgb(242 92 5 / 0.28);
  --tag-bg: #fff1e8;
  --tag-text: #9a3600;
  /* Podium: places 1–3 of a ranking (large text, contrast on --bg ≥ 3:1). */
  --gold: #a87a00;
  --silver: #4f6d8f;
  --bronze: #a0522d;
  --field-bg: #ffffff;
  --field-line: #8a93a8;
  --header-bg: #14213d;
  --header-text: #ffffff;
  --header-field-bg: #1f2f52;
  --header-field-line: #3a4a6e;
  --header-placeholder: #b8c0d4;
  --footer-bg: #14213d;
  --footer-text: #c9d0e0;
  --footer-link: #ffffff;
  --btn-bg: #f25c05;
  --btn-text: #14213d;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --narrow: 78%; /* font-stretch for headings and big numbers */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);

  /* Space and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --radius: 4px;
  --band: 6px; /* orange band at the top of every page (from B4) */
  --page: 74rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  /* Dark scheme (B3). Contrast on --bg: text 15.3, muted 8.2, link 7.4, rank 3.3 (large). */
  :root {
    --bg: #0f1a31;
    --surface: #14213d;
    --text: #eef1f7;
    --muted: #aab3c7;
    --rank: #6f7da0;
    --line: #26365a;
    --line-strong: #f25c05;
    --hover: #16233f;
    --track: #1d2b4a;
    --link: #ff8a47;
    --accent-text: #ff8a47;
    --focus: #ff8a47;
    --mark: rgb(242 92 5 / 0.45);
    --tag-bg: rgb(242 92 5 / 0.16);
    --tag-text: #ffb184;
    --gold: #f2c14e;
    --silver: #c3ccda;
    --bronze: #e0915a;
    --field-bg: #14213d;
    --field-line: #4a5b82;
    --header-bg: #0b1426;
    --header-field-bg: #14213d;
    --header-field-line: #2f4069;
    --header-placeholder: #9aa5bd;
    --footer-bg: #0b1426;
    --footer-text: #aab3c7;
    --btn-bg: #f25c05;
    --btn-text: #0b1426;
    color-scheme: dark;
  }
}
}
