/* Optimized local fonts with font-display: swap for better performance */

/* Inter Regular */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* Prevents invisible text during font load */
    src: url('../fonts/web/InterVariable.woff2') format('woff2-variations'),
         url('../fonts/web/Inter-Regular.woff2') format('woff2'),
         url('../fonts/Inter-Regular.ttf') format('truetype');
}

/* Inter Medium */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/web/InterVariable.woff2') format('woff2-variations'),
         url('../fonts/web/Inter-Medium.woff2') format('woff2'),
         url('../fonts/Inter-Regular.ttf') format('truetype');
}

/* Inter Bold */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/web/InterVariable.woff2') format('woff2-variations'),
         url('../fonts/web/Inter-Bold.woff2') format('woff2'),
         url('../fonts/Inter-Bold.ttf') format('truetype');
}

/* System font stack fallback */
.system-font {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* For logo/brand - use Inter with different weight instead of Montserrat */
.brand-font {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Preload critical fonts */
.font-preload-hint {
    /* This class can be used to trigger font preloading */
    font-family: 'Inter';
    position: absolute;
    left: -9999px;
    visibility: hidden;
}
