/* 로컬 웹폰트 + 메트릭 맞춤 fallback — FOUT/레이아웃 흔들림 완화 */

/* Pretendard 로드 전: 시스템 한글 글꼴을 Pretendard에 가깝게 보정 */
@font-face {
  font-family: 'Pretendard Fallback';
  src: local('Apple SD Gothic Neo');
  size-adjust: 100.06%;
  ascent-override: 94%;
  descent-override: 25.64%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Pretendard Fallback';
  src: local('Malgun Gothic');
  size-adjust: 99.32%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  src: local('Pretendard'), url('../fonts/pretendard/Pretendard-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-style: normal;
  font-display: optional;
  src: local('Pretendard Medium'), url('../fonts/pretendard/Pretendard-Medium.woff2') format('woff2');
}

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

/* 모노스페이스: 숫자·코드 영역만 사용 */
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Consolas'), local('Courier New');
  size-adjust: 99.5%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400 600;
  font-style: normal;
  font-display: optional;
  src: local('JetBrains Mono'), url('../fonts/jetbrains-mono/JetBrainsMono-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
