/*
  tokens.css: design system v4, "Cold Chain Noir" (see
  docs/superpowers/specs/2026-11-25-design-system-v4.md). Dark is the default;
  light comes from the theme button (data-theme="light") or the system setting.
  Signal orange is reserved for recalls, deadlines and disputes.
*/
:root {
  --bg: #05080D;          /* night */
  --surface: #0B121B;     /* hull */
  --surface-2: #111A25;
  --line: #1C2734;        /* steel */
  --ink: #E8F1F8;         /* ice */
  --ink-2: #B7C4D2;
  --muted: #8A9AAD;       /* mist */
  --frost: #8FCBFF;
  --signal: #FF6A1F;
  --brand: #E8F1F8;       /* primary buttons are ice on night */
  --brand-text: #05080D;
  --brand-hover: #FFFFFF;
  --brand-ink: #8FCBFF;   /* links and citations */
  --up: #8FCBFF;          /* confirmed states */
  --warn: #FF6A1F;
  --glass: rgb(11 18 27 / 62%);
  --esg-bg: #0B1A1F;
  --esg-ink: #E8F1F8;
  --esg-soft: #A9C2CC;
  --esg-accent: #8FCBFF;
  --fade: rgb(5 8 13);

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --head-stretch: 118%;

  --r-btn: 2px;
  --r-card: 2px;
  --r-panel: 14px;
  --max: 1280px;
  --gutter: 40px;
  --section: 128px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F1F4F7; --surface: #FFFFFF; --surface-2: #E8EDF2; --line: #D5DDE6;
    --ink: #07111C; --ink-2: #283849; --muted: #4E5D6E;
    --frost: #1D6CB0; --signal: #D24A0C;
    --brand: #07111C; --brand-text: #F1F4F7; --brand-hover: #1B2836; --brand-ink: #1D6CB0;
    --up: #1D6CB0; --warn: #D24A0C; --glass: rgb(255 255 255 / 70%);
    --esg-bg: #E4EEF3; --esg-ink: #07111C; --esg-soft: #3A4D5C; --esg-accent: #1D6CB0;
    --fade: rgb(241 244 247);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #F1F4F7; --surface: #FFFFFF; --surface-2: #E8EDF2; --line: #D5DDE6;
  --ink: #07111C; --ink-2: #283849; --muted: #4E5D6E;
  --frost: #1D6CB0; --signal: #D24A0C;
  --brand: #07111C; --brand-text: #F1F4F7; --brand-hover: #1B2836; --brand-ink: #1D6CB0;
  --up: #1D6CB0; --warn: #D24A0C; --glass: rgb(255 255 255 / 70%);
  --esg-bg: #E4EEF3; --esg-ink: #07111C; --esg-soft: #3A4D5C; --esg-accent: #1D6CB0;
  --fade: rgb(241 244 247);
  color-scheme: light;
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 80px; }
}
