@charset "utf-8";

/* 1) 박스 사이징을 전역으로 통일 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2) 기본 문서/타이포그래피 초기화 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
}

/* 3) HTML5 요소를 블록으로 설정 (구 브라우저 호환) */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* 4) 기본 body 설정 — 폰트와 배경을 여기서 정의해도 좋음 */
html, body {
  height: 100%;
  line-height: 1.4; /* 필요시 프로젝트 규칙에 맞춰 조정 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 5) 목록, 링크, 이미지, 미디어 처리 */
ol, ul {
  list-style: none;
}

a {
display:block;
  text-decoration: none;
  color: inherit; /* 스타일 재정의 시 편리 */
}

/* 이미지와 미디어: 크기와 정렬 문제 방지 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6) 폼 요소 — 폰트와 상속을 통일(접근성 향상) */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

/* 버튼 기본 재설정 (필요시 다시 스타일링) */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* 7) 표 기본값 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 8) 접근성: 포커스 스타일은 제거하지 말고 visible일 때만 표시 */
:focus {
  outline: none;
}

/* focus-visible 사용 권장 — 키보드 사용자에게만 포커스 표시 */
:focus-visible {
  outline: 3px solid Highlight; /* 프로젝트 색상으로 교체 권장 */
  outline-offset: 2px;
  border-radius: 4px;
}
