/* =============================================================
   Brand typeface: Inter (owner decision 2026-09-01, replacing the
   licensed Helvetica World that never shipped its webfont files).

   SELF-HOSTED, and that is not an optimisation. Linking
   fonts.googleapis.com would make every visitor's browser contact a
   Google server before consent, which is exactly what the cookie
   banner exists to prevent, so the files live in assets/fonts/ and
   nothing leaves this origin. Downloaded from the Google Fonts CSS
   API on 2026-09-01 (Inter v20).

   ONE FILE per subset, not one per weight: Google now serves Inter as
   a VARIABLE font, so a single woff2 carries the whole 400 to 700
   range this theme uses. That is 48kB for latin plus 85kB for
   latin-ext, against four static cuts, and it means intermediate
   weights are real rather than synthesized.

   The two subsets are split by unicode-range exactly as Google splits
   them, so a page with no latin-ext characters never downloads the
   85kB file. German umlauts live in the latin range; latin-ext covers
   the wider European set the shop's own copy occasionally reaches.

   font-display: swap everywhere, text never blocks on a font.
   ============================================================= */

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

/* ---------- Helvetica Neue webfont, the fallback below Inter ----------

   Kept as the first fallback rather than deleted: it is a licensed file
   already in the repo, and if Inter ever fails to load this is a closer
   match to the previous design than a system stack would be. */

@font-face {
	font-family: "Helvetica Neue";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local("Helvetica Neue"), local("HelveticaNeue"),
		url("../fonts/helvetica-neue.woff2") format("woff2"),
		url("../fonts/helvetica-neue.woff") format("woff"),
		url("../fonts/helvetica-neue.ttf") format("truetype");
}

/* No 700 face on purpose. Declaring one whose sources fail would send bold
   runs to the NEXT family instead of synthesizing, mixing typefaces
   mid-paragraph. With only the 400 face, bold synthesizes consistently.
   This only matters if Inter itself fails, since Inter's variable file
   carries real weights across the whole range. */
