/**
 * Self-hosted font faces for NPMP.
 *
 * BUILD-CONTRACT.md #6.2: the mockup loaded Archivo + IBM Plex Mono from Google's
 * CDN. That leaks visitor IP addresses to Google on every page load, which is not
 * acceptable for a UK org whose visitors may be in conflict with the police (GDPR
 * — German courts have already ruled on exactly this). The binaries live in
 * assets/fonts/ and are fetched by scripts/fetch-fonts.ps1.
 *
 * Both families are SIL Open Font License, so shipping them with the theme is
 * permitted.
 *
 * Archivo is a VARIABLE font: one file covers the whole 100–900 range, declared
 * here with a weight range rather than six separate @font-face rules. Google
 * serves the same file for every weight, so the original per-weight setup was
 * downloading six byte-identical copies — 204 KB to do the job of 34 KB. It also
 * gives true interpolated weights instead of snapping to six fixed masters.
 *
 * IBM Plex Mono is NOT variable on Google Fonts, so it keeps one file per weight.
 */

@font-face {
	font-family: 'Archivo';
	src: url('../fonts/archivo-variable.woff2') format('woff2-variations'),
	     url('../fonts/archivo-variable.woff2') format('woff2');
	font-weight: 100 900;
	font-stretch: 100%;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IBM Plex Mono';
	src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IBM Plex Mono';
	src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IBM Plex Mono';
	src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
