:root {
  --ivory:#fffaf8;
  --paper:#fffdfb;
  --blush:#f8e7eb;
  --petal:#eac3ca;
  --rose:#c87989;
  --berry:#7c4352;
  --ink:#523b42;
  --sage:#87977b;
  --gold:#c4a36d;
  --script:'Allura',cursive;
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Montserrat',Arial,sans-serif
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:#ead5da;
  color:var(--ink);
  font:400 1rem/1.75 var(--sans);
  overflow-x:hidden
}

.invitation {
  width:100%;
  max-width:780px;
  margin:0 auto;
  background:var(--ivory);
  overflow:hidden;
  box-shadow:0 0 70px rgba(91,48,58,.14)
}

img {
  display:block;
  max-width:100%
}

button,input,textarea {
  font:inherit
}

button,a {
  -webkit-tap-highlight-color:transparent
}

.section {
  position:relative;
  padding:82px 24px;
  text-align:center
}

.eyebrow {
  margin:0 0 10px;
  color:var(--rose);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase
}

.script-kicker {
  margin:0;
  color:var(--sage);
  font:2.6rem/1 var(--script)
}

h2 {
  margin:8px 0 26px;
  color:var(--berry);
  font:500 clamp(2.7rem,12vw,4.5rem)/.94 var(--serif)
}

h2 em {
  color:var(--rose);
  font:400 1.35em/.75 var(--script)
}

h3 {
  font-family:var(--serif)
}

p {
  margin-top:0
}

.hero {
  position:relative;
  display:flex;
  min-height:100svh;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:110px 20px 46px;
  background:radial-gradient(circle at 50% 28%,#fff 0 18%,transparent 49%),linear-gradient(180deg,#fffaf8 0,#fae9ed 72%,#fffaf8 100%);
  isolation:isolate
}

.floral-canopy {
  position:absolute;
  z-index:-1;
  top:-18px;
  left:50%;
  width:120%;
  max-width:none;
  transform:translateX(-50%);
  pointer-events:none
}

.hero-copy {
  z-index:2;
  text-align:center
}

.hero-copy .eyebrow {
  max-width:285px;
  margin:0 auto 6px;
  color:var(--gold);
  line-height:1.55
}

.hero h1 {
  margin:0;
  color:var(--berry);
  font:500 clamp(3.25rem,17vw,6.6rem)/.75 var(--serif);
  text-shadow:0 2px 0 #fff
}

.hero h1 span {
  display:block;
  margin-bottom:2px;
  color:var(--rose);
  font:400 clamp(3.4rem,18vw,6.8rem)/.78 var(--script);
  transform:rotate(-3deg)
}

.hero-date {
  margin:18px 0 22px;
  color:var(--berry);
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.34em;
  text-transform:uppercase
}

.portrait-frame {
  position:relative;
  width:min(88vw,490px);
  height:min(53svh,570px);
  min-height:390px
}

.portrait-halo {
  position:absolute;
  inset:-10px 8px 12px;
  border:1px solid rgba(196,163,109,.65);
  border-radius:52% 52% 12px 12px
}

.hero-portrait {
  width:100%;
  height:100%;
  border-radius:50% 50% 12px 12px;
  object-fit:cover;
  object-position:center 38%;
  box-shadow:0 22px 50px rgba(98,49,61,.22)
}

.portrait-flowers {
  position:absolute;
  right:-26px;
  bottom:-36px;
  width:66%;
  filter:drop-shadow(0 10px 10px rgba(105,60,68,.14));
  pointer-events:none
}

.scroll-note {
  margin:40px 0 0;
  color:#9d737d;
  font-size:.68rem;
  letter-spacing:.13em;
  text-transform:uppercase
}

.scroll-note span {
  display:block;
  color:var(--gold);
  font-size:1.25rem
}

.floating-stars i {
  position:absolute;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#d5b26e;
  box-shadow:0 0 10px 3px rgba(216,180,107,.55);
  animation:twinkle 2.8s infinite alternate
}

.floating-stars i:nth-child(1) {
  top:19%;
  left:9%
}

.floating-stars i:nth-child(2) {
  top:34%;
  right:8%;
  animation-delay:.7s
}

.floating-stars i:nth-child(3) {
  top:54%;
  left:5%;
  animation-delay:1.5s
}

.floating-stars i:nth-child(4) {
  top:68%;
  right:7%;
  animation-delay:.3s
}

.floating-stars i:nth-child(5) {
  top:78%;
  left:14%;
  animation-delay:2s
}

.floating-stars i:nth-child(6) {
  top:12%;
  right:19%;
  animation-delay:1.1s
}

.section-bouquet {
  width:160px;
  margin:0 auto -6px
}

.story>p:not(.script-kicker) {
  max-width:590px;
  margin:0 auto 44px;
  color:#776169
}

.family-names {
  padding:32px 16px;
  border-block:1px solid #ead2d7
}

.family-names div+div {
  margin-top:18px
}

.family-names small {
  display:block;
  color:var(--rose);
  font-size:.66rem;
  letter-spacing:.2em;
  text-transform:uppercase
}

.family-names strong {
  display:block;
  font:500 1.65rem/1.3 var(--serif)
}

.family-names>span {
  display:block;
  margin:14px;
  color:var(--gold)
}

.countdown {
  background:linear-gradient(145deg,#72404d,#9e5f6e);
  color:white
}

.countdown .eyebrow {
  color:#f3d5db
}

.countdown h2 {
  color:white
}

.timer {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:34px -8px 0;
  border-block:1px solid rgba(255,255,255,.24)
}

.timer div {
  padding:20px 3px;
  border-right:1px solid rgba(255,255,255,.2)
}

.timer div:last-child {
  border:0
}

.timer strong {
  display:block;
  font:500 clamp(1.75rem,9vw,3.6rem)/1 var(--serif)
}

.timer span {
  font-size:.6rem;
  letter-spacing:.12em;
  text-transform:uppercase
}

.floral-divider {
  position:relative;
  height:110px;
  background:var(--ivory)
}

.floral-divider img {
  position:absolute;
  top:-76px;
  left:50%;
  width:115%;
  max-width:none;
  transform:translateX(-50%) rotate(180deg);
  pointer-events:none
}

.timeline {
  padding-top:58px
}

.timeline-list {
  position:relative;
  max-width:500px;
  margin:45px auto 0;
  text-align:left
}

.timeline-list:before {
  content:'';
  position:absolute;
  top:14px;
  bottom:14px;
  left:88px;
  width:1px;
  background:linear-gradient(var(--gold),var(--petal),var(--gold))
}

.timeline-list article {
  position:relative;
  display:grid;
  grid-template-columns:75px 1fr;
  gap:30px;
  align-items:center;
  min-height:106px
}

.timeline-list article:after {
  content:'✦';
  position:absolute;
  left:82px;
  color:var(--gold);
  font-size:.7rem;
  background:var(--ivory);
  padding:3px 0
}

.timeline-list time {
  color:var(--rose);
  font:600 1.5rem/1 var(--serif);
  text-align:right
}

.timeline-list time small {
  display:block;
  margin-top:5px;
  font:600 .57rem var(--sans);
  letter-spacing:.1em;
  text-transform:uppercase
}

.timeline-list h3 {
  margin:0;
  color:var(--berry);
  font:600 1.5rem/1.2 var(--serif)
}

.timeline-list p {
  margin:3px 0;
  color:#806a70;
  font-size:.86rem
}

.photo-chapter {
  position:relative;
  height:78svh;
  min-height:610px;
  overflow:hidden
}

.photo-chapter>img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 25%
}

.photo-chapter:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(73,34,44,.64),transparent 62%)
}

.photo-chapter>div {
  position:absolute;
  z-index:2;
  right:24px;
  bottom:55px;
  left:24px;
  color:white;
  text-align:center;
  text-shadow:0 3px 16px rgba(53,25,31,.5)
}

.photo-chapter span {
  display:block;
  font:3.6rem/.7 var(--script)
}

.photo-chapter strong {
  display:block;
  font:500 4.2rem/.9 var(--serif)
}

.photo-chapter small {
  display:block;
  margin-top:14px;
  font-size:.68rem;
  letter-spacing:.2em;
  text-transform:uppercase
}

.locations {
  background:#fffdfb
}

.edge-vine {
  position:absolute;
  top:10px;
  right:-62px;
  width:170px;
  pointer-events:none
}

.location-card {
  position:relative;
  margin:20px auto;
  padding:42px 25px;
  border:1px solid #dfc3c9;
  border-radius:120px 120px 18px 18px;
  background:rgba(255,255,255,.84);
  box-shadow:0 18px 45px rgba(107,66,75,.08)
}

.location-card.rose-card {
  background:#f8e8eb
}

.card-number {
  display:grid;
  width:42px;
  height:42px;
  margin:0 auto 18px;
  place-items:center;
  border:1px solid var(--gold);
  border-radius:50%;
  color:var(--gold);
  font:600 1rem var(--serif)
}

.location-card h3 {
  margin:8px 0;
  color:var(--berry);
  font:600 1.75rem/1.15 var(--serif)
}

.location-card p {
  margin-bottom:12px
}

.location-card a {
  display:inline-block;
  margin-top:10px;
  padding:11px 20px;
  border:1px solid var(--rose);
  border-radius:99px;
  color:var(--rose);
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.13em;
  text-decoration:none;
  text-transform:uppercase
}

.details {
  background:linear-gradient(#f8e8eb,#fff8f7)
}

.detail-list {
  margin-top:38px;
  text-align:left
}

.detail-list article {
  display:grid;
  grid-template-columns:48px 1fr;
  gap:18px;
  padding:24px 0;
  border-bottom:1px solid #dfc8cd
}

.detail-list article>span {
  display:grid;
  width:46px;
  height:46px;
  place-items:center;
  border:1px solid var(--gold);
  border-radius:50%;
  color:var(--gold);
  font-size:1.25rem
}

.detail-list h3 {
  margin:0 0 3px;
  color:var(--berry);
  font:600 1.4rem var(--serif)
}

.detail-list p {
  margin:0;
  color:#76636a;
  font-size:.9rem;
  line-height:1.65
}

.gallery {
  padding-inline:14px
}

.gallery-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-auto-rows:230px;
  gap:8px;
  margin-top:35px
}

