:root {
  --wine: #55121f;
  --deep: #330c17;
  --burgundy: #7a1d2d;
  --gold: #c79b54;
  --soft-gold: #e5c98e;
  --ivory: #fff6e6;
  --ink: #4b2028;
  --body: "Cormorant Garamond", Georgia, serif;
  --display: "Bodoni Moda", Georgia, serif;
  --script: "Italianno", cursive;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  background: var(--ivory);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--soft-gold);
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

/* Side frame rails */
.side-rails {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.side-rails::before,
.side-rails::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(7px, 1.4vw, 16px);
  background: linear-gradient(90deg,
      #370b13,
      #7a2031 44%,
      #ad6647 50%,
      #f6d99a 53%,
      #5d1725 61%,
      #3d0f1c);
  box-shadow: 0 0 12px #31081455;
}

.side-rails::before {
  left: 0;
}

.side-rails::after {
  right: 0;
  transform: scaleX(-1);
}

/* Curtain opening cover */
.curtain-cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: #3b0713;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.3%;
  background-image: url('./assets/closed-curtain.webp');
  background-repeat: no-repeat;
  background-size: 200% 100%;
  will-change: transform;
  transition: transform 1.55s cubic-bezier(0.22, 0.78, 0.2, 1);
}

.curtain-left {
  left: 0;
  background-position: left center;
  box-shadow: 8px 0 22px #25050b66;
}

.curtain-right {
  right: 0;
  background-position: right center;
  box-shadow: -8px 0 22px #25050b66;
}

.curtain-cover.is-opening {
  background: transparent;
  pointer-events: none;
}

.curtain-cover.is-opening .curtain-left {
  transform: translateX(-104%);
}

.curtain-cover.is-opening .curtain-right {
  transform: translateX(104%);
}

.curtain-cover.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-controls {
  position: absolute;
  z-index: 4;
  top: 48%;
  left: 50%;
  width: min(88%, 360px);
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  transform: translate(-50%, -50%);
  color: #fff1d9;
  text-align: center;
  text-shadow: 0 2px 14px #26030f;
}

.cover-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: -0.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, #5e1324b8 0%, #26030d85 72%, transparent 100%);
  box-shadow: 0 0 28px #f4ce8733;
}

.cover-crest-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.crest-outer {
  transform-origin: 60px 60px;
  animation: crest-spin 36s linear infinite;
}

@keyframes crest-spin {
  to {
    transform: rotate(360deg);
  }
}

.cover-monogram {
  position: relative;
  font: 500 1.45rem / 1 var(--display);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff5d4, #d6a45b 52%, #fbe2a4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px #1f020a);
}

.cover-monogram i {
  margin: 0 0.08rem;
  font: 400 1.3rem var(--script);
  color: #f6d89f;
}

.cover-eyebrow {
  font: 600 0.7rem var(--sans);
  letter-spacing: 0.35em;
}

.open-invitation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.8rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid #f6d89f;
  border-radius: 99px;
  color: #471422;
  background: linear-gradient(120deg, #fff0c1, #c6914e 50%, #fff0c1);
  box-shadow: 0 0 0 7px #45061380, 0 12px 28px #2f061b80;
  font: 500 0.8rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.25s, box-shadow 0.25s;
}

.open-invitation:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 7px #45061380, 0 14px 32px #ffd99488;
}

.open-flourish {
  font-size: 0.8rem;
}

.curtain-cover.is-opening .cover-controls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  height: max(100svh, 640px);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f7e8c9;
}

.hero-scene {
  position: absolute;
  inset: -1%;
  z-index: -3;
  background: url('./assets/royal-scene.webp') center center / cover no-repeat;
  transform: scale(1);
  will-change: transform;
}

.hero.is-entering .hero-scene {
  animation: scene-zoom 6.4s cubic-bezier(0.16, 0.56, 0.24, 1) both;
}

@keyframes scene-zoom {
  from {
    transform: scale(1.23);
  }

  to {
    transform: scale(1);
  }
}

.hero-shimmer {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 47%, #fff9e267, transparent 36%);
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  width: min(78%, 430px);
  margin-top: -6vh;
  padding: 1.5rem 1.25rem;
  border-radius: 50% 50% 24px 24px / 22% 22% 24px 24px;
  /* background: radial-gradient(ellipse at center, #fff8ebcf 35%, #fff8eb70 72%, transparent 100%); */
  color: #491b20;
  text-shadow: 0 1px 0 #fff6e9bd;
  opacity: 1;
}

