/*
 * Design tokens for the customer menu: the ONLY place where colors are written.
 * Every other stylesheet, script and page uses these variables (a test enforces it).
 *
 * Brand tokens map 1:1 to /api/branding, so /admin can set them per restaurant later:
 *   colors.primary    -> --color-primary      colors.secondary -> --color-secondary
 *   colors.background -> --color-background   colors.surface   -> --color-surface
 *   colors.text       -> --color-text         colors.accent    -> --color-accent
 *   font              -> --font-family (first family; the fallbacks stay)
 * The other color tokens are derived pairs chosen for WCAG AA contrast with the brand defaults.
 * There is one theme (warm light, approved by the owner); per-restaurant branding overrides the
 * values of these variables, never the style rules. See docs/design-system.md.
 */
:root {
  /* brand (from /api/branding) */
  --color-primary: #8a3b12;
  --color-secondary: #3e5c4a;
  --color-background: #fbf7f2;
  --color-surface: #ffffff;
  --color-text: #2b2118;
  --color-accent: #9a4a0b;
  --font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* derived colors */
  --color-text-muted: #6b5b4e;
  --color-on-primary: #ffffff;
  --color-on-secondary: #ffffff;
  --color-border: #e8ddd1;
  --color-sold-out-text: #5e5248;
  --color-sold-out-bg: #efe7de;
  --color-offer-bg: #fff1e0;
  --color-offer-text: #6a2e0b;
  --color-image-placeholder: #efe7de;
  --color-shadow: #2b211826;
  --color-backdrop: #2b211899;

  /* type scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-weight-regular: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 700;
  --line-height: 1.6;

  /* spacing (4 px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* shape */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px var(--color-shadow), 0 4px 14px var(--color-shadow);
  --shadow-raised: 0 6px 20px var(--color-shadow);

  /* layout */
  --content-max: 40rem;
  --image-ratio: 4 / 3;
  --touch-target: 2.75rem;
  --thumb-size: 5rem;
  --sticky-offset: 4.5rem;
  --sheet-max-block: 85vh;
  --duration: 200ms;
}