.gallery-grid figure {
  margin:0;
  overflow:hidden;
  border-radius:100px 100px 12px 12px
}

.gallery-grid figure:nth-child(2),.gallery-grid figure:nth-child(3) {
  border-radius:12px
}

.gallery-grid img {
  width:100%;
  height:100%;
  object-fit:cover
}

.gallery-grid figure:nth-child(3) img {
  object-position:center 30%
}

.wishbox,.rsvp {
  background:linear-gradient(180deg,#fffaf8,#f7e6ea)
}

.wishbox,.playlist,.gifts,.rsvp {
  isolation:isolate
}

.form-flower {
  width:175px;
  margin:0 auto -8px;
  filter:drop-shadow(0 8px 12px rgba(105,60,68,.12))
}

.form-intro {
  max-width:560px;
  margin:0 auto 30px;
  color:#78656c
}

form {
  display:grid;
  gap:14px;
  max-width:560px;
  margin:0 auto;
  text-align:left
}

label span {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0)
}

input,textarea {
  width:100%;
  border:1px solid #dfcbd0;
  border-radius:16px;
  background:rgba(255,255,255,.86);
  color:var(--ink);
  padding:17px 16px;
  font-size:1rem;
  outline:none;
  box-shadow:0 8px 24px rgba(101,61,70,.04)
}

textarea {
  resize:vertical;
  min-height:130px
}

input:focus,textarea:focus {
  border-color:var(--rose);
  box-shadow:0 0 0 3px rgba(200,121,137,.12)
}

button {
  min-height:52px;
  border:0;
  border-radius:99px;
  background:var(--rose);
  color:white;
  padding:14px 23px;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(143,78,93,.2)
}

form button {
  justify-self:stretch;
  margin-top:8px
}

.playlist {
  background:#745063;
  color:white
}

.playlist h2 {
  color:white
}

.playlist .eyebrow {
  color:#f0ced4
}

.playlist .form-intro {
  color:#f5e7ea
}

.playlist form {
  padding:22px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:24px;
  background:rgba(255,255,255,.08)
}

.playlist input {
  border-color:rgba(255,255,255,.3);
  background:white
}

.playlist button {
  background:#f5d9de;
  color:var(--berry)
}

.gifts>p:not(.script-kicker) {
  max-width:560px;
  margin:0 auto 28px;
  color:#776269
}

.gifts button,.rsvp>button {
  min-width:220px
}

.thanks {
  position:relative;
  min-height:720px
}

.thanks>img {
  width:100%;
  height:720px;
  object-fit:cover
}

.thanks:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(65,31,40,.78),transparent 68%)
}

.thanks>div {
  position:absolute;
  z-index:2;
  right:24px;
  bottom:46px;
  left:24px;
  color:white;
  text-align:center
}

.thanks span,.thanks strong {
  display:block;
  font:3.1rem/1 var(--script)
}

.thanks h2 {
  margin:5px auto 18px;
  color:white;
  font-size:3rem
}

.thanks p {
  margin:0 auto 12px
}

.thanks strong {
  font-size:3.8rem
}

.rsvp>small {
  display:block;
  margin-top:18px;
  color:#96737b
}

.rsvp>p:not(.script-kicker) {
  margin-bottom:30px
}

footer {
  padding:54px 24px calc(90px + env(safe-area-inset-bottom));
  background:#4e2b35;
  color:#f7e9ec;
  text-align:center
}

.footer-monogram {
  display:grid;
  width:66px;
  height:66px;
  margin:0 auto 22px;
  place-items:center;
  border:1px solid #dfb67b;
  border-radius:50%;
  font:500 1.65rem var(--serif)
}

footer p {
  font-size:.7rem;
  letter-spacing:.18em
}

footer small {
  opacity:.65
}

.music-credit {
  letter-spacing:0
}

footer a {
  color:#e9c994
}

.music-toggle {
  position:fixed;
  z-index:30;
  right:max(14px,env(safe-area-inset-right));
  bottom:max(14px,env(safe-area-inset-bottom));
  display:flex;
  align-items:center;
  gap:8px;
  min-height:0;
  padding:8px 13px 8px 8px;
  border:1px solid rgba(255,255,255,.65);
  background:rgba(106,57,69,.94);
  box-shadow:0 12px 35px rgba(55,22,31,.28);
  backdrop-filter:blur(8px)
}

.music-icon {
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border-radius:50%;
  background:white;
  color:var(--rose);
  font-size:1.05rem
}

.music-toggle.playing .music-icon {
  animation:pulse 1.8s infinite
}

.music-label {
  font-size:.62rem
}

.toast {
  position:fixed;
  z-index:40;
  right:14px;
  bottom:78px;
  left:14px;
  max-width:480px;
  margin:auto;
  padding:15px 18px;
  border:1px solid #edd9dd;
  border-radius:15px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 18px 50px rgba(53,25,32,.24);
  text-align:center;
  transform:translateY(140px);
  opacity:0;
  transition:.35s
}

.toast.show {
  transform:translateY(0);
  opacity:1
}

.reveal {
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease,transform .7s ease
}

.reveal.visible {
  opacity:1;
  transform:none
}

@keyframes twinkle {
  to {
  opacity:.22;
  transform:scale(.55)
}


}

@keyframes pulse {
  50% {
  box-shadow:0 0 0 7px rgba(255,255,255,.18)
}


}


@media(min-width:640px) {
  .section {
  padding:100px 70px
}

.hero {
  padding-inline:50px
}

.family-names {
  display:grid;
  grid-template-columns:1fr 38px 1fr;
  align-items:center
}

.family-names div+div {
  margin-top:0
}

.family-names>span {
  margin:0
}

.timer {
  margin-inline:0
}

.locations {
  padding-inline:90px
}

.gallery {
  padding-inline:26px
}

.gallery-grid {
  grid-auto-rows:340px;
  gap:12px
}

.location-card {
  padding:54px
}

.playlist form {
  grid-template-columns:1fr 1fr;
  padding:30px
}

.playlist form button {
  grid-column:1/3;
  justify-self:center;
  min-width:270px
}

.wishbox form button {
  justify-self:center;
  min-width:270px
}

.photo-chapter,.thanks,.thanks>img {
  height:850px
}

.music-toggle {
  right:calc(50vw - 376px)
}


}


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

.floating-stars i,.music-toggle.playing .music-icon {
  animation:none
}

.reveal {
  opacity:1;
  transform:none;
  transition:none
}


}



body.invitation-locked {
  overflow:hidden
}

.invitation {
  max-width:1440px
}

.envelope-gate {
  position:fixed;
  z-index:100;
  inset:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:24px;
  background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.96) 0 14%,rgba(250,235,239,.96) 48%,#ecd4da 100%);
  opacity:1;
  transition:opacity .7s ease,visibility .7s ease
}

.envelope-gate.leaving {
  opacity:0;
  visibility:hidden;
  pointer-events:none
}

.gate-canopy {
  position:absolute;
  top:-10px;
  left:50%;
  width:max(720px,110vw);
  max-width:none;
  transform:translateX(-50%);
  pointer-events:none
}

.gate-content {
  position:relative;
  width:min(94vw,760px);
  text-align:center
}

.gate-kicker {
  margin:0;
  color:var(--sage);
  font:2.35rem/1 var(--script)
}

.envelope-gate h2 {
  margin:4px 0 0;
  color:var(--berry);
  font-size:clamp(2.25rem,9vw,4.5rem)
}

.envelope-button {
  display:block;
  width:100%;
  min-height:0;
  margin:2vh auto 0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
  color:var(--berry);
  text-transform:none
}

.envelope-stage {
  position:relative;
  display:block;
  width:min(92vw,680px);
  aspect-ratio:3/2;
  margin:auto;
  filter:drop-shadow(0 24px 25px rgba(94,48,59,.22));
  transition:transform .8s cubic-bezier(.2,.8,.2,1)
}

.envelope-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  transition:opacity .65s ease,transform 1s cubic-bezier(.18,.82,.25,1)
}

.envelope-open {
  opacity:0;
  transform:translateY(8%) scale(.93)
}

.envelope-gate.opening .envelope-stage {
  transform:translateY(-2%) scale(1.04)
}

.envelope-gate.opening .envelope-closed {
  opacity:0;
  transform:translateY(12%) scale(.9)
}

.envelope-gate.opening .envelope-open {
  opacity:1;
  transform:translateY(-2%) scale(1)
}

.open-label {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:-2px;
  padding:11px 22px;
  border:1px solid rgba(124,67,82,.28);
  border-radius:99px;
  background:rgba(255,255,255,.75);
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  box-shadow:0 10px 28px rgba(110,62,74,.09);
  animation:gatePulse 2s ease-in-out infinite
}

.open-label b {
  color:var(--gold);
  font-weight:400
}

.envelope-gate.opening .open-label {
  opacity:0;
  transition:opacity .3s
}

.gate-date {
  margin:18px 0 0;
  color:#a0707b;
  font-size:.66rem;
  font-weight:600;
  letter-spacing:.34em
}

.gate-sparkles i {
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#d6b36f;
  box-shadow:0 0 14px 4px rgba(214,179,111,.55);
  animation:twinkle 2.7s infinite alternate
}

.gate-sparkles i:nth-child(1) {
  top:19%;
  left:9%
}

.gate-sparkles i:nth-child(2) {
  top:29%;
  right:11%;
  animation-delay:.6s
}

.gate-sparkles i:nth-child(3) {
  top:59%;
  left:7%;
  animation-delay:1.2s
}

.gate-sparkles i:nth-child(4) {
  bottom:13%;
  right:14%;
  animation-delay:1.8s
}

.gate-sparkles i:nth-child(5) {
  bottom:20%;
  left:22%;
  animation-delay:.9s
}

@keyframes gatePulse {
  50% {
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(110,62,74,.16)
}


}



