/* ============================================================
   design/tokens.css — THE design canon (single source of truth)
   Source: approved mockup Option B "Warm Kitchen", 2026-07-25
   (mockups/archive/*.v1.html preserves the decision history)

   RULE: app templates and stylesheets reference ONLY these custom
   properties. No raw hex colors, no ad-hoc px radii, no second
   image ratio — anywhere. A future agent that needs a color it
   can't find here should propose a token, not invent a value.
   ============================================================ */
:root {
  /* --- surfaces & ink --- */
  --bg: #faf6f0;           /* app background (warm cream) */
  --surface: #fffdf9;      /* cards, panels, inputs */
  --ink: #3d2f24;          /* primary text (warm near-black) */
  --muted: #8a7a6b;        /* secondary text, captions */
  --line: #eadfd2;         /* borders, dividers */
  --chip: #f2eadf;         /* unselected chips, skeletons, subtle fills */

  /* --- brand accent (terracotta) --- */
  --accent: #c2571f;       /* primary actions, carb badge, selected chips, links */
  --accent-soft: #f7e8dd;  /* accent-tinted fills (why-chips, totals row) */
  --accent-ink: #ffffff;   /* text on top of --accent */

  /* --- status colors ---
     Reserved for state ONLY (never decoration, never a "4th series").
     Always paired with an icon + word — never color alone. */
  --good: #4d7c58;   --good-soft: #e9f1ea;   /* verified, success */
  --warn: #a3611c;   --warn-soft: #f8eede;   /* flagged, needs review, over-cap */
  --danger: #b3423a; --danger-soft: #f7e5e2; /* never-again, destructive, failures */

  /* --- shape & imagery --- */
  --radius: 16px;          /* cards, panels */
  --radius-sm: 12px;       /* buttons, inputs, small tiles */
  --photo-ratio: 3 / 2;    /* THE canonical image ratio: cards, heroes,
                              placeholders, and email crops all use it */

  /* --- typography --- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;  /* headings only */
  --display-weight: 700;

  /* --- spacing scale (use these; no arbitrary margins) --- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
}
