/* fonts.css — Bundled Inter + Source Code Pro (self-hosted, no CDN) */

/* ── Inter ────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/Inter-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/Inter-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/Inter-SemiBold.ttf') format('truetype');
}

/* ── Source Code Pro ──────────────────────────────────────────────────────── */
/* font-display: block prevents badge width inconsistency on first paint.     */
/* Badges use min-width + mono font — swap causes a reflow when the font      */
/* loads, making badges appear narrower until the custom font kicks in.       */
/* On a self-hosted LAN the ~100ms block period is imperceptible.             */
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/static/fonts/SourceCodePro-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('/static/fonts/SourceCodePro-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('/static/fonts/SourceCodePro-SemiBold.ttf') format('truetype');
}
