/*
 * Self-hosted IBM Plex — the only webfonts the theme uses.
 *
 * Previously a render-blocking <link> to fonts.googleapis.com in <head>, which
 * cost two extra DNS+TLS handshakes (googleapis, then gstatic) before first
 * paint on every page, could not be versioned or dequeued, and put an
 * uncontested third-party request on an EU-reachable site. Serving the woff2
 * files from our own origin removes all three problems.
 *
 * Subset: latin only (U+0000-00FF plus the punctuation/symbol ranges Google
 * ships in its `latin` slice). Google's css2 endpoint previously served latin,
 * latin-ext and more as separate unicode-range slices; only `latin` was carried
 * over here. greek, cyrillic and vietnamese are deliberately not shipped.
 *
 * TODO (known gap, not yet fixed): a directory of global AI-data companies will
 * hit latin-ext in real listing titles — ș, ł, ō, ć, ż in company and dataset
 * names. Those codepoints currently fall through to the fallback font mid-word,
 * which is visibly broken typography on indexed pages. Add the latin-ext slices
 * for sans-variable and mono-400 (the faces that render titles and body copy);
 * because the split is by unicode-range it is zero-cost for pages that never
 * reference those codepoints.
 *
 * COUPLING: these filenames are duplicated as rel=preload hints in header.php
 * (sans-variable + mono-700, the LCP heading face). Rename or re-subset a file
 * here and the preload 404s silently. Change both files together. A single
 * source next to the datatrain-fonts enqueue in functions.php is the real fix.
 *
 * font-display: swap is load-bearing — Google's `&display=swap` supplied it
 * before. Without it the browser blocks text for up to 3s (FOIT) instead of
 * painting a fallback and swapping (FOUT).
 *
 * Sizes: Sans ships one 40 KB variable face covering the whole 100-700 axis, so
 * every weight the design uses costs a single file. Mono has no variable
 * release, so its four weights (400/500/600/700 — all four are used) are static
 * faces at ~10 KB each, and the browser fetches only the ones a page renders.
 *
 * @package DataTrain
 */

/* IBM Plex Sans — variable, 100-700. Body copy and card titles. */
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url('ibm-plex-sans-var-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;
}

/* IBM Plex Mono — static faces. Carries the whole instrument-panel voice:
   nav, buttons, eyebrows, specs, chips, and every display heading. */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('ibm-plex-mono-400-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: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('ibm-plex-mono-500-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: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('ibm-plex-mono-600-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: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('ibm-plex-mono-700-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;
}
