/*
 * Shared theme tokens (DESIGN.md), used by every app: Recetario imports them
 * through its styles.css, the checklist through its globals.css (task 0013).
 * Dark by default; `:root[data-theme='light']` switches to light. Tenants
 * override any color or font token through `tenants.theme` (see theme.ts).
 * `ok`, `warn` and `bad` are state colors: always paired with an icon or a
 * word, never the only signal.
 */
:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d130e;
  --surface: #162019;
  --surface-2: #1e2a21;
  --line: #2b3a2e;
  --text: #f2ede6;
  --text-2: #c8c1b8;
  --muted: #a3ada4;
  --accent: #ff8a3d;
  --on-accent: #140a03;
  --green: #8fbf98;
  --header: #080c09;
  --on-header: #f2ede6;
  --sold: #f2ede6;
  --on-sold: #0d130e;
  --placeholder-from: #1f3324;
  --placeholder-to: #0d130e;
  --ok: #5fae6e;
  --warn: #d9a441;
  --bad: #e0654f;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #f2eee8;
  --line: #dfd6ce;
  --text: #131b14;
  --text-2: #3d4a3f;
  --muted: #5c665d;
  --accent: #b34e00;
  --on-accent: #ffffff;
  --green: #36523c;
  --header: #131b14;
  --on-header: #f7f3ee;
  --sold: #131b14;
  --on-sold: #f7f3ee;
  --placeholder-from: #dfd6ce;
  --placeholder-to: #f2eee8;
  --ok: #2f6b3a;
  --warn: #8a5a00;
  --bad: #b0331f;
}

:root {
  --font-display-fallback: var(--nf-display, 'Urbanist'), system-ui, sans-serif;
  --font-body-fallback: var(--nf-body, 'Inter'), system-ui, sans-serif;
  --font-kanji-fallback: var(--nf-kanji, 'Noto Serif JP'), serif;
  --font-quote-fallback: var(--nf-quote, 'Lora'), Georgia, serif;
  --font-display: var(--font-display-fallback);
  --font-body: var(--font-body-fallback);
  --font-kanji: var(--font-kanji-fallback);
  --font-quote: var(--font-quote-fallback);
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 44px;
  --gutter: 16px;
  --max: 1120px;
}
