/**
 * Font Face Declarations with font-display: optional
 * This prevents layout shift (CLS) by not swapping fonts after initial render
 * Only used weights are declared: 400, 500, 600, 700, 800, 900
 * woff2 primary format with woff fallback
 */

/* Inter Regular */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('%PUBLIC_URL%/Assets/font/Inter-Regular.woff2') format('woff2'),
       url('%PUBLIC_URL%/Assets/font/Inter-Regular.woff') format('woff');
}

/* Inter Medium */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('%PUBLIC_URL%/Assets/font/Inter-Medium.woff2') format('woff2'),
       url('%PUBLIC_URL%/Assets/font/Inter-Medium.woff') format('woff');
}

/* Inter SemiBold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('%PUBLIC_URL%/Assets/font/Inter-SemiBold.woff2') format('woff2'),
       url('%PUBLIC_URL%/Assets/font/Inter-SemiBold.woff') format('woff');
}

/* Inter Bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('%PUBLIC_URL%/Assets/font/Inter-Bold.woff2') format('woff2'),
       url('%PUBLIC_URL%/Assets/font/Inter-Bold.woff') format('woff');
}

/* Inter ExtraBold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url('%PUBLIC_URL%/Assets/font/Inter-ExtraBold.woff2') format('woff2'),
       url('%PUBLIC_URL%/Assets/font/Inter-ExtraBold.woff') format('woff');
}

/* Inter Black */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: optional;
  src: url('%PUBLIC_URL%/Assets/font/Inter-Black.woff2') format('woff2'),
       url('%PUBLIC_URL%/Assets/font/Inter-Black.woff') format('woff');
}
