/* Optimized fonts for better performance */

/* Inter font family - prioritize system fonts */
@font-face {
  font-family: 'Inter-fallback';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Inter'),
       local('SF Pro Text'),
       local('SF Pro Display'),
       local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Roboto'),
       local('Helvetica Neue'),
       local('Arial');
  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;
}

/* Crimson Text font family - prioritize system serif fonts */
@font-face {
  font-family: 'Crimson-fallback';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Crimson Text'),
       local('Times New Roman'),
       local('Times'),
       local('Georgia'),
       local('serif');
  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;
}

/* Optimized font stacks - system fonts first */
body, .font-sans {
  font-family: 'Inter-fallback', 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Crimson-fallback', 'Times New Roman', Times, Georgia, serif;
  font-feature-settings: 'liga' 1, 'kern' 1;
}