@font-face {
  font-family: 'LexendDeca-Regular';
  src: url('/fonts/LexendDeca-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.ttf');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-Regular.ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-Italic.ttf');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-Medium.ttf');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-MediumItalic.ttf');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-SemiBold.ttf');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-Bold.ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-BoldItalic.ttf');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-ExtraBold.ttf');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/fonts/PublicSans-ExtraBoldItalic.ttf');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/*
 * PublicSans Legacy Aliases
 *
 * These duplicate declarations exist for backward compatibility with ~200 usages
 * of legacy font-family names (e.g., 'PublicSans-SemiBold' instead of 'PublicSans' + fontWeight: 600).
 *
 * The font-weight declarations prevent Safari from synthesizing extra boldness.
 *
 * TODO: ENG-1320 - Migrate all usages to unified 'PublicSans' + fontWeight pattern,
 * then remove these legacy aliases.
 */
@font-face {
  font-family: 'PublicSans-Regular';
  src: url('/fonts/PublicSans-Regular.ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-Bold';
  src: url('/fonts/PublicSans-Bold.ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-Bold-Italic';
  src: url('/fonts/PublicSans-BoldItalic.ttf');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-ExtraBold';
  src: url('/fonts/PublicSans-ExtraBold.ttf');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-ExtraBold-Italic';
  src: url('/fonts/PublicSans-ExtraBoldItalic.ttf');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-Medium';
  src: url('/fonts/PublicSans-Medium.ttf');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-Medium-Italic';
  src: url('/fonts/PublicSans-MediumItalic.ttf');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-Italic';
  src: url('/fonts/PublicSans-Italic.ttf');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PublicSans-SemiBold';
  src: url('/fonts/PublicSans-SemiBold.ttf');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Pretendard - unified font-family with proper weight declarations */
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/pretendard.woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/pretendard-600.woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*
 * Pretendard Legacy Aliases
 *
 * TODO: ENG-1320 - Migrate usages to unified 'Pretendard' + fontWeight pattern,
 * then remove these legacy aliases.
 */
@font-face {
  font-family: 'Pretendard-400';
  src: url('/fonts/pretendard.woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard-600';
  src: url('/fonts/pretendard-600.woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
