/* XMR ROOTS design tokens: one set of names, two themes.
   Dark (warm black) is the default. theme.js runs first in <head> and sets
   <html data-theme="light|dark">: the visitor's saved choice (header theme button,
   localStorage) or else the system setting (prefers-color-scheme), kept live. Pages that
   don't load theme.js (operator consoles) stay dark. Every colour in the site's CSS is one of
   these tokens or a color-mix() of one, so both themes stay in step.
   Look: a field guide printed on warm paper (light) or chalked on night soil (dark). Square
   corners, ink edges, hard offset shadows, mono labels; shapes come from --r-* so they can be
   tuned in one place. */

:root {
  /* Type */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs: 11.5px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: clamp(1.25rem, 1.6vw, 1.45rem);
  --fs-2xl: clamp(1.7rem, 3.2vw, 2.5rem);
  --fs-3xl: clamp(2.3rem, 5vw, 4.4rem);
  --lh-tight: 1.05;
  --lh-body: 1.6;

  /* Space (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 96px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1280px;
  --section-gap: clamp(56px, 8vw, 112px);

  /* Shape */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-fast: .15s;
  --t-med: .25s;

  /* Dark theme colours */
  --ground: #0f0d0a;
  --ground-2: #151210;
  --panel: #1a1612;
  --panel-2: #231e17;
  --raised: #1f1a14;
  --line: #3b3227;
  --line-soft: #2a231b;
  --line-strong: #5a4c3a;
  --text: #f2e9d9;
  --muted: #bcae98;
  --faint: #a89a85;
  --hype: #ff934f;
  --hype-hover: #ffb181;
  --hype-ink: #2c1609;
  --hype-fill: #ff934f;
  --hype-fill-top: #ffb17e;
  --hype-fill-hover: #ffa86d;
  --hype-soft: rgba(255, 147, 79, .1);
  --dawn: #f1be76;
  --danger: #ff9f88;
  --ok: #b8ce91;
  --info: #8fb8de;
  --c-operations: #e8b184;
  --c-treasury: #aa8171;
  --c-reserve: #ff934f;
  --c-rewards: #c5b5e3;
  --c-buyback: #e7cb8b;
  --shade: #000;
  --header-bg: rgba(15, 13, 10, .88);
  --glow-a: rgba(241, 190, 118, .07);
  --glow-b: rgba(255, 147, 79, .035);
  --grain-opacity: .07;
  --shadow-1: 0 1px 0 var(--line-soft);
  --shadow-2: 3px 3px 0 var(--line-soft);
  --shadow-3: 0 24px 64px -24px rgba(0, 0, 0, .85);
  --shadow-accent: 3px 3px 0 #8a3a12;
  --edge: #8f7f68;
  --edge-hard: #8a3a12;
  --paper: #1a1612;
  color-scheme: dark;
}

/* Light theme colours: cream ground, warm black ink, deeper copper for text so it
   keeps 4.5:1 contrast. Primary buttons keep the bright copper fill with dark ink. */
:root[data-theme="light"] {
  --ground: #f0e8d8;
  --ground-2: #e9dfcb;
  --panel: #f9f4e8;
  --panel-2: #efe6d3;
  --raised: #fdfaf2;
  --line: #cdbd9f;
  --line-soft: #ddd0b6;
  --line-strong: #a89677;
  --text: #17110a;
  --muted: #52473a;
  --faint: #66594a;
  --hype: #a8481a;
  --hype-hover: #8e3b12;
  --hype-ink: #2c1609;
  --hype-fill: #ff934f;
  --hype-fill-top: #ffad78;
  --hype-fill-hover: #ff8a3d;
  --hype-soft: rgba(168, 72, 26, .08);
  --dawn: #8a5a12;
  --danger: #b03a24;
  --ok: #3f6b2a;
  --info: #2f5f8a;
  --c-operations: #b9733f;
  --c-treasury: #8a5b4a;
  --c-reserve: #e2702c;
  --c-rewards: #6a52a8;
  --c-buyback: #a77d1f;
  --shade: #4a3420;
  --header-bg: rgba(240, 232, 216, .9);
  --glow-a: rgba(255, 170, 90, .10);
  --glow-b: rgba(255, 147, 79, .04);
  --grain-opacity: .05;
  --shadow-1: 0 1px 0 var(--line-soft);
  --shadow-2: 3px 3px 0 var(--line);
  --shadow-3: 0 28px 64px -28px rgba(74, 52, 32, .4);
  --shadow-accent: 3px 3px 0 #17110a;
  --edge: #17110a;
  --edge-hard: #17110a;
  --paper: #f9f4e8;
  color-scheme: light;
}
