/* Off Hours design tokens, ported from the Off Hours design system
   (tokens.json). Light is the default; dark follows the OS setting. */

:root {
  color-scheme: light;

  /* Colour */
  --surface: #f4f5f0;
  --surface-raised: #ffffff;
  --surface-sunken: #e9ebe4;
  --line: #d5d9cf;
  --line-strong: #78837c;
  --grid: #e2e5dc;
  --ink: #16201b;
  --ink-muted: #56625b;
  --on-ink: #f4f5f0;
  --pink: #ff5c93;
  --on-pink: #16201b;
  --pink-text: #c01e5b;
  --pink-soft: #ffe0eb;
  --moss: #1e6b47;
  --on-moss: #ffffff;
  --moss-soft: #dcefe4;
  --marker: #f2c230;
  --on-marker: #16201b;
  --blue: #2d5bd0;
  --danger: #b42318;
  --focus: var(--pink-text);

  /* Map overlays sit on the basemap, slightly see-through */
  --overlay: rgba(255, 255, 255, 0.92);
  --scrim: rgba(244, 245, 240, 0.88);

  /* Type */
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-pop: 4px 4px 0 #16201b;
  --shadow-soft: 0 1px 2px rgba(22, 32, 27, 0.06),
    0 8px 24px rgba(22, 32, 27, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #111613;
    --surface-raised: #19201c;
    --surface-sunken: #0b0f0d;
    --line: #2a332e;
    --line-strong: #68756d;
    --grid: #1b231f;
    --ink: #e8ece5;
    --ink-muted: #9ba79f;
    --on-ink: #111613;
    --pink: #ff7faa;
    --on-pink: #16201b;
    --pink-text: #ff94b8;
    --pink-soft: #40172a;
    --moss: #4cc38a;
    --on-moss: #0b1410;
    --moss-soft: #14301f;
    --marker: #e8b923;
    --on-marker: #16201b;
    --blue: #86a8ff;
    --danger: #ff8a80;
    --overlay: rgba(25, 32, 28, 0.92);
    --scrim: rgba(17, 22, 19, 0.88);
    --shadow-pop: 4px 4px 0 #ff7faa;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