@media(min-width:900px) {
  .section {
  padding:120px clamp(70px,8vw,130px)
}

.hero {
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:clamp(50px,7vw,120px);
  min-height:100svh;
  padding:110px clamp(70px,8vw,130px) 70px
}

.hero-copy {
  text-align:left
}

.hero-copy .eyebrow {
  max-width:360px;
  margin:0 0 12px;
  text-align:left
}

.hero h1 {
  font-size:clamp(5rem,8vw,8.5rem)
}

.hero h1 span {
  font-size:clamp(5.5rem,8vw,9rem)
}

.hero-date {
  margin-top:30px
}

.portrait-frame {
  width:min(42vw,600px);
  height:min(76vh,760px)
}

.portrait-flowers {
  right:-70px;
  width:62%
}

.scroll-note {
  position:absolute;
  bottom:24px;
  left:50%;
  margin:0;
  transform:translateX(-50%)
}

.story {
  padding-inline:max(15vw,180px)
}

.story>p:not(.script-kicker) {
  font-size:1.08rem
}

.countdown {
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:7vw;
  align-items:center;
  text-align:left
}

.countdown h2 {
  margin-bottom:0
}

.timer {
  margin-top:0
}

.floral-divider {
  height:145px
}

.floral-divider img {
  top:-115px
}

.timeline-list {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  max-width:1120px
}

.timeline-list:before {
  top:84px;
  right:8%;
  bottom:auto;
  left:8%;
  width:auto;
  height:1px
}

.timeline-list article {
  display:flex;
  min-height:180px;
  flex-direction:column;
  gap:50px;
  text-align:center
}

.timeline-list article:after {
  top:77px;
  left:50%;
  transform:translateX(-50%)
}

.timeline-list time {
  text-align:center
}

.photo-chapter {
  height:850px
}

.photo-chapter>div {
  right:8vw;
  bottom:80px;
  left:auto;
  max-width:540px;
  text-align:right
}

.photo-chapter span {
  font-size:5rem
}

.photo-chapter strong {
  font-size:7rem
}

.location-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
  max-width:1050px;
  margin:55px auto 0
}

.location-card {
  display:flex;
  min-height:430px;
  flex-direction:column;
  justify-content:center;
  margin:0
}

.details .detail-list {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  max-width:1160px;
  margin:55px auto 0
}

.detail-list article {
  display:block;
  padding:38px 30px;
  border:1px solid #dfc8cd;
  border-radius:110px 110px 18px 18px;
  background:rgba(255,255,255,.48);
  text-align:center
}

.detail-list article>span {
  margin:0 auto 22px
}

.gallery-grid {
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:520px;
  max-width:1320px;
  margin:45px auto 0
}

.gallery-grid figure:nth-child(2),.gallery-grid figure:nth-child(3) {
  border-radius:160px 160px 12px 12px
}

.wishbox,.playlist,.gifts,.rsvp {
  padding-block:125px
}

.wishbox form {
  grid-template-columns:1fr 1.5fr;
  align-items:start;
  max-width:900px
}

.wishbox form button {
  grid-column:1/3
}

.playlist form {
  max-width:900px
}

.thanks {
  min-height:880px
}

.thanks>img {
  height:880px
}

.thanks>div {
  right:8vw;
  bottom:85px;
  left:auto;
  max-width:620px;
  text-align:right
}

.thanks h2 {
  font-size:4.5rem
}

.music-toggle {
  right:24px
}

.gate-content {
  width:min(84vw,900px)
}

.envelope-stage {
  width:min(62vw,700px)
}

.gate-canopy {
  width:max(1100px,100vw)
}


}



@media(max-height:720px) {
  .gate-kicker {
  font-size:1.9rem
}

.envelope-gate h2 {
  font-size:2.35rem
}

.envelope-stage {
  width:min(78vw,520px)
}

.gate-date {
  margin-top:8px
}


}



@media(prefers-reduced-motion:reduce) {
  .open-label,.gate-sparkles i {
  animation:none
}

.envelope-image,.envelope-stage,.envelope-gate {
  transition-duration:.01ms
}


}


.invitation:focus {
  outline:none
}


.floating-stars {
  position:absolute;
  inset:0;
  pointer-events:none
}



@media(min-width:900px) {
  .hero-copy {
  grid-column:1
}

.portrait-frame {
  grid-column:2
}

.hero-copy,.portrait-frame {
  grid-row:1
}


}



/* Mobile-only invitation and full-screen envelope entrance */
.sr-only {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important
}


.invitation {
  width:100%;
  max-width:430px;
  margin-inline:auto
}


.envelope-gate {
  padding:0;
  background:radial-gradient(circle at 50% 48%,#fff9f7 0 10%,#f8e5e9 52%,#e8ccd3 100%)
}


.gate-content {
  width:100%;
  height:100svh
}


.gate-canopy {
  top:-3.5rem;
  width:max(760px,190vw);
  opacity:.78
}


.envelope-button {
  position:relative;
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden;
  border-radius:0
}


.envelope-stage {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  filter:drop-shadow(0 28px 34px rgba(94,48,59,.3))
}


.envelope-image {
  inset:50% auto auto 50%;
  width:auto;
  max-width:none;
  height:100%;
  object-fit:contain;
  transform:translate(-50%,-50%) scale(1.36)
}


.envelope-open {
  opacity:0;
  transform:translate(-50%,-43%) scale(1.23)
}


.envelope-gate.opening .envelope-stage {
  transform:none
}


.envelope-gate.opening .envelope-closed {
  opacity:0;
  transform:translate(-50%,-42%) scale(1.18)
}


.envelope-gate.opening .envelope-open {
  opacity:1;
  transform:translate(-50%,-50%) scale(1.34)
}


.open-label {
  position:absolute;
  z-index:3;
  right:50%;
  bottom:max(28px,calc(env(safe-area-inset-bottom) + 18px));
  margin:0;
  white-space:nowrap;
  transform:translateX(50%);
  background:rgba(255,253,251,.9);
  box-shadow:0 12px 32px rgba(78,43,53,.2)
}


@keyframes gatePulse {
  50% {
  transform:translate(50%,-4px);
  box-shadow:0 16px 36px rgba(78,43,53,.24)
}


}



/* Keep the invitation phone-sized at every viewport width. */
@media(min-width:640px) {

  .section {
  padding:82px 24px
}


  .hero {
  display:flex;
  min-height:100svh;
  flex-direction:column;
  padding:110px 20px 46px
}


  .hero-copy {
  text-align:center
}


  .hero-copy .eyebrow {
  max-width:285px;
  margin:0 auto 6px;
  text-align:center
}


  .hero h1 {
  font-size:6.6rem
}


  .hero h1 span {
  font-size:6.8rem
}


  .hero-date {
  margin:18px 0 22px
}


  .portrait-frame {
  width:min(88vw,390px);
  height:min(53svh,570px)
}


  .portrait-flowers {
  right:-26px;
  width:66%
}


  .scroll-note {
  position:static;
  margin:40px 0 0;
  transform:none
}


  .family-names {
  display:block;
  padding:32px 16px
}


  .family-names div+div {
  margin-top:18px
}


  .family-names>span {
  margin:14px
}


  .timer {
  margin:34px -8px 0
}


  .countdown {
  display:block;
  text-align:center
}


  .floral-divider {
  height:110px
}


  .floral-divider img {
  top:-76px
}


  .timeline-list {
  display:block;
  max-width:500px;
  margin:45px auto 0;
  text-align:left
}


  .timeline-list:before {
  top:14px;
  right:auto;
  bottom:14px;
  left:88px;
  width:1px;
  height:auto
}


  .timeline-list article {
  display:grid;
  grid-template-columns:75px 1fr;
  gap:30px;
  min-height:106px;
  text-align:left
}


  .timeline-list article:after {
  top:auto;
  left:82px;
  transform:none
}


  .timeline-list time {
  text-align:right
}


  .photo-chapter {
  height:78svh;
  min-height:610px
}


  .photo-chapter>div {
  right:24px;
  bottom:55px;
  left:24px;
  max-width:none;
  text-align:center
}


  .photo-chapter span {
  font-size:3.6rem
}


  .photo-chapter strong {
  font-size:4.2rem
}


  .locations {
  padding-inline:24px
}


  .location-grid {
  display:block;
  margin:0
}


  .location-card {
  display:block;
  min-height:0;
  margin:20px auto;
  padding:42px 25px
}


  .details .detail-list {
  display:block;
  margin-top:38px
}


  .detail-list article {
  display:grid;
  grid-template-columns:48px 1fr;
  gap:18px;
  padding:24px 0;
  border:0;
  border-bottom:1px solid #dfc8cd;
  border-radius:0;
  background:none;
  text-align:left
}


  .detail-list article>span {
  margin:0
}


  .gallery {
  padding-inline:14px
}


  .gallery-grid {
  grid-template-columns:1fr 1fr;
  grid-auto-rows:230px;
  gap:8px;
  margin-top:35px
}


  .gallery-grid figure:nth-child(2),.gallery-grid figure:nth-child(3) {
  border-radius:12px
}


  .wishbox,.playlist,.gifts,.rsvp {
  padding-block:82px
}


  .wishbox form {
  display:grid;
  grid-template-columns:1fr;
  max-width:560px
}


  .wishbox form button {
  grid-column:auto;
  justify-self:stretch;
  min-width:0
}


  .playlist form {
  grid-template-columns:1fr;
  padding:22px
}


  .playlist form button {
  grid-column:auto;
  justify-self:stretch;
  min-width:0
}


  .thanks {
  min-height:720px
}


  .thanks>img {
  height:720px
}


  .thanks>div {
  right:24px;
  bottom:46px;
  left:24px;
  max-width:none;
  text-align:center
}


  .thanks h2 {
  font-size:3rem
}


  .music-toggle {
  right:calc(50% - 201px)
}


  .toast {
  max-width:402px
}



}



@media(max-width:360px) {
  .envelope-image {
  height:92%;
  transform:translate(-50%,-50%) scale(1.3)
}

.envelope-open {
  transform:translate(-50%,-43%) scale(1.18)
}

.envelope-gate.opening .envelope-closed {
  transform:translate(-50%,-42%) scale(1.14)
}

.envelope-gate.opening .envelope-open {
  transform:translate(-50%,-50%) scale(1.28)
}


}

/* Latest invitation format */

.invitation {
  max-width:430px;
}

.hero {
  position:relative;
  display:block;
  min-height:100svh;
  padding:0;
  overflow:hidden;
  background:#6f4653;
  isolation:isolate;
}

.hero .floral-canopy {
  z-index:5;
  top:-8px;
  width:112%;
  filter:drop-shadow(0 8px 12px rgba(82,42,53,.22));
}

.hero-copy {
  position:absolute;
  z-index:4;
  right:28px;
  bottom:92px;
  left:28px;
  color:white;
  text-align:center;
  text-shadow:0 3px 22px rgba(58,25,35,.78);
}

.hero-copy .eyebrow {
  max-width:360px;
  margin:0 auto 8px;
  color:#f9e8eb;
  line-height:1.55;
  text-align:center;
}

.hero h1 {
  color:white;
  font-size:clamp(3.8rem,18vw,6.6rem);
  text-shadow:0 3px 24px rgba(58,25,35,.72);
}

.hero h1 span {
  color:#f5dce1;
  font-size:clamp(3.8rem,19vw,6.8rem);
}

.hero-date {
  margin:20px 0 0;
  color:white;
}

.portrait-frame {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
}

.portrait-frame::after {
  position:absolute;
  z-index:1;
  inset:0;
  background:linear-gradient(180deg,rgba(83,48,58,.18),transparent 34%,rgba(63,30,40,.12) 50%,rgba(63,30,40,.82) 100%);
  content:"";
  pointer-events:none;
}

.portrait-halo {
  z-index:3;
  inset:18px;
  border:1px solid rgba(255,244,238,.72);
  border-radius:18px;
}

.hero-portrait {
  width:100%;
  height:100%;
  border-radius:0;
  object-fit:cover;
  object-position:center 30%;
  box-shadow:none;
}

.scroll-note {
  position:absolute;
  z-index:5;
  right:0;
  bottom:20px;
  left:0;
  margin:0;
  color:rgba(255,255,255,.78);
  text-align:center;
  transform:none;
}

.scroll-note span {
  color:#f4d6dc;
}

.envelope-gate {
  display:block;
  padding:0;
  background:#ead5da;
}

.gate-canopy,
.gate-kicker,
.envelope-gate h2:not(.sr-only),
.gate-date {
  display:none;
}

.gate-content {
  width:min(100vw,430px);
  height:100svh;
  margin:0 auto;
}

.envelope-button {
  position:relative;
  width:100%;
  height:100%;
  margin:0;
}

.envelope-stage {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  filter:none;
}

.envelope-image {
  inset:0;
  width:100%;
  max-width:none;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1);
}

