/* KerbTape design tokens (design/tokens.css). */

:root {
  --bg: #0F1B2D;
  --surface: #16243A;
  --line: #24364F;
  --text: #E6ECF3;
  --text-dim: #8FA1B8;
  --up: #34C38F;
  --down: #F0625A;
  --closed: #F5B041;
  --focus: #7FB2FF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-12: 0.75rem; --fs-14: 0.875rem; --fs-16: 1rem; --fs-20: 1.25rem;
  --fs-28: 1.75rem; --fs-44: 2.75rem; --fs-72: 4.5rem;
  --radius-s: 4px; --radius-m: 8px;          /* small controls vs panels; rows have no radius */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --gap-bar-max-pct: 5;                       /* ±5% fills the half-track */
  color-scheme: dark;
}

/* redesign10: dark for every visitor by default, whatever the OS setting; light only when the reader picks it
   (board: localStorage ab-theme, terminal: afterbell.theme → <html data-theme="light">). */
:root[data-theme="light"] {
  --bg: #F3F5F8; --surface: #FFFFFF; --line: #D9E0E8; --text: #13202F; --text-dim: #5B6B7F;
  --up: #0E7A55; --down: #C93C34; --closed: #8F5D0E; --focus: #2B6CDB;
  color-scheme: light;
}

html { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
.figures, .num { font-variant-numeric: tabular-nums; }
.display { font-stretch: 75%; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
