/*
 * The site typeface, self-hosted.
 * ------------------------------------------------------------------
 * Replaces nothing, strictly speaking: this site was rendering in Helvetica/Arial.
 * The theme applied its font through inc/pre-color-schemes.php, which prints
 *   body { font-family: <theme option>, Helvetica, Arial, sans-serif }
 * and the redesign unhooks that whole stylesheet (rd_drop_options_palette) to get
 * rid of the old pink palette. The font-family went with it, and Arial is a
 * plausible enough fallback that nothing looked broken. The four Ubuntu @font-face
 * rules in css/ubuntu.css were still being served but reported `unloaded` in the
 * browser -- declared, never referenced by any selector, never fetched.
 *
 * So the family is now applied from redesign.css (--rd-font), which the theme
 * options cannot switch off, and this file declares the faces.
 *
 * VARIABLE font, one file per subset instead of one per weight. The wght axis
 * spans 200-800, so 400 body / 500 / 600 / 700 headings all come out of the same
 * download: two files total against the eight a 400+700 static pair would need
 * across two subsets. `font-weight: 200 800` on the @font-face is what tells the
 * browser this face covers that whole range rather than one weight.
 *
 * Subsets and unicode-ranges are Google's own latin / latin-ext split, kept
 * identical to what ubuntu.css used: latin-ext carries the accented glyphs, so a
 * page with no umlauts never fetches it. German needs it (ä ö ü ß), so on this
 * site it will usually load -- the split still helps, because the two files are
 * fetched in parallel and the latin one paints first.
 *
 * Alternative family, already built and sitting in fonts/: Familjen Grotesk
 * (familjen-latin.woff2 / familjen-latin-ext.woff2). More character and noticeably
 * more compact, at some cost to long-form readability. Switching is the two src
 * URLs below plus the name in --rd-font.
 *
 * Licence: Plus Jakarta Sans and Familjen Grotesk are both SIL Open Font License
 * 1.1, which permits self-hosting and redistribution. Built with pyftsubset from
 * the upstream variable TTFs.
 */

@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('fonts/plusjakarta-latin-ext.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: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('fonts/plusjakarta-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;
}
