/* JennySans 홈페이지 — 타입 스페시먼 (font-site 소유). 외부 리소스 0, 글꼴은 JennySans 만. */

:root {
  --bg: #fafaf8;
  --bg-2: #f1f1ee;
  --bg-3: #e9e9e5;
  --fg: #161616;
  --fg-2: #5d5d5a;
  --fg-3: #8a8a86;
  --line: #e2e2dd;
  --line-2: #c9c9c3;
  --accent: #161616;
  --accent-fg: #fafaf8;
  --link: #2451c6;
  --focus: #2451c6;
  --ok: #1d7a46;
  --cond: #8a6100;
  --no: #b3261e;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-2: #171716;
  --bg-3: #222221;
  --fg: #ededea;
  --fg-2: #a3a39f;
  --fg-3: #75756f;
  --line: #262625;
  --line-2: #3d3d3b;
  --accent: #ededea;
  --accent-fg: #0e0e0e;
  --link: #8fb0ff;
  --focus: #8fb0ff;
  --ok: #5fcf8a;
  --cond: #e0b64c;
  --no: #ff8a80;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e;
    --bg-2: #171716;
    --bg-3: #222221;
    --fg: #ededea;
    --fg-2: #a3a39f;
    --fg-3: #75756f;
    --line: #262625;
    --line-2: #3d3d3b;
    --accent: #ededea;
    --accent-fg: #0e0e0e;
    --link: #8fb0ff;
    --focus: #8fb0ff;
    --ok: #5fcf8a;
    --cond: #e0b64c;
    --no: #ff8a80;
    color-scheme: dark;
  }
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "JennySans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd {
  font-family: ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}
