/* 2026-09-24 캡틴: 일본어 Noto Sans JP, 중국어 Noto Sans SC 확정. 이름만 적어 두면 설치 안 된 윈도에서 시스템 글꼴로 떨어진다. 웹글꼴로 불러온다.
   글자 영역별로 쪼갠 파일이라 한국어 화면에서는 한자가 나올 때만 받는다. @import 는 파일 맨 앞이어야 한다. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");
/*
 * fontLang.css — 언어별 폰트 스택 CSS 변수 정본 (2026-08-16)
 *
 * 배경: 화면들이 한글 스택("Apple SD Gothic Neo", "Malgun Gothic")을 fontFamily로
 * 하드코딩해, Windows에서 일본어 한자가 한국식 자형(맑은 고딕)으로 렌더되던 문제의 근본 수선.
 * html[lang]은 packages/i18n/langResolver가 언어 전환 시 갱신하므로 var()가 자동 추종한다.
 *
 * 사용: fontFamily에 'var(--bp-font-sans)' / 'var(--bp-font-mono)'. 스택 문자열 하드코딩 금지.
 * 값은 result/renewal/bp-design.css의 html[lang] 분기와 동기 유지(그 파일은 자체 정의 병존).
 * 2026-07-27 캡틴 규칙: generic serif 자동 폴백 차단 — 구체 폰트 이름 명시.
 */
/* 2026-09-22 캡틴 결정: 랜딩부터 앱까지 기본 글꼴은 SUIT 다(OFL, /public/fonts). 일본어·중국어는 아래 언어별 스택 그대로다. */
@font-face {
    font-family: "SUIT Variable";
    src: url("/fonts/SUIT-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
}
/* 2026-10-13 캡틴: 한국어도 SUIT 로 되돌린다. 나눔바른고딕(09-24)은 윈도 크롬에서 글자 간격이 들쭉날쭉하고(09-28) 가는 판의 획이 중간중간 안 보였다(10-05). */
/* 2026-09-24 캡틴: 영어(라틴 글자·숫자·기본 문장부호)는 어느 언어 화면에서든 SUIT. 각 언어 글자는 그 언어 글꼴.
   SUIT 에는 한글도 있어서, 영어 범위만 떼어 "BP Latin" 이라는 이름으로 따로 선언한다. 일본어·중국어 화면에서 영어만 SUIT 로 나온다. */
@font-face { font-family: "BP Latin"; src: url("/fonts/SUIT-Variable.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
:root {
    --bp-font-sans: "SUIT Variable", "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    --bp-font-mono: "JetBrains Mono", "Apple SD Gothic Neo", "Malgun Gothic", monospace;
    /* 앱 전용 기본 글꼴. 한국어·영어는 SUIT, 일본어·중국어는 각 언어 --bp-font-sans(SUIT 다음 Noto). tokens.ts font.area 가 이것을 읽는다. */
}

html[lang="en"] {
    --bp-font-sans: "SUIT Variable", "SUIT", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

html[lang="jp"] {
    --bp-font-sans: "BP Latin", "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
    --bp-font-mono: "JetBrains Mono", "Yu Gothic UI", "Meiryo", monospace;
}

html[lang="cn"] {
    --bp-font-sans: "BP Latin", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    --bp-font-mono: "JetBrains Mono", "Microsoft YaHei", "PingFang SC", monospace;
}
