/* ============================================
   MISC — Petals, Section Headers, Footer, Bookmark
   ============================================ */

/* BACKGROUND — falling petals instead of hearts */
.petal-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.petal {
  position: absolute;
  top: -30px;
  opacity: 0;
  animation: petalFall linear forwards;
}
.petal svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(74, 22, 32, 0.15));
}
@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  8% {
    opacity: 0.85;
  }
  92% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(105vh) translateX(var(--drift, 40px)) rotate(320deg);
  }
}

/* SECTION HEADERS */
.section-head {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}
.section-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--maroon-deep);
}
.section-rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
  position: relative;
}
.section-rule::before {
  content: "❧";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 10px;
  color: var(--gold);
  font-size: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 0 50px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* FLOATING PAGE-TURN BUTTON (music toggle reimagined as a bookmark ribbon) */
.bookmark-toggle {
  position: fixed;
  bottom: 0;
  right: 34px;
  z-index: 1000;
  width: 46px;
  height: 110px;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-deep));
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  cursor: pointer;
  box-shadow: 0 -4px 14px rgba(74, 22, 32, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bookmark-toggle.show {
  display: flex;
}
.bookmark-toggle:hover {
  transform: translateY(-6px);
}
.bookmark-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--paper);
}
.bookmark-toggle .icon-pause {
  display: none;
}
.bookmark-toggle.playing .icon-play {
  display: none;
}
.bookmark-toggle.playing .icon-pause {
  display: block;
}
.bookmark-toggle.playing svg {
  animation: sway 1.6s ease-in-out infinite;
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@media (max-width: 768px) {
  .bookmark-toggle {
    right: 20px;
    width: 40px;
    height: 96px;
  }
}
