/* BeWelly design tokens, v1 (October 2026).
   Source of truth for colour, type, spacing and shape. Mirror of tokens.json.
   Text-pair contrast (WCAG 2.1): ink, ink-2, pencil and green all pass 4.5:1 on paper and paper-alt;
   white and on-green-muted pass 4.5:1 on green. */

:root {
  /* Colour: ink and paper */
  --bw-ink: #16201B;
  --bw-ink-2: #3D4641;
  --bw-pencil: #4F5753;
  --bw-paper: #FFFFFF;
  --bw-paper-alt: #F2F3F1;
  --bw-rule: #D9DDDA;
  --bw-rule-soft: #E3E6E4;

  /* Colour: the kit green (use sparingly) */
  --bw-green: #1E5B3E;
  --bw-green-hover: #123D29;
  --bw-green-tint: #E3EFE8;
  --bw-on-green: #FFFFFF;
  --bw-on-green-muted: #E3EEE7;

  /* Type families (self-host; all SIL Open Font License) */
  --bw-font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --bw-font-ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --bw-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --bw-font-hand: 'Reenie Beanie', 'Bradley Hand', cursive;

  /* Type scale (desktop; scale display ~0.65x on phones) */
  --bw-text-display-xl: 66px;  /* hero h1 */
  --bw-text-display-l: 56px;   /* closing CTA */
  --bw-text-display-m: 52px;   /* section h2 */
  --bw-text-display-s: 44px;   /* secondary h2 */
  --bw-text-lead: 21px;
  --bw-text-body: 19px;
  --bw-text-body-s: 16px;
  --bw-text-ui: 15px;
  --bw-text-label: 13px;
  --bw-text-mono: 13px;
  --bw-text-mono-s: 11px;
  --bw-text-hand: 30px;
  --bw-text-hand-s: 21px;

  --bw-leading-display: 1.08;
  --bw-leading-body: 1.6;
  --bw-tracking-wordmark: -0.03em;
  --bw-tracking-label: 0.08em;

  /* Layout and spacing (8 px base) */
  --bw-container: 1200px;
  --bw-gutter: 32px;
  --bw-section-y: 96px;
  --bw-space-1: 4px;
  --bw-space-2: 8px;
  --bw-space-3: 12px;
  --bw-space-4: 16px;
  --bw-space-5: 24px;
  --bw-space-6: 32px;
  --bw-space-7: 48px;
  --bw-space-8: 64px;

  /* Shape */
  --bw-radius-paper: 3px;   /* kitchen register: recipe pages, cards */
  --bw-radius-control: 6px; /* buttons, inputs, photo frames */
  --bw-radius-kit: 8px;     /* kit register: lists, planner cells */
  --bw-radius-pill: 999px;
  --bw-border-rule: 1px solid var(--bw-rule);
  --bw-border-kit: 1.5px solid var(--bw-ink);
  --bw-border-accent: 1.5px solid var(--bw-green);
  --bw-shadow-paper: 0 10px 24px rgba(22, 32, 27, 0.08);

  /* Controls */
  --bw-control-min-height: 44px;
  --bw-control-lg-height: 52px;
}
