/* Silverside design tokens, as CSS custom properties.
   The source is the Silverside design system (tokens.json); keep the two in step. The colors are
   ahead of it: warm paper and dark brown since 2026-10-26, to match the new icon (it still has blue).
   Dark is the base theme. Light follows prefers-color-scheme, or data-theme on <html>. */

:root {
  color-scheme: dark;

  --ground: #17110b;
  --glow: rgba(255, 186, 102, 0.16);
  --groove: rgba(255, 228, 190, 0.055);
  --page: #110d09;
  --surface: #1c1712;
  --line: rgba(255, 240, 220, 0.09);
  --chip: rgba(255, 240, 220, 0.06);
  --ink: #f6f2ec;
  --ink-2: #bfb5a6;
  --ink-3: #9a8f80;
  --action: #1668e3;
  --action-hover: #2b79f2;
  --on-action: #ffffff;
  --verified: #3fd27a;
  --track-segment: #5c5144;
  --track-flagged: #b07a3e;
  --track-reread: #f29d38;
  --track-fixed: #3d8bff;
  --track-failed: #ff5a4f;
  --iris-1: #8f7bff;
  --iris-2: #4aa8ff;
  --iris-3: #45d6c8;
  --iris-4: #c9e35f;
  --iris-5: #ffb257;
  --iris-6: #ff6fae;
  --shadow-shot: 0 50px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 240, 220, 0.10);
  --shadow-window: 0 40px 60px rgba(0, 0, 0, 0.6);
  --backdrop: rgba(10, 8, 5, 0.86);
  --shadow-icon: 0 18px 36px rgba(0, 0, 0, 0.5);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 28px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 96px;
  --space-10: 140px;

  --radius-mark: 3px;
  --radius-chip: 8px;
  --radius-tile: 12px;
  --radius-shot: 14px;
  --radius-card: 18px;
  --radius-panel: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-shot: 1160px;
  --container-text: 680px;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ground: #e8dec9;
    --glow: rgba(255, 252, 244, 0.85);
    --groove: rgba(96, 72, 36, 0.08);
    --page: #f7f2e9;
    --surface: #fffdf9;
    --line: rgba(60, 44, 20, 0.12);
    --chip: rgba(60, 44, 20, 0.06);
    --ink: #1d1813;
    --ink-2: #54493b;
    --ink-3: #6b5f4f;
    --action: #0a63d8;
    --action-hover: #0856bd;
    --verified: #13803d;
    --track-segment: #d9ccb2;
    --shadow-shot: 0 40px 100px rgba(70, 48, 18, 0.24), 0 0 0 1px rgba(60, 44, 20, 0.12);
    --shadow-window: 0 30px 50px rgba(70, 48, 18, 0.26);
    --shadow-icon: 0 18px 36px rgba(70, 48, 18, 0.30);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --ground: #e8dec9;
  --glow: rgba(255, 252, 244, 0.85);
  --groove: rgba(96, 72, 36, 0.08);
  --page: #f7f2e9;
  --surface: #fffdf9;
  --line: rgba(60, 44, 20, 0.12);
  --chip: rgba(60, 44, 20, 0.06);
  --ink: #1d1813;
  --ink-2: #54493b;
  --ink-3: #6b5f4f;
  --action: #0a63d8;
  --action-hover: #0856bd;
  --verified: #13803d;
  --track-segment: #d9ccb2;
  --shadow-shot: 0 40px 100px rgba(70, 48, 18, 0.24), 0 0 0 1px rgba(60, 44, 20, 0.12);
  --shadow-window: 0 30px 50px rgba(70, 48, 18, 0.26);
  --shadow-icon: 0 18px 36px rgba(70, 48, 18, 0.30);
}
