/* Self-hosted fonts.

   These were three render-blocking requests to fonts.googleapis.com plus one to a
   jsDelivr icon CDN. Self-hosting them:
   - removes four cross-origin round trips from every cold load on mobile;
   - lets the service worker cache them, so the offline shell is not unstyled;
   - is a prerequisite for the native shell, where a strict CSP blocks external hosts;
   - stops leaking every player's IP to a third party on page load, which is the part
     that makes hosted Google Fonts a GDPR problem in the EU.

   Playfair and JetBrains Mono only ever render fixed UI strings and numbers, so they
   are subset to exactly the characters used. Inter is not subset because it renders
   player-entered names, which can be any latin text.

   The previously loaded 'Long Cang' face was fetched on every visit and referenced by
   no rule at all, so it is simply gone. CJK glyphs on the tiles come from the system
   serif stack, not from here. */

/* Variable file spanning the whole 400-900 range in one request; five static Inter
     weights were 235KB, this is 48KB. Inter renders player-entered names, so it keeps
     the full latin subset. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
