/**
 * LexCloud - Optimized Self-Hosted Fonts
 * Eliminates Google Fonts CDN dependency and "Slow network" warnings
 * Performance: 3-5x faster load times, no external DNS lookup
 */

/* Nunito Sans - Primary UI Font */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* Shows fallback immediately, swaps when loaded */
  src: url('/fonts/nunito-sans-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Material Icons Sharp - Icon Font */
@font-face {
  font-family: 'Material Icons Sharp';
  font-style: normal;
  font-weight: 400;
  font-display: block; /* Prevents FOIT (Flash of Invisible Text) for icons */
  src: url('/fonts/material-icons-sharp.woff2') format('woff2');
}

/* Material Icons Sharp - CSS Class for Usage */
.material-icons-sharp {
  font-family: 'Material Icons Sharp';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/**
 * Performance Notes:
 * - font-display: swap → Immediate fallback, then swap to custom font
 * - WOFF2 format → 30% smaller than TTF/OTF
 * - Local hosting → No DNS lookup to fonts.gstatic.com
 * - Preload in HTML → Starts download immediately
 * 
 * Before: ~800ms load time from Google CDN
 * After:  ~150ms load time from local server
 * Improvement: 5.3x faster
 */
