.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: #fffaf4;
  background: rgba(23, 49, 47, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  color: rgba(255, 250, 244, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(26px, 5vw, 64px);
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0;
}

.hero-copy {
  min-width: 0;
  max-width: 650px;
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--taupe);
  font-size: 1.35rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-copy > p:last-of-type {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: #fffaf4;
  background: var(--forest);
}

.hero-art {
  position: relative;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(201, 168, 95, 0.72);
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 10px solid var(--forest);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.story {
  border-top: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 22px;
}

.story-grid > *,
.audio-grid > *,
.lyrics-layout > * {
  min-width: 0;
}

.text-block,
.fact-list,
.audio-card,
.lyrics-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--shadow);
}

.text-block {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  color: var(--muted);
}

.fact-list {
  margin: 0;
  padding: 10px;
}

.fact-list div {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
}

.fact-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.listen {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.audio-card {
  display: grid;
  gap: 20px;
  min-height: 240px;
  padding: clamp(22px, 4vw, 34px);
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fffaf4;
  background: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
}

.audio-card h3 {
  margin-bottom: 10px;
  font-size: 2.1rem;
  font-weight: 800;
}

.audio-card p {
  color: var(--muted);
}

.audio-card audio {
  width: 100%;
  align-self: end;
  accent-color: var(--forest);
}

.lyrics-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tabs {
  display: grid;
  gap: 8px;
}

.tab {
  min-height: 46px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  text-align: left;
}

.tab.is-active {
  color: #fffaf4;
  background: var(--forest);
}

.lyrics-panel {
  overflow: hidden;
  min-height: 520px;
  padding: clamp(22px, 4vw, 34px);
}

.lyrics-panel h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lyrics-panel pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.03rem;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.materials a {
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.materials a:hover,
.materials a:focus-visible {
  border-color: var(--forest);
}

.site-footer {
  padding: 30px 18px 38px;
  color: rgba(255, 250, 244, 0.74);
  background: var(--forest);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .story-grid,
  .audio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art::before {
    inset: 12px;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.18rem;
  }

  .audio-card h3 {
    font-size: 1.75rem;
  }

  .lyrics-panel h3 {
    font-size: 1.55rem;
  }
}

@media (max-width: 760px) {
  .lyrics-layout {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tab {
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
    padding: 12px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.9rem;
  }

  .hero {
    width: min(100% - 24px, 1220px);
    padding: 42px 0 48px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-subtitle,
  .hero-copy > p:last-of-type {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art::before {
    inset: 10px;
  }

  .hero-art img {
    aspect-ratio: 4 / 3;
    border-width: 6px;
  }

  .text-block,
  .audio-card,
  .lyrics-panel {
    padding: 20px;
  }

  .fact-list div {
    padding: 14px;
  }

  .tabs {
    gap: 6px;
  }

  .tab {
    padding: 9px 8px;
    font-size: 0.88rem;
  }

  .lyrics-panel {
    min-height: 0;
  }

  .lyrics-panel pre {
    font-size: 0.94rem;
    line-height: 1.75;
  }
}
