/* ============================================================
   Cred Count website — self-hosted webfonts

   Linked by index.html, privacy.html and terms.html, ahead of
   tokens.css, which points --sans and --mono at these families.

   Roboto is also the app's typeface, so the site and the product
   read as one thing; and because the files are ours, the page
   renders identically on macOS, Windows and Android instead of
   falling to SF Pro, Segoe UI and Roboto respectively.
   ============================================================ */

/* ------------------------------------------------------------
   FONTS — self-hosted, deliberately.

   These used to be two @import calls to fonts.googleapis.com. That
   handed every visitor's IP address to Google before the page had
   even painted, which the privacy policy says we don't do (§4F) and
   which a German court has held to be an actual privacy violation
   (LG München I, 3 O 17493/20). The policy page loaded this very
   stylesheet, so the page promising no third-party fonts was itself
   fetching third-party fonts.

   All three families are served from our own origin now. Roboto and
   JetBrains Mono are variable fonts, latin + latin-ext only.
   Material Symbols is subset to the 22 icons the site actually uses
   (5KB, down from a ~1.5MB full font). Total: ~116KB.

   If you add an icon to the site, it must be added to the subset or
   it will render as a blank box. Regenerate with the icon_names
   parameter on the Google Fonts API, download the .woff2, and drop
   it in — but do not reintroduce a runtime request to Google.
   ------------------------------------------------------------ */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-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: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-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: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-symbols-rounded-subset.woff2') format('woff2');
}
