/* ============================================================
   영어 모드(html[lang="en"]) 본문 서체 — EB Garamond
   - 16세기 Claude Garamont 활자를 복각한 올드스타일 세리프. 헤딩(Big Caslon),
     강조(Adobe Garamond Pro italic)와 같은 계열이라 클래식 톤이 일관됨.
   - 라이선스: SIL Open Font License 1.1 (자체 호스팅·웹 임베딩 자유) → ../font/OFL-EBGaramond.txt
   - 원본: Google Fonts "EB Garamond" v33 가변 폰트(wght 400–800), latin + latin-ext 서브셋
   - 폰트 파일은 html[lang="en"]에서 실제로 글자가 그려질 때만 다운로드된다.
   ============================================================ */

/* 정체 — 기본 라틴 */
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../font/EBGaramond-Variable-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;
}
/* 정체 — 라틴 확장 (Dvořák, Saint-Saëns 등 유럽 인명·작곡가명) */
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../font/EBGaramond-Variable-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: 'EB Garamond';
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url('../font/EBGaramond-VariableItalic-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: 'EB Garamond';
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url('../font/EBGaramond-VariableItalic-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;
}

/* 본문·폼·표 기본 서체 (common.css의 nanumSquareNeo 선언을 영어 모드에서만 덮어씀) */
html[lang="en"] body,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select,
html[lang="en"] table,
html[lang="en"] button {
	font-family: 'EB Garamond', Garamond, 'Palatino Linotype', Georgia, 'Times New Roman', serif;
}

/* 한글 본문용 경기천년바탕(.gyeonggi)을 영어 모드에서는 EB Garamond로 교체.
   rotate(0.03deg)는 한글 폰트 안티앨리어싱용 트릭이라 라틴 글자에선 오히려 흐려져 해제. */
html[lang="en"] .gyeonggi {
	font-family: 'EB Garamond', Garamond, 'Palatino Linotype', Georgia, 'Times New Roman', serif;
	transform: none;
}

/* Garamond 계열은 x-height가 낮아 12–13px에서 판독성이 떨어짐 → 푸터 소형 텍스트만 1px 보정 */
html[lang="en"] .footer-biz span { font-size: 13px; }
html[lang="en"] .footer-policy a { font-size: 14px; }

/* ------------------------------------------------------------
   한국어 모드 본문(#container 안)만: 영문·숫자·기호를 영어 모드와 같은 EB Garamond로 통일.
   EB Garamond @font-face가 라틴 unicode-range로만 정의돼 있어 스택 맨 앞에 두면
   라틴 문자만 EB Garamond로 찍히고 한글은 뒤의 나눔스퀘어네오/경기천년바탕으로 떨어진다.
   헤더·GNB·푸터·폼 컨트롤·버튼은 대상 아님(본문만 요청, 2026-09-21).
   ------------------------------------------------------------ */
html[lang="ko"] #container {
	font-family: 'EB Garamond', 'nanumSquareNeo', 'malgun gothic', dotum, sans-serif;
}
html[lang="ko"] #container .gyeonggi {
	font-family: 'EB Garamond', 'GyeonggiBatang', serif;
}
