/* Self-hosted Inter, replacing the Google Fonts stylesheet that
   templates/layout.html used to link. Two consequences of that link were
   worth removing: the app depended on fonts.googleapis.com being
   reachable to render as designed, and every page load told Google who
   was using this church's books.

   Inter ships as a variable font, so Google serves one file per subset
   covering the whole 100-900 weight axis — the 400/500/600 requests all
   return byte-identical files. Hence one file per subset here, with a
   font-weight range rather than three separate faces.

   Keep the range at the font's real axis (100 900). Google will also
   serve an axis clipped to just the weights you ask for, and such a file
   silently ruins bold: declaring 100 900 over a 400-600 file makes the
   browser believe 700 is available, so <strong> and headings get clamped
   to 600 and never fall back to synthetic bold. Verify with the hashes
   below rather than by eye — the clipped files look identical otherwise.

   Both latin subsets are included: latin-ext carries the Polish letters
   (ą ć ę ł ń ś ź ż) that names in this application will need, while ó
   sits in the plain-latin subset. The unicode-range split is what keeps
   that larger file from being downloaded by browsers rendering only
   plain latin text.

   A few codepoints in latin-ext's declared range have no glyph in the
   file (₴, for one). That is upstream's own range, and it costs nothing
   here: money is rendered as digits with a currency code beside it
   (handler.formatMoney), never as a currency symbol.

   Source: https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600
   fetched with a current-Chrome User-Agent, which is what selects woff2
   over ttf. Upstream version: v20, SIL Open Font License 1.1.

   sha256, to re-verify after any refresh:
     3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62  inter-latin.woff2
     34b9c504cab7a73e37b746343a449132e56cf7b5481af2cb81dc74dcff25c956  inter-latin-ext.woff2 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-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';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-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-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
