/**
 * Villas More — self-hosted webfaces (Task 016)
 *
 * THIS FILE DECLARES FILES, NOT ROLES.
 *
 * The three type roles — display, heading, body — are declared in exactly one
 * place, `theme.json` → settings.typography.fontFamilies, per DECISIONS.md 88a.
 * Nothing here should be referenced by a component rule, and no `font-family`
 * anywhere in `style.css` may name a face. Everything reaches type through
 * `var( --wp--preset--font-family--display | --heading | --body )`.
 *
 * Every file is downloaded and served from this theme. Nothing is linked from
 * Google's servers, so no visitor IP address reaches Google (2026-08-26
 * cross-cutting decision).
 *
 * Regenerate with `tools/fonts/build-fonts.py`. Do not hand-edit the .woff2
 * files; see that script for the subsetting recipe and the upstream sources.
 *
 * `font-display: swap` on every face: the fallback stack paints immediately and
 * is swapped when the face arrives. The fallbacks in theme.json are chosen for
 * close metrics precisely so that swap is a change of face, not a reflow.
 *
 * SWITCHING TO IOWAN OLD STYLE + CLASSICO URW (DECISIONS.md 87, if the Adobe
 * Fonts licence verifies — 88): that is an edit to theme.json's three
 * `fontFamily` strings plus removing this file's enqueue. It is not an edit to
 * any component. Nothing in `style.css` needs to be found or changed.
 *
 * @package Villas_More
 */

/* -- Display: Marcellus -------------------------------------------------- */
/*
 * Uppercase, digits, Croatian caps and label punctuation only — no lowercase
 * is in the file. The display role is never used inside a sentence
 * (DECISIONS.md 87), so a lowercase character reaching this face is a mistake,
 * and it is better that the mistake is visible than silently rendered in a
 * fallback. Marcellus ships one weight; do not ask this role for bold.
 */
@font-face {
	font-family: "Marcellus";
	src: url( "./marcellus/marcellus-caps.woff2" ) format( "woff2" );
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	/*
	 * Deliberately no `unicode-range`. The browser then uses the file's own
	 * character map, so any character the subset does not contain falls back
	 * per character. Declaring a range by hand here would claim coverage the
	 * file does not have and render empty boxes instead.
	 */
}

/* -- Headings: Literata -------------------------------------------------- */
/*
 * One instance, weight 400, optical size 14 — the weight `theme.json`'s
 * `elements.heading` actually asks for. Upstream is a two-axis variable font;
 * shipping the axes would cost ~18 KB for range nothing currently uses. Adding
 * a second heading weight later is a line in build-fonts.py and a line here.
 */
@font-face {
	font-family: "Literata";
	src: url( "./literata/literata-400.woff2" ) format( "woff2" );
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* -- Body: Alegreya Sans ------------------------------------------------- */
/*
 * Three files: regular, its italic, and bold. Body copy, buttons, forms and
 * everything functional. No 500 — `.vm-eyebrow` and friends move to the
 * display role in this task, which is what was asking for a medium.
 */
@font-face {
	font-family: "Alegreya Sans";
	src: url( "./alegreya-sans/alegreya-sans-400.woff2" ) format( "woff2" );
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Alegreya Sans";
	src: url( "./alegreya-sans/alegreya-sans-400-italic.woff2" ) format( "woff2" );
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Alegreya Sans";
	src: url( "./alegreya-sans/alegreya-sans-700.woff2" ) format( "woff2" );
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