code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
pre { position: relative; margin: 12px 0 0; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.55; font-size: 13.5px; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
pre + h3, pre + p, pre + pre { margin-top: 20px; }
b, strong { font-weight: 700; }
small { font-size: 0.8em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.note { color: var(--fg-2); font-size: 14px; line-height: 1.7; margin: 20px 0 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  font: inherit; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--bg-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); opacity: .9; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-meta { font-weight: 400; opacity: .75; font-size: 0.9em; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-2); }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: inline; }
}
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.copy-btn {
  font: inherit; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg-2); cursor: pointer;
}
.copy-btn:hover { color: var(--fg); background: var(--bg-2); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }
pre .copy-btn { position: absolute; top: 8px; right: 8px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { font-weight: 700; font-size: 17px; color: var(--fg); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-ko { font-weight: 400; color: var(--fg-2); margin-left: 4px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--fg-2); font-size: 14px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover { color: var(--fg); background: var(--bg-2); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.section-desc { margin: 0; color: var(--fg-2); font-size: 17px; }
.sub-h { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 48px 0 12px; }
.panel-h { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.panel-h:first-child { margin-top: 0; }

/* ---------- 히어로 ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.hero-title { margin: 0 0 28px; line-height: 0.95; letter-spacing: -0.04em; }
.hero-ko { display: block; font-size: clamp(64px, 15vw, 184px); font-weight: 800; }
.hero-en { display: block; font-size: clamp(44px, 9.5vw, 120px); font-weight: 300; letter-spacing: -0.03em; margin-top: 0.04em; color: var(--fg-2); }
.hero-lead { max-width: 720px; margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-samples { margin: clamp(48px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.sample { margin: 0; font-size: clamp(30px, 5.6vw, 72px); line-height: 1.2; letter-spacing: -0.02em; }
.sample + .sample { margin-top: 0.15em; }
.sample-ko { font-weight: 500; }
.sample-es { font-weight: 300; }
.sample-en { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: clamp(40px, 6vw, 72px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats dt { font-size: 13px; color: var(--fg-3); order: 2; }
.stats dd { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats dd small { display: block; font-size: 13px; font-weight: 400; color: var(--fg-2); letter-spacing: 0; margin-top: 6px; }

/* ---------- 타입 테스터 ---------- */
.tester { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.tester-controls {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px;
  padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.control label, .control-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-2); margin-bottom: 6px; }
.control output { font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 500; }
.control input[type="range"] { width: 100%; accent-color: var(--fg); margin: 0; }
.control-row { display: flex; flex-direction: column; }
.control-presets { grid-column: span 2; }
.segmented { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.segmented button {
  font: inherit; font-size: 13px; padding: 6px 14px; border: 0; background: transparent; color: var(--fg-2); cursor: pointer;
}
.segmented button + button { border-left: 1px solid var(--line-2); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg-2); cursor: pointer;
}
.chips button:hover { color: var(--fg); }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.tester-text {
  font-family: "JennySans VF", "JennySans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-weight: var(--tw, 400);
  font-size: var(--ts, 56px);
  line-height: var(--tl, 1.35);
  text-align: var(--ta, left);
  letter-spacing: -0.015em;
  min-height: 220px; padding: clamp(24px, 4vw, 48px);
  outline: none; white-space: pre-wrap; overflow-wrap: anywhere; caret-color: var(--fg);
}
.tester-text:focus { box-shadow: inset 0 0 0 2px var(--focus); }
.tester-foot { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }

/* ---------- 웨이트 ---------- */
.weight-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.weight-row { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.weight-label { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.weight-label b { font-size: 14px; font-weight: 500; color: var(--fg); }
.weight-sample { margin: 0; font-weight: var(--w); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lh-col { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px 8px; background: var(--bg-2); }
.lh-tag { display: block; font-size: 12px; color: var(--fg-3); font-weight: 400; margin-bottom: 8px; }
.lh-col p { margin: 0; font-weight: var(--w); font-size: 20px; line-height: 1.5; background-image: linear-gradient(var(--line-2) 1px, transparent 1px); background-size: 100% 1.5em; background-position: 0 1.2em; }

/* ---------- 문자 범위 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12.5px; font-weight: 500; color: var(--fg-3); background: var(--bg-2); letter-spacing: 0.02em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; width: 120px; }
.charset-table td.num { white-space: nowrap; font-weight: 500; }
.charset-table td.num small { display: block; font-weight: 400; color: var(--fg-3); white-space: normal; max-width: 160px; }
.glyph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 28px; }
.glyph-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; background: var(--bg); }
.glyph-card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.glyphs { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.7; letter-spacing: 0.06em; word-break: break-all; }

/* ---------- 다운로드 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; background: var(--bg); }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dl-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.dl-tag { font-size: 12px; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dl-desc { margin: 0 0 12px; color: var(--fg-2); font-size: 14px; }
.dl-contents { margin: 0 0 18px; padding: 0 0 0 18px; font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }
.dl-btn { margin-top: auto; justify-content: center; }
.dl-meta { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; font-size: 12.5px; color: var(--fg-3); }
.dl-meta code { align-self: flex-start; font-size: 12px; }
.dl-sha { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12px; color: var(--fg-3); }
.dl-sha code { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dl-foot { margin-top: 24px; color: var(--fg-2); font-size: 14px; line-height: 1.7; }
.dl-foot p { margin: 4px 0; }

/* ---------- 탭 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; margin-bottom: 28px; }
.tabs [role="tab"] {
  font: inherit; font-size: 15px; font-weight: 500; padding: 12px 16px; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; background: none; color: var(--fg-2); cursor: pointer; white-space: nowrap;
}
.tabs [role="tab"]:hover { color: var(--fg); }
.tabs [role="tab"][aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.panel { max-width: 900px; }
.panel > p { margin: 0 0 8px; }
.steps { margin: 0; padding-left: 22px; line-height: 1.75; }
.steps li + li { margin-top: 8px; }

/* ---------- 원본과 무엇이 다른가 ---------- */
.diff-table th[scope="row"] { width: 240px; font-weight: 600; }
.diff-note { display: block; font-weight: 400; font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.diff-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 숫자 열은 머리글도 오른쪽 정렬·고정 폭 — 제목과 값이 같은 세로선에 맞도록 */
.diff-table thead th:not(:first-child) { text-align: right; white-space: nowrap; width: 150px; }
.diff-table tfoot th, .diff-table tfoot td { border-top: 2px solid var(--line-2); border-bottom: 0; font-weight: 600; }
.diff-table tfoot td:last-child { text-align: right; font-weight: 400; color: var(--fg-2); white-space: normal; }
.diff-up { color: var(--ok); font-weight: 600; }
.diff-down { color: var(--fg-3); }
.origin-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 28px; align-items: start; }
.origin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--bg); }
.origin-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.origin-card .note { margin-top: 12px; }
.origin-glyphs { margin: 0; font-size: clamp(48px, 7vw, 84px); line-height: 1.25; letter-spacing: 0.12em; text-align: center; }
.origin-list { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.7; }
.origin-list li + li { margin-top: 10px; }
.origin-legal { margin-top: 28px; border: 1px solid var(--line-2); border-left-width: 3px; border-radius: var(--radius); padding: 22px 24px; background: var(--bg-2); }
.origin-legal h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.origin-legal p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; }
.origin-legal-list { margin: 0 0 12px; padding-left: 20px; font-size: 15px; line-height: 1.7; }
.origin-legal-list li + li { margin-top: 6px; }
.origin-legal .note { margin: 0; }

/* ---------- 라이선스 ---------- */
.lic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lic-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; border-top-width: 3px; }
.lic-ok { border-top-color: var(--ok); }
.lic-cond { border-top-color: var(--cond); }
.lic-no { border-top-color: var(--no); }
.lic-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.lic-ok h3 { color: var(--ok); } .lic-cond h3 { color: var(--cond); } .lic-no h3 { color: var(--no); }
.lic-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.7; }
.lic-card li + li { margin-top: 6px; }
.credit-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--fg-2); font-size: 14px; }
.en-summary { max-width: 900px; margin: 0 0 32px; line-height: 1.7; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-row p { margin: 0; }
.footer-note { margin: 12px 0 0; font-size: 12.5px; color: var(--fg-3); }
#font-status { font-variant-numeric: tabular-nums; }

/* ---------- 글자맵 안내(문자 범위 섹션 하단) ---------- */
.glyphmap-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.block-summary { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.block-summary li { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--fg-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.block-summary li b { font-weight: 500; color: var(--fg); }
.block-summary li span { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--fg-3); }
.glyphmap-cta p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; }
.glyphmap-cta .note { margin: 0; }

/* ---------- 문장 견본 (index) ---------- */
.specimen-controls { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-bottom: 24px; }
.specimen-controls .control-label { margin: 0 8px 0 0; }
.specimen { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); background: var(--bg); }
.specimen + .specimen { margin-top: 16px; }
.specimen h3 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.specimen p, .specimen li { font-size: var(--sp-size, 16px); line-height: var(--sp-lh, 1.7); margin: 0 0 1em; }
.specimen p:last-child { margin-bottom: 0; }
.specimen-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.specimen-lead { font-weight: 600; }
.specimen-table { font-variant-numeric: tabular-nums; }
.specimen-table td:not(:first-child), .specimen-table th:not(:first-child) { text-align: right; }
.ui-demo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.ui-demo .tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); }
.ui-demo .field { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--fg-3); min-width: 180px; }

