/*
   Self-hosted webfonts (NFV-071, Unit 2).

   WHY SELF-HOSTED. Jeff's call, 2026-08-19. The design specifies these two families from Google
   Fonts; serving them from this host instead means no third party sees a visitor's request. This
   is a family history site carrying real relatives' names, and the privacy posture of the rest of
   the project would sit oddly beside a per-pageview call to another company's CDN.

   WHAT THESE FILES ARE. Three VARIABLE woff2 files, latin subset, covering every weight the design
   uses. Verified with fontTools at download time, not assumed:

     eb-garamond-latin.woff2          wght axis 400-800   (design uses 400 and 600)
     eb-garamond-latin-italic.woff2   wght axis 400-800   (design uses 400 and 600 italic)
     work-sans-latin.woff2            wght axis 100-900   (design uses 400, 500 and 600)

   Because every weight sits INSIDE the axis range, the browser instances a real weight rather than
   faking bold. That is the whole reason to prefer the variable files over static instances -- and
   it is why the font-weight declarations below are RANGES, not single values.

   SUBSET. latin only, approved by Jeff over latin-ext. ~233 codepoints each: U+00E9 (e-acute) is
   present, U+0142 (l-stroke) is not. A name needing a glyph outside the range falls back to the
   system serif for that character. If the tree ever takes in Central or Eastern European names,
   this is the file to revisit -- see assets/fonts/README.md for how to re-fetch.

   PATHS ARE RELATIVE ON PURPOSE. A url() inside a stylesheet resolves against THE STYLESHEET's
   own URL, not the document's. That is what lets one file serve both applications: WordPress
   pages at / and webtrees pages at /tree/ both resolve ../fonts/ correctly. An absolute URL, or
   inlining these rules the way nfv_shell_css() is inlined, would break one of the two surfaces.

   LICENCE. Both families are SIL Open Font License 1.1, which permits this redistribution and
   REQUIRES the licence travel with the fonts. See assets/fonts/EB-Garamond-OFL.txt and
   assets/fonts/Work-Sans-OFL.txt. Do not delete those.
*/

/* --- EB Garamond: display and names ------------------------------------------------------- */

@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/eb-garamond-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: 'EB Garamond';
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/eb-garamond-latin-italic.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;
}

/* --- Work Sans: UI and metadata ------------------------------------------------------------ */

@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/work-sans-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;
}
