/* ============================================================
 * Base / Reset
 * 책임: Claude Code
 * ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--font-weight-bold); }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* 스킵 링크 등: 평소엔 .sr-only처럼 숨기고, 포커스되면 화면 좌상단에 노출 */
.sr-only-focusable:not(:focus):not(:focus-visible) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  position: fixed;
  top: var(--space-2); left: var(--space-2);
  z-index: var(--z-modal);
  width: auto; height: auto;
  margin: 0; padding: var(--space-2) var(--space-3);
  overflow: visible; clip: auto;
  white-space: normal;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* 모션 민감 사용자: 애니메이션/트랜지션을 사실상 비활성화 (docs/STYLE_GUIDE.md 참조).
   전역 규칙이므로 컴포넌트/섹션 CSS에서 prefers-reduced-motion 미디어쿼리를 중복 작성하지 말 것. */
@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;
  }
}
