/*
 * Self-hosted faces. Two jobs in one file, both of which must load
 * unconditionally and last in the document.
 *
 * 1. ARCHIVO (variable), the storefront face, WHM-56.
 *
 *    ONE FILE, 34KB, carrying the whole 400-900 weight axis. The static cut
 *    would have been six files at roughly 240KB for the same range. The design
 *    leans hard on weight contrast (900 headlines against 400 body), so the
 *    axis is not a luxury here, and a variable font is the only way to have it
 *    without paying six times over.
 *
 *    Self-hosted rather than linked from fonts.googleapis.com: that is a
 *    render-blocking request to a third origin, and the pages that would pay
 *    for it are the CartFlows funnel steps where paid traffic lands.
 *
 *    Latin subset only. The storefront has no non-latin content and the other
 *    subsets would roughly triple the payload for nothing.
 *
 * 2. INTER: the WHM-15 fix. NOT part of the type system. Do not delete.
 *
 *    Kirki stores the theme's Inter woff2 paths as absolute SERVER FILESYSTEM
 *    paths and emits them as @font-face src, so the browser requests
 *    /home/.../public_html/wp-content/fonts/... and 404s. These two faces are
 *    declared at the exact weights Shoptimizer uses (400, 600) so each shadows
 *    the theme's broken same-weight face and wins in document order.
 *
 *    They repair the THEME, so they load whether or not our chrome is on, and
 *    they stay until Shoptimizer stops being the active theme.
 *
 * Both families are SIL Open Font License 1.1, so redistribution alongside this
 * plugin is permitted. Do not add a face here without checking that it is too.
 *
 * font-display: swap on everything. A storefront that hides its prices for
 * three seconds while a face loads is worse than one that reflows once.
 */

/* ---------------------------------------------------------------------------
   1. ARCHIVO, variable, 400 to 900
   --------------------------------------------------------------------------- */
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations'),
	     url('../fonts/archivo-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;
}

/* ---------------------------------------------------------------------------
   2. INTER, WHM-15 shadow faces. Leave in place.
   --------------------------------------------------------------------------- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-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: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter-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;
}
