/*
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.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
*/

/*
  local() 제거 이유:
  Safari(macOS/iOS)에서 local()로 시스템 폰트를 탐색할 때
  Pretendard가 미설치된 환경에서 font-display: swap과 맞물려
  Apple SD Gothic Neo 등 시스템 한글 폰트가 일시 표시되는 FOUT 발생.
  local() 없이 woff2를 직접 참조하면 항상 일관된 폰트가 보장됨.

  font-display: block 사용 이유:
  swap은 로드 전 fallback 폰트를 즉시 표시(FOUT)하지만,
  block은 짧은 차단 후 폰트 로드 완료 시 표시 → Safari FOUT 방지.
*/

@font-face {
  font-family: "Pretendard";
  font-weight: 900;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-Black.woff2") format("woff2"),
       url("./fonts/Pretendard-Black.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 800;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-ExtraBold.woff2") format("woff2"),
       url("./fonts/Pretendard-ExtraBold.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-Bold.woff2") format("woff2"),
       url("./fonts/Pretendard-Bold.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-SemiBold.woff2") format("woff2"),
       url("./fonts/Pretendard-SemiBold.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 500;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-Medium.woff2") format("woff2"),
       url("./fonts/Pretendard-Medium.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-Regular.woff2") format("woff2"),
       url("./fonts/Pretendard-Regular.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 300;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-Light.woff2") format("woff2"),
       url("./fonts/Pretendard-Light.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 200;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-ExtraLight.woff2") format("woff2"),
       url("./fonts/Pretendard-ExtraLight.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 100;
  font-style: normal;
  font-display: block;
  src: url("./fonts/Pretendard-Thin.woff2") format("woff2"),
       url("./fonts/Pretendard-Thin.woff") format("woff");
}
