/*!
 * Memorial Product Designer — designer fonts
 *
 * ⚠️ The font files declared here are the **same TTFs** the backend Imagick uses
 * (assets/fonts/*.ttf, pointed at by the fonts config in design-types/tissue.php).
 * This is the precondition for "the preview text matching the finished product" — the browser and ImageMagick must load the same font file,
 * otherwise the glyph shapes, advance widths and baselines all differ.
 *
 * ⚠️⚠️ **Static fonts** are mandatory here; variable fonts cannot be used.
 * Measured: with variable fonts (the [wght] versions of Playfair Display / Noto Sans),
 * the browser picks an instance by font-weight, while Imagick can only render the font's default instance,
 * so the backend text comes out noticeably bolder and wider — ink mass ratio 1.53, centroid off by 7mm, and the equivalence test fails outright.
 * Switching to static fonts passed it immediately.
 *
 * All are OFL licensed (SIL Open Font License) and may be distributed with the plugin.
 *
 * ⚡ The browser is served **WOFF2** (same font, Brotli-wrapped outlines — metrics and glyph shapes are identical,
 * only the container differs), with the TTF kept as the fallback source and for ImageMagick.
 * Measured weight: TTF 1248 KB → WOFF2 432 KB (lato 657→212 KB, great-vibes 458→162 KB).
 * font-display stays `block` on purpose: this stylesheet only loads with the workbench,
 * and the canvas must not draw text in a fallback face first (that would flash a wrong layout).
 */

@font-face {
	font-family: 'MPD Marcellus';
	src: url('../fonts/marcellus.woff2') format('woff2'),
		url('../fonts/marcellus.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'MPD Crimson Text';
	src: url('../fonts/crimson-text.woff2') format('woff2'),
		url('../fonts/crimson-text.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'MPD Lato';
	src: url('../fonts/lato.woff2') format('woff2'),
		url('../fonts/lato.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'MPD Great Vibes';
	src: url('../fonts/great-vibes.woff2') format('woff2'),
		url('../fonts/great-vibes.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: block;
}
