/**
 * Inter Variable Font — PRODUCTION READY
 * Path: /assets/fonts/inter/inter.css
 * 
 * CRITICAL FIXES:
 * - Uses ONLY variable font (no static weight conflicts)
 * - Correct relative paths (./ prefix)
 * - font-display: swap prevents FOIT (Flash of Invisible Text)
 * - No duplicate @font-face rules
 * - Proper unicode-range for Latin/Latin Extended
 * - Added fallback metrics adjustment
 * 
 * @version 2.0.0
 */

/* =========================
   Variable Font (supports weights 100-900)
   ========================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./InterVariable.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================
   Variable Italic (if you have it)
   ========================= */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('./InterVariable-Italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================
   FALLBACK: Static font for older browsers
   Only loads if variable fonts are not supported
   ========================= */
@supports not (font-variation-settings: normal) {
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./Inter-Regular.woff2') format('woff2');
  }
  
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./Inter-SemiBold.woff2') format('woff2');
  }
  
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./Inter-Bold.woff2') format('woff2');
  }
}

/* =========================
   Size Adjustment Fallback
   Matches Inter's metrics to system fonts to prevent layout shift
   ========================= */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107%;
}