/* Nutrition Tracker design tokens: the one palette (light, plus dark for both the system setting and an explicit
   data-theme), type, radii and spacing. Every page uses var(--...); a missing colour becomes a new token here. */
:root {
  --bg: #eef0ed;
  --panel: #ffffff;
  --ink: #141513;
  --muted: #5d6159;
  --line: #d6d9d3;
  --track: #e3e6e0;
  --accent: #2350c8;
  --accent-ink: #ffffff;
  --accent-soft: #e4eafa;
  --on-ink-accent: #a9bfff;
  --good: #1d7a45;
  --over: #b8461b;
  --scrim: rgba(20, 21, 19, 0.45);
  --shadow: rgba(0, 0, 0, 0.18);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-xxl: 2.75rem;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-sheet: 16px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121411;
    --panel: #1b1e1a;
    --ink: #eef1eb;
    --muted: #a2a79e;
    --line: #343832;
    --track: #2b2f2a;
    --accent: #8eaaff;
    --accent-ink: #0c1838;
    --accent-soft: #1f2a48;
    --on-ink-accent: #2350c8;
    --good: #5cc98b;
    --over: #ff9165;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121411;
  --panel: #1b1e1a;
  --ink: #eef1eb;
  --muted: #a2a79e;
  --line: #343832;
  --track: #2b2f2a;
  --accent: #8eaaff;
  --accent-ink: #0c1838;
  --accent-soft: #1f2a48;
  --on-ink-accent: #2350c8;
  --good: #5cc98b;
  --over: #ff9165;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
