/* Self-hosted Fraunces and Nunito for the /kids pages.
 *
 * Why these are local rather than loaded from fonts.googleapis.com: the kids pages are
 * public and plainly child-directed, and a Google Fonts <link> hands a visiting child's
 * IP address to a third party on every page load. Nothing else on those pages contacts
 * anyone: no form, no fetch, no storage, no cookies, no analytics. The fonts were the
 * only thing leaving the page, so removing them makes that true without qualification.
 * SECURITY_AUDIT.md M-3 and the COPPA note in LAUNCH_CHECKLIST.md.
 *
 * Scope is the four /kids pages ONLY, by decision. Thirty-two other pages on this site
 * still use Google Fonts and are deliberately left alone.
 *
 * LICENCE. Both families are under the SIL Open Font License, which permits self-hosting
 * and REQUIRES the licence to ship with the binaries. See Fraunces-OFL.txt and
 * Nunito-OFL.txt in this directory. Do not delete them.
 *
 * WHAT IS AND IS NOT HERE. Only the latin and latin-ext subsets, which is exactly what a
 * browser downloaded from Google before this change: the four pages contain no Cyrillic
 * and no Vietnamese (checked by codepoint, not by eye). Emoji and the arrow glyphs come
 * from the system font, as they did before, because neither family covers them.
 *
 * Both are VARIABLE fonts, so one file per subset covers every weight. Google's own CSS
 * lists Nunito five times, once per requested weight, all pointing at the same file; the
 * `font-weight: 400 900` range below is the same thing said once.
 *
 * font-display: swap is deliberate and must stay. The old URLs ended in &display=swap,
 * so dropping it here would change how these pages render under a slow connection.
 *
 * unicode-range values are copied verbatim from the Google CSS so the subset split
 * behaves identically.
 */

/* ---------------------------------------------------------------- Fraunces, roman */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-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;
}

/* Fraunces italic. Only kids/fishing.html asks for the italic axis; the other three
 * pages carry these two rules harmlessly, because a font-face nothing matches is never
 * downloaded. One shared stylesheet beats four near-identical per-page ones. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-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: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-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;
}

/* ---------------------------------------------------------------- Nunito */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-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: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-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;
}
