/**
 * FLUXX — typefaces.
 *
 * The reference site serves Helvetica Now under a Monotype licence and a second
 * family from files literally named `NewHeroTRIAL-*.woff2` — a trial licence
 * running in production. Neither is copyable, so this is Inter, which is the
 * closest open large-x-height neo-grotesque and, at these sizes, almost
 * indistinguishable.
 *
 * One 48 KB variable file covers 300 through 900. Latin subset only: the store
 * is English-language, and the other six Google subsets would be six times the
 * bytes for glyphs that never render.
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	/* The variable range. One file, every weight the design system asks for. */
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/inter-var.woff2") format("woff2");
	/* Latin + Latin-1 Supplement, plus the punctuation the design actually uses. */
	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+20B9, U+2074, U+20AC,
		U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/**
 * The fallback, with metric overrides.
 *
 * Without this the page reflows when Inter arrives, because Arial sets to
 * different metrics. These values are the reference site's own, generated
 * against the Helvetica cuts Inter is standing in for, so the swap is
 * imperceptible rather than a visible jump.
 *
 * A single override set is used rather than one per weight: with a variable
 * font there is only one file to swap in, so there is only one swap to smooth.
 */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	ascent-override: 113.96%;
	descent-override: 36.96%;
	line-gap-override: 0%;
	size-adjust: 97.4%;
}
