/* ═══════════════════════════════════════════════════════════════════════════
   IngredIQ — fonts.css
   Self-hosted typefaces. Files in ./fonts/ (copied from @fontsource + material-symbols).
   Per CLAUDE.md offline/PWA requirements — no Google Fonts CDN dependency.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Space Grotesk — Display, Headlines, Labels ── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

/* ── Manrope — Body, long-form ── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/manrope-latin-700-normal.woff2') format('woff2');
}

/* ── Material Symbols Outlined — Icon font ──
   SUBSET: 80KB woff2 containing only the ~60 icons referenced in source.
   Variable axes (FILL, wght, GRAD, opsz) preserved for runtime overrides.
   To regenerate after adding new icons:
     1. grep all icon names from index.html + js/*.js (look for
        material-symbols-outlined ligature text + `icon: '...'` literals)
     2. fetch https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=name1,name2,...
        with a Mozilla User-Agent (Google serves different formats by UA)
     3. download the gstatic.com/l/font URL from the CSS
     4. replace this file, bump SW CACHE_NAME */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;       /* variable axis: weight */
  font-display: block;        /* block prevents flash-of-bullet-square */
  src: url('./fonts/material-symbols-outlined.woff2') format('woff2-variations'),
       url('./fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
