@charset "UTF-8";
/* =====================================================================
   base.css — 폰트 정본 (모든 화면에서 제일 먼저 로드)

   Pretendard (SIL Open Font License 1.1 · 상업적 사용·번들 자유)
   https://github.com/orioncactus/pretendard

   ★2단 구성인 이유
     Std  285KB — KS X 1001 상용 2,350자. 실제 업무 텍스트의 거의 전부를 덮는다.
     Full 2.0MB — 희귀 한글·한자. **화면에 그런 글자가 나올 때만** 브라우저가 받는다.
     (글꼴 매칭은 글자 단위라, Std 에 없는 글자에서만 다음 폰트로 넘어간다)
     → 평소엔 285KB 만 받고, 희귀 거래처명 같은 게 나오면 그때 보강된다.

   자체 호스팅이다 — CSP 가 외부 CDN 을 막고 있고, 막는 게 맞다.
   ===================================================================== */

@font-face{
	font-family:'Pretendard';
	/* ★format 은 'woff2' 로 둔다 — 'woff2-variations' 는 폐기된 표기라 브라우저에 따라 통째로 무시된다 */
	src:url('/fonts/PretendardStdVariable.woff2') format('woff2');
	font-weight:45 920;              /* 가변 폰트 — 이 범위 안 모든 굵기를 이 파일 하나가 낸다 */
	font-style:normal;
	font-display:swap;               /* 받는 동안 대체글꼴로 먼저 보여준다(빈 화면 방지) */
}
@font-face{
	font-family:'PretendardFull';
	src:url('/fonts/PretendardVariable.woff2') format('woff2');
	font-weight:45 920;
	font-style:normal;
	font-display:swap;
	/* ★unicode-range 를 지정하지 않는다 — Std 에 없는 글자에서만 자동으로 여기로 넘어온다 */
}

/* ── 전역 글꼴 스택 ──────────────────────────────────────────
   Pretendard(Std) → PretendardFull(희귀자) → 시스템 한글 → sans-serif */
:root{
	--font-sans: 'Pretendard','PretendardFull','Apple SD Gothic Neo',
	             'Malgun Gothic','맑은 고딕',system-ui,sans-serif;
	--font-mono: 'D2Coding',Consolas,'Courier New',monospace;
}

html, body{ font-family:var(--font-sans); }

/* 폼 요소는 글꼴을 상속하지 않는다 — 명시적으로 물려준다 */
input, select, textarea, button, optgroup{ font-family:inherit; }

/* 숫자는 자릿수가 흔들리지 않게 — 그리드·금액에서 눈으로 비교 가능해진다 */
body{ font-variant-numeric:tabular-nums; }

/* 한글은 단어 중간에서 끊기지 않게 */
body{ word-break:keep-all; }
