/* ---------------------------------------------------------------------------
 * Self-hosted fonts. Replaces the Google Fonts CDN load in src/layouts/Base.astro.
 *
 * Sources (all SIL Open Font License — safe to self-host + redistribute):
 *   - Inter Tight       https://fonts.google.com/specimen/Inter+Tight
 *   - JetBrains Mono    https://fonts.google.com/specimen/JetBrains+Mono
 *   - Source Serif 4    https://fonts.google.com/specimen/Source+Serif+4
 *
 * Why self-host:
 *   - Eliminates the two preconnects + the round-trip to fonts.googleapis.com
 *   - Removes the third-party privacy/analytics surface
 *   - Lets us preload directly via <link rel="preload"> for the LCP font
 *   - Total payload: 148KB across 4 files (latin subset only)
 *
 * Refresh procedure: see scripts/refresh-fonts.sh (TODO) or re-curl from
 * fonts.gstatic.com using the URLs in /tmp/gfonts.css captured during the
 * initial self-host work.
 * --------------------------------------------------------------------------- */

/* Inter Tight — 600 + 700 share one file */
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/inter-tight-latin.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: "Inter Tight";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/inter-tight-latin.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;
}

/* JetBrains Mono — 400 + 500 share one file */
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/jetbrains-mono-latin.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: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/jetbrains-mono-latin.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;
}

/* Source Serif 4 — italic 400 + normal 400/600 (the normal weights share one file) */
@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/source-serif-4-italic-latin.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 Serif 4";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/source-serif-4-normal-latin.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 Serif 4";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/source-serif-4-normal-latin.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;
}
