/* Copied verbatim from the app repo, src/renderer/theme/tokens.css (little-steps @ eae78e4). Do not edit here. */
/* Design tokens for the main window (Phase 3-1). Colours from PRD §7.3, with the D-121 working
   shades. Every colour in the main window's CSS comes from here: the other CSS files use var() only
   (a unit test checks that), and src/renderer/theme/contrast-pairs.ts lists every text and UI pair
   they use, which src/renderer/theme/contrast.test.ts checks against WCAG 2.2 AA.
   Usage (§7.3): body text Charcoal (Forest Green allowed); secondary text Text Brown; control
   outlines Outline Sage or Forest Green; focus ring and filled states Forest Green with Soft Ivory
   on top; Sage Green, Terracotta, Muted Mustard and Soft Brown are decorative only. */
:root {
  --color-warm-cream: #f7f4ec;
  --color-soft-ivory: #fffdf8;
  --color-pale-sage: #e8eee5;
  --color-sage-green: #91a88c;
  --color-forest-green: #526b55;
  --color-terracotta: #c98268;
  --color-muted-mustard: #d8b56d;
  --color-charcoal: #343832;
  --color-soft-brown: #8c7966;
  --color-text-brown: #75644f;
  --color-outline-sage: #6e8769;
  /* Phase 7-2a (D-200). Bark: the border of interactive controls, checkbox rings, switch outlines,
     panel and bubble borders (10.45 / 11.30 / 9.73 on Warm Cream / Soft Ivory / Pale Sage). Hairline:
     decorative only (card edges, dividers), 1.33:1 on Soft Ivory, never the only edge of a control. */
  --color-bark: #4a3526;
  --color-hairline: #e3ddcd;

  /* Phase 7-3b (D-216 to D-221): the Journey scene's own colours (7-0 spec, board colours beyond the
     palette). Decorative only: no text and no state is carried by them alone, so they are not in the
     contrast pairs. Sky and ground are what the sprites were checked on for halos. */
  --scene-sky: #f4ecd6;
  --scene-sun: #efdca4;
  --scene-ground: #d8dfc9;
  --scene-ground-deep: #cfd6bd;
  --scene-path: #e6d5ae;
  --scene-far-tree: #c9d6c3;
  --scene-far-trunk: #bfae95;
  --scene-clearing: #e7ecd6;

  /* Role aliases (D-200): a later dark theme changes these, not every rule. Outline Sage stays for
     disabled borders only. Used by the main window's shared controls, shell and Plan from 7-2b. */
  --color-border-control: var(--color-bark);
  --color-border-card: var(--color-hairline);
  --color-border-disabled: var(--color-outline-sage);

  --radius-card: 14px;
  --radius-control: 10px;
  --radius-bubble: 16px;
  --border-control-width: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  /* Phase 8-1b: the main window's one content width, centred, for the header, the banners and all
     four screens. It is the Journey scene's design width (860 px, 7-3a), so no art is stretched. At
     the default (900 px) and minimum (720 px) windows the 32 px gutter is wider, so nothing changes. */
  --layout-content-max: 860px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --shadow-card: 0 1px 2px rgb(52 56 50 / 8%), 0 2px 8px rgb(52 56 50 / 6%);
  /* The panel's offset shadow (board; only if the owner asks for it, D-201). */
  --shadow-panel: 0 6px 0 rgb(74 53 38 / 16%);
  /* The backdrop behind a modal dialog (Phase 6-4): Charcoal at 35%, decorative, no text on it. */
  --scrim: rgb(52 56 50 / 35%);

  /* Fonts (D-199): the bundled files (src/shared/fonts/fonts.css) first, the system fonts after. */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Type scale (7-0 spec): px sizes by role, weights, line heights. Existing rules keep their own
     sizes until 7-2b to 7-2d move them here. */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 15px;
  --text-lg: 16px;
  --text-xl: 17px;
  --text-h2: 20px;
  --text-brand: 22px;
  --text-panel-title: 24px;
  --text-h1: 38px;
  --text-stat: 76px;
  --weight-regular: 400;
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --leading-tight: 1.1;
  --leading-body: 1.45;
}