.envelope-open {
  opacity:0;
  transform:scale(1.05);
}

.envelope-gate.opening .envelope-stage {
  transform:none;
}

.envelope-gate.opening .envelope-closed {
  opacity:0;
  transform:scale(1.06);
}

.envelope-gate.opening .envelope-open {
  opacity:1;
  transform:scale(1);
}

.open-label {
  position:absolute;
  z-index:3;
  right:50%;
  bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));
  margin:0;
  border-color:rgba(255,255,255,.68);
  background:rgba(91,47,59,.78);
  color:white;
  white-space:nowrap;
  transform:translateX(50%);
  backdrop-filter:blur(8px);
}

.gallery {
  padding-inline:26px;
}

.gallery-carousel {
  position:relative;
  margin:36px auto 0;
}

.gallery-viewport {
  overflow-x:auto;
  border-radius:18px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.gallery-viewport::-webkit-scrollbar {
  display:none;
}

.gallery-track {
  display:flex;
}

.gallery-track figure {
  flex:0 0 100%;
  aspect-ratio:4 / 5;
  margin:0;
  overflow:hidden;
  border-radius:18px;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}

.gallery-track img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.gallery-track figure:nth-child(3) img {
  object-position:center;
}

.gallery-arrow {
  position:absolute;
  z-index:3;
  top:50%;
  display:grid;
  width:46px;
  min-height:46px;
  padding:0 0 4px;
  place-items:center;
  border:1px solid rgba(255,255,255,.76);
  border-radius:50%;
  background:rgba(106,57,69,.82);
  color:white;
  font-family:Georgia,serif;
  font-size:2rem;
  font-weight:400;
  line-height:1;
  letter-spacing:0;
  text-transform:none;
  transform:translateY(-50%);
  backdrop-filter:blur(8px);
}

.gallery-prev {
  left:12px;
}

.gallery-next {
  right:12px;
}

.gallery-arrow:disabled {
  opacity:.3;
  cursor:default;
}

.gallery-status {
  margin:16px 0 0;
  color:var(--rose);
  font-size:.68rem;
  letter-spacing:.16em;
}

@media(min-width:640px) {
  .hero {
    display:block;
    padding:0;
  }

  .hero-copy,
  .portrait-frame {
    grid-column:auto;
    grid-row:auto;
  }

  .hero-copy .eyebrow {
    margin-inline:auto;
    text-align:center;
  }

  .gallery {
    padding-inline:26px;
  }

  .music-toggle {
    right:calc(50% - 201px);
  }
}

/* Base full-screen invitation treatment */
:root {
  --ivory: #f5efe3;
  --paper: #fffaf0;
  --silver: #bcb4a7;
  --slate: #7c6858;
  --navy: #473127;
  --midnight: #2a1c16;
  --champagne: #c8aa7b;
  --gold: #c8aa7b;
  --ink: #3c2b24;
  --night: #1b120e;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

body {
  background: #1b120e;
  color: var(--ink);
}

.invitation {
  background: var(--ivory);
}

.envelope-gate {
  background:
    radial-gradient(circle at 18% 22%, rgba(226, 199, 151, .24) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 16%, rgba(174, 194, 184, .2) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 40%, rgba(137, 78, 53, .34), transparent 42%),
    linear-gradient(160deg, #493226 0%, #1b120e 78%);
  background-size: 74px 74px, 106px 106px, auto, auto;
}

.gate-sparkles i,
.floating-stars i {
  background: #f0d9aa;
  box-shadow: 0 0 16px rgba(220, 176, 101, .82);
}

.floating-stars i {
  animation-duration: 6s;
}

.envelope-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  filter: drop-shadow(0 28px 48px rgba(19, 10, 6, .76));
}

.envelope-image {
  object-fit: cover;
}

.open-label {
  border-color: rgba(222, 195, 148, .64);
  background: rgba(42, 28, 22, .9);
  color: #f6f3ea;
  letter-spacing: .15em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .62);
}

.open-label b {
  color: #dfc18e;
}

.hero {
  min-height: 100svh;
  background: #2a1c16;
}

.portrait-frame,
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.hero-portrait {
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.86) contrast(1.06);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 28, 22, .46) 0%, transparent 28%),
    radial-gradient(circle at 50% 45%, transparent 16%, rgba(116, 75, 54, .16) 68%),
    linear-gradient(180deg, transparent 46%, rgba(35, 21, 15, .94) 100%);
}

.portrait-halo {
  display: block;
  z-index: 3;
  inset: 18px;
  border: 1px solid rgba(225, 203, 166, .72);
  border-radius: 28px 28px 120px 120px;
  box-shadow: inset 0 0 0 5px rgba(111, 73, 52, .1);
}

.floral-canopy {
  z-index: 6;
  top: 6px;
  width: 88%;
  max-width: 378px;
  filter: drop-shadow(0 12px 18px rgba(28, 15, 9, .7));
}

.hero-copy {
  position: absolute;
  z-index: 7;
  right: 22px;
  bottom: 76px;
  left: 22px;
  color: #fbfaf5;
  text-shadow: 0 4px 28px rgba(24, 12, 7, .96);
}

.hero-copy .eyebrow,
.hero-date {
  color: #ead3aa;
}

.hero h1 {
  color: #fffdf7;
  text-shadow: 0 4px 32px rgba(24, 12, 7, .96);
}

.hero h1 span {
  color: #d9ad92;
  font-family: 'Allura', cursive;
}

.hero h1 {
  letter-spacing: .01em;
  text-transform: none;
}

.location-card h3,
.detail-list h3,
.timer strong {
  letter-spacing: .03em;
}

.scroll-note {
  z-index: 7;
  color: rgba(246, 243, 234, .86);
}

.scroll-note span {
  color: #d7bc8f;
}

