/*
 * wb-tokens.css — BourbonBuddy design-system tokens
 *
 * Defines CSS custom properties (colour palette, typography stacks, shadow)
 * on :root. No selectors that style existing elements — variables only.
 * Consumed by wb-components.css and (once wired) every page template.
 *
 * Phase 0: INVISIBLE — this file is served but not yet included in any
 * page <head>. Page wiring happens in later phases.
 */

:root {
  /* Colour palette */
  --paper: var(--sk-q-bg-2);
  --ink: var(--sk-q-ink);
  --ink-soft: var(--sk-q-muted);
  --brass: var(--sk-sh-brass);
  --brass-deep: var(--sk-sh-brass-deep);
  --line: var(--sk-q-line);
  --green: #4b7a3b;
  --card: #ffffff;

  /* Typography stacks */
  --serif: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: 'Inter', sans-serif;

  /* Shadow */
  --shadow: 0 12px 34px rgba(var(--sk-q-ink-rgb),.12);
  --panel-shadow: 0 12px 34px rgba(var(--sk-q-ink-rgb),.12);

  /* Status palette (moved from bottle.css 2026-07-10) */
  --red: #b23b27;
  --red-bg: #f7e0db;
  --red-line: #eebfb4;
  --ok-bg: #eaf3e4;
  --ok-line: #cfe0bd;
}

/* ─── 0. Page guard ──────────────────────────────────────────────────────── */
/* Stop a stray element wider than the viewport from making the whole document
   pannable left/right on touch devices. iOS Safari turns even a small horizontal
   overflow into a full-page sideways drag (Chromium silently clips it), so the
   guard is the cross-engine belt: `clip` contains the overflow WITHOUT creating
   a scroll container, so it never breaks the `position:sticky` header the way
   `overflow-x:hidden` on the scroller would. Per-page layout fixes still address
   the actual offending element; this only ensures the page can never be dragged. */
html {
  overflow-x: clip;
}
