* {
  box-sizing: border-box;
}

:root {
  --bg: #160d08;
  --panel: rgba(255, 248, 232, 0.96);
  --panel-soft: rgba(255, 248, 232, 0.87);
  --ink: #2b1a12;
  --muted: #725844;
  --gold: #b8852f;
  --red: #7f1d1d;
  --line: rgba(89, 54, 30, 0.22);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(153, 86, 39, 0.25), transparent 34rem),
    linear-gradient(180deg, #2a160d 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.page {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.archive-hero,
.archive-section {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.archive-hero {
  overflow: hidden;
  text-align: center;
  padding: 0 0 30px;
}

.archive-banner {
  width: 100%;
  display: block;
  max-height: 470px;
  object-fit: cover;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
}

.eyebrow {
  margin: 28px 24px 8px;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 4rem);
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-copy-small {
  margin-top: 12px;
  font-style: italic;
  font-weight: 700;
  color: var(--red);
}

.archive-nav {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.archive-nav a {
  text-decoration: none;
  background: #fff8e8;
  border: 1px solid rgba(184, 133, 47, .45);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(0,0,0,.15);
}

.archive-section {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 42px);
}

.archive-section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 18px;
}

.story-card {
  background: var(--panel-soft);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0 28px;
  line-height: 1.7;
}

.story-card p:first-child {
  margin-top: 0;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.section-art {
  margin: 18px 0 26px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(73, 41, 20, .10);
}

.section-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.section-art figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  line-height: 1.55;
  background: rgba(255, 248, 232, 0.96);
}

.track-list {
  display: grid;
  gap: 16px;
}

.archive-track {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 5px 18px rgba(73, 41, 20, .08);
}

.track-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #2f1a10;
  color: #fff5dc;
}

.track-body {
  min-width: 0;
}

.track-heading h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.track-badge {
  display: inline-block;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(184, 133, 47, .14);
  color: #60420c;
  font-size: .82rem;
  font-weight: 700;
}

.track-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 11px 0;
}

.archive-audio {
  display: block;
  width: 100%;
}

.grandpa-art-placeholder {
  border: 2px dashed rgba(127, 29, 29, .5);
  border-radius: 18px;
  padding: 28px;
  margin: 18px 0 26px;
  background:
    linear-gradient(135deg, rgba(184,133,47,.10), rgba(127,29,29,.08)),
    #fffaf0;
  text-align: center;
}

.placeholder-inner {
  max-width: 640px;
  margin: auto;
}

.placeholder-icon {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 8px;
  color: var(--red);
}

.grandpa-art-placeholder h3 {
  margin-bottom: 8px;
}

.grandpa-art-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.archive-footer {
  color: #f8ead0;
  text-align: center;
  padding: 30px 18px 0;
  line-height: 1.6;
}

.archive-footer a {
  font-weight: 700;
}

@media (max-width: 640px) {

  .grandpa-section-art {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .grandpa-section-art img {
    max-width: 100%;
  }

  .page {
    width: min(100% - 14px, 1100px);
    padding-top: 8px;
  }

  .archive-hero,
  .archive-section {
    border-radius: 16px;
  }

  .archive-section {
    padding: 20px 15px;
  }

  .archive-track {
    grid-template-columns: 1fr;
  }

  .track-number {
    width: 42px;
    height: 42px;
  }

  .archive-nav {
    gap: 7px;
  }

  .archive-nav a {
    padding: 9px 12px;
    font-size: .9rem;
  }
}


.grandpa-section-art {
  width: min(100%, 720px);
  margin: 18px auto 26px;
}

.grandpa-section-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
