/* Brand-colour traps (USING.md, checked 2026-10-03 against #6B5B4A):
   (1) OKLCH L 0.55-0.65 dead zone -> L=0.482, clear. White on brand = 6.52:1.
   (2) Hue 60-90 band -> H=69, nominally a hit. renewal.md's actual mechanism is
       "keeping white text caps chroma at C 0.116-0.136, so the brand looks washed out".
       We are at C=0.033 on purpose: a muted near-neutral brown is the intent here,
       not a defect. Filled primary button stands. Do not re-litigate.
   (3) --line as a control border is 1.29:1 -> use --line-strong. Enforced in base.css. */
/* tokens.css — copied from ~/ui-library/foundation/tokens.css (2026-10-03).
   Per USING.md only the brand 4 + --font were changed; everything else is untouched.
   Per-page brand overrides live in sales.css / author.css. */
:root {
  /* ink */
  --ink: #12141A;        /* screen body text (print/logo: #0A0A0A) */
  --ink-2: #454C5C;      /* secondary text */
  --ink-3: #8A90A0;      /* disabled / decorative only — 3.19:1, never body or helper text */
  /* brand */
  --brand: #6B5B4A;      /* A: sagak warm neutral */
  --brand-hover: #56483A;/* one step darker — hover only */
  --brand-soft: #F6F3EE; /* accent background */
  --on-brand: #FFFFFF;   /* text on a --brand fill (6.21:1) */
  --brand-on-dark: #C9B49A;  /* 6.41:1 on --band */
  --band: #3D2F27;           /* sagak's logo + CTA colour (sagakhada-sagak.com).
                                full-bleed dark section — one per page. 12.85:1 with white */
  --on-band: #E8E2DA;        /* body text on --band — 9.99:1 */
  --on-band-2: #CFC7BC;      /* caption on --band — 7.68:1 */
  --band-line: #8A8178;      /* control border on --band — 3.36:1, passes WCAG 1.4.11 */
  --band-hover: #4A3B32;     /* white 10.70:1 */
  /* surfaces */
  --bg: #FFFFFF;
  --bg-2: #F6F7FA;
  --line: #DFE3EB;      /* 장식 구분선 — 흰 배경 1.29:1. WCAG 1.4.11 면제 대상(비정보성)에만 */
  --line-strong: #767E8C; /* 컨트롤 경계(입력칸·체크박스 등) — 흰 배경 4.09:1 · --bg-2 위 3.82:1 (실측). WCAG 1.4.11(3:1) 통과 */
  /* status — finalized 2026-08-20 in components.md. Old values (#1F9D55 / #D97706 / #D14343)
     failed the 4.5:1 body-text rule on white (3.49 / 3.19 / 4.57). These pass on --bg and --bg-2. */
  --ok: #147A40;        /* 5.40:1 on white */
  --warn: #A65A07;      /* 5.14:1 */
  --bad: #C0392B;       /* 5.44:1 */
  --ok-soft: #E9F4EE;   /* badge fill — 4.79:1 with --ok */
  --warn-soft: #FCF2E3; /* 4.64:1 with --warn */
  --bad-soft: #FCEBE9;  /* 4.71:1 with --bad */
  /* spacing — multiples of 4 only */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;   /* 섹션 리듬 (layout.md 1장) */
  --sp-section: clamp(48px, 8vw, 96px);          /* 유동 토큰은 이것 하나만 */
  /* radius / shadow */
  --r-1: 6px; --r-2: 10px; --r-3: 16px;
  --shadow-1: 0 1px 2px rgba(18,20,26,.06);
  --shadow-2: 0 6px 20px rgba(18,20,26,.08);
  /* type — 3-tier (2026-08-21): display Paperlogy(round-geometric, OFL) · body Pretendard · latin/number point Instrument Serif italic */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "MaruBuri", "Pretendard Variable", Pretendard, serif; /* A: display/section titles — 700 only */
  --font-point: "Nanum Brush Script", cursive;       /* A: signature/pull-quote. 1-2 places per page, never body */
  --w-display: 600;  /* MaruBuri: 부리 survives at 600, flattens at 700 */ --w-body: 400; --w-body-print: 300; --w-num: 700;
  --fs-h1: 32px; --fs-h2: 24px; --fs-h3: 18px; --fs-body: 15px; --fs-small: 13px;
  --fs-display: clamp(34px, 6vw, 52px); /* section display (added 2026-08-20) */
  --fs-num-lg: clamp(26px, 4vw, 40px);  /* large stat numbers (added 2026-08-20) */
  /* big-type-motion tone (adopted 2026-08-21 — 시안 3) */
  --fs-hero: clamp(56px, 12vw, 160px);      /* full-bleed hero lines */
  --fs-num-hero: clamp(64px, 14vw, 200px);  /* one-number-per-screen figures */
  /* motion — 역할별 (motion.md 1장, 2026-08-26). 단일 임계값을 쓰지 않는다 */
  --dur-press: .07s;   /* 눌림 */
  --dur-ui: .15s;      /* hover/focus · 색 · 그림자 — 다섯 시스템 공통 기본값 150ms */
  --dur-in: .2s;       /* 진입 */
  --dur-out: .14s;     /* 퇴장 = 진입 × 0.7 */
  --dur-panel: .26s;   /* 바텀시트·드로어 */
  --dur-panel-out: .18s;
  --dur-page: .4s;     /* 라우트 전환 */
  --dur-enter: .6s;    /* reveal/stagger enter (once per element)
                          ※ NN/g 권장 상한이 500ms 다 — .5s 로 내리는 안이 열려 있다(motion.md 1장) */
  --dur-count: 1.1s;   /* number count-up — 정보성 예외 */
  --stagger: .04s;     /* 리스트 등장 간격 — 총합 500ms 상한(= 13개까지) */
  --stagger-row: .02s; /* 표 행 */
  /* easing — 셋이면 끝난다. 바운스·오버슈트는 쓰지 않는다 */
  --ease-out: cubic-bezier(0, 0, .38, .9);      /* 진입 */
  --ease-in: cubic-bezier(.35, 0, 1, 1);        /* 퇴장 */
  --ease-inout: cubic-bezier(.4, .14, .3, 1);   /* 화면에 남아서 이동 */
  --lh-tight: 1.2; --lh-body: 1.65;   /* 한글 본문 — WCAG 1.4.12 하한 1.5 (type.md 4장) */
  --lh-display: 1.25;                 /* 32px↑ */
  --lh-title: 1.3;                    /* 20~30px */
  --ls-body: 0;                       /* 본문 자간은 건드리지 않는다 */
  --ls-title: -.015em;                /* 24px↑ 에서만 */
  --ls-display: -.025em;              /* 40px↑ */
  /* 폭 — 한국어는 ch 가 아니라 em 으로 잠근다 (WCAG 1.4.8: CJK 40자) */
  --w-prose-ko: 36em;
  --w-content: 1200px;
  /* 다국어 행간 (gftax) */
  --lh-thai: 1.85;    /* 태국·크메르·라오·버마 */
  --lh-indic: 1.8;    /* 데바나가리·벵골·타밀·텔루구·싱할라 */
  --lh-latin: 1.5;
}
.num { font-variant-numeric: tabular-nums; font-weight: var(--w-num); }
