/* Wanderings brand tokens — the single source of truth for the Console.
   Extracted from the live wanderings.com theme 2026-08-08 (resolved CSS custom
   properties, not sampled from screenshots). Rationale + usage rules live in
   arvin2.0/clients/wanderings/deliverables/brand-kit/BRAND-KIT.md
   Change these values only when the storefront theme actually changes. */

:root {
  /* — Type ————————————————————————————————————————————————— */
  /* One family everywhere, weight 400. Hierarchy comes from size/colour/space,
     never from weight — Merriweather ships one usable weight on the storefront. */
  --font-body: Merriweather, Georgia, "Times New Roman", serif;
  --font-heading: var(--font-body);
  /* The one deliberate departure: data must not be set in a text serif. */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --leading-tight: 1.25;
  --leading-normal: 1.6;

  /* — Ink ————————————————————————————————————————————————— */
  --ink: #171717;
  --ink-2: #4c4c4b;
  --ink-3: #5c5c5c;

  /* — Paper ——————————————————————————————————————————————— */
  --paper: #ffffff;
  --paper-warm: #faf2e6;  /* colour scheme 2 — the "handmade paper" note */
  --paper-cool: #dfe3e8;  /* colour scheme 1 — also the heading divider */
  --rule: #d6d6d6;

  /* — Accent — exactly one, spent sparingly ————————————————— */
  --accent: #b61d0f;
  --accent-ink: #ffffff;

  /* — Semantic — state, NOT branding. Kept distinct from --accent
       on purpose: a brand red and an error red are different jobs. */
  --ok: #108043;
  --ok-soft: #3ea36a;
  --ok-bg: #f2faf0;
  --warn: #dd9a1a;
  --warn-bg: #fcf1cd;
  --danger: #c20000;
  --info: #09728c;

  /* — Shape & space ——————————————————————————————————————— */
  --radius: 3px;          /* storefront value — nearly square, keep it that way */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* — Semantic surface roles (what components should reference) ——— */
  --bg: var(--paper);
  --bg-subtle: var(--paper-warm);
  --bg-sunken: var(--paper-cool);
  --fg: var(--ink);
  --fg-muted: var(--ink-2);
  --fg-subtle: var(--ink-3);
  --border: var(--rule);
}

/* Dark mode reuses the brand's own ink tones rather than inventing an
   "admin theme" — the storefront is light, so this stays restrained. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171717;
    --bg-subtle: #1f1f1f;
    --bg-sunken: #242424;
    --fg: #f2efe9;
    --fg-muted: #bdbab4;
    --fg-subtle: #97948f;
    --border: #3a3a3a;
    --accent: #e0503f;   /* lifted so it holds contrast on ink */
    --ok: #4fb87a;
    --warn: #e5b352;
    --danger: #e8615a;
  }
}
:root[data-theme="dark"] {
  --bg: #171717; --bg-subtle: #1f1f1f; --bg-sunken: #242424;
  --fg: #f2efe9; --fg-muted: #bdbab4; --fg-subtle: #97948f;
  --border: #3a3a3a; --accent: #e0503f;
  --ok: #4fb87a; --warn: #e5b352; --danger: #e8615a;
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-subtle: #faf2e6; --bg-sunken: #dfe3e8;
  --fg: #171717; --fg-muted: #4c4c4b; --fg-subtle: #5c5c5c;
  --border: #d6d6d6; --accent: #b61d0f;
  --ok: #108043; --warn: #dd9a1a; --danger: #c20000;
}