.story,
.details,
.wishbox,
.gifts,
.rsvp {
  background:
    radial-gradient(circle at 12% 18%, rgba(110, 81, 61, .11) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 31%, rgba(95, 154, 148, .12) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #fffaf0 0%, #ede2cf 100%);
  background-size: 76px 76px, 108px 108px, auto;
}

.story::before,
.details::before,
.gifts::before,
.rsvp::before {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  height: 10px;
  border-bottom: 1px solid rgba(113, 85, 65, .28);
  border-radius: 50%;
  content: "";
}

.story .section-bouquet,
.gifts .section-bouquet,
.form-flower,
.edge-vine {
  filter: drop-shadow(0 12px 20px rgba(72, 47, 31, .24));
}

.script-kicker {
  color: #8c5f49;
}

h2,
.family-names strong {
  color: #51372b;
}

h2 em {
  color: #a46064;
}

.family-names {
  border-color: rgba(112, 83, 61, .22);
}

.countdown,
.timeline,
.gallery,
.playlist {
  background:
    radial-gradient(circle at 16% 19%, rgba(224, 194, 142, .34) 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 32%, rgba(144, 179, 168, .2) 0 1px, transparent 2.5px),
    radial-gradient(ellipse at 50% 110%, rgba(119, 82, 56, .34), transparent 48%),
    linear-gradient(150deg, #4a3327 0%, #1b120e 82%);
  background-size: 88px 88px, 104px 104px, auto, auto;
  color: #f6f3ea;
}

.countdown {
  background: #4a3327;
}

.countdown h2,
.timeline h2,
.gallery h2,
.playlist h2 {
  color: #fffdf7;
}

.countdown .eyebrow,
.timeline .script-kicker,
.gallery .script-kicker,
.playlist .eyebrow {
  color: #e3c696;
}

.timer {
  border-color: rgba(216, 186, 136, .5);
}

.timer strong,
.timer span,
.timeline-list time,
.timeline-list h3 {
  color: #fbfaf5;
}

.timeline {
  overflow: hidden;
  padding-top: 190px;
}

.timeline-crown {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-list::before,
.timeline-list article::after {
  background: #c8aa7b;
}

.timeline-list p {
  color: #e9ddca;
}

.photo-chapter::after,
.thanks::after {
  background: linear-gradient(180deg, transparent 25%, rgba(30, 17, 11, .94) 100%);
}

.photo-chapter div,
.thanks div {
  text-shadow: 0 3px 24px rgba(24, 12, 7, .94);
}

.locations {
  overflow: hidden;
  padding-top: 190px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 97, 68, .16), transparent 42%),
    #eadfca;
}

.locations .edge-vine {
  top: 12px;
  right: auto;
  left: 50%;
  width: 100%;
  max-width: none;
  height: auto;
  clip-path: none;
  object-fit: initial;
  transform: translateX(-50%);
}

.location-card {
  border-color: rgba(112, 82, 61, .2);
  border-radius: 18px;
  background: rgba(251, 249, 242, .96);
  box-shadow: 0 18px 50px rgba(72, 47, 31, .15);
}

.location-card::before {
  border-color: rgba(158, 134, 98, .68);
  border-radius: 14px;
}

.location-card.rose-card {
  border-color: rgba(200, 170, 123, .5);
  background: #5b3e30;
  color: #f6f3ea;
}

.location-card.rose-card h3,
.location-card.rose-card .eyebrow,
.location-card.rose-card a {
  color: #ead3aa;
}

.detail-list article {
  border-radius: 18px;
}

.detail-list article > span {
  color: #8c5f49;
}

.gallery-carousel {
  filter: drop-shadow(0 22px 34px rgba(24, 12, 7, .56));
}

.gallery-viewport,
.gallery-track figure,
.gallery-track img {
  border-radius: 18px;
}

.gallery-arrow {
  border-color: rgba(216, 190, 146, .88);
  background: rgba(91, 62, 48, .94);
  color: #fffdf7;
}

.gallery-status {
  color: #ead3aa;
}

.wishbox form,
.playlist form {
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.playlist form {
  padding: 28px;
  color: #fbfaf5;
}

input,
textarea {
  border-color: rgba(112, 83, 63, .24);
  border-radius: 14px;
  background: #fff;
}

button,
.location-card a {
  background: #684737;
  color: #fbfaf5;
}

.playlist button {
  background: #c8aa7b;
  color: #2a1c16;
}

.thanks strong {
  color: #e6c997;
}

footer {
  background: #1b120e;
  color: #d7e0e8;
}

.footer-monogram {
  border-color: #c8aa7b;
  color: #e6c997;
}

.music-toggle {
  border-color: rgba(200, 170, 123, .78);
  background: rgba(42, 28, 22, .95);
  color: #fbfaf5;
}

.toast {
  background: #684737;
  color: #fbfaf5;
}

/* Tropical Paradise theme */
:root {
  --ivory: #fff9ed;
  --paper: #fffdf6;
  --coral: #f18a73;
  --coral-deep: #bb584f;
  --turquoise: #178f91;
  --lagoon: #073f42;
  --palm: #194f3d;
  --gold: #d9b563;
  --ink: #164246;
}

body {
  background: #073f42;
  color: var(--ink);
}

.invitation {
  background: var(--ivory);
}

.envelope-gate {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 214, 154, .24) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 18%, rgba(110, 225, 215, .22) 0 1.5px, transparent 2.5px),
    linear-gradient(160deg, #0a696c 0%, #073f42 48%, #d46c5e 100%);
  background-size: 78px 78px, 112px 112px, auto;
}

.gate-canopy {
  top: -8px;
  width: min(116%, 720px);
  filter: drop-shadow(0 16px 24px rgba(2, 40, 41, .48));
}

.gate-sparkles i,
.floating-stars i {
  background: #ffe2a0;
  box-shadow: 0 0 16px rgba(255, 205, 111, .82);
}

.envelope-stage {
  filter: drop-shadow(0 30px 52px rgba(3, 38, 39, .68));
}

.open-label {
  border-color: rgba(255, 222, 166, .7);
  background: rgba(7, 63, 66, .9);
  color: #fffdf6;
}

.open-label b {
  color: #ffd889;
}

.hero {
  background: #073f42;
}

.hero-portrait {
  object-position: 50% 50%;
  filter: saturate(.98) contrast(1.03);
}

.portrait-frame::after {
  background:
    linear-gradient(180deg, rgba(7, 63, 66, .44) 0%, transparent 30%),
    linear-gradient(180deg, transparent 48%, rgba(4, 44, 47, .92) 100%);
}

.portrait-halo {
  border-color: rgba(255, 220, 155, .72);
  border-radius: 24px 24px 110px 110px;
  box-shadow: inset 0 0 0 5px rgba(23, 143, 145, .12);
}

.floral-canopy {
  top: -3px;
  width: 108%;
  max-width: 560px;
  filter: drop-shadow(0 12px 18px rgba(4, 42, 43, .62));
}

.hero-copy {
  bottom: 78px;
  text-shadow: 0 4px 30px rgba(2, 31, 33, .94);
}

.hero-copy .eyebrow,
.hero-date {
  color: #ffe0a1;
}

.hero h1 {
  color: #fffdf7;
  text-shadow: 0 4px 32px rgba(2, 31, 33, .95);
}

.hero h1 span {
  color: #ff9f87;
}

.scroll-note {
  color: rgba(255, 253, 246, .9);
}

.scroll-note span {
  color: #ffcf76;
}

.story,
.details,
.wishbox,
.gifts,
.rsvp {
  background:
    radial-gradient(circle at 12% 18%, rgba(241, 138, 115, .14) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 31%, rgba(23, 143, 145, .14) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #fffdf6 0%, #f8efd8 100%);
  background-size: 78px 78px, 108px 108px, auto;
}

.story::before,
.details::before,
.gifts::before,
.rsvp::before {
  border-color: rgba(23, 143, 145, .22);
}

.section-bouquet,
.form-flower {
  width: min(330px, 88vw);
}

.story .section-bouquet,
.gifts .section-bouquet,
.form-flower,
.edge-vine {
  filter: drop-shadow(0 12px 20px rgba(11, 81, 76, .22));
}

.script-kicker {
  color: var(--coral-deep);
}

h2,
.family-names strong {
  color: var(--lagoon);
}

h2 em {
  color: var(--coral);
}

.family-names {
  border-color: rgba(23, 143, 145, .24);
}

.countdown,
.timeline,
.gallery,
.playlist {
  background:
    radial-gradient(circle at 16% 19%, rgba(255, 218, 144, .34) 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 32%, rgba(75, 204, 195, .18) 0 1px, transparent 2.5px),
    linear-gradient(145deg, #0a7071 0%, #073f42 82%);
  background-size: 88px 88px, 106px 106px, auto;
  color: #fffdf6;
}

.countdown {
  background: #0b6668;
}

.countdown h2,
.timeline h2,
.gallery h2,
.playlist h2 {
  color: #fffdf7;
}

.countdown .eyebrow,
.timeline .script-kicker,
.gallery .script-kicker,
.playlist .eyebrow {
  color: #ffca88;
}

.timer {
  border-color: rgba(255, 215, 145, .52);
}

.timer strong,
.timer span,
.timeline-list time,
.timeline-list h3 {
  color: #fffdf6;
}

.timeline-list::before,
.timeline-list article::after {
  background: #f0bd67;
}

.timeline-list p {
  color: #d7f0eb;
}

.photo-chapter::after,
.thanks::after {
  background: linear-gradient(180deg, transparent 25%, rgba(4, 44, 47, .94) 100%);
}

.locations {
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 138, 115, .17), transparent 44%),
    #f3e9cf;
}

.location-card {
  border-color: rgba(23, 143, 145, .2);
  background: rgba(255, 253, 246, .97);
  box-shadow: 0 18px 50px rgba(7, 63, 66, .14);
}

.location-card::before {
  border-color: rgba(217, 181, 99, .68);
}

.location-card.rose-card {
  border-color: rgba(241, 138, 115, .55);
  background: #0b6668;
  color: #fffdf6;
}

.location-card.rose-card h3,
.location-card.rose-card .eyebrow,
.location-card.rose-card a {
  color: #ffdda0;
}

.detail-list article > span {
  color: var(--coral-deep);
}

.gallery-carousel {
  filter: drop-shadow(0 22px 34px rgba(2, 35, 37, .55));
}

.gallery-arrow {
  border-color: rgba(255, 218, 153, .88);
  background: rgba(241, 138, 115, .96);
  color: #073f42;
}

.gallery-status {
  color: #ffdda0;
}

.wishbox form,
.playlist form {
  border: 0;
  background: transparent;
  box-shadow: none;
}

input,
textarea {
  border-color: rgba(23, 143, 145, .24);
  background: #fff;
}

button,
.location-card a {
  background: #087376;
  color: #fffdf6;
}

.playlist button {
  background: #f18a73;
  color: #073f42;
}

.thanks strong {
  color: #ffcf7e;
}

footer {
  background: #073f42;
  color: #d8f0ea;
}

.footer-monogram {
  border-color: #d9b563;
  color: #ffdc91;
}

.music-toggle {
  border-color: rgba(255, 213, 141, .78);
  background: rgba(7, 63, 66, .95);
  color: #fffdf6;
}

.toast {
  background: #0b6668;
  color: #fffdf6;
}

/* Ocean Fantasy theme */
:root {
  --ivory: #f7fbff;
  --paper: #ffffff;
  --sapphire: #154d80;
  --aqua: #6bd5df;
  --seafoam: #c9f0ed;
  --pearl: #f7f2df;
  --silver: #c9d4df;
  --navy: #041d3b;
  --ink: #133b5c;
}

body {
  background: #041d3b;
  color: var(--ink);
}

.invitation {
  background: var(--ivory);
}

.envelope-gate {
  background:
    radial-gradient(circle at 18% 20%, rgba(213, 250, 255, .24) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, .2) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 10%, rgba(89, 220, 231, .5), transparent 34%),
    linear-gradient(165deg, #0c7297 0%, #041d3b 74%);
  background-size: 92px 92px, 118px 118px, auto, auto;
}

.gate-canopy {
  top: -2px;
  width: min(112%, 720px);
  filter: drop-shadow(0 14px 22px rgba(0, 18, 48, .6));
}

.gate-sparkles i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(215, 250, 255, .8);
  background: rgba(148, 231, 238, .18);
  box-shadow: 0 0 14px rgba(127, 227, 236, .65);
}