.js .hero-copy {
  opacity: 0;
  transform: translateY(12px);
}

.js .hero.is-revealed .hero-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-overline {
  margin: 0 0 0.45rem;
  font: 600 clamp(0.58rem, 1.9vw, 0.69rem) var(--sans);
  letter-spacing: 0.17em;
}

.hero-pretitle {
  margin: 0 auto 0.4rem;
  max-width: 27rem;
  font: italic 500 clamp(0.92rem, 3vw, 1.18rem) var(--body);
}

.hero h1 {
  margin: 0.15rem 0 0.1rem;
  font: 500 clamp(2.1rem, 7.2vw, 4.3rem) / 0.98 var(--display);
  letter-spacing: -0.055em;
}

.hero h1 span,
.hero h1 i {
  display: block;
}

.hero h1 i {
  margin: 0.2rem auto;
  color: #9a4f35;
  font: 400 clamp(1.5rem, 5vw, 2.4rem) / 0.85 var(--script);
  letter-spacing: 0;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 56%;
  margin: 0.55rem auto 0.4rem;
  color: #aa7239;
  font-size: 0.65rem;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #bb854e);
}

.hero-divider::after {
  transform: scaleX(-1);
}

.hero-date,
.hero-venue {
  margin: 0.1rem 0;
  font: 600 clamp(0.62rem, 2.25vw, 0.85rem) / 1.45 var(--sans);
  letter-spacing: 0.08em;
}

.hero-date span,
.hero-venue span {
  color: #a16e3d;
}

.hero-venue {
  font-size: clamp(0.57rem, 2vw, 0.7rem);
  letter-spacing: 0.14em;
}

.scroll-prompt {
  position: absolute;
  left: 50%;
  bottom: max(1.7rem, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: 80%;
  transform: translateX(-50%);
  text-decoration: none;
  color: #fff2d8;
  text-shadow: 0 2px 10px #31070b;
  font: 600 0.57rem var(--sans);
  letter-spacing: 0.18em;
}

.scroll-prompt span {
  font-size: 1.3rem;
  line-height: 1;
  animation: scroll-cue 1.6s ease-in-out infinite;
}

@keyframes scroll-cue {
  50% {
    transform: translateY(6px);
  }
}

/* Shared sections */
.section {
  position: relative;
  overflow: hidden;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem max(2rem, 7vw);
  text-align: center;
  background: radial-gradient(ellipse at 50% 10%, #fff9ec, #f4e8d2 70%, #edddbe);
}

.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ab824f66, transparent);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 14% 28%, #d1a5671c 0 1px, transparent 2px) 0 0 / 33px 33px;
  opacity: 0.4;
}

.section>* {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #85513d;
  font: 600 0.68rem / 1.5 var(--sans);
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  color: var(--wine);
  font: 500 clamp(2.35rem, 7vw, 4.4rem) / 1.05 var(--display);
  letter-spacing: -0.055em;
}

.section-lead {
  max-width: 32rem;
  margin: 0.1rem auto 2rem;
  font: italic 500 1.2rem / 1.4 var(--body);
  color: #694b45;
}

.preview-label {
  margin: -0.1rem 0 2rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #8b684f55;
  border-radius: 99px;
  color: #76544b;
  font: 500 0.72rem var(--sans);
}

/* Date scratch reveal */
.date-section {
  background: radial-gradient(circle at center, #fff7e4, #eddfc2);
}

.scratch-wrap {
  width: min(100%, 340px);
}

.scratch-arch {
  position: relative;
  width: min(72vw, 290px);
  height: min(78vw, 320px);
  margin: 0 auto;
  border: 1px solid #cbab73;
  border-radius: 49% 49% 14px 14px / 38% 38% 14px 14px;
  overflow: hidden;
  background: radial-gradient(#fff8e7, #ead1a5);
  box-shadow: 0 0 0 6px #fff8e0, 0 0 0 8px #a67a49, 0 18px 34px #6a301e35;
  isolation: isolate;
}

.scratch-arch::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid #9c784d66;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.scratch-detail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--wine);
}

.scratch-detail>span {
  font: 600 0.7rem var(--sans);
  letter-spacing: 0.18em;
}

.scratch-detail strong {
  font: 500 clamp(5rem, 19vw, 7.5rem) / 1 var(--display);
}

.scratch-detail small {
  margin-top: 0.75rem;
  font: 500 0.8rem var(--body);
  letter-spacing: 0.1em;
}

[data-scratch-canvas] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.5s ease;
}

