/* Inter Tight + JetBrains Mono — self-hosted (latin subset, variable font).
   Each family ships as one variable woff2 covering 300–600, so all four
   @font-face rules point to the same file (browser caches once). */

/* Metrics-adjusted fallback fonts.
   These mimic Inter Tight / JetBrains Mono character widths and line heights
   so the layout doesn't shift when the real webfonts finish loading.
   Values tuned to minimize CLS — derived from x-height and aspect ratios. */
@font-face {
  font-family: 'Inter Tight Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 102.5%;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Menlo'), local('Consolas'), local('Courier New');
  size-adjust: 95%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* Inter Tight — variable font, all weights from one file */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(inter-tight.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;
}

/* JetBrains Mono — variable font, both weights from one file */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(jetbrains-mono.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;
}
