/*
 * Self-hosted webfonts. No external requests, ever.
 *
 * Instrument Sans - SIL Open Font License 1.1 (Rodrigo Fuenzalida, Anthony Sheret,
 *   Eben Sorkin). Variable weight axis 400-700, latin subset.
 * IBM Plex Mono - SIL Open Font License 1.1 (IBM). Static 400/600/700, latin subset.
 *
 * The latin subset covers Swedish in full (a-ring, a-diaeresis, o-diaeresis all sit inside
 * U+0000-00FF), so latin-ext is deliberately not shipped. See assets/fonts/README.md.
 *
 * Loaded ahead of km-site.bundle.css so the faces are declared before anything asks for
 * them. Only the Instrument Sans face is preloaded (inc/assets.php): it is the one the h1
 * paints with, and preloading the mono faces would compete with it for the first paint.
 */

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/instrument-sans-latin-var.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: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-400.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: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-600.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;
}

/*
 * The bundle asks for mono at 700 and at 760. 760 has no face, so the browser synthesises
 * from 700 rather than from 400. Declaring 700 keeps both callers on a real drawn weight.
 */
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-700.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;
}