[data-scratch-canvas]:active {
  cursor: grabbing;
}

.is-revealed [data-scratch-canvas] {
  opacity: 0;
  pointer-events: none;
}

.is-revealed .text-button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.text-button {
  margin: 1.9rem auto 0;
  padding: 0.65rem 0.25rem;
  border: 0;
  border-bottom: 1px solid #7c3243;
  color: var(--wine);
  background: none;
  font: 600 0.8rem var(--sans);
  letter-spacing: 0.02em;
}

.text-button span {
  margin-left: 0.45rem;
}

.scratch-arch .text-button {
  position: absolute;
  z-index: 3;
  bottom: 0.85rem;
  left: 50%;
  width: max-content;
  max-width: 90%;
  margin: 0;
  transform: translateX(-50%);
  padding: 0.6rem 0.85rem;
  border: 1px solid #f5dca4;
  border-radius: 99px;
  color: #fff9e9;
  background: #4d1724e8;
  font: 600 0.65rem var(--sans);
  box-shadow: 0 4px 12px #3e112444;
}

.particle-layer {
  position: absolute;
  left: 50%;
  top: 22%;
  z-index: 4;
  pointer-events: none;
}

.invite-celebration-particle {
  position: absolute;
  left: var(--particle-start-x);
  top: 0;
  color: var(--gold);
  font-size: var(--particle-size);
  text-shadow: 0 0 9px #fff0b9;
  animation: particle-burst var(--particle-duration) cubic-bezier(0.15, 0.7, 0.25, 1) var(--particle-delay) forwards;
}

@keyframes particle-burst {
  to {
    opacity: 0;
    transform: translate3d(calc(var(--particle-end-x) - var(--particle-start-x)),
        var(--particle-fall),
        0) rotate(var(--particle-spin));
  }
}

