/* Every colour token of the site, in the logo palette. Loaded first on all pages; tests/web/contrast.test.mjs reads this file.
   --border is for decorative lines (cards, tables, dividers). The edge of a control (input, select, textarea, button)
   uses --control-border, which is at least 3:1 against the page and the panel (WCAG 1.4.11). */
:root {
  color-scheme: light dark;
  --bg: #fbf8f0;
  --panel: #f3ebd8;
  --border: #dccfa9;
  --control-border: #5b8461;
  --fg: #1f3d2b;
  --muted: #4f6355;
  --accent: #2f5a41;
  --on-accent: #fbf8f0;
  --error: #b00020;
  --grade-flat: #0a6e4f;
  --grade-gentle: #946200;
  --grade-steep: #b00020;
  --hdr-bg: #1f3d2b;
  --hdr-fg: #f3ebd8;
  --hdr-muted: #c8c39a;
  --hdr-line: #3b5a47;
  --hdr-active-bg: #f3ebd8;
  --hdr-active-fg: #1f3d2b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d2418;
    --panel: #1f3d2b;
    --border: #2f5a41;
    --control-border: #6a906d;
    --fg: #f3ebd8;
    --muted: #c8c39a;
    --accent: #e9dcbc;
    --on-accent: #0d2418;
    --error: #ff8a80;
    --grade-flat: #4fc3a1;
    --grade-gentle: #e0b341;
    --grade-steep: #ff8a80;
    --hdr-bg: #1f3d2b;
    --hdr-fg: #f3ebd8;
    --hdr-muted: #c8c39a;
    --hdr-line: #3b5a47;
    --hdr-active-bg: #f3ebd8;
    --hdr-active-fg: #1f3d2b;
  }
}
