/* tokens.css: the single source of colour, type, shape and layout values.
   Loaded first. No other stylesheet may contain a colour literal. */
/* Variable fonts: one file per family covers every weight. */
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2"); }

:root {
  /* surfaces and text */
  --bg: #f3f5f8;        /* page */
  --card: #ffffff;      /* panel surface */
  --chip: #e9edf2;      /* sunken areas, table headers, secondary buttons */
  --line: #d5dce6;      /* dividers and borders */
  --ink: #131c2b;       /* text */
  --muted: #4a586b;     /* secondary text */
  /* one accent */
  --accent: #1f4fc4;
  --accent-soft: #e4ebfb;
  --accent-ink: #ffffff;
  /* meaning, separate from the accent */
  --up: #14773d;
  --down: #b3261e;
  --warn: #8a5300;
  --warn-soft: #fbf0d9;
  --flat: #6b7888;
  /* chart series: this year, last year, two years ago */
  --series-1: var(--accent);
  --series-2: #8a96a6;
  --series-3: #c3cbd6;
  /* map markers: the only colours allowed to stay screen-specific */
  --map-growth-strong: #15803d; --map-growth-mild: #4fbf75;
  --map-decline-mild: #ca8a04; --map-decline-strong: #dc2626;
  /* shape */
  --r-control: 6px;
  --r-panel: 10px;
  --r-pill: 999px;
  --radius: var(--r-panel);            /* legacy alias */
  --shadow: none;                       /* panels use a border, not a shadow */
  --shadow-pop: 0 8px 24px rgba(19, 28, 43, .16); /* menus and dialogs only */
  /* type */
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --fs-12: .75rem;  --fs-13: .8125rem; --fs-15: .9375rem;
  --fs-17: 1.0625rem; --fs-22: 1.375rem; --fs-32: 2rem;
  /* layout */
  --w-read: 760px;   /* reading screens */
  --w-data: 1280px;  /* data screens */
  --tap: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141d; --card: #171f2b; --chip: #111822; --line: #2a3545;
    --ink: #e6ebf2; --muted: #9aa8ba;
    --accent: #7ea6ff; --accent-soft: #1c2a47; --accent-ink: #0e141d;
    --up: #4cc38a; --down: #ff8a80; --warn: #e5a83b; --warn-soft: #2e2412; --flat: #8492a4;
    --series-2: #5d6b7d; --series-3: #36414f;
    --map-growth-strong: #22c55e; --map-growth-mild: #86efac;
    --map-decline-mild: #facc15; --map-decline-strong: #f87171;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, .5);
  }
}
