* { box-sizing: border-box; }

/*
 * hidden 속성은 UA 스타일시트의 display:none 이라 .btn 이나 label 의
 * display 선언에 항상 진다. 화면마다 개별 규칙을 다는 방식은 새 요소가
 * 생길 때마다 빠뜨리므로 여기서 한 번에 막는다.
 */
[hidden] { display: none !important; }

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background: var(--canvas);
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

a { color: var(--brand); text-decoration: none; }

button,
input,
select,
textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
