/* 사용자 요청 (2026-10-12): "index 페이지 HTML 구현 시작하자" — 기본 요소 초기화. 값은 tokens.css 만 쓴다. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-md-size);
  line-height: var(--text-md-line);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  /* sticky GNB 아래로 앵커가 가려지지 않게 */
  scroll-padding-top: var(--space-12);
}

body {
  margin: 0;
  background: var(--color-bg-page);
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

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

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
}

h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
}

::selection {
  color: var(--color-primary-contrast);
  background: var(--color-primary);
}

/* 포커스: 요소에서 띄워 그린다 (DesignTokens.md --color-focus) */
:focus-visible {
  outline: var(--border-width-strong) solid var(--color-focus);
  outline-offset: var(--border-width-strong);
}

[x-cloak] {
  display: none !important;
}

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