/* ==========================================================================
   Hümn — design tokens
   Load this file once in the <head> of the site. The <humn-menu> component
   reads every value below through CSS custom properties, so the site can
   override any token without touching the component.
   ========================================================================== */

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* Display serif used in the Figma: Casablanca Serial Regular.
   Replace the file below with the licensed Regular weight (woff2) when available. */
@font-face {
  font-family: "Casablanca Serial";
  src: local("Casablanca-Serial Regular"), local("Casablanca Serial"),
       url("assets/fonts/casablanca-serial-xlight.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* ---- Color ---- */
  --humn-cream: #fefaec;      /* page background */
  --humn-ink: #2f3320;        /* primary text */
  --humn-olive: #666231;      /* rules, prices, tags */
  --humn-olive-btn: #676228;  /* button border */
  --humn-olive-deep: #4f4c27; /* allergen band — lime text on it passes WCAG AA */
  --humn-lime: #d2de34;       /* accent / buttons / active */
  --humn-sand: #d9d8b7;       /* soft fill, image placeholders */
  --humn-muted: rgba(47, 51, 32, 0.75); /* secondary text — 75% keeps WCAG AA on cream */

  /* ---- Type ---- */
  --humn-font-display: "Casablanca Serial", "Casablanca-Serial", Georgia, "Times New Roman", serif;
  --humn-font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (size / line-height on a 4px baseline) */
  --humn-t-xs: 14px;  --humn-lh-xs: 20px;
  --humn-t-sm: 16px;  --humn-lh-sm: 24px;
  --humn-t-md: 20px;  --humn-lh-md: 28px;
  --humn-t-lg: 24px;  --humn-lh-lg: 32px;
  --humn-t-xl: 32px;  --humn-lh-xl: 40px;
  --humn-t-2xl: 48px; --humn-lh-2xl: 52px;
  --humn-t-3xl: 72px; --humn-lh-3xl: 72px;
  --humn-t-4xl: 96px; --humn-lh-4xl: 96px;

  /* ---- Spacing (8pt scale) ---- */
  --humn-s-1: 8px;
  --humn-s-2: 16px;
  --humn-s-3: 24px;
  --humn-s-4: 32px;
  --humn-s-6: 48px;
  --humn-s-8: 64px;
  --humn-s-12: 96px;
  --humn-s-16: 128px;

  /* ---- Grid: 4 cols mobile · 8 cols tablet · 12 cols desktop ---- */
  --humn-container: 1280px;   /* content width, margins excluded */
  --humn-columns: 4;
  --humn-gutter: 16px;
  --humn-margin: 16px;

  /* ---- Shape ---- */
  --humn-radius: 24px;
  --humn-rule: 1px solid var(--humn-olive);

  /* Height of a sticky site header, so the menu's own sticky bar sits below it */
  --humn-sticky-top: 0px;
}
@media (min-width: 640px) {
  :root { --humn-columns: 8; --humn-gutter: 24px; --humn-margin: 32px; }
}
@media (min-width: 1100px) {
  :root { --humn-columns: 12; --humn-gutter: 24px; --humn-margin: 64px; }
}
