/* Tara? design tokens. Values come from DESIGN.md section 2; change them there first.

   Fonts: copy these lines into each page's <head>, before the stylesheets.
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gabarito:wght@500;700;800&family=Azeret+Mono:wght@500&display=swap">
*/

:root {
  color-scheme: light dark;
  --sans: "Gabarito", sans-serif;
  --display: var(--sans);
  --mono: "Azeret Mono", monospace;

  /* Base */
  --bg: #e4f4ea;
  --surface: #ffffff;
  --surface-2: #f2f8f4;
  --ink: #111111;
  --muted: #3f4a43;
  --line: #111111;
  --shadow: #111111;
  --focus: #b0174c;

  /* Accent and status */
  --accent: #ffd23f;
  --accent-ink: #111111;
  --on-accent: #ffd23f;
  --bubble: #ffffff;
  --bubble-ink: #111111;
  --mine: #ffd23f;
  --on-mine: #111111;

  /* Hero (same in both themes) */
  --hero-bg: #ffd23f;
  --hero-fg: #111111;
  --hero-muted: #4a3f00;
  --hero-accent: #b0174c;
}

:root[data-theme="light"] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121512;
    --surface: #1c201c;
    --surface-2: #252a25;
    --ink: #f4f1e6;
    --muted: #b5bdb3;
    --line: #c9d1c6;
    --shadow: #000000;
    --focus: #ffd23f;
    --accent: #ffd23f;
    --accent-ink: #ffd23f;
    --on-accent: #111111;
    --bubble: #1c201c;
    --bubble-ink: #f4f1e6;
    --mine: #ffd23f;
    --on-mine: #111111;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121512;
  --surface: #1c201c;
  --surface-2: #252a25;
  --ink: #f4f1e6;
  --muted: #b5bdb3;
  --line: #c9d1c6;
  --shadow: #000000;
  --focus: #ffd23f;
  --accent: #ffd23f;
  --accent-ink: #ffd23f;
  --on-accent: #111111;
  --bubble: #1c201c;
  --bubble-ink: #f4f1e6;
  --mine: #ffd23f;
  --on-mine: #111111;
}
