/* OPTIMIZED FONT LOADING - Eliminates preload warnings */
/* This replaces preload links with efficient CSS loading */

@font-face {
    font-family: 'AbelPro';
    src: url('/assets/fonts/AbelPro.woff2') format('woff2'),
         url('/assets/fonts/AbelPro.woff') format('woff');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
    size-adjust: 100%;
}

@font-face {
    font-family: 'AbelPro-Bold';
    src: url('/assets/fonts/AbelPro-Bold.woff2') format('woff2'),
         url('/assets/fonts/AbelPro-Bold.woff') format('woff');
    font-display: swap;
    font-weight: bold;
    font-style: normal;
    size-adjust: 100%;
}

/* Optimized font stack with fallback metrics */
body {
    font-family: 'AbelPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

h1, h2, h3, h4, h5, h6,
.heading,
strong,
b {
    font-family: 'AbelPro-Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    line-height: 1.2;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Ensure proper font loading behavior */
.font-loading body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.font-loading h1, .font-loading h2, .font-loading h3, 
.font-loading h4, .font-loading h5, .font-loading h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
}