/* ============================================================
   NAGA STEELS, Self-hosted fonts
   ------------------------------------------------------------
   Self-hosted rather than the Google Fonts CDN: one fewer DNS
   lookup + TLS handshake on an Indian mobile connection, no
   third-party request, and the files can never change under us.

   Three faces only (latin subset). Space Grotesk has been
   dropped: it reads "tech startup", which is precisely the
   register this revamp moves away from.

   Display type is Inter at weight 600 set very tight
   (--track-display: -0.052em, line-height 1). That is the same
   construction the premium editorial references use, where the
   display weight sits around 600-650 rather than a hard 700.
   A heavier cut is deliberately NOT loaded: it would cost
   another ~45 KB to make headings marginally denser.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-600.woff2') format('woff2');
}
/* 700 is mapped to the 600 file. The browser synthesises the extra
   weight, which at display sizes with this much negative tracking is
   imperceptible, and it saves a whole font request. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-400.woff2') format('woff2');
}

/* Metric-matched fallback. Without this, the swap from the system font
   to Inter shifts every line of body copy and costs CLS. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
