/* 리셋·서체·링크·포커스 — 토큰 이름만 쓴다 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }   /* 붙는 머리말이 포커스·앵커를 가리지 않게 */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: var(--leading-tight); font-weight: var(--weight-bold); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--primary-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-3); top: -60px; z-index: 100; background: var(--surface); padding: var(--space-3) var(--space-4); border-radius: var(--r); min-height: 44px; }
.skip:focus { top: var(--space-3); }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* 최소 유틸(규칙서 §8-1 — 한 번 쓰는 여백·글자) */
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.text-sm { font-size: var(--text-sm); } .text-xs { font-size: var(--text-xs); }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }
.stack { display: grid; gap: var(--space-4); } .stack-sm { display: grid; gap: var(--space-2); } .stack-lg { display: grid; gap: var(--space-6); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; }
.row-between {display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
