/* shopforfood.com — design tokens. Binding; see docs/DESIGN.md.
   All component CSS derives from these custom properties. No other colors,
   font families, radii or shadows may be introduced anywhere in the app. */

/* Self-hosted variable fonts (woff2, latin + latin-ext subsets). One face per
   subset with a weight range — the browser picks the instance. GDPR: no Google
   CDN. OFL license text sits beside the files in this directory. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap;
  font-weight: 700 800;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap;
  font-weight: 700 800;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-display: swap;
  font-weight: 400 600;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-display: swap;
  font-weight: 400 600;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spline Sans Mono"; font-style: normal; font-display: swap;
  font-weight: 400 500;
  src: url("/assets/fonts/spline-sans-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spline Sans Mono"; font-style: normal; font-display: swap;
  font-weight: 400 500;
  src: url("/assets/fonts/spline-sans-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* palette */
  --ink:       #20281F;
  --paper:     #FCFBF7;
  --tape:      #F1EEE6;
  --mist:      #DCD9CE;
  --leaf:      #2E7D44;
  --leaf-deep: #1F5A30;
  --radish:    #D9442B;
  --butter:    #F6C745;

  /* type — SELF-HOSTED woff2 in public/assets/fonts/ (Bricolage Grotesque,
     Instrument Sans, Spline Sans Mono), declared via @font-face with
     font-display: swap below. NOT the Google CDN (GDPR: leaks visitor IPs).
     OFL license text lives beside the fonts. */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, monospace;

  /* scale (rem) */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-md:   1rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2.125rem;
  --fs-hero: 3rem;

  /* spacing (px-equivalent rem) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem;   --sp-8: 2rem;    --sp-12: 3rem;   --sp-18: 4.5rem;

  /* shape */
  --radius-card: 10px;
  --radius-ctl:  8px;
  --radius-chip: 999px;
  --border: 1px solid var(--mist);
  --shadow: 0 1px 2px rgb(32 40 31 / 6%);

  /* layout */
  --w-app: 680px;       /* list/receipt screens */
  --w-read: 960px;      /* marketing, blog, directory */
  --w-admin: 1100px;

  /* motion */
  --t-fast: 150ms ease-out;
  --t-med:  200ms ease-out;
}

html { color: var(--ink); background: var(--paper); }
body { font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.4; margin: 0; }

:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
