/* Self-hosted OFL faces for the 2.2 template catalogue (FR-DES-02, FR-DES-04).
   Generated to match scripts/fetch-fonts.sh; rerun that script if a family or
   weight changes here, and keep the filenames in step.

   Every block carries a unicode-range. That is what lets an English-only menu
   skip the (much larger) Ethiopic faces entirely, and lets an Amharic menu pull
   them without the venue configuring anything: the browser selects by the
   codepoints the page actually contains. */

/* ==========================================================================
   Operator chrome (design system §02). These three are the --app-font-* stacks
   and are NOT selectable by a tenant: the chrome's type is fixed so a venue's
   theme can never restyle a Publish button.

   Each stack ends in a Noto Ethiopic face declared further down, which is why
   these blocks carry the latin range only: the browser picks the Ethiopic
   file by codepoint, so an English-only session never downloads it.
   ========================================================================== */

/* Instrument Sans: all operator chrome. Weights 400/500/600 only; the design
   system does not use 700 anywhere in the app. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-v4-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-v4-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-v4-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* Newsreader: page titles and empty-state headlines. Weight 400 ONLY: the
   design system forbids bold here and relies on optical sizing instead, so
   there is deliberately no 700 file to fall back to. A `font-weight: 600` on a
   Newsreader element would synthesise a fake bold. Don't. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-v26-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* IBM Plex Mono: slugs, URLs, QR codes, IDs, timestamps and the 11px micro-cap
   labels. Prices use the UI sans with tabular-nums, NOT this. */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-v20-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-v20-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Latin display + body ---------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-v20-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-v20-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/work-sans-v24-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/work-sans-v24-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-v23-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-v23-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-v40-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-v40-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-v14-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-serif-4-v14-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lora-v37-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lora-v37-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Ethiopic ----------
   U+1200-137F is the Ethiopic block, U+1380-139F the supplement, U+2D80-2DDF
   Extended-A and U+AB00-AB2F Extended-B. Amharic content selects these faces
   purely by the codepoints it contains: nothing in the theme names them. */

@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-ethiopic-v50-ethiopic-regular.woff2") format("woff2");
  unicode-range: U+1200-137F, U+1380-139F, U+2D80-2DDF, U+AB00-AB2F;
}

@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-sans-ethiopic-v50-ethiopic-700.woff2") format("woff2");
  unicode-range: U+1200-137F, U+1380-139F, U+2D80-2DDF, U+AB00-AB2F;
}

@font-face {
  font-family: "Noto Serif Ethiopic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-serif-ethiopic-v32-ethiopic-regular.woff2") format("woff2");
  unicode-range: U+1200-137F, U+1380-139F, U+2D80-2DDF, U+AB00-AB2F;
}

@font-face {
  font-family: "Noto Serif Ethiopic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-serif-ethiopic-v32-ethiopic-700.woff2") format("woff2");
  unicode-range: U+1200-137F, U+1380-139F, U+2D80-2DDF, U+AB00-AB2F;
}

/* The "heritage" pairing uses this one face for BOTH its display role and its
   Ethiopic companion, so its range spans latin and Ethiopic together: the
   single file carries both, and splitting the range would leave one script
   falling back to a generic. */
@font-face {
  font-family: "Abyssinica SIL";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/abyssinica-sil-v9-ethiopic_latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+1200-137F, U+1380-139F, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2D80-2DDF, U+AB00-AB2F;
}

/* ---------- Marketing display face (3.7r) ----------
   Headlines only (--app-font-display / --app-text-hero / --app-text-display-lg),
   weights 700 and 800 as static instances rather than the variable file
   (~100KB before subsetting, and the audience is on slow Android). Latin only,
   deliberately: the marketing site is English-only per FR-LANG-01, so this
   face carries no Ethiopic companion, unlike every stack above, whose
   Ethiopic pairing is mandatory.
   NOTE for the next editor: do not name the family, and do not repeat the
   at-rule keyword, in THIS comment block. fonts.spec.ts splits the whole
   stylesheet on that keyword and checks each resulting segment for the family
   name: a comment ABOVE a face rule is captured as part of the PRECEDING
   segment, so naming the family here would falsely flag the Abyssinica SIL
   block above (which is Ethiopic) as this one; and writing the keyword itself
   would insert a phantom split point with no rule body, failing the
   font-display assertion below it. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-v9-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}

/* Cormorant Garamond: The Route and the Split Panel's display face (6.5).
   DISPLAY-ONLY: at body size a garalde is too light to hold 4.5:1 in spirit
   even where it clears it in arithmetic, so both designs set it at step-2 and
   above and run Inter underneath. The 600 is declared as `font-weight: 600`
   and named `700` in the catalogue's weight slot, which reads as "does this
   family have a bold to use" rather than as a CSS number. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* Bebas Neue: the Poster's display face (6.4). One weight, caps-only: there
   is no lowercase and no bold upstream, so there is nothing else to vendor. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebas-neue-v16-latin-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* The two accent faces (R55): Latin-only subsets under 12 288 B, drawn on a
   venue's name and nothing else. Subset by scripts/subset-ascii.py. Each range
   is EXACTLY what its file draws (fix wave B2, pinned to the file's cmap by
   test/fonts.spec.ts and stated once in packages/shared fonts.ts): a wider
   range sent an accented letter to the next face in the stack, mid-word.
   "Signature Script MC" is Mrs Saint Delafield, subset and renamed under OFL
   clause 3 (fix wave B1; public/fonts/OFL-NOTICES.txt). */
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/patrick-hand-v25-latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00C0-00FF, U+0152-0153, U+2018-2019, U+201C-201D;
}

