/* ===========================================================================
   Self-hosted typefaces. When this file exists, inc/assets.php enqueues it
   instead of Google Fonts, so the theme ships with no third-party font
   requests and no layout shift on a cold cache.

   Fraunces      — SIL Open Font License 1.1 (Undercase Type)
   Inter         — SIL Open Font License 1.1 (Rasmus Andersson)
   JetBrains Mono— SIL Open Font License 1.1 (JetBrains)
   Latin subset, variable where available.
   ========================================================================= */

@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('jbmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('jbmono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Fraunces carries an optical-size axis; let the display face use it so the
   very large hero settings tighten up rather than bloating. */
.h-display, h1, .sec-head__title, .hero__title {
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}
