/* Libre Franklin, served from our own domain.
 *
 * This replaces the three <link> tags that pointed at fonts.googleapis.com and
 * fonts.gstatic.com. Those worked fine, but every visitor's IP address reached
 * Google before a single pixel of Vault rendered, on a site whose whole pitch
 * is that your data stays where you put it. cookies.html said we intended to
 * fix that; this is the fix, and the page now states it as fact.
 *
 * Two files, not twenty-five. The Google CSS for `wght@400;500;600;700;800`
 * returns a separate static face for every weight in every subset. Asking for
 * `wght@100..900` instead returns the VARIABLE font — one file per subset,
 * covering the whole weight axis — so the five weights the site uses cost one
 * download rather than five, and any weight added later costs nothing.
 *
 * Subsets: latin (29KB) and latin-ext (26KB). The Cyrillic, Greek and
 * Vietnamese subsets Google also offers are not downloaded; nothing on this
 * site is written in them, and unicode-range means a browser would never have
 * fetched them anyway.
 *
 * Source: https://fonts.gstatic.com/s/librefranklin/v20/ — the same bytes
 * Google was serving. Licensed under the SIL Open Font License 1.1; the
 * licence sits beside the fonts in OFL.txt, which is what the OFL requires of
 * anyone redistributing them.
 *
 * If the font ever looks wrong, check font-weight first: a variable font
 * silently interpolates a weight that does not exist as a static face, so
 * `font-weight: 650` will render rather than snapping to 700.
 */

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/libre-franklin-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: 'Libre Franklin';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/libre-franklin-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;
}
