/* ============================================================================
   FONTS COMPONENT

   Self-hosted Inter (decision #13). Replaces the Google Fonts CDN link;
   no third-party connection on first paint, faster LCP, no Google
   tracking on font requests.

   Files in public/fonts/inter/ are pulled from @fontsource/inter at
   build time (manually copied — not bundled by Astro because we serve
   them as static assets).

   Weights provided: 400, 500, 600, 700 (matches what the old CDN URL
   requested: ?family=Inter:wght@400;500;600;700).

   font-display: swap means the browser draws fallback text immediately
   and swaps to Inter when it arrives — no FOIT (flash of invisible
   text). The 400 weight is preloaded in BaseLayout to minimize the
   swap window for body text.
   ============================================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/inter-700.woff2') format('woff2');
}
