body {
    margin: 0;
    font-family: "Georgia", serif;
    background: linear-gradient(135deg, #1d1d1d 0%, #3a2a1e 100%);
    color: #f2e7d5;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}
h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #f5d48c;
    letter-spacing: 1px;
}
h4 {
  text-align: center;
}

.bright-text {
  color: #f5d48c;
}
p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
a.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f5d48c;
    color: #1d1d1d;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}
a.button:hover {
    background: #e8c66b;
}
footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}
.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* ===== Hero background that stays static while content scrolls ===== */
body.hero-bg {
  background: linear-gradient(135deg, #1d1d1d 0%, #3a2a1e 100%);
  background-image: url("../images/cover.png");
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed; /* keeps image static */
  color: #f4f1ea;
  background-color: #3a2a1e;
  min-height: 100vh;
}
@media (min-width: 665px) and (max-width: 999px) {
  body.hero-bg {
    background-size: cover; /* keep image at 1000px width and show gutters */
  }
}
@media (min-width: 1000px) {
  body.hero-bg {
    background-size: 1000px auto; /* keep image at 1000px width and show gutters */
  }
}
/* Create initial viewport of just the art before words rise */
.hero-spacer {
  height: 70vh; /* adjust to taste (60–80vh works well) */
  width: 100%;
}
/* The panel that "rises" over the art and blurs the background */
.glass-panel {
  position: sticky;
  top: 0;                 /* sticks to the top as you scroll */
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: rgba(20, 16, 12, 0.35);          /* subtle tint */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);                   /* blur the art behind */
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.glass-panel h1 {
  margin-top: 0;
}

/* Ensure links/buttons sit nicely on the panel */
.glass-panel .button {
  display: inline-block;
  margin: 0.3rem 0.2rem;
}

/* Extra space so the sticky panel can scroll off */
.after-content {
  height: 120vh; /* gives room for the sticky panel to ride above the image */
}

/* Fallback for browsers without backdrop-filter: darken the panel a bit more */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel { background: rgba(20, 16, 12, 0.65); }
}
/* Audio player styles */
body.listen {
  background: linear-gradient(135deg, #1d1d1d 0%, #3a2a1e 100%);
  color: #f2e7d5;
}
.player-wrap { max-width: 900px; margin: 40px auto; padding: 24px; text-align: center; }
.player { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

.controls { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.controls button { padding: 10px 14px; border: 0; border-radius: 8px; cursor: pointer; background: #f5d48c; color: #1d1d1d; font-weight: 700; }
.controls button:hover { filter: brightness(0.95); }

.timeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 8px 0 14px; }
#seek { width: 100%; accent-color: #f5d48c; }

.extras { display: flex; gap: 16px; justify-content: center; align-items: center; margin-bottom: 12px; }
.extras select { padding: 6px 10px; border-radius: 6px; border: 1px solid #7b6a55; background: #2b221a; color: #f2e7d5; }

.playlist { list-style: none; padding: 0; margin: 16px auto 0; max-width: 640px; text-align: left; }
.playlist li { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.playlist li:hover { background: rgba(255,255,255,0.06); }
.playlist li.active { background: rgba(245,212,140,0.18); color: #fff; }