/* Colors, sizes, and fonts live here so the whole theme can change in one place.
   Dark is the default; the light theme kicks in when the device prefers it.
   (The pixel-art course paints its own sky by time of day: see js/ui/course.js.) */
:root {
  --color-bg: #14130f;
  --color-surface: #1f1d18;
  --color-surface-2: #2a2721;
  --color-text: #f3eee3;
  --color-muted: #a39c8d;
  --color-border: #3b372f;
  --color-accent: #e8c15a;      /* brass: buttons, the peak marker */
  --color-accent-text: #1a1710;

  /* Shot ratings, best to worst */
  --tier-ace: #f3d27a;
  --tier-eagle: #a98cf0;
  --tier-birdie: #6cc35a;
  --tier-par: #d8d2c4;
  --tier-bogey: #e2b84a;
  --tier-double: #e07a3c;
  --tier-lost: #e0574a;
  --tier-text: #fff;

  /* The paper scorecard and caddie note */
  --paper: #f6f0df;
  --paper-ink: #1d1a14;
  --paper-muted: #7a715e;
  --paper-line: #ddd3bb;
  --paper-head: #2f5a3a;
  --paper-head-ink: #f6f0df;
  --paper-head-soft: #ece4cd;
  --paper-highlight: #fff8d6;

  --flag-1: #e2493b;
  --flag-2: #e8c15a;
  --flag-3: #4fa3d9;

  --radius: 10px;
  --font-main: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;
  --font-word: "Rubik", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #f7f3ea;
    --color-surface: #fffdf8;
    --color-surface-2: #efe9dc;
    --color-text: #1d1a14;
    --color-muted: #6b6455;
    --color-border: #d9d1bf;
    --color-accent: #1f5c3a;
    --color-accent-text: #fff;
    --tier-ace: #b8860b;
    --tier-eagle: #6f4fc8;
    --tier-birdie: #2f8a3e;
    --tier-par: #6b6455;
    --tier-bogey: #a87f12;
    --tier-double: #c4652a;
    --tier-lost: #b23a2e;
    --paper: #fffaf0;
    --paper-highlight: #fff3c4;
    color-scheme: light;
  }
}
