/* reset.css — minimal modern reset (low specificity) */

/* 1) Box sizing */
:where(*, *::before, *::after) {
  box-sizing: border-box;
}

/* 2) Default spacing 제거(부작용 큰 요소만 최소로) */
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

/* 3) 기본 타이포/렌더링 */
:where(html) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(body) {
  min-height: 100dvh;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 4) 미디어 기본값(레이아웃 깨짐 방지) */
:where(img, picture, video, canvas, svg) {
  display: block;
  max-width: 100%;
}

/* 5) 폼 요소는 폰트 상속 */
:where(input, button, textarea, select) {
  font: inherit;
}

/* 6) 긴 텍스트 줄바꿈 */
:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
}

/* 7) 애니메이션/트랜지션 접근성 */
@media (prefers-reduced-motion: reduce) {
  :where(*, *::before, *::after) {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