.envelope-stage {
  filter: drop-shadow(0 30px 54px rgba(0, 18, 48, .75));
}

.open-label {
  border-color: rgba(218, 246, 249, .72);
  background: rgba(4, 29, 59, .9);
  color: #ffffff;
}

.open-label b {
  color: #8fe8ee;
}

.hero {
  background: #041d3b;
}

.hero-portrait {
  object-position: 50% 48%;
  filter: saturate(.92) contrast(1.05);
}

.portrait-frame::after {
  background:
    linear-gradient(180deg, rgba(4, 29, 59, .5) 0%, transparent 31%),
    linear-gradient(180deg, transparent 48%, rgba(3, 24, 50, .94) 100%);
}

.portrait-halo {
  border-color: rgba(218, 245, 250, .78);
  box-shadow: inset 0 0 0 5px rgba(107, 213, 223, .12);
}

.floral-canopy {
  top: 4px;
  width: 108%;
  max-width: 560px;
  filter: drop-shadow(0 12px 18px rgba(0, 18, 48, .7));
}

.hero-copy {
  text-shadow: 0 4px 30px rgba(0, 17, 44, .96);
}

.hero-copy .eyebrow,
.hero-date {
  color: #d9f7f8;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 4px 34px rgba(0, 18, 46, .98);
}

.hero h1 span {
  color: #8de5eb;
}

.floating-stars i {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(221, 250, 252, .76);
  background: rgba(127, 226, 234, .12);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, .65), 0 0 10px rgba(107, 213, 223, .45);
  animation: ocean-bubble 8s ease-in-out infinite;
}

.floating-stars i:nth-child(2),
.floating-stars i:nth-child(5) {
  width: 5px;
  height: 5px;
}

@keyframes ocean-bubble {
  0% {
    opacity: .2;
    transform: translateY(18px) scale(.8);
  }
  50% {
    opacity: .82;
  }
  100% {
    opacity: .16;
    transform: translateY(-24px) scale(1.08);
  }
}

.scroll-note {
  color: rgba(235, 253, 255, .9);
}

.scroll-note span {
  color: #89e5eb;
}