@font-face {
  font-family: "Signature Script MC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mrs-saint-delafield-v14-latin-ascii.woff2") format("woff2");
  unicode-range: U+0020-007E, U+2018-2019, U+201C-201D;
}

/* ==========================================================================
   METRIC-OVERRIDE FALLBACK FACES (6.1). GENERATED: do not hand-edit.

   Regenerate with:  node apps/web/scripts/gen-font-fallbacks.mjs
   Verify with:      node apps/web/scripts/gen-font-fallbacks.mjs --check

   Every face above is `font-display: swap`, so a diner reads a system font
   first and the real one a moment later. These blocks make that first font
   occupy the SAME LINE BOX as the one replacing it, so the swap costs ~0
   vertical CLS instead of reflowing every dish on the page.

   They carry no `unicode-range` on purpose: a fallback has to apply wherever
   the real face would, and narrowing it would leave the un-covered codepoints
   swapping unmatched again. `fonts.spec.ts` asserts that, and asserts the
   `url()` faces above still carry theirs: those two rules are opposites and
   the test keeps them apart rather than loosening one to fit the other.

   No `size-adjust`: OS/2.xAvgCharWidth changed meaning between OS/2 versions,
   and the vendored faces and the enumerated Arial/Times constants sit on
   opposite sides of it. `scripts/font-metrics.mjs` carries the measurement.

   One block per vendored weight; the `font-weight` descriptor is load-bearing,
   and a 400-only family makes bold runs worse than no fallback at all. Why, at
   length, in `blockFor`: this file is render-blocking, and the paragraph that
   stood here cost more gzipped than the seven blocks it explained.

   ETHIOPIC FACES ARE ABSENT DELIBERATELY. A fallback resolves through
   `local("Arial")` / `local("Times New Roman")`, neither of which has an
   Ethiopic glyph, so a metric-matched fallback for Noto Sans Ethiopic would
   name a font that can never draw the text it stands in for.
   ========================================================================== */

@font-face {
  font-family: "Abyssinica SIL fallback";
  font-weight: 400;
  src: local("Times New Roman");
  ascent-override: 99.3%;
  descent-override: 33.3%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Bebas Neue fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 90.0%;
  descent-override: 30.0%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Cormorant Garamond fallback";
  font-weight: 400;
  src: local("Times New Roman");
  ascent-override: 92.4%;
  descent-override: 28.7%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Cormorant Garamond fallback";
  font-weight: 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  ascent-override: 92.4%;
  descent-override: 28.7%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "IBM Plex Sans fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "IBM Plex Sans fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Inter fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Inter fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Lora fallback";
  font-weight: 400;
  src: local("Times New Roman");
  ascent-override: 100.6%;
  descent-override: 27.4%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Lora fallback";
  font-weight: 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  ascent-override: 100.6%;
  descent-override: 27.4%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Patrick Hand fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 134.6%;
  descent-override: 40.3%;
  line-gap-override: 0.0%;
  size-adjust: 77.4%;
}

@font-face {
  font-family: "Playfair Display fallback";
  font-weight: 400;
  src: local("Times New Roman");
  ascent-override: 108.2%;
  descent-override: 25.1%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Playfair Display fallback";
  font-weight: 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  ascent-override: 108.2%;
  descent-override: 25.1%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Signature Script MC fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 136.4%;
  descent-override: 93.2%;
  line-gap-override: 0.0%;
  size-adjust: 66.4%;
}

@font-face {
  font-family: "Source Serif 4 fallback";
  font-weight: 400;
  src: local("Times New Roman");
  ascent-override: 103.6%;
  descent-override: 33.5%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Source Serif 4 fallback";
  font-weight: 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  ascent-override: 103.6%;
  descent-override: 33.5%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Space Grotesk fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 98.4%;
  descent-override: 29.2%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Space Grotesk fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  ascent-override: 98.4%;
  descent-override: 29.2%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Work Sans fallback";
  font-weight: 400;
  src: local("Arial");
  ascent-override: 93.0%;
  descent-override: 24.3%;
  line-gap-override: 0.0%;
}

@font-face {
  font-family: "Work Sans fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  ascent-override: 93.0%;
  descent-override: 24.3%;
  line-gap-override: 0.0%;
}
