/*
 * dexa-style — self-hosted webfaces.
 *
 * Replaces the Google Fonts <link> both products used to carry:
 *
 *   https://fonts.googleapis.com/css2
 *     ?family=Lora:ital,wght@0,400..600;1,400..600
 *     &family=Source+Sans+3:ital,wght@0,400..700;1,400..600
 *     &family=Playfair+Display:wght@500..700
 *     &display=swap
 *
 * Two reasons, and both are in RESKIN-PLAN.md §1: it kills a third-party
 * request (the EU angle — no font CDN sees a visitor's IP), and it works
 * offline, which the app needs and a hosted stylesheet cannot give it.
 *
 * WEIGHT RANGES ARE THE GOOGLE REQUEST'S, NOT THE FILE'S. The woff2 files
 * carry each family's full wght axis (Playfair 400–900, Lora 400–700,
 * Source Sans 3 200–900); the `font-weight` ranges below are narrowed to
 * exactly what the catalogue asked Google for, so a weight outside the range
 * clamps the same way it did before self-hosting. Widening a range is a
 * design decision, not a cleanup.
 *
 * SUBSETS: latin + latin-ext only. The catalogue's locales are en/fr/es/de
 * (web/project.inlang/settings.json) and those two subsets cover all four.
 * `unicode-range` means a Latin-only page never fetches latin-ext at all.
 * Adding a locale outside Latin script means adding its subset files here.
 *
 * FAMILY NAMES ARE THE PLAIN ONES — 'Playfair Display', 'Lora',
 * 'Source Sans 3' — because that is what tokens.css's --font-display /
 * --font-body / --font-ui stacks name. Do not rename them to the upstream
 * package's "… Variable" form; the stacks would stop resolving and every
 * surface would silently fall back to its serif/sans fallback.
 *
 * Provenance: @fontsource-variable/{playfair-display,lora,source-sans-3}
 * v5.3.0 (the same Google-hosted binaries, republished). All three families
 * are SIL OFL 1.1; the licence text accompanying each download ships beside
 * the files as fonts/OFL-*.txt and must travel with them.
 */

/* ---- Playfair Display — display face (RESKIN-PLAN.md §1 type roles) -----
 * Normal only. The catalogue never requested the italic and nothing in
 * either product sets one at display size. */

@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url('./fonts/playfair-display-latin-wght-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: 'Playfair Display';
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url('./fonts/playfair-display-latin-ext-wght-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;
}

/* ---- Lora — editorial body / prose ------------------------------------ */

@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('./fonts/lora-latin-wght-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: 'Lora';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('./fonts/lora-latin-ext-wght-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: 'Lora';
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url('./fonts/lora-latin-wght-italic.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: 'Lora';
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url('./fonts/lora-latin-ext-wght-italic.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;
}

/* ---- Source Sans 3 — UI chrome, labels, table text --------------------
 * The italic's range stops at 600 and the roman's runs to 700, exactly as
 * the Google request did: nothing in either product sets an italic bold. */

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('./fonts/source-sans-3-latin-wght-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: 'Source Sans 3';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('./fonts/source-sans-3-latin-ext-wght-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: 'Source Sans 3';
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url('./fonts/source-sans-3-latin-wght-italic.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: 'Source Sans 3';
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url('./fonts/source-sans-3-latin-ext-wght-italic.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;
}
