/* Janus tokens (~/farmhand-prep/farmhub-mockup/janus/tokens.json) as CSS
 * variables. Light is the default; html[data-theme="dark"] selects dark and
 * html[data-theme="system"] follows the system setting. The ink chrome is the
 * same in both themes. Fonts: Schibsted Grotesk and Spline Sans Mono when
 * installed locally; no web fonts are fetched (no external requests). */

:root {
  color-scheme: light;
  --bg: #f2f4f3;
  --surface: #e6e9e7;
  --text: #181b1a;
  --muted: #595b5a;
  --rule: #181b1a;
  --divider: rgba(24, 27, 26, 0.18);
  --tint: rgba(24, 27, 26, 0.07);
  --track: rgba(24, 27, 26, 0.12);
  --empty: #d2d5d3;
  --accent: #00e5a0;
  --accent-hover: #0cb57e;
  --accent-ink: #0e6b4a;
  --on-accent: #101412;
  --warn: oklch(0.78 0.15 75);
  --warn-ink: oklch(0.5 0.12 70);
  --warn-tint: rgba(240, 170, 40, 0.16);
  --down: oklch(0.64 0.21 27);
  --down-ink: oklch(0.5 0.2 27);
  --down-tint: rgba(225, 72, 56, 0.14);
  --ink: #101412;
  --ink-surface: #1c201e;
  --ink-text: #eef1ef;
  --ink-nav: rgba(238, 241, 239, 0.7);
  --ink-dim: rgba(238, 241, 239, 0.62);
  --ink-muted: rgba(238, 241, 239, 0.55);
  --ink-divider: rgba(238, 241, 239, 0.3);
  --ink-down: #fa695e;
  --chart-1: #078f63;
  --chart-2: #5b4fc4;
  --chart-3: #8e2a66;
  --chart-4: #b5651d;
  --chart-fill: rgba(0, 229, 160, 0.22);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --sidebar: 224px;
  --row-h: 42px;
  --touch: 44px;
  --rail: 360px;
  --rail-wide: 420px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c201e;
  --surface: #252a27;
  --text: #eef1ef;
  --muted: rgba(238, 241, 239, 0.62);
  --rule: #eef1ef;
  --divider: rgba(238, 241, 239, 0.18);
  --tint: rgba(238, 241, 239, 0.07);
  --track: rgba(238, 241, 239, 0.14);
  --empty: #3b3e3c;
  --accent-ink: #00e5a0;
  --warn-ink: oklch(0.78 0.15 75);
  --down-ink: #fa695e;
  --chart-1: #00e5a0;
  --chart-2: #7f74e8;
  --chart-3: #d06aa6;
  --chart-4: #e0954f;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #1c201e;
    --surface: #252a27;
    --text: #eef1ef;
    --muted: rgba(238, 241, 239, 0.62);
    --rule: #eef1ef;
    --divider: rgba(238, 241, 239, 0.18);
    --tint: rgba(238, 241, 239, 0.07);
    --track: rgba(238, 241, 239, 0.14);
    --empty: #3b3e3c;
    --accent-ink: #00e5a0;
    --warn-ink: oklch(0.78 0.15 75);
    --down-ink: #fa695e;
    --chart-1: #00e5a0;
    --chart-2: #7f74e8;
    --chart-3: #d06aa6;
    --chart-4: #e0954f;
  }
}
