/* 리셋 · 타이포 · 레이아웃 도우미 */
*, *::before, *::after { box-sizing: border-box; }
/* iOS Safari 는 클릭 리스너가 달린 요소 전체(예: 선택지 묶음 radiogroup)에 회색 띠를 칠한다(2026-11-21 사장님 보고). 앱 전체에서 끄고, 누름 피드백은 :active 로 준다. */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-m); line-height: 1.6;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1 { font-size: var(--fs-xxl); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--fs-xl); line-height: 1.35; font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: var(--fs-l); line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* 아이콘 */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.icon--s { width: 16px; height: 16px; }
.icon--m { width: 20px; height: 20px; }
.icon--l { width: 28px; height: 28px; }
.icon--xl { width: 40px; height: 40px; }
.icon--spin { animation: spin 0.9s linear infinite; }

/* 레이아웃 */
.page { width: 100%; max-width: var(--content); margin: 0 auto; padding: var(--s-5) var(--gutter) var(--s-7); }
.page--wide { max-width: var(--content-wide); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack--s { gap: var(--s-2); }
.stack--l { gap: var(--s-5); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-s); }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.title-block { display: flex; flex-direction: column; gap: var(--s-2); }
.title-block > p { color: var(--ink-2); }

.is-busy { cursor: progress; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .icon--spin { animation: none; }
}
