/*
 * Self-hosted EB Garamond @font-face declarations.
 *
 * Source: official google/fonts GitHub repository
 * (https://github.com/google/fonts/tree/main/ofl/ebgaramond), OFL-1.1
 * licensed (see ../fonts/OFL.txt). The upstream variable fonts
 * (EBGaramond[wght].ttf, EBGaramond-Italic[wght].ttf) were instanced to
 * static Regular/Bold/Italic/Bold-Italic weights and subset to a combined
 * Latin + Latin Extended-A range, then compressed to woff2 — no external
 * font-provider CDN of any kind is requested at runtime. Matches the
 * "display" font-family token declared in theme.json.
 *
 * The subset range deliberately extends past the Google Fonts "latin"
 * preset (U+0000-00FF) through Latin Extended-A (U+0100-024F) because
 * this is a Slovenian-language site — including the client's own name,
 * "Jošt Snoj" — and the base "latin" preset does not cover š/č/ž/Š/Č/Ž
 * (U+0161/010D/017E/0160/010C/017D). A prior build shipped the narrower
 * "latin" preset, which silently dropped every Slovenian diacritic to
 * the theme.json fallback stack (Georgia etc.) mid-word; fixed here.
 *
 * unicode-range mirrors the Latin + Latin Extended-A subset baked into
 * each woff2 file.
 *
 * v2 note (docs/17_VISUAL_DESIGN.md / wordpress/mockup/podoba-v2.html):
 * the v2 mockup prototypes a true variable build — one `font-weight: 400
 * 800` file per style (normal/italic), each split into a `latin` +
 * `latin-ext` pair of files by `unicode-range` so a page only downloads the
 * extended-Latin file when it actually contains those characters. That
 * conversion (re-subsetting `tools/font-build/src/EBGaramond[wght].ttf` /
 * `EBGaramond-Italic[wght].ttf` into latin/latin-ext pairs and verifying
 * each pair's glyph coverage) needs `fontTools`/`pyftsubset`, which is not
 * available in this environment (no Python interpreter on PATH) — doing it
 * blind, without the ability to verify the split still carries š/č/ž, risks
 * silently reintroducing the exact diacritics regression this file's
 * docblock above already warns about. Deferred as a follow-up (tracked
 * against this task's dependency #123); what ships here — the static
 * Regular/Bold/Italic/Bold-Italic faces above — already covers the full
 * Latin Extended-A range, so "šumniki v serifu" (č/š/ž rendering in EB
 * Garamond, not falling back to Georgia) already holds on the live site;
 * only the single variable-file/latin-ext-file-splitting optimisation is
 * outstanding.
 */

@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/eb-garamond-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/eb-garamond-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/eb-garamond-bolditalic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
