/* 1. 모든 요소의 여백 초기화 및 box-sizing 설정 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 패딩을 줘도 너비가 늘어나지 않게 함 */
}

/* 2. HTML, Body 기본 설정 */
html {
  font-size: 16px; /* 기본 폰트 크기 */
  -webkit-text-size-adjust: none; /* iOS 가로모드 텍스트 크기 고정 */
}

body {
  line-height: 1.2;
  -webkit-font-smoothing: antialiased; /* 폰트를 매끄럽게 */
  min-height: 100vh;
}

/* 3. 리스트 스타일 제거 */
ol, ul, li {
  list-style: none;
}

/* 4. 링크 스타일 초기화 */
a {
  text-decoration: none;
  color: inherit;
}

/* 5. 이미지 및 미디어 요소 설정 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. 폼 요소 초기화 (버튼, 인풋 등) */
input, button, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button {
  cursor: pointer;
}

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