/*
 * Fonts, declared by hand rather than through theme.json's fontFace.
 *
 * Why not theme.json: the two metric-matched fallbacks below are `src:
 * local(...)` faces that exist only to be overridden, and theme.json's font
 * handling is built around files it can resolve and serve. Declaring the real
 * faces there and the fallbacks here would split one mechanism across two
 * files, and the pairing is the whole point — a fallback whose metrics drift
 * from the face it stands in for is worse than no fallback at all.
 *
 * Latin and latin-ext only. latin-ext carries c, s and z with carons, which
 * the Slovenian copy needs. No Google Fonts request is made; the files are
 * served from this theme.
 *
 * Carried across from the design source unchanged. If either font is ever
 * swapped, the size-adjust numbers below must be re-measured, not adjusted by
 * eye.
 *
 * @package Slovenia_Concierge
 */

/* ------------------------------------------------------------ Jost (sans) */
@font-face {
	font-family: 'Jost Variable';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2-variations');
	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: 'Jost Variable';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/jost-latin-ext-wght-normal.woff2') format('woff2-variations');
	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;
}

/* ------------------------------------------- Cormorant Garamond (display) */
@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-400-normal.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: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-500-normal.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: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-600-normal.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: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-ext-400-normal.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: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-ext-500-normal.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: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-ext-600-normal.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;
}

/*
 * Metric-matched fallbacks.
 *
 * Arial and Times are wider and shorter than the two webfonts, so text laid out
 * in them and then re-laid-out in the real face visibly jumps. Overriding the
 * fallback's metrics to the webfont's own makes the two occupy the same box:
 * the glyph shapes still change once, but nothing moves.
 *
 * size-adjust is measured, not derived: a test string is laid out in the real
 * face and in the fallback and the ratio read off. Re-measure if either font is
 * ever swapped, otherwise the numbers below are just noise.
 */
@font-face {
	font-family: 'Jost fallback';
	src: local('Arial');
	size-adjust: 95.8%;
	ascent-override: 94%;
	descent-override: 26%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Cormorant fallback';
	src: local('Times New Roman');
	size-adjust: 97.2%;
	ascent-override: 111%;
	descent-override: 32%;
	line-gap-override: 0%;
}
