/* Noto Sans KR - Self-hosted Korean Font Subset
 * Source: Google Fonts (https://fonts.google.com/specimen/Noto+Sans+KR)
 * License: SIL Open Font License 1.1
 * 
 * This file contains @font-face declarations for Noto Sans KR.
 * This is a subset containing only the Korean characters used on zenomm.com/ko-KR/
 * plus basic Latin characters for mixed content.
 *
 * font-display: swap - RELIABILITY over LCP for non-Latin scripts. A slow network
 * must never leave the web font permanently unloaded, which on an OS lacking a
 * Korean system font would render permanent tofu. (Inter / Latin / Cyrillic stay
 * font-display: optional, where system fonts always cover the glyphs.)
 */

/* ==========================================================================
   Noto Sans KR - Korean Subset (Variable Weight 100-900)
   ========================================================================== */
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-kr-subset-v2.woff2?v=87338dd243ff') format('woff2');
    /* Unicode ranges for Korean Hangul syllables used on this site */
    unicode-range: U+AC00-D7A3, U+0020-007F, U+2000-206F, U+2190-21FF, U+2600-26FF, U+2700-27BF;
}

/* ==========================================================================
   Font Stack for Korean Pages
   ========================================================================== */
/*
 * Usage in Korean pages:
 * font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
 * 
 * Or use the CSS custom property:
 * font-family: var(--font-korean);
 */
:root {
    --font-korean: 'Noto Sans KR', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Applied on the Korean homepage only
   ========================================================================== */
/* Inter stays first for Latin text (the approved design) and this face paints the
 * script. Without this rule the subset was preloaded but never used: no font stack
 * named it, so system fonts painted the text. Scoped to the page language, so no other
 * page downloads this subset; native names of other languages ([lang] spans) keep the
 * shared Inter + system stack from custom-styles-v2.css. */
html:lang(ko), html:lang(ko) :lang(ko) {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
