/* Korean typography. Original layouts, palette and motion live in styles.css. */
:root {
  --font: 'Inter', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --serif: 'DM Serif Display', 'Noto Serif KR', Georgia, serif;
  --mono: 'JetBrains Mono', 'Noto Sans KR', monospace;
}
body { word-break: keep-all; overflow-wrap: break-word; }
.hero-title { overflow-wrap: normal; }
.hero-subtitle { line-height: 1.9; }
.section-title { line-height: 1.35; letter-spacing: -.045em; }
.section-desc, .ndp-text, .morrie-desc { line-height: 1.85; }
.section-label, .hero-eyebrow, .ndp-label { letter-spacing: .08em; }
.nav-links { gap: 1.65rem; }
.nav-links a, .btn, .legend-chip { white-space: nowrap; }
.ndp-grain, .ndp-formula { white-space: pre-wrap; overflow-wrap: anywhere; }
.graph-node-select { position: absolute; z-index: 9; top: 74px; left: 24px; max-width: calc(100% - 48px); color: var(--text-secondary); font: 12px var(--font); }
.graph-node-select summary { width: max-content; cursor: pointer; padding: 7px 12px; border: 1px solid var(--stone); border-radius: 24px; background: rgba(255,255,255,.92); }
.graph-node-select[open] { padding: 10px 12px; background: rgba(255,255,255,.97); border: 1px solid var(--stone); border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.graph-node-select[open] summary { padding: 0 0 9px; border: 0; border-radius: 0; background: transparent; }
.graph-node-select label { display: flex; gap: 8px; align-items: center; }
.graph-node-select select { font: inherit; color: inherit; border: 0; background: transparent; max-width: 150px; }
select.graph-node-select { padding-right: 24px; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (min-width: 769px) and (max-width: 1150px) { .nav-inner { gap: 1rem; } .nav-links { gap: 1rem; } .nav-links a { font-size: .78rem; } .nav-actions { gap: .25rem; } .nav-actions .btn { padding-inline: .9rem; } }
@media (max-width: 768px) {
  .hero-subtitle br { display: none; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .section-title { font-size: clamp(1.75rem, 6.3vw, 2.5rem); }
  .graph-node-select { left: 14px; max-width: calc(100% - 28px); }
  .ndp-title { line-height: 1.4; }
}
