/*
 * Design tokens. Components use roles only (surface, ink, accent, series, heat),
 * so the palette lives here and nowhere else. Dark only: there is no light theme.
 * Series and heat steps come from the validated data-viz reference palette.
 */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0e0e0d;
  --surface: #1a1a19;
  --surface-2: #222220;
  --surface-3: #2c2c2a;
  --overlay: rgba(26, 26, 25, 0.92);
  --border: #2e2e2b;
  --border-strong: #3f3f3b;

  /* ink */
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --ink-3: #9d9b92;
  --ink-inverse: #0b0b0b;

  /* one accent */
  --accent: #3987e5;
  --accent-ink: #86b6ef;
  --accent-soft: #172537;
  --accent-soft-2: #1d3352;
  --focus: #5598e7;

  /* status: meaning only, always paired with a sign or an icon */
  --good-ink: #3fbf3f;
  --bad-ink: #f08080;
  --bad: #e66767;
  --warn-ink: #f0b840;

  /* chart chrome */
  --grid: #282826;
  --axis: #3d3d39;
  --chart-muted: #55544f;

  /* categorical series, fixed order (blue, orange, aqua, yellow, magenta, green) */
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;

  /* sequential heat for ranks (blue, strongest = best) and the ink on each step */
  --heat-1: #86b6ef;  --heat-ink-1: #0b0b0b;
  --heat-2: #3987e5;  --heat-ink-2: #0b0b0b;
  --heat-3: #1c5cab;  --heat-ink-3: #ffffff;
  --heat-4: #163f70;  --heat-ink-4: #f0efec;
  --heat-5: #1a2a3d;  --heat-ink-5: #f0efec;

  /* shape */
  --radius-lg: 12px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);

  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;

  /* spacing (4px grid) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;

  --page-max: 1360px;
  --topbar-h: 56px;
}

