/**
 * Self-hosted brand fonts.
 *
 * Variable woff2 files pulled from Google Fonts and served from the theme, so the
 * site makes no third-party request for type. Latin and Latin Extended only —
 * add a subset here and in assets/fonts/ if a market needs it.
 *
 * Archivo         display / headings
 * Instrument Sans body / UI
 * JetBrains Mono  eyebrows, labels, data
 */

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/archivo-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: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/instrument-sans-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: 'JetBrains Mono';
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url('../fonts/jetbrains-mono-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;
}

/* -------------------------------------------------------------------------
 * Metric-matched fallbacks.
 *
 * While a web font is still loading the browser renders the next family in the
 * stack. If that family runs at a different width and height, every line moves
 * when the real font arrives — visible as a jolt, and counted against CLS.
 *
 * Each face below is the system font it will actually fall back to, stretched
 * and re-baselined to match the web font's own metrics. The overrides are
 * computed from the shipped woff2 files and Arial / Courier New, not guessed:
 * size-adjust is the ratio of average character widths, and the ascent and
 * descent overrides are the web font's own, divided by that ratio.
 *
 * Recompute these if a font file is ever replaced.
 * ---------------------------------------------------------------------- */

@font-face {
	font-family: 'Archivo Fallback';
	src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
	size-adjust: 119.62%;
	ascent-override: 73.40%;
	descent-override: 17.56%;
	line-gap-override: 0.00%;
}

@font-face {
	font-family: 'Instrument Sans Fallback';
	src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
	size-adjust: 127.77%;
	ascent-override: 75.92%;
	descent-override: 19.57%;
	line-gap-override: 0.00%;
}

@font-face {
	font-family: 'JetBrains Mono Fallback';
	src: local("Courier New"), local("Courier");
	size-adjust: 99.98%;
	ascent-override: 102.02%;
	descent-override: 30.00%;
	line-gap-override: 0.00%;
}
