body {
  background: var(--color-background, #ffffff);
  color: var(--color-text, #111111);
  font-family: var(--font-body, 'Noto Sans KR', sans-serif);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading, 'Noto Serif KR', serif);
  color: var(--color-primary, #111111);
}

a {
  color: var(--color-accent, #a00000);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-background, #ffffff);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.5rem;
}

.site-header__logo {
  font-family: var(--font-heading, 'Noto Serif KR', serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary, #111111);
  text-decoration: none;
  white-space: nowrap;
}

/* 메뉴 항목 수가 늘어나거나 화면이 좁아질 때 헤더 높이가 무한정 늘어나지 않도록
   nav 자체도 flex 아이템으로 두고 줄바꿈을 허용한다(햄버거 JS 없이 CSS만으로 대응). */
.site-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav a {
  display: inline-block;
  color: var(--color-text, #111111);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--color-accent, #a00000);
}

.site-header__nav .current-menu-item > a {
  color: var(--color-accent, #a00000);
  font-weight: 600;
}

@media (max-width: 480px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .site-header__nav ul {
    justify-content: flex-start;
    gap: 0.35rem 0.9rem;
  }

  .site-header__nav a {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
