/* ==========================================================================
   CSS Reset / Normalize
   DATZ 디지털 마케팅 에이전시
   모든 브라우저에서 일관된 스타일을 위한 초기화
   ========================================================================== */

/* 박스 모델 초기화 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 문서 기본 설정 */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.15;
}

/* 본문 기본 설정 */
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 제목 요소 초기화 */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* 목록 초기화 */
ul, ol {
  list-style: none;
}

/* 링크 초기화 */
a {
  color: inherit;
  text-decoration: none;
}

/* 이미지 및 미디어 초기화 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 폼 요소 초기화 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* 버튼 기본 스타일 */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* 텍스트 영역 크기 조절 제한 */
textarea {
  resize: vertical;
}

/* 테이블 초기화 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 구분선 초기화 */
hr {
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* 강조 텍스트 */
strong, b {
  font-weight: 700;
}

/* 접근성: 줄어든 모션 선호 설정 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 접근성: 화면 밖 숨김 (스크린 리더용) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
