/* Charta colour tokens: the one set every page uses (docs/BRAND.md, "Colour"; docs/THEME.md).
 *
 * Every public page and the homepage link this file and follow the device: light by default, dark under
 * prefers-color-scheme: dark. There is no toggle on public pages. The signed-in app (web/index.html) carries
 * the same values inline (it also has its own Settings > Display override) and tests/test_theme_tokens.py
 * fails if the two drift apart.
 *
 * Palette: Paper #F7F7F5, Night #16171A, Charta Green #2F5D50, Mint #7FB8A4, Deep Green #1E3D34.
 * Brass #B8894A is for fills and rules only (never small text): it is --brass here and --time in the app.
 */
:root {
  color-scheme: light;
  --bg: #F7F7F5; --panel: #FFFFFF; --panel-2: #F1F1EE;
  --ink: #1A1A18; --muted: #6B6B66; --line: #E2E2DD;
  --accent: #2F5D50; --accent-strong: #1E3D34; --accent-soft: #E8F0ED; --accent-line: #D3E2DC; --on-accent: #FFFFFF;
  --good: #2F6B4F; --bad: #A33A2C; --bad-soft: #F6E7E4; --surface-green: #E8F2ED;
  --mint: #7FB8A4; --brass: #B8894A;
  /* The dark green surfaces, the same in light and dark: --deep is the brand header green (docs/BRAND.md; the app header, the site header and footer,
     the homepage's top band and dark half), --deep-tile is Deep Green for tiles and cards that sit on it. */
  --deep: #062C25; --deep-tile: #1E3D34; --deep-tile-line: #2F5D50;
  --on-deep: #F7F7F5; --on-deep-2: #DCEAE3; --on-deep-muted: #B5CEC3; --on-deep-accent: #A9D3C3;
  --shadow: 0 1px 2px rgba(26, 26, 24, .05), 0 12px 32px rgba(26, 26, 24, .08);
  --focus: #2F5D50;
  /* Names older templates and the shared navigation bar still read. */
  --ground: var(--bg); --surface: var(--panel); --green: var(--accent); --green-dark: var(--deep);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #16171A; --panel: #1E2024; --panel-2: #25282D;
    --ink: #E9E9E6; --muted: #9A9A94; --line: #2E3137;
    --accent: #7FB8A4; --accent-strong: #A9D3C3; --accent-soft: #22302B; --accent-line: #2E3137; --on-accent: #0F1F1A;
    --good: #7FB8A4; --bad: #D98577; --bad-soft: #3A2623; --surface-green: #17342C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --focus: #7FB8A4;
  }
}
