/*
 * Typography — Montserrat, one family throughout.
 *
 * Headlines, body, navigation, buttons and form controls all sit on Montserrat.
 * A single geometric sans is what gives the site its voice; splitting display
 * and text faces would reintroduce the mixed-typeface look this rebuild set out
 * to leave behind.
 *
 * Self-hosted, not pulled from Google Fonts. Loading it from fonts.gstatic.com
 * would make the site's typography depend on an outbound request from the web
 * host on every cold cache, and hand a third party a log line for every visitor.
 * That matters more than usual here — a large share of this site's audience is
 * on mobile data in East Africa.
 *
 * These are the two VARIABLE .woff2 builds Google serves for Montserrat, copied
 * in verbatim. One file covers the entire 100–900 weight axis, so asking for 400
 * and 700 costs exactly one download rather than two:
 *
 *   Montserrat-latin.woff2        37KB   Latin-1, punctuation, currency
 *   Montserrat-latin-ext.woff2    69KB   accented Latin beyond Latin-1
 *
 * The unicode-range on each block is what keeps that second file honest — the
 * browser fetches it only if the page actually contains a glyph from that range,
 * which most pages here never will.
 *
 * Montserrat is licensed under the SIL Open Font License 1.1, which permits
 * self-hosting and redistribution with the licence alongside. The full text sits
 * beside the fonts at assets/fonts/Montserrat-LICENSE.txt — keep it there.
 */

/* latin */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-latin.woff2") format("woff2-variations"),
		url("../fonts/Montserrat-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;
}

/* latin-ext */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-latin-ext.woff2") format("woff2-variations"),
		url("../fonts/Montserrat-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;
}

:root {
	/*
	 * One stack, two names. --font-display is kept as a separate custom property
	 * so the headline face can be changed later without touching every heading
	 * rule, but today both resolve to Montserrat.
	 *
	 * The fallbacks are ordered by metric similarity to Montserrat rather than by
	 * habit, so the swap when the webfont lands shifts the layout as little as
	 * possible.
	 */
	--font-sans: "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont,
		Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-display: var(--font-sans);
}
