/* Shared by every page: the brand palette in light and dark mode, and base element styles. */

:root {
  color-scheme: light;
  /* Brand palette: #fbfcfc #e0e5e9 #b2c9c5 #1bd488 #45828b #055b65 */
  --page: #e0e5e9;
  --surface: #fbfcfc;
  --ink: #0b0d10;
  --ink-2: #59626d;
  --muted: #6b7480;
  --grid: #e0e5e9;
  --baseline: #b2c9c5;
  --border: #e0e5e9;
  --track: #e0e5e9;
  --brand: #055b65;
  --brand-hover: #45828b;
  --brand-ink: #fbfcfc;
  --brand-soft: #b2c9c5;
  --accent: #1bd488;
  /* Chart series: income in deep teal, spending in green, as in the brand's cash-flow chart. */
  --series-1: #055b65;
  --series-2: var(--accent);
  /* Not in the brand palette: the green is too light to read as text, and there's no red. */
  --good-text: #007a50;
  --critical: #e11d48;
  --nav-active: #e0e5e9;
  --nav-active-ink: #055b65;
  --link: #055b65;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b1416;
    --surface: #102125;
    --ink: #fbfcfc;
    --ink-2: #b2c9c5;
    --muted: #8d9aa0;
    --grid: #1d3236;
    --baseline: #2c4a50;
    --border: #1d3236;
    --track: #1d3236;
    --brand: #055b65;
    --brand-hover: #45828b;
    --brand-ink: #fbfcfc;
    --brand-soft: #b2c9c5;
    --accent: #1bd488;
    --series-1: #45828b;
    --series-2: var(--accent);
    --good-text: #1bd488;
    --critical: #ff6b8a;
    --nav-active: #1d3236;
    --nav-active-ink: #1bd488;
    --link: #1bd488;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1416;
  --surface: #102125;
  --ink: #fbfcfc;
  --ink-2: #b2c9c5;
  --muted: #8d9aa0;
  --grid: #1d3236;
  --baseline: #2c4a50;
  --border: #1d3236;
  --track: #1d3236;
  --brand: #055b65;
  --brand-hover: #45828b;
  --brand-ink: #fbfcfc;
  --brand-soft: #b2c9c5;
  --accent: #1bd488;
  --series-1: #45828b;
  --series-2: var(--accent);
  --good-text: #1bd488;
  --critical: #ff6b8a;
  --nav-active: #1d3236;
  --nav-active-ink: #1bd488;
  --link: #1bd488;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
