/* 웹폰트.

   Noto Sans(가변 굵기 100~900)를 셀프호스팅한다. 파일은 Google Fonts가 배포하는 서브셋별
   woff2 8개를 서브셋 이름으로 바꿔 src/assets/fonts/noto-sans/ 에 넣은 것이다.
   라이선스: SIL Open Font License 1.1 — 셀프호스팅 · 재배포에 제약이 없다.

   이탤릭은 latin 서브셋 하나(latin-italic.woff2)만 둔다. 쓰는 곳이 사전예약 섹션의 <em>뿐이고
   en/es/pt 글자는 latin 범위로 끝나서다. body 의 font-synthesis: none(_common.scss) 때문에
   face 가 없으면 브라우저가 기울여 만들어 주지 않고 정자로 그린다 — 다른 서브셋에 이탤릭이
   필요해지면 같은 방식으로 파일을 더한다.

   서브셋마다 unicode-range 가 있어 브라우저는
   화면의 글자가 그 범위에 있을 때만 그 파일을 받는다 — en/es/pt 본문은 latin + latin-ext
   두 개로 끝나고 나머지 여섯은 요청조차 안 된다(공지 제목에 키릴 문자가 오면 그때 받는다).
   본문이 쓰는 둘(latin · latin-ext)은 document.js 가 <link rel="preload">로 싣는다.

   "Noto Sans Fallback"은 폰트가 오기 전 Arial을 Noto Sans 치수에 맞춰 보이는 폴백이다
   (size-adjust · ascent/descent-override 는 Noto Sans 지표에서 계산한 값이다). 글꼴이 바뀌는 순간
   줄 높이와 폭이 거의 그대로라 레이아웃이 흔들리지 않는다(CLS). font-display: swap 과 짝이다.

   _variables.scss 의 --font-base 가 --font-noto-sans 를 받는다. 이름을 바꾸면 SCSS도 같이 바꾼다.
   경로 /assets/fonts/… 는 build.mjs 가 src/assets/ 를 out/assets/ 로 복사한 결과다. */

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/cyrillic-ext.woff2) format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/devanagari.woff2) format("woff2");
    unicode-range:
        U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839,
        U+A8E0-A8FF, U+11B00-11B09;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/greek-ext.woff2) format("woff2");
    unicode-range: U+1F00-1FFF;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/greek.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/vietnamese.woff2) format("woff2");
    unicode-range:
        U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
        U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/latin-ext.woff2) format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/latin.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans";
    font-style: italic;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url(noto-sans/latin-italic.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans Fallback";
    src: local("Arial");
    ascent-override: 100.54%;
    descent-override: 27.56%;
    line-gap-override: 0%;
    size-adjust: 106.33%;
}

:root {
    --font-noto-sans: "Noto Sans", "Noto Sans Fallback";
}
