/*
 * Self-hosted fonts — GFS Didot (headings) and Inter (body/UI).
 *
 * Served first-party rather than from fonts.gstatic.com: a third-party font
 * request is an avoidable GDPR argument on a law firm site.
 * Both are OFL-1.1; licences sit alongside the woff2 files in assets/fonts/.
 *
 * Why these two: the previous pairing (Playfair Display + DM Sans) has no Greek
 * glyphs at all, so every Greek word on the site was silently falling back to
 * Georgia and system-ui. GFS Didot is a Greek didone drawn for Greek; Inter
 * ships proper greek and greek-ext subsets.
 *
 * Subsets are split so a Greek page never downloads Latin-ext or Cyrillic
 * outlines it will not use. Ranges are Google's own, verbatim.
 */

/* ---- GFS Didot — headings. Single weight (400). ---- */

@font-face {
	font-family: "GFS Didot";
	src: url("../fonts/gfs-didot-greek.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "GFS Didot";
	src: url("../fonts/gfs-didot-greek-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+1F00-1FFF;
}

@font-face {
	font-family: "GFS Didot";
	src: url("../fonts/gfs-didot-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	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;
}

/* Metric-tuned fallback so headings barely move when GFS Didot swaps in over
   Georgia. Didot draws narrower than Georgia at the same size; pulling the
   fallback down ~6% brings line counts into agreement on Greek headings.
   Tune ±2% by eye with DevTools font overrides if a long title still reflows. */
@font-face {
	font-family: "GFS Didot Fallback";
	src: local("Georgia");
	size-adjust: 94%;
	font-display: swap;
}

/* ---- Inter — body and UI. Variable weight axis: 400-700 from one file. ---- */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-greek.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-greek-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+1F00-1FFF;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	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: "Inter";
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	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;
}
