/*
Copyright (c) 2021 Kil Hyung-jin, with Reserved Font Name Pretendard.
https://github.com/orioncactus/pretendard
SIL Open Font License, Version 1.1 — http://scripts.sil.org/OFL

패밀리명 font-H / font-B / font-R 은 리빌더 규약이다.
모듈·섹션 설정의 md_title_font, sub_weight 같은 값이 이 이름을 그대로 쓰므로
바꾸면 관리자에서 고른 굵기가 먹지 않는다.

local() 을 먼저 둔다. Pretendard 가 설치된 사용자는 내려받지 않는다.
font-display: swap — 폰트를 기다리느라 본문이 안 보이는 구간을 없앤다.
*/

@font-face {
  font-family: 'font-H';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Black'),
       url(./woff2/Pretendard-Black.woff2) format('woff2');
}

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

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

/* 본문 기본 패밀리. 굵기는 font-weight 로 고르고, 위 3종은 리빌더 설정이
   클래스로 지정할 때만 쓴다. */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Regular'),
       url(./woff2/Pretendard-Regular.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Bold'),
       url(./woff2/Pretendard-Bold.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Black'),
       url(./woff2/Pretendard-Black.woff2) format('woff2');
}

.font-H { font-family: 'font-H', Pretendard, sans-serif; font-weight: 900; }
.font-B { font-family: 'font-B', Pretendard, sans-serif; font-weight: 700; }
.font-R { font-family: 'font-R', Pretendard, sans-serif; font-weight: 400; }
