/* 리셋·서체·링크·포커스·유틸(최소 집합) — 화면 이름을 넣지 않는다 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--text-md); line-height: var(--leading-normal);
  font-feature-settings: "tnum" 0; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: var(--weight-bold); text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); color: var(--text); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; 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-4); top: -100px; z-index: 200; padding: var(--space-3) var(--space-4); background: var(--surface); color: var(--text); border-radius: var(--r-sm); box-shadow: var(--shadow-2); }
.skip:focus { top: var(--space-4); }
[hidden] { display: none !important; }

/* 유틸 — 한 번 쓰는 여백·글자(규칙서 §8-1 「최소 집합」) */
.mt-2 { margin-top: var(--space-2); } .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); } .muted { color: var(--text-2); } .faint { color: var(--text-3); font-size: var(--text-sm); }
.stack { display: grid; gap: var(--space-4); } .stack-lg { display: grid; gap: var(--space-6); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* 스크롤 등장 — JS 가 [data-reveal] 에 is-in 을 붙인다. 움직임 줄이기면 처음부터 보임 */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
