/**
 * Geist weight-alias @font-face rules for Quarto-rendered R plots.
 *
 * theme_gw() (gwtools) emits distinct font-family names per text role --
 * "Geist", "Geist Light", "Geist Medium", "Geist SemiBold", "Geist Bold" --
 * rather than one family + a weight. Raster (ragg_png) output resolves these
 * correctly because gwtools registers each name via systemfonts on the R
 * side. SVG-based output (inline SVG, ggiraph) embeds those family name
 * strings literally in the SVG markup and relies on the *browser* to resolve
 * them via CSS -- so without these rules the alias names fall back to a
 * generic font and look different from the raster version of the same plot.
 *
 * Loads Geist from Google Fonts + per-alias `font-weight` mirrors, the same
 * approach gw-brand.css uses for standalone Quarto docs -- verified
 * in-browser to render four genuinely distinct weights (unlike faking every
 * alias onto whatever weights a vendored font file happens to ship).
 *
 * The `src` below is a direct fonts.gstatic.com file link, not the
 * fonts.googleapis.com/css2?family=... query Google actually documents as
 * stable -- that endpoint only serves one family name ("Geist", with a
 * font-weight range), and can't rename it to "Geist SemiBold" etc. the way
 * these 4 aliases need. A direct file link is Google's unstable path (they
 * only promise the css2 query stays valid, not any specific resolved file
 * URL); if these ever 404, get the current one straight from Google:
 *   curl -s -A "Mozilla/5.0" \
 *     'https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap' \
 *   | grep -A2 'font-style: normal' | grep -m1 latin -A2
 * and take the `src: url(...)` from the "latin" block (same file works for
 * every alias here; only its unicode-range differs per subset). Update
 * gw-brand.css's matching 4 rules to the same URL at the same time.
 */

@font-face {
	font-family: 'Geist Light';
	src: url('https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: 'Geist Medium';
	src: url('https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'Geist SemiBold';
	src: url('https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'Geist Bold';
	src: url('https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}
