/* ============================================================
   font.css — woff2 만 사용 (2026-06-10, 교육사이트 동등)
   ------------------------------------------------------------
   - otf, woff 포맷 제거 → 다운로드 우선순위 단순화 + 폰트 매칭 빠름
   - font-display: swap 으로 시스템 폰트로 즉시 표시 후 swap
   - 모든 최신 브라우저 woff2 지원 (Chrome/Edge/Safari/Firefox 모두)
   ============================================================ */

/* ============================================================
   Pretendard Fallback — 시스템 폰트(Malgun Gothic 등) 의 metric 을
   Pretendard 에 맞춰 조정 → 폰트 swap 시 글자 폭 변동 0
   (Chrome 92+, Firefox 92+ 지원)
   ============================================================ */
@font-face {
    font-family: 'Pretendard Fallback';
    src: local('Apple SD Gothic Neo'), local('Malgun Gothic'), local('맑은 고딕');
    size-adjust: 113%;
    ascent-override: 88%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* Pretendard — 본문 기본 (4 weight 만 등록, body 는 500 사용)
 * font-display: block (2026-06-10, 옵션 A 재시도) — swap 깜빡임 완전 차단
 *   · 폰트 도착 전엔 텍스트 invisible (최대 3초)
 *   · preload 와 결합하면 50~100ms 안에 도착 → 잠깐 빈 텍스트 후 한 번에 표시
 *   · 캐시 hit: 즉시 표시
 *   · 트레이드오프: 첫 방문 시 헤더가 잠깐 글자 비어있을 수 있음 */
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('../fonts/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('../fonts/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/Pretendard-Bold.woff2') format('woff2');
}

/* Noto Serif KR — 일부 페이지(검사실자료/임직원 등)에서만 사용. lazy load. */
@font-face {
    font-family: 'Noto Serif KR';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('../fonts/NotoSerifKR-ExtraLight.woff2') format('woff2');
}

/* YeogiOttaeJalnanGothic — 메인 KV / 섹션 타이틀 */
@font-face {
    font-family: 'YeogiOttaeJalnanGothic';
    font-weight: normal;
    font-display: swap;
    src: url('../fonts/JalnanGothic.woff2') format('woff2');
}

/* NexonFootballGothic — 메인 달력 날짜 */
@font-face {
    font-family: 'NexonFootballGothic';
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/NEXON\ Football\ Gothic\ B.woff2') format('woff2');
}

/* Escoredream — 메인 달력 요일 */
@font-face {
    font-family: 'Escoredream';
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/SCDream6.woff2') format('woff2');
}
