/* ==========================================================================
   CYBERPLEX LOCAL FONTS - GDPR Compliant Self-Hosting
   
   Replaces Google Fonts CDN to ensure GDPR compliance.
   
   Legal Background:
   - Court: Landgericht München I
   - Ruling: 20.01.2022, Case No. 3 O 17493/20
   - Issue: Loading fonts from Google servers transmits user IP addresses 
            (personal data) to Google without consent, violating GDPR.
   - Solution: Local hosting = 100% GDPR compliant
   
   Font Source: Inter by Rasmus Andersson
   - License: SIL Open Font License 1.1
   - Source: https://github.com/rsms/inter/releases
   - Recommended: Download Inter-4.0.zip from GitHub releases
   
    Font Files Required (place in ../assets/fonts/inter/):
    - Inter-Regular.woff2 (weight: 400)
    - Inter-Medium.woff2 (weight: 500)
    - Inter-SemiBold.woff2 (weight: 600)
    - Inter-Bold.woff2 (weight: 700)
    
    Note: WOFF2 format has 95%+ browser support. WOFF fallbacks not included
    as all modern browsers (Chrome, Firefox, Safari, Edge) support WOFF2.
   ========================================================================== */

/* --------------------------------------------------------------------------
   INTER 400 - REGULAR
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter Regular'),
       local('Inter-Regular'),
       url('../assets/fonts/inter/Inter-Regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, 
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, 
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   INTER 500 - MEDIUM
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'),
       local('Inter-Medium'),
       url('../assets/fonts/inter/Inter-Medium.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, 
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, 
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   INTER 600 - SEMIBOLD
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter SemiBold'),
       local('Inter-SemiBold'),
       url('../assets/fonts/inter/Inter-SemiBold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, 
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, 
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   INTER 700 - BOLD
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter Bold'),
       local('Inter-Bold'),
       url('../assets/fonts/inter/Inter-Bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, 
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, 
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   BASE FONT SETTINGS
   Ensure consistent typography across all pages
   -------------------------------------------------------------------------- */
html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
               'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Firefox-specific hinting adjustments */
@-moz-document url-prefix() {
  html {
    font-feature-settings: "liga" 1, "calt" 1;
  }
}

/* Enable discretionary ligatures for better typography */
body {
  font-feature-settings: "liga" 1, "calt" 1, "ss01" 1, "ss02" 1;
}

/* Optional: Tabular numbers for data displays */
.u-tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Optional: Enable slashed zero */
.u-slashed-zero {
  font-variant-numeric: slashed-zero;
}