.story,
.details,
.court,
.wishbox,
.gifts,
.rsvp {
  background:
    radial-gradient(circle at 12% 18%, rgba(107, 213, 223, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 31%, rgba(201, 212, 223, .18) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #fbfeff 0%, #e8f4f7 100%);
  background-size: 82px 82px, 112px 112px, auto;
}

.story::before,
.details::before,
.court::before,
.gifts::before,
.rsvp::before {
  border-color: rgba(21, 77, 128, .2);
}

.section-bouquet,
.form-flower {
  width: min(340px, 90vw);
}

.story .section-bouquet,
.court .section-bouquet,
.gifts .section-bouquet,
.form-flower,
.edge-vine {
  filter: drop-shadow(0 12px 20px rgba(9, 55, 96, .22));
}

.script-kicker {
  color: #347fa6;
}

h2,
.family-names strong {
  color: #123e69;
}

h2 em {
  color: #3baeba;
}

.family-names {
  border-color: rgba(21, 77, 128, .2);
}

.countdown,
.timeline,
.gallery,
.playlist {
  background:
    radial-gradient(circle at 16% 19%, rgba(188, 239, 243, .28) 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 32%, rgba(255, 255, 255, .14) 0 1px, transparent 2.5px),
    linear-gradient(150deg, #155f8c 0%, #041d3b 84%);
  background-size: 90px 90px, 108px 108px, auto;
  color: #f5feff;
}

.countdown {
  background: #155f8c;
}

.countdown h2,
.timeline h2,
.gallery h2,
.playlist h2 {
  color: #ffffff;
}

.countdown .eyebrow,
.timeline .script-kicker,
.gallery .script-kicker,
.playlist .eyebrow {
  color: #a8edf0;
}

.timer {
  border-color: rgba(202, 244, 247, .48);
}

.timer strong,
.timer span,
.timeline-list time,
.timeline-list h3 {
  color: #ffffff;
}

.timeline-list::before,
.timeline-list article::after {
  background: #83e0e7;
}

.timeline-list p {
  color: #d9f3f6;
}

.photo-chapter::after,
.thanks::after {
  background: linear-gradient(180deg, transparent 25%, rgba(3, 24, 50, .95) 100%);
}

.locations {
  background:
    radial-gradient(circle at 50% 0%, rgba(107, 213, 223, .18), transparent 44%),
    #e4f1f5;
}

.location-card {
  border-color: rgba(21, 77, 128, .22);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 50px rgba(5, 40, 76, .14);
}

.location-card::before {
  border-color: rgba(141, 202, 215, .72);
}

.location-card.rose-card {
  border-color: rgba(118, 216, 225, .52);
  background: #123f68;
  color: #f5feff;
}

.location-card.rose-card h3,
.location-card.rose-card .eyebrow,
.location-card.rose-card a {
  color: #bceff2;
}

.detail-list article > span {
  color: #2c95a4;
}

.court-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 34px auto 0;
}

.court-grid div {
  padding: 24px 12px;
  border: 1px solid rgba(21, 77, 128, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
}

.court-grid span,
.court-grid strong {
  display: block;
}

.court-grid span {
  color: #4e879f;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.court-grid strong {
  color: #123e69;
  font: 500 1.7rem/1.2 var(--serif);
}

.gallery-carousel {
  filter: drop-shadow(0 22px 34px rgba(0, 18, 48, .58));
}

.gallery-arrow {
  border-color: rgba(210, 247, 249, .88);
  background: rgba(57, 165, 181, .96);
  color: #041d3b;
}

.gallery-status {
  color: #bceff2;
}

.wishbox form,
.playlist form {
  border: 0;
  background: transparent;
  box-shadow: none;
}

input,
textarea {
  border-color: rgba(21, 77, 128, .22);
  background: #ffffff;
}

button,
.location-card a {
  background: #155f8c;
  color: #ffffff;
}

.playlist button {
  background: #72d6df;
  color: #041d3b;
}

.thanks strong {
  color: #a9edf0;
}

footer {
  background: #041d3b;
  color: #d9f4f6;
}

.footer-monogram {
  border-color: #9ee9ed;
  color: #c7f3f5;
}

.music-toggle {
  border-color: rgba(174, 238, 242, .78);
  background: rgba(4, 29, 59, .95);
  color: #ffffff;
}

.toast {
  background: #155f8c;
  color: #ffffff;
}

/* Cherry Blossom theme */
:root {
  --ivory: #fffaf7;
  --paper: #ffffff;
  --blossom: #eaa4b0;
  --rose: #b9586f;
  --burgundy: #601f31;
  --rosewood: #3f1723;
  --gold: #d8ad67;
  --ink: #5a3240;
}

body {
  background: #3f1723;
  color: var(--ink);
}

.invitation {
  background: var(--ivory);
}

.envelope-gate {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 220, 226, .24) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 26%, rgba(255, 241, 233, .18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 10%, rgba(234, 164, 176, .38), transparent 34%),
    linear-gradient(165deg, #93465c 0%, #3f1723 76%);
  background-size: 92px 92px, 118px 118px, auto, auto;
}

.gate-canopy {
  top: -4px;
  width: min(114%, 720px);
  filter: drop-shadow(0 14px 22px rgba(48, 10, 23, .58));
}

.gate-sparkles i {
  background: #f8c4cd;
  box-shadow: 0 0 14px rgba(255, 188, 201, .72);
}

.envelope-stage {
  filter: drop-shadow(0 30px 54px rgba(45, 9, 20, .72));
}

.open-label {
  border-color: rgba(244, 206, 173, .72);
  background: rgba(72, 21, 36, .9);
  color: #fffaf7;
}

.open-label b {
  color: #f5c5cd;
}

.hero {
  background: #3f1723;
}

.hero-portrait {
  object-position: 50% 49%;
  filter: saturate(.94) contrast(1.04);
}

.portrait-frame::after {
  background:
    linear-gradient(180deg, rgba(63, 23, 35, .48) 0%, transparent 30%),
    linear-gradient(180deg, transparent 48%, rgba(50, 15, 26, .94) 100%);
}

.portrait-halo {
  border-color: rgba(242, 209, 167, .78);
  box-shadow: inset 0 0 0 5px rgba(185, 88, 111, .12);
}

.floral-canopy {
  top: 2px;
  width: 108%;
  max-width: 560px;
  filter: drop-shadow(0 12px 18px rgba(52, 12, 24, .68));
}

.hero-copy {
  text-shadow: 0 4px 30px rgba(45, 8, 20, .96);
}

.hero-copy .eyebrow,
.hero-date {
  color: #f6d5db;
}

.hero h1 {
  color: #fffaf7;
  text-shadow: 0 4px 34px rgba(45, 8, 20, .98);
}

.hero h1 span {
  color: #f0acb9;
}

.floating-stars i {
  width: 8px;
  height: 13px;
  border: 0;
  border-radius: 70% 20% 70% 20%;
  background: rgba(247, 183, 195, .78);
  box-shadow: 0 0 7px rgba(255, 202, 211, .42);
  animation: falling-petal 10s ease-in-out infinite;
}

.floating-stars i:nth-child(2),
.floating-stars i:nth-child(5) {
  width: 6px;
  height: 10px;
}

@keyframes falling-petal {
  0% {
    opacity: 0;
    transform: translate3d(-8px, -28px, 0) rotate(0deg);
  }
  20% {
    opacity: .72;
  }
  100% {
    opacity: 0;
    transform: translate3d(20px, 80px, 0) rotate(220deg);
  }
}

.scroll-note {
  color: rgba(255, 245, 242, .9);
}

.scroll-note span {
  color: #efb1bd;
}

.story,
.details,
.court,
.wishbox,
.gifts,
.rsvp {
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 164, 176, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 31%, rgba(216, 173, 103, .14) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #fffdfb 0%, #f7e9e7 100%);
  background-size: 82px 82px, 112px 112px, auto;
}

.story::before,
.details::before,
.court::before,
.gifts::before,
.rsvp::before {
  border-color: rgba(185, 88, 111, .2);
}

.section-bouquet,
.form-flower {
  width: min(340px, 90vw);
}

.story .section-bouquet,
.court .section-bouquet,
.gifts .section-bouquet,
.form-flower,
.edge-vine {
  filter: drop-shadow(0 12px 20px rgba(96, 31, 49, .2));
}

.script-kicker {
  color: #b9586f;
}

h2,
.family-names strong {
  color: #601f31;
}

h2 em {
  color: #cf7589;
}

.family-names {
  border-color: rgba(185, 88, 111, .22);
}

.countdown,
.timeline,
.gallery,
.playlist {
  background:
    radial-gradient(circle at 16% 19%, rgba(245, 197, 205, .28) 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 32%, rgba(255, 255, 255, .12) 0 1px, transparent 2.5px),
    linear-gradient(150deg, #8f4056 0%, #3f1723 84%);
  background-size: 90px 90px, 108px 108px, auto;
  color: #fff9f7;
}

.countdown {
  background: #8f4056;
}

.countdown h2,
.timeline h2,
.gallery h2,
.playlist h2 {
  color: #fffaf7;
}

.countdown .eyebrow,
.timeline .script-kicker,
.gallery .script-kicker,
.playlist .eyebrow {
  color: #f4c2cc;
}

.timer {
  border-color: rgba(242, 202, 209, .48);
}

.timer strong,
.timer span,
.timeline-list time,
.timeline-list h3 {
  color: #fffaf7;
}

.timeline-list::before,
.timeline-list article::after {
  background: #e4b16c;
}

.timeline-list p {
  color: #f4dfe3;
}

.photo-chapter::after,
.thanks::after {
  background: linear-gradient(180deg, transparent 25%, rgba(55, 15, 28, .95) 100%);
}

.locations {
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 164, 176, .18), transparent 44%),
    #f5e9e6;
}

.location-card {
  border-color: rgba(185, 88, 111, .22);
  background: rgba(255, 253, 251, .97);
  box-shadow: 0 18px 50px rgba(83, 29, 45, .14);
}

.location-card::before {
  border-color: rgba(216, 173, 103, .72);
}

.location-card.rose-card {
  border-color: rgba(216, 173, 103, .5);
  background: #6c283c;
  color: #fffaf7;
}

.location-card.rose-card h3,
.location-card.rose-card .eyebrow,
.location-card.rose-card a {
  color: #f4c4cc;
}

.detail-list article > span {
  color: #b9586f;
}

.court-grid div {
  border-color: rgba(185, 88, 111, .18);
  background: rgba(255, 255, 255, .72);
}

.court-grid span {
  color: #ad6678;
}

.court-grid strong {
  color: #601f31;
}

.gallery-carousel {
  filter: drop-shadow(0 22px 34px rgba(48, 10, 23, .56));
}

.gallery-arrow {
  border-color: rgba(244, 210, 216, .88);
  background: rgba(207, 117, 137, .96);
  color: #3f1723;
}

.gallery-status {
  color: #f1c3cb;
}

.wishbox form,
.playlist form {
  border: 0;
  background: transparent;
  box-shadow: none;
}

input,
textarea {
  border-color: rgba(185, 88, 111, .22);
  background: #ffffff;
}

button,
.location-card a {
  background: #7d3148;
  color: #fffaf7;
}

.playlist button {
  background: #eaa4b0;
  color: #3f1723;
}

.thanks strong {
  color: #f2bdc7;
}

footer {
  background: #3f1723;
  color: #f1dce0;
}

.footer-monogram {
  border-color: #d8ad67;
  color: #efc2ca;
}

.music-toggle {
  border-color: rgba(233, 194, 202, .78);
  background: rgba(63, 23, 35, .95);
  color: #fffaf7;
}

.toast {
  background: #7d3148;
  color: #fffaf7;
}

/* Sunflower Celebration theme */
:root {
  --ivory: #fffaf0;
  --paper: #ffffff;
  --sunflower: #f0b72c;
  --honey: #c98b22;
  --leaf: #315631;
  --forest: #193921;
  --gold: #d5a84d;
  --ink: #3f462d;
}

body {
  background: #193921;
  color: var(--ink);
}

.invitation {
  background: var(--ivory);
}

.envelope-gate {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 225, 131, .25) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 26%, rgba(255, 250, 218, .18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 10%, rgba(240, 183, 44, .42), transparent 35%),
    linear-gradient(165deg, #4b6a32 0%, #193921 76%);
  background-size: 92px 92px, 118px 118px, auto, auto;
}

.gate-canopy {
  top: -4px;
  width: min(114%, 720px);
  filter: drop-shadow(0 14px 22px rgba(15, 43, 20, .58));
}

.gate-sparkles i,
.floating-stars i {
  background: #ffd35a;
  box-shadow: 0 0 14px rgba(255, 210, 82, .72);
}

.envelope-stage {
  filter: drop-shadow(0 30px 54px rgba(12, 38, 17, .72));
}

.open-label {
  border-color: rgba(244, 214, 137, .74);
  background: rgba(25, 57, 33, .92);
  color: #fffaf0;
}

.open-label b {
  color: #ffd65f;
}

.hero {
  background: #193921;
}

.hero-portrait {
  object-position: 50% 49%;
  filter: saturate(.96) contrast(1.04);
}

.portrait-frame::after {
  background:
    linear-gradient(180deg, rgba(25, 57, 33, .46) 0%, transparent 30%),
    linear-gradient(180deg, transparent 48%, rgba(18, 44, 25, .94) 100%);
}

.portrait-halo {
  border-color: rgba(245, 213, 127, .8);
  box-shadow: inset 0 0 0 5px rgba(240, 183, 44, .12);
}

.floral-canopy {
  top: 2px;
  width: 108%;
  max-width: 560px;
  filter: drop-shadow(0 12px 18px rgba(16, 41, 20, .66));
}

.hero-copy {
  text-shadow: 0 4px 30px rgba(13, 36, 17, .96);
}

.hero-copy .eyebrow,
.hero-date {
  color: #ffe6a0;
}

.hero h1 {
  color: #fffdf5;
  text-shadow: 0 4px 34px rgba(13, 36, 17, .98);
}

.hero h1 span {
  color: #ffd15a;
}

.floating-stars i {
  width: 4px;
  height: 4px;
  animation: golden-pollen 8s ease-in-out infinite;
}

@keyframes golden-pollen {
  0% {
    opacity: .18;
    transform: translate3d(-5px, 12px, 0);
  }
  50% {
    opacity: .82;
  }
  100% {
    opacity: .12;
    transform: translate3d(12px, -30px, 0);
  }
}

.scroll-note {
  color: rgba(255, 251, 235, .92);
}

.scroll-note span {
  color: #ffd15a;
}

.story,
.details,
.court,
.wishbox,
.gifts,
.rsvp {
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 183, 44, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 31%, rgba(49, 86, 49, .12) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #fffdf7 0%, #f7efd8 100%);
  background-size: 82px 82px, 112px 112px, auto;
}

.story::before,
.details::before,
.court::before,
.gifts::before,
.rsvp::before {
  border-color: rgba(49, 86, 49, .2);
}

.section-bouquet,
.form-flower {
  width: min(340px, 90vw);
}

.story .section-bouquet,
.court .section-bouquet,
.gifts .section-bouquet,
.form-flower,
.edge-vine {
  filter: drop-shadow(0 12px 20px rgba(35, 72, 35, .22));
}

.script-kicker {
  color: #b97916;
}

h2,
.family-names strong {
  color: #284d2d;
}

h2 em {
  color: #d49a21;
}

.family-names {
  border-color: rgba(49, 86, 49, .22);
}

.countdown,
.timeline,
.gallery,
.playlist {
  background:
    radial-gradient(circle at 16% 19%, rgba(255, 217, 99, .28) 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 32%, rgba(255, 255, 255, .12) 0 1px, transparent 2.5px),
    linear-gradient(150deg, #48682f 0%, #193921 84%);
  background-size: 90px 90px, 108px 108px, auto;
  color: #fffdf4;
}

.countdown {
  background: #48682f;
}

.countdown h2,
.timeline h2,
.gallery h2,
.playlist h2 {
  color: #fffdf4;
}

.countdown .eyebrow,
.timeline .script-kicker,
.gallery .script-kicker,
.playlist .eyebrow {
  color: #ffd970;
}

.timer {
  border-color: rgba(244, 211, 116, .5);
}

.timer strong,
.timer span,
.timeline-list time,
.timeline-list h3 {
  color: #fffdf4;
}

.timeline-list::before,
.timeline-list article::after {
  background: #e6b33e;
}

.timeline-list p {
  color: #e8efd8;
}

.photo-chapter::after,
.thanks::after {
  background: linear-gradient(180deg, transparent 25%, rgba(16, 40, 21, .95) 100%);
}

.locations {
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 183, 44, .18), transparent 44%),
    #f1ead2;
}

.location-card {
  border-color: rgba(49, 86, 49, .22);
  background: rgba(255, 253, 246, .97);
  box-shadow: 0 18px 50px rgba(25, 57, 33, .14);
}

.location-card::before {
  border-color: rgba(213, 168, 77, .72);
}

.location-card.rose-card {
  border-color: rgba(213, 168, 77, .52);
  background: #315631;
  color: #fffdf4;
}

.location-card.rose-card h3,
.location-card.rose-card .eyebrow,
.location-card.rose-card a {
  color: #ffe18a;
}

.detail-list article > span {
  color: #b97916;
}

.court-grid div {
  border-color: rgba(49, 86, 49, .18);
  background: rgba(255, 255, 255, .72);
}

.court-grid span {
  color: #7d8956;
}

.court-grid strong {
  color: #284d2d;
}

.gallery-carousel {
  filter: drop-shadow(0 22px 34px rgba(11, 36, 16, .56));
}

.gallery-arrow {
  border-color: rgba(250, 220, 132, .9);
  background: rgba(229, 174, 45, .96);
  color: #193921;
}

.gallery-status {
  color: #ffe08a;
}

.wishbox form,
.playlist form {
  border: 0;
  background: transparent;
  box-shadow: none;
}

input,
textarea {
  border-color: rgba(49, 86, 49, .22);
  background: #ffffff;
}

button,
.location-card a {
  background: #315631;
  color: #fffdf4;
}

.playlist button {
  background: #e8b639;
  color: #193921;
}

.thanks strong {
  color: #ffe08a;
}

footer {
  background: #193921;
  color: #e8efd8;
}

.footer-monogram {
  border-color: #d5a84d;
  color: #ffe08a;
}

.music-toggle {
  border-color: rgba(240, 207, 111, .8);
  background: rgba(25, 57, 33, .95);
  color: #fffdf4;
}

.toast {
  background: #315631;
  color: #fffdf4;
}

/* Gothic Romance theme */
:root {
  --ivory: #f8f0e8;
  --paper: #fffaf5;
  --ink: #2a1820;
  --burgundy: #641f35;
  --wine: #3e111f;
  --night: #120a0f;
  --rose: #9b3d56;
  --gold: #bb9655;
}

body {
  background: var(--night);
  color: var(--ink);
}

.invitation {
  background: var(--ivory);
}

.envelope-gate {
  background:
    radial-gradient(circle at 18% 20%, rgba(187, 150, 85, .2) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 28%, rgba(132, 40, 65, .3) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 46%, rgba(100, 31, 53, .42), transparent 42%),
    linear-gradient(160deg, #35111e 0%, #120a0f 78%);
  background-size: 86px 86px, 116px 116px, auto, auto;
}

.gate-canopy {
  width: min(640px, 98vw);
  max-height: 20vh;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .7));
}

