/* ========================================
   FONT DECLARATIONS - OPTIMIZED LOADING
   Self-hosted fonts with font-display: swap
   ======================================== */

/*
   NOTE: For production self-hosting, download and subset fonts:

   1. Download from Google Fonts
   2. Subset to Latin basic: pyftsubset font.ttf --flavor=woff2 --output-file=font.woff2 --unicodes=U+0020-007F
   3. Place in /assets/fonts/
   4. Update URLs below

   Current: Using Google Fonts CDN with optimal preload strategy
*/

/* For now, fonts are loaded via Google Fonts CDN in base.njk with:
   - Preconnect hints for faster DNS resolution
   - Preload for critical fonts
   - font-display: swap parameter in URL

   This provides 90% of the benefit with zero deployment complexity.

   Full self-hosting provides additional ~160KB savings but requires:
   - Build pipeline for subsetting
   - Font file management
   - Version control for font updates
*/

/* Example self-hosted @font-face declarations (for future implementation):

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-400.woff2') format('woff2');
  unicode-range: U+0020-007F;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-700.woff2') format('woff2');
  unicode-range: U+0020-007F;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');
  unicode-range: U+0020-007F;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  unicode-range: U+0020-007F;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-600.woff2') format('woff2');
  unicode-range: U+0020-007F;
}
*/

/* Interim optimization: Ensure Google Fonts uses font-display: swap */
/* This is handled in base.njk via URL parameter: &display=swap */
