/* Self-hosted variable fonts, Latin subset only.
   Metric-matched fallback faces are computed from the real font tables so that
   the swap from fallback to webfont causes ~zero layout shift (CLS).          */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations'),
       url('/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: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2-variations'),
       url('/fonts/fraunces-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;
}

/* Fallback metrics derived from the shipped font files:
   Inter    upm 2048, typoAsc 1984, typoDesc -494, avg lowercase advance .5363
   Arial    upm 2048, avg lowercase advance .4895   ->  size-adjust 109.56%     */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 109.56%;
  ascent-override: 88.42%;
  descent-override: 22.02%;
  line-gap-override: 0%;
}

/* Fraunces upm 2000, typoAsc 1956, typoDesc -510, avg lowercase advance .5979
   Times NR upm 2048, avg lowercase advance .4593   ->  size-adjust 130.17%     */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Liberation Serif');
  size-adjust: 130.17%;
  ascent-override: 75.13%;
  descent-override: 19.59%;
  line-gap-override: 0%;
}

/* Fraunces carries an optical-size axis; let the browser drive it. */
h1, h2, h3, h4, .brand-name, .door-title, .capacity-number, .stat-num,
.amount-value, .pull, .faq summary, .fieldset legend, .footer-call {
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}
