/* 리셋 · 타이포 · 공통 레이아웃 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* 본문 링크는 밑줄이 기본이다 (WCAG 1.4.1: 색만으로 구분하지 않는다).
   내비게이션 성격의 링크만 아래에서 밑줄을 뺀다. */
a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--color-brand-dark); }
.brand,
.nav a,
.btn,
.division__link,
.footer__links a,
.skip-link { text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--space-4); }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(22px, 2.5vw, 26px); }

.muted { color: var(--color-muted); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--surface { background: var(--color-surface); }
.section__head { max-width: 640px; margin-bottom: var(--space-7); }
.section__head p { color: var(--color-muted); font-size: 20px; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--color-brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }

.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-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  background: var(--color-brand); color: #fff; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }
