/* Self-hosted fonts for Boxing Only website */
/* Optimized WOFF2 fonts with font-display: swap */

/* Bebas Neue - Main heading font */
@font-face {
  font-family: 'Bebas Neue';
  src: url('./bebasneue-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F;
  /* Font metrics to prevent layout shift */
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* Oswald - Variable font with multiple weights */
@font-face {
  font-family: 'Oswald';
  src: url('./oswald-variablefont_wght-webfont.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F;
  /* Font metrics to prevent layout shift */
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* Anton - Alternative heading font */
@font-face {
  font-family: 'Anton';
  src: url('./anton-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F;
  /* Font metrics to prevent layout shift */
  ascent-override: 90%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* Font classes with optimized fallbacks */
.font-heading {
  font-family: 'Oswald', 'Anton', Impact, 'Franklin Gothic Bold', 'Arial Black', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-feature-settings: 'kern' 1;
}

/* Performance optimization - reduce layout shift */
.font-heading {
  /* Approximate metrics for system fonts */
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  /* Reduce layout shift with size-adjust */
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}