/* Pretendard 자체 호스팅 — SIL Open Font License 1.1 (public/fonts/OFL.txt 동봉).
   CDN을 쓰지 않는다: NAS 온프레미스 원칙(직원 PII를 다루는 앱이 외부 호스트에 요청을 흘리지 않는다)
   + 외부 의존 제거(인터넷이 끊겨도 사내망에서 같은 화면이 나와야 한다).

   지정만 하고 로드하지 않으면 기기마다 다른 폰트로 렌더된다 — 특히 v3의 weight 900
   히어로 타이포는 폴백 폰트가 흉내 낸 900이라 의도한 형태가 아니었다.
   증명서·급여명세서(인쇄물)도 같은 이유로 이 스택을 공유한다. */

/* 가변폰트 1개로 45~920 전 굵기를 덮는다(2.0MB). */
@supports (font-variation-settings: normal) {
  @font-face {
    font-family: 'Pretendard';
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  }
}

/* 가변 미지원 브라우저용 정적 굵기. @supports 블록 밖이라 위 선언과 같은 패밀리 이름을 쓰면
   양쪽이 겹쳐 둘 다 받게 된다 → 별도 이름 없이, 미지원일 때만 적용되도록 not 조건으로 가른다. */
@supports not (font-variation-settings: normal) {
  /* 200·300·500은 Figma 원본이 실제로 쓰는 굵기다(꼬리말 태그라인 = ExtraLight 200).
     빠지면 가변 미지원 브라우저에서 조용히 400으로 폴백해 화면마다 다른 굵기가 된다. */
  @font-face { font-family:'Pretendard'; font-weight:200; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-ExtraLight.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:300; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-Light.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:400; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-Regular.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:500; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-Medium.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:600; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-SemiBold.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:700; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-Bold.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:800; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-ExtraBold.woff2') format('woff2'); }
  @font-face { font-family:'Pretendard'; font-weight:900; font-style:normal; font-display:swap;
    src:url('/fonts/Pretendard-Black.woff2') format('woff2'); }
}
