/*
 * SMYN web fonts — all self-hosted from assets/fonts/. There is no runtime
 * request to fonts.googleapis.com or any other third party.
 *
 * That is not a preference. Measured in Chromium against this site, every
 * "Jost" declaration was rendering as Arial because the Google request never
 * completed — which is the "random customer-facing fallback to a system font"
 * the brief forbids, arriving through the network rather than the CSS.
 *
 * Provenance, licences and the exact subsetting command: assets/fonts/README.md.
 *
 *   Glacial Indifference  400 / 400 italic / 700   — the brand face
 *   Jost                  variable 100-900, both styles  — tracked labels, and
 *                                                          the currency glyphs
 *                                                          Glacial does not have
 *   Snell Roundhand       400                      — editorial script accent
 *
 * font-display: swap everywhere. The faces above the fold are preloaded in
 * inc/performance.php (smyn_perf_resource_hints, wp_head priority 2), so the swap window is short enough that measured CLS from the
 * font swap is 0.0000 — see QA-REPORT.md.
 */

/* --- Glacial Indifference -------------------------------------------------
 * Three real faces, and only three. No 300, no 500, no 600, no 800, and no
 * bold-italic: asking for one makes the browser either round to the nearest
 * real face (so the declaration lies about what renders) or synthesise it
 * (so it renders wrong). CSS in this theme asks only for 400 and 700.
 */
@font-face {
	font-family: "Glacial Indifference";
	src: url("../fonts/glacial-indifference/GlacialIndifference-Regular.woff2") format("woff2"),
	     url("../fonts/glacial-indifference/GlacialIndifference-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Glacial Indifference";
	src: url("../fonts/glacial-indifference/GlacialIndifference-Italic.woff2") format("woff2"),
	     url("../fonts/glacial-indifference/GlacialIndifference-Italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Glacial Indifference";
	src: url("../fonts/glacial-indifference/GlacialIndifference-Bold.woff2") format("woff2"),
	     url("../fonts/glacial-indifference/GlacialIndifference-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* --- Jost -----------------------------------------------------------------
 * One variable file per style covers 100-900, so every weight the site asks
 * for is a real instance rather than a synthesised one. 57 KB for both.
 *
 * Jost also carries the two characters Glacial Indifference is missing — the
 * pound sign and the middot — which is why it sits directly behind Glacial in
 * every stack below rather than at the end.
 */
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost/Jost-Variable-Normal.woff2") format("woff2-variations"),
	     url("../fonts/jost/Jost-Variable-Normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost/Jost-Variable-Italic.woff2") format("woff2-variations"),
	     url("../fonts/jost/Jost-Variable-Italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* --- Snell Roundhand ------------------------------------------------------
 * The Brand Book script, and the family's only face. Declared normal/400
 * deliberately: the file reports usWeightClass 500 and italicAngle -40, but a
 * script face's slant is its design, not an italic — declaring it italic would
 * invite the browser to slant an already-slanted face when something inherits
 * font-style: italic.
 *
 * Editorial accent only. The rules that may use it are the ones carrying
 * .smyn-script (see theme-overrides.css); it is never on body copy, navigation,
 * buttons, prices, forms, WooCommerce controls, catalogue metadata, checkout or
 * account UI.
 */
@font-face {
	font-family: "Snell Roundhand";
	src: url("../fonts/snell-roundhand/SnellRoundhand-Regular.woff2") format("woff2"),
	     url("../fonts/snell-roundhand/SnellRoundhand-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
