/* Design tokens. Direction: a dispatch desk. Cool paper, navy ink,
   one amber signal reserved for "what goes out next" and keyboard focus. */
:root {
  --paper: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e9edf3;
  --ink: #18223a;
  --ink-soft: #4d5870;
  --muted: #6a7488;
  --line: #d3d9e3;
  --line-strong: #aab4c4;
  --signal: #f0a202;
  --signal-ink: #18223a;
  --signal-wash: #fdf1d6;

  --ok: #1d7a52;
  --ok-wash: #e1f2e9;
  --bad: #b8392a;
  --bad-wash: #fbe7e3;
  --busy: #5a45c9;
  --busy-wash: #ece8fb;
  --warn: #8a5a00;
  --warn-wash: #fdf1d6;

  --btn: #18223a;
  --btn-ink: #f3f5f8;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.75rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-pill: 999px;

  --rail-w: 232px;
  --content-w: 1040px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--signal);
  --lift: 0 1px 0 rgba(24, 34, 58, 0.06), 0 8px 24px -12px rgba(24, 34, 58, 0.25);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0f1524;
    --surface: #161e31;
    --surface-2: #1d2740;
    --ink: #e8edf6;
    --ink-soft: #bcc6d8;
    --muted: #8f9ab0;
    --line: #2a3552;
    --line-strong: #44516f;
    --signal: #ffc23d;
    --signal-ink: #141a2a;
    --signal-wash: #3a2f12;
    --ok: #5fd39c;
    --ok-wash: #12301f;
    --bad: #ff8a78;
    --bad-wash: #3a1a16;
    --busy: #ab9cff;
    --busy-wash: #241f45;
    --warn: #ffc23d;
    --warn-wash: #3a2f12;
    --btn: #e8edf6;
    --btn-ink: #0f1524;
    --lift: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #0f1524;
  --surface: #161e31;
  --surface-2: #1d2740;
  --ink: #e8edf6;
  --ink-soft: #bcc6d8;
  --muted: #8f9ab0;
  --line: #2a3552;
  --line-strong: #44516f;
  --signal: #ffc23d;
  --signal-ink: #141a2a;
  --signal-wash: #3a2f12;
  --ok: #5fd39c;
  --ok-wash: #12301f;
  --bad: #ff8a78;
  --bad-wash: #3a1a16;
  --busy: #ab9cff;
  --busy-wash: #241f45;
  --warn: #ffc23d;
  --warn-wash: #3a2f12;
  --btn: #e8edf6;
  --btn-ink: #0f1524;
  --lift: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
