:root {
  color-scheme: dark;
  --gunmetal: #2c3440;
  --gunmetal-raised: #38414f;
  --gunmetal-deep: #1a1f27;
  --gunmetal-deep-raised: #252b36;
  --concrete: #d9d5cc;
  --concrete-raised: #e7e4dd;
  --concrete-shade: #9a948a;
  --concrete-mid: #b7b1a7;
  --fog: #f1efea;
  --gold: #ffb800;
  --gold-hover: #ffc933;
  --blue: #2f5bff;
  --blue-deep: #1f47e0;
  --blue-bright: #7f9bff;
  --white: #ffffff;
  --image-ground: #12161c;
  --highlight: var(--gold);
  --on-highlight: var(--gunmetal-deep);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --gutter: 24px;
  --section-y: 112px;
  --control-h: 48px;
  --site-max: 1320px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.35);
}

:root,
[data-theme="gunmetal"] {
  --surface: var(--gunmetal);
  --surface-raised: var(--gunmetal-raised);
  --ink: var(--fog);
  --ink-secondary: #c9c5bd;
  --ink-meta: #b5afa5;
  --on-ink: var(--gunmetal);
  --line: #3f4958;
  --line-control: var(--concrete-shade);
  --brand: var(--concrete-mid);
  --accent: var(--blue);
  --accent-hover: var(--blue-deep);
  --on-accent: var(--white);
  --accent-text: var(--blue-bright);
  --signal: var(--gold);
  --chevron: var(--blue-bright);
  --accent-glow: rgba(255, 184, 0, 0.4);
  --status-ok: #5fd38d;
  --status-warn: #ffa070;
  --status-fault: #ff9aa9;
  --inset-surface: var(--gunmetal-deep);
  --inset-ink: var(--fog);
}

[data-theme="deep"] {
  --surface: var(--gunmetal-deep);
  --surface-raised: var(--gunmetal-deep-raised);
  --ink: var(--fog);
  --ink-secondary: #c9c5bd;
  --ink-meta: #a39d93;
  --on-ink: var(--gunmetal-deep);
  --line: #2e3541;
  --line-control: #7f7a71;
  --brand: var(--concrete-shade);
  --accent: var(--blue);
  --accent-hover: var(--blue-deep);
  --on-accent: var(--white);
  --accent-text: var(--blue-bright);
  --signal: var(--gold);
  --chevron: var(--blue-bright);
  --accent-glow: rgba(255, 184, 0, 0.4);
  --status-ok: #5fd38d;
  --status-warn: #ffa070;
  --status-fault: #ff9aa9;
  --inset-surface: var(--gunmetal-deep-raised);
  --inset-ink: var(--fog);
}

[data-theme="concrete"] {
  --surface: var(--concrete);
  --surface-raised: var(--concrete-raised);
  --ink: var(--gunmetal-deep);
  --ink-secondary: var(--gunmetal);
  --ink-meta: #55514a;
  --on-ink: var(--concrete);
  --line: #c4bfb5;
  --line-control: #6f6a62;
  --brand: var(--blue-deep);
  --accent: var(--blue);
  --accent-hover: var(--blue-deep);
  --on-accent: var(--white);
  --accent-text: var(--blue-deep);
  --signal: var(--blue-deep);
  --chevron: var(--blue);
  --accent-glow: rgba(47, 91, 255, 0.35);
  --status-ok: #0a5c32;
  --status-warn: #7a3a00;
  --status-fault: #a01229;
  --inset-surface: var(--gunmetal-deep);
  --inset-ink: var(--fog);
}

[data-theme="blue"] {
  --surface: var(--blue);
  --surface-raised: var(--blue-deep);
  --ink: var(--white);
  --ink-secondary: #f6f8ff;
  --ink-meta: #eef2ff;
  --on-ink: var(--blue);
  --line: #5075ff;
  --line-control: #dbe3ff;
  --brand: var(--white);
  --accent: var(--gold);
  --accent-hover: var(--gold-hover);
  --on-accent: var(--gunmetal-deep);
  --accent-text: var(--white);
  --signal: var(--white);
  --chevron: var(--white);
  --accent-glow: rgba(255, 255, 255, 0.45);
  --status-ok: #e4ffee;
  --status-warn: #fff0e6;
  --status-fault: #ffecef;
  --inset-surface: var(--gunmetal-deep);
  --inset-ink: var(--fog);
}
