/* ==========================================================================
   reset.css — 최소 리셋
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ol, ul { list-style: none; }

body {
  min-height: 100vh;        /* svh 미지원 브라우저 폴백 */
  min-height: 100svh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 한글은 어절 단위로 끊고, 끊을 곳이 없는 긴 문자열만 강제로 접는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
}

button { cursor: pointer; }

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

/* 검정 배경 위에서는 흰색 아웃라인 */
.gnb :focus-visible,
.contact :focus-visible { outline-color: var(--c-invert); }

/* §8 — prefers-reduced-motion 대응 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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