/* Self-hosted font example: place font files under wwwroot/fonts/ (woff2 recommended) */
/* Use font-display: swap to show fallback text immediately and swap when the webfont loads */
/* Add optional metric overrides to reduce layout shifts in supported browsers. Test before relying on overrides. */

@font-face {
  font-family: 'InterVar';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap; /* visible text immediately; swap to webfont when ready */

  /* Optional (Chromium-based browsers) — tune percentages to match your font metrics */
  ascent-override: 90%;
  descent-override: 10%;
  line-gap-override: 0;
  /* size-adjust helps preserve x-height across fallbacks; set after testing */
  size-adjust: 100%;
}

/* Icon/fontawesome example */
@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('/fonts/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback-family usage */
html, body {
  font-family: 'InterVar', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}