/* 42Stack Font System - Optimized WOFF2 fonts */

/* Geist Sans - Critical fonts loaded immediately with WOFF2 */
@font-face {
  font-family: 'Geist Sans';
  src: url('./geist-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Sans';
  src: url('./geist-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Non-critical fonts - loaded asynchronously */
@font-face {
  font-family: 'Geist Sans';
  src: url('./geist-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Sans';
  src: url('./geist-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Geist Mono - Optimized WOFF2 monospace */
@font-face {
  font-family: 'Geist Mono';
  src: url('./geist-mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Font Variable Definitions - Optimized Geist fonts */
:root {
  --font-primary: 'Geist Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Legacy support - map old variables to new ones */
  --font-geist-sans: var(--font-primary);
  --font-geist-mono: var(--font-mono);
}