/**
 * Volkolak, declared by the CHILD THEME so it cannot go missing again.
 *
 * WHY THIS FILE EXISTS
 * --------------------
 * Tom: "also build in the font fix as well i dont want to lose my volk font again"
 *
 * The font has disappeared from the live site before, and the cause is not a
 * migration losing files:
 *
 *  1. Deleting a font in GeneratePress's Font Library DELETES ITS FILE from
 *     `uploads/generatepress/fonts/`. A re-add alone does not restore it.
 *  2. GP then rewrites `uploads/generatepress/fonts/fonts.css`, which is where
 *     `--gp-font--volkolak` is defined. With the variable gone, every rule reading
 *     `font-family: var(--gp-font--volkolak)` falls back SILENTLY - no error, no
 *     visible break, just the wrong typeface. That is why it reads as "fine but
 *     wrong" rather than obviously broken.
 *
 * So the fix is to stop depending on `uploads` at all. These faces live in the
 * THEME, which GP's Font Library cannot touch, and the variable is declared here
 * as a fallback.
 *
 * ⚠️ ORDER: MEASURED, NOT ASSUMED. This is enqueued at priority 4, but GP does not
 * emit `fonts.css` through `wp_enqueue_scripts`, so this file still prints AFTER it
 * (measured at head offsets 8996 vs 8811). Custom properties take the last
 * declaration, so THIS file's `--gp-font--volkolak` is the one in force.
 *
 * That is harmless only because the declarations here are byte-for-byte equivalent
 * to GP's - same family name, same two weights, same files (verified by SHA-256
 * against the originals in uploads).
 *
 * 🚨 SO: IF THE FONT LIBRARY ENTRY IS EVER CHANGED - a new weight, a different
 * file - THIS FILE MUST BE UPDATED TO MATCH, or it will quietly override the
 * change. That is the cost of the safety net, and it is why the weights are spelled
 * out below rather than left implicit.
 *
 * ⚠️ Relative URLs, on purpose. `uploads/generatepress/fonts/fonts.css` hard-codes
 * `https://solvangusa.com/` - measured, 7 references - because AI1WM rewrites the
 * DATABASE on import but not files inside uploads. That means a local build fetches
 * its fonts cross-origin from production. Paths here are relative to this file, so
 * they follow whatever host the site is on.
 *
 * ⚠️ WEIGHTS ARE 500 AND 600, matching what GP registered. GP names an uploaded
 * font from the file's INTERNAL metadata, not the filename, so it installed as
 * "WT Volkolak Sans Display" and had to be aliased back to "Volkolak". Keep both
 * weights: 500 is what the live Font Library recorded and 600 is what this build
 * declares, and headings reference both.
 */

@font-face {
	font-display: swap;
	font-family: "Volkolak";
	font-style: normal;
	font-weight: 500;
	src: url( "volkolak/volkolak-600.woff2" ) format( "woff2" ),
	     url( "volkolak/volkolak-600.woff" ) format( "woff" );
}

@font-face {
	font-display: swap;
	font-family: "Volkolak";
	font-style: normal;
	font-weight: 600;
	src: url( "volkolak/volkolak-semibold-600.woff2" ) format( "woff2" );
}

/*
 * The variable GP's fonts.css would normally define. Declared here so a deleted
 * Font Library entry degrades to the right typeface instead of silently falling
 * back to a system font.
 */
:root {
	--gp-font--volkolak: "Volkolak";
}