/* Countdown */
.countdown-section {
  color: #fff1da;
  background: radial-gradient(circle at 50% 0%, #903343, #4b111e 75%, #2c0a13);
}

.countdown-section::before {
  opacity: 0.12;
}

.countdown-section h2,
.countdown-section .eyebrow {
  color: #f5dbac;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.4rem, 2vw, 1.1rem);
  width: min(100%, 750px);
  margin: 2rem auto 1rem;
}

.countdown>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(4.7rem, 18vw, 9rem);
  padding: 0.65rem 0.2rem;
  border: 1px solid #ddba82a6;
  border-radius: 12px 12px 26px 26px;
  background: linear-gradient(160deg, #fff7e81a, #26051055);
  box-shadow: inset 0 0 0 5px #ffffff08, 0 8px 20px #1c030b44;
}

.countdown strong {
  font: 500 clamp(1.5rem, 7vw, 4.5rem) / 1 var(--display);
  font-variant-numeric: tabular-nums;
}

.countdown span {
  margin-top: 0.6rem;
  color: #f2d5a2;
  font: 500 clamp(0.55rem, 1.7vw, 0.76rem) var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-status {
  color: #e4c99e;
  font: italic 1.2rem var(--body);
}

/* Programme timeline */
.timeline {
  position: relative;
  width: min(100%, 610px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(#ba8645, #9b5543, #ba8645);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 1rem;
  padding: 1rem 0 1rem 2.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 4px;
  width: 13px;
  height: 13px;
  border: 2px solid #f9ecd1;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline time {
  color: #944c3e;
  font: 600 0.8rem var(--sans);
  white-space: nowrap;
}

.timeline h3 {
  margin: 0;
  color: var(--wine);
  font: 500 1.6rem var(--display);
}

.timeline p {
  margin: 0.3rem 0 0;
  font: 1.1rem var(--body);
}

/* Related pre-wedding list */
.related-section {
  background: linear-gradient(180deg, #f9ead1, #fff8e8);
}

.related-list {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 680px);
}

.related-list article {
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem;
  border-top: 1px solid #a9784766;
  border-bottom: 1px solid #a9784766;
  background: linear-gradient(90deg, #fff8edaa, #f7e6c977);
  text-align: left;
}

.related-number {
  color: #b38c5f;
  font: 500 1.4rem var(--display);
}

.related-list h3 {
  margin: 0;
  color: var(--wine);
  font: 500 1.8rem var(--display);
}

.related-list p {
  margin: 0.3rem 0 0;
  color: #694943;
  font: 1rem var(--body);
}

.related-list p span {
  color: #a26b45;
}

.related-list small {
  color: #845b4d;
  font: 500 0.65rem var(--sans);
  text-align: right;
}

/* Venue */
.venue-section {
  min-height: 74svh;
  background: linear-gradient(#2f0b19b3, #330b1deb), url('./assets/royal-scene.webp') center 75% / cover;
  color: #fff2da;
}

.venue-section .eyebrow,
.venue-section h2 {
  color: #ffdfac;
}

.venue-address {
  margin: 0;
  font: 500 clamp(1.6rem, 5vw, 2.5rem) var(--body);
}

.venue-when {
  margin: 0.7rem 0 2rem;
  font: italic 1.2rem var(--body);
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid #f3d5a2;
  border-radius: 99px;
  text-decoration: none;
  color: #491b22;
  background: #f2d6a5;
  font: 600 0.78rem var(--sans);
  transition: transform 0.2s, background 0.2s;
}

.action-button:hover {
  transform: translateY(-3px);
  background: #ffefcc;
}

.map-note {
  font: italic 0.9rem var(--body);
  color: #f4debe;
}

/* RSVP */
.rsvp-section {
  background: radial-gradient(circle at top, #fff7e6, #efdfc3);
}

.rsvp-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  width: min(100%, 900px);
}

.rsvp-list>div {
  display: grid;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  border: 1px solid #b3844f88;
  border-radius: 90px 90px 12px 12px;
  background: #fff9ecad;
}

.rsvp-list strong {
  font: 500 1.3rem var(--display);
  color: var(--wine);
}

.rsvp-list span {
  font: 500 0.86rem var(--sans);
  color: #725246;
}

.rsvp-list a {
  justify-self: center;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #8d4e3b;
  color: var(--wine);
  text-decoration: none;
  font: 600 0.7rem var(--sans);
}

.rsvp-note {
  max-width: 27rem;
  margin: 1.5rem auto 0;
  color: #70534a;
  font: italic 0.9rem / 1.35 var(--body);
}

/* Closing */
.closing-section {
  min-height: 70svh;
  color: #fff3df;
  background: radial-gradient(circle at center top, #9c3d4c, #5d1728 65%, #300b18);
}

.closing-section .eyebrow,
.closing-section h2 {
  color: #ffead1;
}

.closing-section h2 {
  max-width: 38rem;
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.closing-mark {
  margin-bottom: 1.1rem;
  color: var(--soft-gold);
  font-size: 1.5rem;
}

.closing-signature {
  margin: 1.5rem auto;
  color: #f5d6ae;
  font: 400 clamp(2.8rem, 8vw, 5rem) var(--script);
}

.closing-signature i {
  padding: 0 0.3rem;
  font-style: normal;
}

/* Scroll reveal */
.js [data-scroll-reveal] {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js [data-scroll-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Falling petals */
.falling-petals {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.falling-petal {
  position: absolute;
  top: -12vh;
  left: var(--petal-left);
  width: var(--petal-size);
  height: calc(var(--petal-size) * 0.67);
  background: url('./assets/red-petal.svg') center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(0 2px 3px #52132255);
  animation: petal-fall var(--petal-duration) linear var(--petal-delay) infinite;
  will-change: transform, opacity;
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -6vh, 0) rotate(-35deg);
  }

  9% {
    opacity: var(--petal-opacity);
  }

  32% {
    transform: translate3d(calc(var(--petal-sway) * 0.55), 34vh, 0) rotate(95deg);
  }

  64% {
    transform: translate3d(calc(var(--petal-sway) * -0.38), 72vh, 0) rotate(240deg);
  }

  92% {
    opacity: var(--petal-opacity);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--petal-sway), 122vh, 0) rotate(390deg);
  }
}

/* Music control */
.music-control {
  position: fixed;
  z-index: 75;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1.1rem, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #f7d69fb3;
  border-radius: 99px;
  color: #fff3d8;
  background: #4c1325df;
  box-shadow: 0 8px 20px #27030e55;
  backdrop-filter: blur(10px);
  font: 600 0.69rem var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.music-control:hover {
  background: #641e32;
}

.music-control[aria-pressed="true"] {
  color: #49201e;
  background: #efce94;
}

.music-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.music-control[aria-pressed="true"] .music-icon {
  animation: music-beat 1.5s ease-in-out infinite;
}

@keyframes music-beat {
  50% {
    transform: scale(1.2);
  }
}

/* Personalized guest invitation callouts */
.cover-guest {
  margin: -0.35rem 0 0;
  padding: 0.45rem 1rem;
  border: 1px solid #e5c98e66;
  border-radius: 99px;
  background: #2b0612aa;
  color: #fff3dc;
  font: italic 500 1.08rem var(--body);
  letter-spacing: 0.02em;
  font-size: 22px;
}

.cover-guest strong {
  color: #f7da9f;
  font-weight: 600;
}

.guest-invite-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 0.65rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid #b6844f66;
  border-radius: 99px;
  background: #fff9eecc;
  color: var(--wine);
  font: 600 0.65rem var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-invite-pill span {
  color: #aa7239;
}

/* Venue map preview & secondary copy action */
.venue-map-frame {
  width: min(100%, 560px);
  height: 230px;
  margin: 0 auto 1.65rem;
  border: 1px solid #e5c98e88;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 0 0 5px #ffffff12, 0 18px 34px #1d040c66;
  background: #2f0915;
}

.venue-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(12%) contrast(1.02);
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.secondary-action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem;
  border: 1px solid #f3d5a299;
  border-radius: 99px;
  color: #fff2da;
  background: #481222bf;
  font: 600 0.78rem var(--sans);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.secondary-action-button:hover {
  transform: translateY(-3px);
  background: #5f182d;
  border-color: #f3d5a2;
}

.secondary-action-button.is-copied {
  color: #3c141d;
  background: #e5c98e;
  border-color: #fff1cf;
}

/* Wishes & Blessings section */
.wishes-section {
  background: linear-gradient(180deg, #f8ead1, #fff8eb);
}

.wish-form {
  width: min(100%, 660px);
  padding: 1.6rem;
  border: 1px solid #b6875266;
  border-radius: 22px;
  background: #fffaf0cc;
  box-shadow: 0 14px 32px #55121f14;
  text-align: left;
}

.wish-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.wish-field {
  display: grid;
  gap: 0.35rem;
}

.wish-field span {
  color: var(--wine);
  font: 600 0.7rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wish-field input,
.wish-field select,
.wish-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #b98b5770;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: 500 1rem var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wish-field textarea {
  resize: vertical;
  min-height: 84px;
}

.wish-field input:focus,
.wish-field select:focus,
.wish-field textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px #c79b5433;
}

.wish-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.wish-submit-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.4rem;
  border: 1px solid #d5a967;
  border-radius: 99px;
  background: var(--wine);
  color: #fff4df;
  font: 600 0.74rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}

.wish-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--burgundy);
}

.wish-submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wish-feedback {
  margin: 0;
  color: var(--wine);
  font: italic 500 0.98rem var(--body);
}

.wish-feedback.is-error {
  color: #9b1c2e;
}

.wish-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  width: min(100%, 820px);
  margin-top: 1.8rem;
}

.wish-empty {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  color: #77564b;
  font: italic 1.05rem var(--body);
}

.wish-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #b6875266;
  border-radius: 16px;
  background: #fffaf2e6;
  text-align: left;
  box-shadow: 0 8px 18px #55121f0d;
}

.wish-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.wish-card-head strong {
  color: var(--wine);
  font: 500 1.2rem var(--display);
}

.wish-card-head span {
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  background: #f3e0be;
  color: #6b362a;
  font: 600 0.6rem var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wish-card p {
  margin: 0;
  color: var(--ink);
  font: 500 1.05rem / 1.4 var(--body);
}

.wish-card time {
  color: #8a6456;
  font: 500 0.66rem var(--sans);
}

/* Quick-jump floating nav pill */
.quick-nav {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(0.95rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: calc(100vw - 2rem);
  padding: 0.35rem;
  border: 1px solid #f7d69f99;
  border-radius: 99px;
  background: #3e0d1ce8;
  box-shadow: 0 10px 28px #1d030b77;
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.quick-nav a {
  padding: 0.45rem 0.78rem;
  border-radius: 99px;
  color: #f8e3bc;
  text-decoration: none;
  font: 600 0.66rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.quick-nav a:hover {
  background: #ffffff1a;
}

.quick-nav a.is-active {
  background: #efce94;
  color: #461722;
}

.closing-section {
  padding-bottom: 7.5rem;
}

/* Responsive breakpoints */
@media (max-width: 600px) {
  .wish-form-row {
    grid-template-columns: 1fr;
  }

  .wish-form {
    padding: 1.2rem;
  }

  .venue-map-frame {
    height: 195px;
    border-radius: 18px;
  }

  .quick-nav a {
    padding: 0.42rem 0.64rem;
    font-size: 0.6rem;
  }

  .section {
    padding: 5rem 1.6rem;
    min-height: 65svh;
  }

  .hero {
    height: 100svh;
    min-height: 570px;
  }

  .hero-copy {
    width: min(80%, 330px);
    margin-top: -5vh;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.6vw, 2.5rem);
  }

  .hero-pretitle {
    font-size: 0.9rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-left: 2rem;
  }

  .timeline h3 {
    font-size: 1.4rem;
  }

  .related-list article {
    grid-template-columns: 2rem 1fr auto;
    gap: 0.35rem;
    padding: 1rem 0.65rem;
  }

  .related-list h3 {
    font-size: 1.35rem;
  }

  .related-list p {
    font-size: 0.91rem;
  }

  .related-list small {
    font-size: 0.58rem;
  }

  .rsvp-list {
    grid-template-columns: 1fr;
    max-width: 330px;
  }

  .rsvp-list>div {
    border-radius: 60px 60px 12px 12px;
    padding: 1.2rem;
  }
}

@media (max-width: 390px) {
  .hero-copy {
    width: 77%;
    margin-top: -4vh;
  }

  .hero h1 {
    font-size: clamp(1.62rem, 7.4vw, 2rem);
  }

  .hero-pretitle {
    font-size: 0.77rem;
  }

  .hero-overline {
    font-size: 0.53rem;
  }

  .hero-date {
    font-size: 0.62rem;
  }

  .hero-venue {
    font-size: 0.55rem;
  }

  .scroll-prompt {
    font-size: 0.51rem;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .countdown>div {
    min-height: 4.8rem;
  }

  .countdown strong {
    font-size: 1.45rem;
  }
}

@media (min-width: 900px) {
  .hero {
    height: 100svh;
  }

  .hero-scene {
    background-size: cover;
  }

  .hero-copy {
    margin-top: -3vh;
  }

  .scroll-prompt {
    bottom: 2.2rem;
  }
}

/* Ornamental section dividers & ambient gold sparkles */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(190px, 55vw);
  margin: 0 auto 0.9rem;
  color: #aa7239;
  font-size: 0.78rem;
}

.section-ornament::before,
.section-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #bb854eaa);
}

.section-ornament::after {
  transform: scaleX(-1);
}

.section-ornament.is-light {
  color: #f3d49c;
}

.section-ornament.is-light::before,
.section-ornament.is-light::after {
  background: linear-gradient(90deg, transparent, #f3d49c88);
}

.gold-sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gold-sparkle {
  position: absolute;
  left: var(--sparkle-x);
  top: var(--sparkle-y);
  color: #f6da9a;
  font-size: var(--sparkle-size);
  opacity: 0;
  text-shadow: 0 0 10px #ffe8ae88;
  animation: sparkle-float var(--sparkle-duration) ease-in-out var(--sparkle-delay) infinite;
  will-change: transform, opacity;
}

@keyframes sparkle-float {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.75);
  }
  45% {
    opacity: var(--sparkle-opacity);
    transform: translate3d(var(--sparkle-drift), -14px, 0) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scene,
  .hero.is-entering .hero-scene {
    animation: none !important;
    transform: none !important;
  }

  .hero-copy,
  .js .hero-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-prompt span,
  .invite-celebration-particle,
  .music-control .music-icon,
  .crest-outer,
  .gold-sparkle {
    animation: none !important;
  }

  .gold-sparkles {
    display: none;
  }

  .js [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  [data-scratch-canvas] {
    transition: none !important;
  }

  .falling-petals {
    display: none;
  }
}