/*
 * Home page type system — "Option 1". Loaded by `index.html` only, after the shared
 * stylesheets and before `css/home-renewal.css`. No other page links this file, so the
 * other eleven pages keep the Noto Sans stack declared in `css/base.css`.
 *
 *   MaruBuri  (--home-font-display) — editorial headings and Scripture
 *   Pretendard (--home-font-ui)     — navigation, body, buttons, metadata, UI chrome
 *
 * Both faces are fetched from their publishers' CDNs. Pretendard ships a dynamic subset
 * (hundreds of small unicode-range slices, so a Korean page downloads only the glyphs it
 * uses), which is why it arrives through @import rather than a hand-written @font-face —
 * the subset list is generated and must not be forked here. MaruBuri is published as one
 * family name per weight ("MaruBuriBold"…), which cannot be driven by `font-weight`, so
 * the four weights are re-declared below under a single `MaruBuri` family.
 *
 * The @import costs one extra round trip on the home page. That is the price of keeping
 * the whole type system inside a single home-page-only file; every stack below degrades
 * to an installed Korean face if either CDN is unreachable.
 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

@font-face {
  font-family: 'MaruBuri';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Light.woff2") format('woff2');
}

@font-face {
  font-family: 'MaruBuri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff2") format('woff2');
}

@font-face {
  font-family: 'MaruBuri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-SemiBold.woff2") format('woff2');
}

@font-face {
  font-family: 'MaruBuri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff2") format('woff2');
}

/*
 * The two stacks. Everything on the home page reads one of these two custom properties
 * and nothing hard-codes a family, so the system can be re-pointed from here alone.
 */
.home-page {
  --home-font-display: 'MaruBuri', 'Nanum Myeongjo', 'Noto Serif KR', 'Apple SD Gothic Neo', Batang, Georgia, serif;
  --home-font-ui: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
