/* Inter Font Family - Optimized for consistent loading */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-Regular.ttf') format('truetype');
  /* Size-adjust to match system font metrics */
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-Medium.ttf') format('truetype');
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-Bold.ttf') format('truetype');
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-Italic.ttf') format('truetype');
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-MediumItalic.ttf') format('truetype');
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-SemiBoldItalic.ttf') format('truetype');
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter/static/Inter_18pt-BoldItalic.ttf') format('truetype');
  size-adjust: 102%;
}

/* Inter Tight Font Family - Optimized Variable Font */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter_Tight/InterTight-VariableFont_wght.ttf') format('truetype-variations');
  size-adjust: 101%;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter_Tight/InterTight-Italic-VariableFont_wght.ttf') format('truetype-variations');
  size-adjust: 101%;
}

/* Fallback for older browsers that don't support variable fonts */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter_Tight/InterTight-VariableFont_wght.ttf') format('truetype');
  size-adjust: 101%;
}

/* Optimized font fallback stack with weight constraints */
@font-face {
  font-family: 'Inter Fallback';
  src: local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto'), local('Arial');
  font-weight: 400;
  font-display: block;
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto'), local('Arial');
  font-weight: 500;
  font-display: block;
  size-adjust: 102%;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto'), local('Arial');
  font-weight: 600;
  font-display: block;
  size-adjust: 102%;
}
