/* Arca design system, palette B / comfortable (spec 066 L01).
 * Tokens only: shared by the React app and Arca-owned CMS surfaces.
 */
:root {
  --midnight: #081b33;
  --signature: #2fdc78;
  --vermillion: #ff4b12;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --line: #e2e5ea;
  --line-strong: #c8cdd5;
  --text: #0b1626;
  --muted: #566274;
  --primary: #081b33;
  --primary-h: #1a3352;
  --on-primary: #ffffff;
  --focus: #081b33;
  --row-hover: #f0f3f7;
  --nav-on: #e8ecf2;
  --nav-mark: #081b33;
  --ok: #0a6e43;
  --ok-bg: #dcf5e8;
  --warn: #8a5200;
  --warn-bg: #fff0d4;
  --bad: #c42b0a;
  --bad-bg: #ffe3da;
  --info: #1f4d8a;
  --info-bg: #e8eef6;

  /* Eight roles in rem (ADR 0039); figure/title remain 28/18, floor 12. */
  --fs-page: 1.5rem;
  --fs-figure: 1.75rem;
  --fs-dialog: 1.25rem;
  --fs-title: 1.125rem;
  --fs-body: 1rem;
  --fs-table: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-caption: 0.75rem;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --r-xs: 0.25rem;
  --r-sm: 0.375rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --row: 2.75rem;
  --pad: 1rem;
  --gap: 1rem;
  --ctl: 2.375rem;
  --dur-press: 120ms;
  --dur-fast: 180ms;
  --dur-panel: 240ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  /* Compatibility names until their consumers migrate in later sublots. */
  --acid: var(--signature);
  --navy: var(--midnight);
  --verm: var(--vermillion);
  --faint: var(--muted);
  --chart-line: var(--midnight);
  --side: var(--surface);
  --side-text: var(--text);
  --side-muted: var(--muted);
  --side-hover: var(--surface-2);
  --side-on: var(--nav-on);
  --chip-acid: var(--nav-on);
  /* White text on error banners needs the deeper red, even in the dark theme. */
  --alert: #c42b0a;
  --row-mark: var(--focus);
  --row-current: var(--nav-on);
  --scroll-shadow: rgba(8, 27, 51, 0.18);
  --shadow: none;
}

[data-theme='dark'] {
  --bg: #06111f;
  --surface: #0b1a2e;
  --surface-2: #10223a;
  --line: #1b2f4b;
  --line-strong: #2a4466;
  --text: #eaf0f6;
  --muted: #93a3b8;
  --primary: #e8eef6;
  --primary-h: #ffffff;
  --on-primary: #081b33;
  --focus: #2fdc78;
  --row-hover: #102640;
  --nav-on: #13294a;
  --nav-mark: #2fdc78;
  --ok: #4ade9b;
  --ok-bg: #0e2b25;
  --warn: #ffbe55;
  --warn-bg: #2b2414;
  --bad: #ff7a52;
  --bad-bg: #321a15;
  --info: #8fb4ea;
  --info-bg: #13233a;

  --chart-line: var(--signature);
  --side: #081526;
  --side-text: #b8c4d3;
  --side-muted: var(--muted);
  --side-hover: var(--surface-2);
  --side-on: var(--nav-on);
  --row-mark: var(--focus);
  --row-current: var(--nav-on);
  --scroll-shadow: rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-press: 0ms;
    --dur-fast: 0ms;
    --dur-panel: 0ms;
  }
}
