/* Tres Hijos Bakehouse: design tokens (Direction A · Warm Cream)
   Contrast ratios are measured against --c-cream (#F7F8F2) unless noted. */
:root {
  /* ---- Color: raw palette ---- */
  --c-cream:      #F7F8F2;  /* page background: the same cream as the client's product photos */
  --c-white:      #FFFFFF;  /* cards */
  --c-oat:        #F0ECE2;  /* soft panels, chips */
  --c-line:       #E4DCCD;  /* dividers (decorative) */
  --c-line-strong:#857160;  /* input / chip borders: 4.64:1 on white, ≥3:1 on cream (WCAG 1.4.11) */
  --c-espresso:   #3B2416;  /* main text: 13.56:1 (14.48:1 on white) */
  --c-cocoa:      #5A3A22;  /* PRIMARY fill (buttons, selected). White text on it: 10.18:1 */
  --c-cinnamon:   #A0522D;  /* ACCENT: links, prices, active nav. 5.26:1 on cream, 5.62:1 on white */
  --c-muted:      #6B5444;  /* secondary text: 6.61:1 (7.05:1 on white, 5.98:1 on oat) */
  --c-green:      #276F45;  /* "Open now" (always with text): 5.71:1 (5.17:1 on oat) */
  --c-error:      #B3261E;  /* errors: 6.54:1 on white */

  /* ---- Color: roles ---- */
  --bg: var(--c-cream);
  --surface: var(--c-white);
  --surface-2: var(--c-oat);
  --text: var(--c-espresso);
  --text-muted: var(--c-muted);
  --text-accent: var(--c-cinnamon);
  --text-on-primary: #FFFFFF;
  --primary: var(--c-cocoa);
  --primary-hover: var(--c-espresso);
  --border: var(--c-line);
  --border-input: var(--c-line-strong);
  --focus: var(--c-cinnamon);

  /* ---- Type ---- */
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --fs-display: 96px;  /* hero */
  --fs-h2: 56px;       /* section titles */
  --fs-h3: 26px;       /* card titles */
  --fs-price: 24px;
  --fs-lead: 20px;
  --fs-body: 16px;     /* minimum for body text */
  --fs-label: 14px;    /* eyebrows, chip labels only */
  --lh-body: 1.6;

  /* ---- Space (4-pt scale) ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* ---- Shape ---- */
  --r-sm: 10px;   /* inputs, small chips */
  --r-md: 18px;   /* cards */
  --r-pill: 999px;/* buttons, tags */
  --shadow: 0 12px 30px rgba(59, 36, 22, .10);

  /* ---- Layout ---- */
  --tap: 44px;
  --header-h: 88px;
  --chips-h: 0px;
  --mcta-h: 0px;
  --gutter: 64px;
  --max: 1312px;
}

@media (max-width: 760px) {
  :root {
    --fs-display: 48px;
    --fs-h2: 38px;
    --fs-h3: 22px;
    --fs-price: 22px;
    --fs-lead: 16px;
    --header-h: 60px;
    --chips-h: 56px;
    --mcta-h: 76px;
    --gutter: 16px;
  }
}