.gate-content {
  width: min(430px, 100vw);
  height: 100svh;
  padding: clamp(54px, 8vh, 88px) 16px 20px;
}

.envelope-button {
  width: 100%;
  height: 100%;
}

.envelope-stage {
  width: min(74vw, 355px);
  height: min(72svh, 650px);
  aspect-ratio: 9 / 16;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .78));
}

.envelope-image {
  object-fit: contain;
}

.open-label {
  border-color: rgba(187, 150, 85, .72);
  background: rgba(35, 9, 18, .92);
  color: #fff8ef;
}

.open-label b {
  color: #d6b46f;
}

.gate-sparkles i {
  background: #d8b66e;
  box-shadow: 0 0 16px rgba(187, 150, 85, .82);
}

.hero {
  min-height: 100svh;
  background: var(--night);
}

.portrait-frame,
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.hero-portrait {
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(.92) contrast(1.06);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 8, 14, .46) 0%, transparent 31%),
    linear-gradient(180deg, transparent 44%, rgba(18, 8, 14, .92) 100%);
}

.portrait-halo {
  display: block;
  z-index: 3;
  inset: 16px;
  border: 1px solid rgba(198, 160, 91, .7);
  border-radius: 22px 22px 92px 92px;
  box-shadow: inset 0 0 0 4px rgba(100, 31, 53, .12);
}

.floral-canopy {
  z-index: 6;
  top: 4px;
  width: 100%;
  max-width: 480px;
  max-height: 23vh;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .78));
}

.hero-copy {
  position: absolute;
  z-index: 7;
  right: 22px;
  bottom: 78px;
  left: 22px;
  color: #fff9f0;
  text-shadow: 0 4px 30px rgba(10, 3, 7, .98);
}

.hero-copy .eyebrow,
.hero-date {
  color: #e5c681;
}

.hero h1 {
  color: #fffaf3;
  text-shadow: 0 4px 34px rgba(10, 3, 7, .98);
}

.hero h1 span {
  color: #c95572;
}

.scroll-note {
  z-index: 7;
  color: rgba(255, 247, 237, .9);
}

.scroll-note span {
  color: #d9b86e;
}

.floating-stars i {
  width: 7px;
  height: 11px;
  border-radius: 70% 15% 70% 25%;
  background: linear-gradient(145deg, #aa435e, #541429);
  box-shadow: 0 0 8px rgba(190, 77, 107, .32);
  opacity: .42;
  animation: drifting-petals 12s linear infinite;
}

.floating-stars i:nth-child(2n) {
  width: 5px;
  height: 8px;
  animation-duration: 15s;
}

@keyframes drifting-petals {
  0% {
    opacity: 0;
    transform: translate3d(-8px, -14vh, 0) rotate(0deg);
  }
  18% {
    opacity: .45;
  }
  100% {
    opacity: .08;
    transform: translate3d(24px, 105vh, 0) rotate(300deg);
  }
}

.story,
.details,
.court,
.wishbox,
.gifts,
.rsvp {
  background:
    radial-gradient(circle at 12% 18%, rgba(100, 31, 53, .09) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 31%, rgba(187, 150, 85, .1) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #fffaf5 0%, #eee1df 100%);
  background-size: 82px 82px, 112px 112px, auto;
}

.story::before,
.details::before,
.court::before,
.gifts::before,
.rsvp::before {
  border-color: rgba(100, 31, 53, .2);
}

.section-bouquet,
.form-flower {
  width: min(400px, 96vw);
  max-height: 150px;
  object-fit: contain;
}

.story .section-bouquet,
.court .section-bouquet,
.gifts .section-bouquet,
.form-flower,
.edge-vine {
  filter: drop-shadow(0 12px 20px rgba(37, 10, 20, .22));
}

.script-kicker {
  color: #8d304b;
}

h2,
.family-names strong {
  color: #431526;
}

h2 em {
  color: #9d3f58;
}

.family-names {
  border-color: rgba(100, 31, 53, .22);
}

.countdown {
  background: #51182b;
  color: #fff9f0;
}

.timeline,
.gallery,
.playlist {
  background:
    radial-gradient(circle at 16% 19%, rgba(187, 150, 85, .24) 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 32%, rgba(255, 255, 255, .08) 0 1px, transparent 2.5px),
    linear-gradient(150deg, #551a2e 0%, #120a0f 84%);
  background-size: 90px 90px, 108px 108px, auto;
  color: #fff9f0;
}

.countdown h2,
.timeline h2,
.gallery h2,
.playlist h2 {
  color: #fff9f0;
}

.countdown .eyebrow,
.timeline .script-kicker,
.gallery .script-kicker,
.playlist .eyebrow {
  color: #e3c27d;
}

.timer {
  border-color: rgba(205, 170, 101, .52);
}

.timer strong,
.timer span,
.timeline-list time,
.timeline-list h3 {
  color: #fffaf3;
}

.timeline {
  overflow: hidden;
  padding-top: 176px;
}

.timeline-crown {
  top: 8px;
  width: 100%;
  max-height: 154px;
  object-fit: contain;
}

.timeline-list::before,
.timeline-list article::after {
  background: #bb9655;
}

.timeline-list p {
  color: #e8d6d5;
}

.photo-chapter::after,
.thanks::after {
  background: linear-gradient(180deg, transparent 25%, rgba(18, 7, 13, .96) 100%);
}

.locations {
  overflow: hidden;
  padding-top: 180px;
  background:
    radial-gradient(circle at 50% 0%, rgba(100, 31, 53, .16), transparent 44%),
    #eee3df;
}

.locations .edge-vine {
  top: 8px;
  left: 50%;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  transform: translateX(-50%);
}

.location-card {
  border-color: rgba(100, 31, 53, .22);
  border-radius: 18px;
  background: rgba(255, 250, 245, .98);
  box-shadow: 0 18px 50px rgba(50, 12, 27, .15);
}

.location-card::before {
  border-color: rgba(187, 150, 85, .68);
  border-radius: 14px;
}

.location-card.rose-card {
  border-color: rgba(187, 150, 85, .5);
  background: #421322;
  color: #fff9f0;
}

.location-card.rose-card h3,
.location-card.rose-card .eyebrow,
.location-card.rose-card a {
  color: #e5c681;
}

.detail-list article > span {
  color: #8d304b;
}

.court-grid div {
  border-color: rgba(100, 31, 53, .18);
  background: rgba(255, 255, 255, .74);
}

.court-grid span {
  color: #9d6071;
}

.court-grid strong {
  color: #431526;
}

.gallery-carousel {
  filter: drop-shadow(0 22px 34px rgba(9, 2, 6, .62));
}

.gallery-viewport,
.gallery-track figure,
.gallery-track img {
  border-radius: 18px;
}

.gallery-arrow {
  border-color: rgba(215, 180, 108, .9);
  background: rgba(112, 31, 55, .96);
  color: #fffaf3;
}

.gallery-status {
  color: #e5c681;
}

.wishbox form,
.playlist form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

input,
textarea {
  border-color: rgba(100, 31, 53, .24);
  border-radius: 14px;
  background: #fff;
}

button,
.location-card a {
  background: #641f35;
  color: #fffaf3;
}

.playlist button {
  background: #bb9655;
  color: #211018;
}

.thanks strong {
  color: #e7c981;
}

footer {
  background: #120a0f;
  color: #e8d9dc;
}

.footer-monogram {
  border-color: #bb9655;
  color: #e7c981;
}

.music-toggle {
  border-color: rgba(187, 150, 85, .8);
  background: rgba(35, 9, 18, .96);
  color: #fffaf3;
}

.toast {
  background: #641f35;
  color: #fffaf3;
}

@media (min-width: 640px) {
  .envelope-stage {
    width: min(48vw, 380px);
    height: min(74svh, 680px);
  }
}

@media (max-height: 720px) {
  .gate-content {
    padding-top: 34px;
  }

  .envelope-stage {
    height: min(68svh, 560px);
  }

  .open-label {
    margin-top: 6px;
  }
}

/* Full-screen envelope standard */
.envelope-gate .gate-content {
  position: absolute;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100svh;
  padding: 0;
}

.envelope-gate .envelope-button {
  position: absolute;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100svh;
}

.envelope-gate .envelope-stage {
  position: absolute;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  aspect-ratio: auto;
  filter: none;
}

.envelope-gate .envelope-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.envelope-gate .open-label {
  position: absolute;
  z-index: 8;
  right: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  width: max-content;
  margin: 0;
  transform: translateX(50%);
}

.envelope-gate.opening .open-label {
  transform: translateX(50%) translateY(12px);
}

@media (min-width: 640px) {
  .envelope-gate .envelope-stage {
    width: 100vw;
    height: 100svh;
  }
}

@media (max-height: 720px) {
  .envelope-gate .gate-content {
    padding: 0;
  }

  .envelope-gate .envelope-stage {
    height: 100svh;
  }
}
