/*
Copyright (c) 2021 Kil Hyung-jin, with Reserved Font Name Pretendard.
https://github.com/orioncactus/pretendard

This Font Software is licensed under the SIL Open Font License, Version 1.1.
http://scripts.sil.org/OFL
*/

/* upstream `pretendard@1.3.9/dist/web/static/pretendard.css` 의 로컬 사본.
   원본과 다른 점은 둘뿐이고, 둘 다 의도한 것이다.

   1. **웨이트를 9종에서 4종으로 줄였다** — 실사용 실측(2026-08-08): font-medium 246 ·
      font-semibold 185 · font-bold 100 · font-normal 13 · font-extrabold 1.
      웨이트당 ~770KB 라 9종이면 7MB 다. 선언하지 않은 웨이트는 404 가 아니라 CSS 폰트
      매칭이 가장 가까운 것을 고른다(800 → 700). 새 웨이트를 쓰려면 woff2 를 받아
      여기 @font-face 를 추가한다 — 안 하면 조용히 인접 웨이트로 렌더된다.
   2. **woff 폴백을 뺐다** — woff2 는 Android WebView 5.0+ · Safari 10+ 이고 TWA 의
      minSdk 는 23(6.0)이라 폴백이 닿는 브라우저가 없다. 남기면 안 쓰는 4개 파일이 는다.

   ⚠ 자체 호스팅의 목적은 **오리진 축소**다 — 외부 CDN 이면 sw.js 가
   `url.origin !== self.location.origin` 에서 캐시를 포기해 앱을 켤 때마다 다시 받는다.
   여기로 옮기면 서비스워커 stale-while-revalidate 가 잡아 두 번째 실행부터 네트워크가 0 이다.
   URL 을 CDN 으로 되돌리면 그 캐시가 통째로 사라진다. */

@font-face {
	font-family: 'Pretendard';
	font-weight: 700;
	font-display: swap;
	src: local('Pretendard Bold'), url(./pretendard/Pretendard-Bold.woff2) format('woff2');
}

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

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

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