/* ---------- 지원 언어 (index) ---------- */
.lang-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lang-stats div { display: flex; flex-direction: column; gap: 4px; }
.lang-stats dt { order: 2; font-size: 13px; color: var(--fg-3); }
.lang-stats dd { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lang-stats dd small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--fg-2); }
.lang-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.lang-cols h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.lang-table th[scope="row"] { width: 190px; font-weight: 600; }
.lang-native { display: block; font-weight: 400; font-size: 13px; color: var(--fg-3); }
.lang-sample { font-size: 16px; line-height: 1.5; }
.lang-note { margin-top: 20px; }

/* ---------- 글자맵 (glyphs.html) ---------- */
.glyph-page { padding: clamp(28px, 4vw, 56px) 0 96px; }
.glyph-head h1 { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; }
.glyph-head .section-desc { max-width: 760px; }
.glyph-controls {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px;
  margin: 28px 0 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  position: sticky; top: var(--header-h); z-index: 20;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.control-hint { color: var(--fg-3); font-weight: 400; }
.control-search input {
  width: 100%; font: inherit; font-size: 14px; padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg);
}
.glyph-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.glyph-blocks { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 110px); max-height: calc(100vh - var(--header-h) - 140px); overflow-y: auto; }
.glyph-blocks button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font: inherit; font-size: 14px; text-align: left; padding: 8px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--fg-2); cursor: pointer;
}
.glyph-blocks button:hover { background: var(--bg-2); color: var(--fg); }
.glyph-blocks button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.glyph-blocks .gb-count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.glyph-bodyhead { margin-bottom: 16px; }
.glyph-bodyhead h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.glyph-bodyhead .note { margin: 0 0 12px; }
.glyph-bodyhead .chips { max-height: 96px; overflow-y: auto; }
.glyph-grid-cells {
  --gs: 40px; --gw: 400;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--gs) + 34px), 1fr));
  gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--bg);
}
.glyph-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 1 / 1; min-height: calc(var(--gs) + 34px);
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  color: var(--fg); padding: 4px 2px;
}
.glyph-cell:hover { background: var(--bg-2); border-color: var(--line); }
.glyph-cell[aria-selected="true"] { border-color: var(--fg); background: var(--bg-2); }
.glyph-cell-char {
  font-family: "JennySans VF", "JennySans", sans-serif;
  font-weight: var(--gw); font-size: var(--gs); line-height: 1.15;
}
.glyph-cell-cp { font-family: ui-monospace, Consolas, monospace; font-size: 10px; color: var(--fg-3); letter-spacing: 0.02em; }
.glyph-more { margin: 20px 0 0; text-align: center; }
.glyph-detail {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(320px, calc(100vw - 40px));
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); padding: 20px 20px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.glyph-detail-close { position: absolute; top: 10px; right: 10px; border: 0; background: none; color: var(--fg-3); cursor: pointer; padding: 4px; border-radius: 6px; }
.glyph-detail-close:hover { color: var(--fg); background: var(--bg-2); }
.glyph-detail-big {
  font-family: "JennySans VF", "JennySans", sans-serif; font-weight: var(--gw, 400);
  font-size: 88px; line-height: 1.1; text-align: center; margin: 4px 0 14px;
}
.glyph-detail-meta { margin: 0 0 14px; font-size: 13px; }
.glyph-detail-meta div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.glyph-detail-meta dt { color: var(--fg-3); }
.glyph-detail-meta dd { margin: 0; overflow-wrap: anywhere; }
.glyph-detail-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .tester-controls { grid-template-columns: 1fr 1fr; }
  .control-presets { grid-column: span 2; }
  .lic-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lang-cols, .specimen-two, .origin-grid { grid-template-columns: 1fr; }
  .diff-table th[scope="row"] { width: 160px; }
  .diff-table thead th:not(:first-child) { width: 84px; }
  .lang-stats { grid-template-columns: repeat(2, 1fr); }
  .glyph-layout { grid-template-columns: 1fr; }
  .glyph-blocks {
    position: static; max-height: none; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin;
  }
  .glyph-blocks button { white-space: nowrap; border: 1px solid var(--line-2); }
  .glyph-blocks .gb-count { margin-left: 2px; }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .header-inner { gap: 12px; }
  .brand-ko { display: none; }
  .header-actions .btn { display: none; }
  /* 메뉴 8개 — 가로 스크롤 + 끝을 흐리게 해 더 있다는 것을 보이게 */
  .site-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent 100%);
              mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent 100%); }
  .site-nav a { padding: 6px 8px; font-size: 13.5px; }
  .hero-ko { font-size: clamp(64px, 20vw, 120px); }
  .hero-en { font-size: clamp(40px, 12vw, 72px); }
  .tester-controls { grid-template-columns: 1fr; padding: 16px; }
  .control-presets { grid-column: auto; }
  .tester-text { --ts: 36px; }
  .tester-foot { flex-direction: column; gap: 6px; }
  .weight-row { grid-template-columns: 1fr; gap: 4px; }
  .weight-sample { white-space: normal; font-size: 24px; }
  .lh-demo { grid-template-columns: 1fr; }
  .lh-col p { font-size: 18px; }
  .dl-sha { grid-template-columns: auto 1fr; }
  .dl-sha .copy-btn { grid-column: 2; justify-self: start; }
  .lang-table th[scope="row"] { width: 130px; }
  .lang-sample { font-size: 15px; }
  .glyph-controls { grid-template-columns: 1fr; padding: 12px 14px; position: static; }
  .glyph-detail { right: 10px; left: 10px; bottom: 10px; width: auto; padding: 16px 16px 12px; }
  .glyph-detail-big { font-size: 64px; }
  .specimen p, .specimen li { --sp-size: 15px; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stats dd { font-size: 26px; }
}
@media print {
  .site-header, .hero-cta, .copy-btn, .tester-controls, #theme-toggle { display: none !important; }
  .section { padding: 24px 0; }
}
