/* =====================================================================
   style.css  (merged: wedding.css + invite.css + extras.css + rsvp.css)
   Order kept exactly as the original <link> order.
   ===================================================================== */

/* ===================== 1) wedding.css ===================== */

@font-face {
  font-family: "Cormorant Local";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: local("Cormorant Garamond Light"), url("fonts/CormorantGaramond-Light.ttf") format("truetype")
}

@font-face {
  font-family: "Cormorant Local";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local("Cormorant Garamond Regular"), url("fonts/CormorantGaramond-Regular.ttf") format("truetype")
}

@font-face {
  font-family: "Cormorant Local";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local("Cormorant Garamond Medium"), url("fonts/CormorantGaramond-Medium.ttf") format("truetype")
}

@font-face {
  font-family: "Cormorant Local";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: local("Cormorant Garamond SemiBold"), url("fonts/CormorantGaramond-SemiBold.ttf") format("truetype")
}

@font-face {
  font-family: "Cormorant Local";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local("Cormorant Garamond Bold"), url("fonts/CormorantGaramond-Bold.ttf") format("truetype")
}

:root {
  --wine-hi: #7d2038;
  --wine: #5a1226;
  --wine-bg-a: #4a1020;
  --wine-bg-b: #1a0409;
  --cream: #e6dece;
  --ivory: #f4efe4;
  --text: #f2ece0;
  --serif: "Cormorant Local", "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --mottle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='m' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 -.2'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  --tip: 62%;
  /* height of the flap = where the ribbon sits */
  --vd: clamp(80px, 12vw, 190px);
  /* depth of the V */
  --ease: cubic-bezier(.65, 0, .25, 1);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--wine-bg-b);
  color: var(--text);
  font-family: var(--serif);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0
}

.envelope {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  width: 100vw;
  height: 100dvh;
  perspective: 2200px;
  overflow: hidden;
  background: radial-gradient(80% 65% at 50% 45%, var(--wine-bg-a), var(--wine-bg-b))
}

/* cream paper */
.paper {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #ebe4d4, #ddd4c1);
  transition: opacity .9s ease 1.43s
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: .2;
  mix-blend-mode: multiply
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mottle), radial-gradient(120% 80% at 50% 100%, transparent 45%, rgba(70, 50, 25, .22));
  background-blend-mode: multiply;
  opacity: .16
}

/* flap: cream lining edge + black paper */
.flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--tip);
  z-index: 3;
  transform-origin: 50% 0;
  backface-visibility: hidden;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .4)) drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
  transition: transform 1.1s var(--ease) .38s, opacity .3s ease 1.48s
}

.flap__edge,
.flap__shape {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 8px)
}

.flap__edge {
  background: linear-gradient(#f7f1e3, #e9e0cc);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--vd)), 50% 100%, 0 calc(100% - var(--vd)))
}

.flap__shape {
  background: linear-gradient(180deg, var(--wine-hi), var(--wine));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px - var(--vd)), 50% calc(100% - 8px), 0 calc(100% - 8px - var(--vd)))
}

.flap__shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: .3;
  mix-blend-mode: screen
}

.flap__shape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mottle);
  opacity: .14;
  mix-blend-mode: screen
}

.flap__eyebrow,
.flap__names {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  z-index: 1
}

.flap__eyebrow {
  top: 22%;
  font-size: clamp(.72rem, 1.05vw, .95rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .85
}

.flap__names {
  top: 30%;
  font-weight: 500;
  font-size: clamp(2.1rem, 10.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6)
}

.flap__names span,
.flap__names i {
  display: block
}

.flap__names i {
  font-style: normal;
  font-size: .9em;
  line-height: 1;
  margin: .05em 0
}

/* laptop / landscape: names on one line */
@media (min-aspect-ratio:1/1) {
  .flap__eyebrow {
    top: 19%
  }

  .flap__names {
    top: 27%;
    font-size: clamp(2.4rem, min(5vw, 9vh), 5rem);
    white-space: nowrap
  }

  .flap__names span,
  .flap__names i {
    display: inline
  }

  .flap__names i {
    margin: 0 .35em
  }
}

/* satin ribbon: drawn and animated on this canvas by the script */
.ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none
}

.envelope:focus-visible {
  outline: none
}

.open:focus-visible {
  outline: 2px solid #111;
  outline-offset: 8px
}

/* label */
.open {
  position: absolute;
  left: 0;
  right: 0;
  top: min(calc(var(--tip) + 30vh), calc(100% - 64px));
  z-index: 2;
  margin: 0 auto;
  width: max-content;
  padding: 6px 4px 14px;
  font-size: clamp(.9rem, 1.2vw, 1.1rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #2a2620;
  transition: opacity .4s ease
}

.open::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 1px;
  background: #2a2620;
  transform: translateX(-50%);
  transition: width .4s
}

.open:hover::after {
  width: 110px
}

/* opened */
.is-open .open {
  opacity: 0;
  pointer-events: none
}

.is-open .flap {
  transform: rotateX(-180deg);
  opacity: 0
}

.is-open .paper {
  opacity: 0
}

@media (prefers-reduced-motion:reduce) {

  .flap,
  .paper,
  .open {
    transition-duration: .01s;
    transition-delay: 0s
  }
}


/* ===================== 2) invite.css ===================== */

/* The invitation page shown after the envelope opens.
   Uses the colors and fonts already defined above. */
:root {
  --gold: #d8bd7e;
  --gold-hi: #f1dfae;
  --line: rgba(216, 189, 126, .32);
}

/* page container: scrolls on its own, fades in over the envelope */
.invite {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  outline: none;
  color: var(--text);
  background: radial-gradient(90% 55% at 50% 0%, var(--wine-hi), transparent 70%), radial-gradient(120% 80% at 50% 30%, var(--wine-bg-a), var(--wine-bg-b));
  opacity: 0;
  visibility: hidden;
  transform: translateY(9vh) scale(.96);
  transform-origin: 50% 70%;
  transition: opacity 1.1s ease, transform 1.4s var(--ease), visibility 0s linear 1.4s
}

.invite::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grain);
  opacity: .16;
  mix-blend-mode: multiply;
  pointer-events: none
}

.is-page .invite {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 1.1s ease, transform 1.4s var(--ease)
}

.is-page .envelope {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s
}

.invite__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 7vh, 72px);
  padding: calc(clamp(48px, 9vh, 96px) + env(safe-area-inset-top)) 24px calc(clamp(56px, 10vh, 110px) + env(safe-area-inset-bottom))
}

/* scroll-in animation */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease var(--d, 0s), transform 1s var(--ease) var(--d, 0s)
}

.rv.in {
  opacity: 1;
  transform: none
}

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%
}

.eyebrow {
  margin: 0;
  font-size: clamp(.8rem, 2.6vw, 1rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .85
}

.names {
  margin: .3em 0 0;
  font-weight: 500;
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5)
}

.names span,
.names i {
  display: block;
  white-space: nowrap
}

.names i {
  font-style: normal;
  font-size: .8em;
  line-height: 1;
  margin: .08em 0;
  color: var(--gold)
}

.lead {
  margin: .7em 0 0;
  font-style: italic;
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  letter-spacing: .04em;
  color: var(--gold-hi)
}

/* main photo in an arch, with a fine gold frame */
.photo {
  position: relative;
  margin: clamp(30px, 5vh, 46px) 0 0;
  width: min(78vw, 400px);
  aspect-ratio: 3/4;
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5)
}

.photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(216, 189, 126, .55);
  border-radius: 999px 999px 16px 16px;
  pointer-events: none
}

.photo__ph {
  width: 100%;
  height: 100%;
  border-radius: inherit
}

.photo img {
  position: absolute;
  left: 0;
  top: -7%;
  width: 100%;
  height: 114%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  translate: 0 var(--py, 0px);
  transition: opacity 1.2s ease, transform 9s ease-out
}

.photo.has-image img {
  opacity: 1;
  transform: scale(1)
}

.photo__ph {
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: .12em;
  color: var(--gold);
  background: linear-gradient(160deg, #6d1a30, #2a0912);
  transition: opacity 1.2s ease
}

.photo.has-image .photo__ph {
  opacity: 0
}

/* date / time / place */
.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
  padding: 8px 0
}

.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px
}

.detail svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round
}

.detail h3 {
  margin: 6px 0 0;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold)
}

.detail p {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.3
}

@media (min-width:720px) {
  .details {
    grid-template-columns: repeat(3, 1fr);
    gap: 0
  }

  .detail+.detail {
    border-left: 1px solid var(--line)
  }
}

/* countdown */
.count {
  width: 100%
}

.count__title {
  margin: 0 0 20px;
  font-size: .9rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  opacity: .85
}

.count__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2.5vw, 18px);
  width: min(100%, 520px);
  margin: 0 auto
}

.count__grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(14px, 3.5vw, 22px) 4px;
  border: 1px solid rgba(216, 189, 126, .4);
  border-radius: 6px;
  background: rgba(0, 0, 0, .18)
}

.count__grid b {
  font-weight: 500;
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 1;
  color: var(--gold-hi);
  font-variant-numeric: lining-nums tabular-nums
}

.count__grid span {
  font-size: clamp(.6rem, 2.4vw, .78rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .8
}

.count__note {
  margin: 18px 0 0;
  min-height: 1.4em;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-hi)
}

/* Google Maps button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(216, 189, 126, .16), rgba(216, 189, 126, .04));
  transition: opacity 1s ease var(--d, 0s), transform .4s ease, background .3s ease, color .3s ease
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round
}

.btn.rv.in:hover {
  background: var(--gold);
  color: #2a0912;
  transform: translateY(-2px)
}

.btn:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px
}

/* footer */
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.foot p {
  margin: 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream)
}

@media (prefers-reduced-motion:reduce) {

  .invite,
  .is-page .invite,
  .is-page .envelope {
    transition-duration: .01s;
    transition-delay: 0s;
    transform: none
  }

  .rv,
  .photo img,
  .photo__ph,
  .btn {
    opacity: 1;
    transform: none;
    transition: none
  }

  .photo img {
    opacity: 0
  }

  .photo.has-image img {
    opacity: 1
  }
}


/* ---- (invite.css continues: creative touches) ---- */

/* ---------- creative touches ---------- */

/* names written letter by letter */
.names.rv {
  opacity: 1;
  transform: none
}

.names .ch {
  display: inline-block;
  font-style: normal;
  opacity: 0;
  transform: translateY(.35em);
  filter: blur(6px);
  transition: opacity .7s ease, transform .7s var(--ease), filter .7s ease;
  transition-delay: calc(.3s + var(--i, 0) * 75ms)
}

.names.in .ch {
  opacity: 1;
  transform: none;
  filter: none
}

/* gold dust behind the content */
.dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none
}

.invite__inner {
  z-index: 1
}

/* satin progress thread with a bow at the end */
.thread {
  position: fixed;
  z-index: 2;
  right: max(28px, env(safe-area-inset-right));
  top: 14vh;
  bottom: 14vh;
  width: 4px;
  border-radius: 2px;
  background: rgba(216, 189, 126, .16);
  pointer-events: none;
  --p: 0;
  --bow: 0
}

.thread__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a6a2c, #f6e9be 50%, #a8873f);
  transform-origin: 50% 0;
  transform: scaleY(var(--p))
}

.thread__tip {
  position: absolute;
  left: 50%;
  top: calc(var(--p) * 100%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0, rgba(241, 223, 174, .7) 40%, transparent 72%);
  opacity: calc(1 - var(--bow))
}

/* the bow is larger now, so it is easy to see and to tap */
.thread__bowbtn {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 44px;
  height: 35px;
  margin-left: -22px;
  padding: 0;
  transform: scale(var(--bow));
  transform-origin: 50% 100%;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5))
}

.thread__bowbtn::before {
  content: "";
  position: absolute;
  inset: -18px
}

.thread__bow {
  display: block;
  width: 100%;
  height: 100%
}

.thread:not(.is-end) .thread__bowbtn {
  visibility: hidden
}

.thread.is-end .thread__bowbtn {
  pointer-events: auto;
  cursor: pointer;
  animation: bowGlow 2.2s ease-in-out infinite
}

@keyframes bowGlow {
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 236, 170, .95))
  }
}

.thread__bowbtn:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 6px;
  border-radius: 4px
}

/* ribbon dividers that unfurl from the centre */
.rib {
  position: relative;
  width: min(100%, 520px);
  height: 9px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4))
}

.rib i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #8a6a2c, #d9bf7e 30%, #f6e9be 50%, #cfae66 75%, #8a6a2c);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
  transform: scaleX(0);
  transition: transform 1.5s var(--ease)
}

.rib.in i {
  transform: scaleX(1)
}

.rib::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, #f6e9be, #b8964f);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform .6s var(--ease) 1.1s
}

.rib.in::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1)
}

/* photo: tilts toward the pointer, and the picture drifts slower than the page */
.photo__in {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  will-change: transform;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s ease-out
}

.photo__ph {
  position: absolute;
  inset: 0
}

/* evening schedule */
.sched {
  width: 100%
}

.sched__title {
  margin: 0 0 26px;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold)
}

.sched__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center
}

.sched__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 40px
}

.sched__list li:last-child {
  padding-bottom: 0
}

.sched__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--gold), rgba(216, 189, 126, .12))
}

.sched__t {
  font-size: 1.05rem;
  letter-spacing: .2em;
  color: var(--gold-hi);
  font-variant-numeric: lining-nums
}

.sched__n {
  font-size: clamp(1.25rem, 4vw, 1.5rem)
}

/* countdown: flipping digits and a burst of gold at zero */
.count__grid {
  position: relative;
  perspective: 400px
}

.count__grid b {
  display: inline-block
}

.count__grid b.flip {
  animation: flip .45s ease-out
}

@keyframes flip {
  from {
    transform: rotateX(85deg);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8, #e3c987 55%, transparent 72%);
  pointer-events: none;
  animation: spark 1.4s ease-out forwards
}

@keyframes spark {
  0% {
    transform: translate(0, 0) scale(.4);
    opacity: 1
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(1.1);
    opacity: 0
  }
}

/* buttons side by side */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center
}

/* visible "Celebrate with us" button in the footer (sets off the fireworks) */
.btn.celebrate {
  margin-top: 18px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ivory)
}

.btn.celebrate:hover {
  background: var(--gold);
  color: #2a0912;
  transform: translateY(-2px)
}

/* replay */
.foot .again {
  margin-top: 18px;
  padding: 10px 6px;
  font-size: .85rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s
}

.foot .again:hover {
  color: var(--gold-hi);
  border-color: var(--gold)
}

.foot .again:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px
}

/* closing the envelope again: the flap and paper return without waiting */
.is-resetting .flap,
.is-resetting .paper {
  transition-delay: 0s
}

@media (prefers-reduced-motion:reduce) {

  .names .ch,
  .rib i,
  .rib::after,
  .photo__in {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none
  }

  .rib i {
    transform: scaleX(1)
  }

  .rib::after {
    transform: translate(-50%, -50%) rotate(45deg)
  }

  .count__grid b.flip {
    animation: none
  }
}

/* ---------- scratch-off date, signature, fireworks, unravelling ribbon ---------- */

/* gold foil plaque over the date: wide, easy to rub, with a travelling sheen and a coin hint */
.scratch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  min-height: 78px;
  margin: 0 auto;
  padding: .5em 1em;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35)
}

.scratch [data-date] {
  position: relative;
  z-index: 0;
  display: block;
  text-align: center;
  line-height: 1.3;
  transition: text-shadow 1.2s ease
}

.scratch:not(.revealed) {
  animation: foilGlow 2.6s ease-in-out infinite
}

@keyframes foilGlow {
  50% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 22px rgba(241, 223, 174, .55)
  }
}

.scratch canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  touch-action: none;
  cursor: pointer;
  outline-offset: 3px;
  transition: opacity .9s ease, transform .9s ease
}

.scratch canvas:not(.done) {
  cursor: crosshair
}

.scratch canvas.done {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none
}

.scratch canvas:focus-visible {
  outline: 2px solid var(--gold-hi)
}

/* soft light sweeping across the foil */
.scratch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 250, 225, .6) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 160% 0;
  mix-blend-mode: soft-light;
  animation: foilSheen 3.4s ease-in-out infinite
}

@keyframes foilSheen {
  0% {
    background-position: 160% 0
  }

  60%,
  100% {
    background-position: -60% 0
  }
}

.scratch.revealed::after {
  display: none
}

/* a little gold coin that rubs the foil to show what to do */
.scratch__coin {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 12%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #e3c987 45%, #8a6a2c);
  box-shadow: 0 4px 9px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(90, 60, 10, .35), inset 0 0 0 5px rgba(255, 244, 205, .25);
  animation: coinHint 2.8s ease-in-out 1.4s infinite
}

@keyframes coinHint {
  0% {
    left: 12%;
    opacity: 0;
    transform: rotate(-24deg)
  }

  12% {
    opacity: 1
  }

  50% {
    left: 80%;
    opacity: 1;
    transform: rotate(24deg)
  }

  88% {
    left: 14%;
    opacity: 1;
    transform: rotate(-24deg)
  }

  100% {
    left: 12%;
    opacity: 0
  }
}

.scratch.touched .scratch__coin,
.scratch.revealed .scratch__coin {
  display: none
}

/* gold flakes that fly off while rubbing */
.flake {
  position: absolute;
  z-index: 3;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fff6d8, #d9bf7e 60%, transparent 72%);
  animation: flake .9s ease-in forwards
}

@keyframes flake {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1
  }

  to {
    transform: translate(var(--dx), var(--dy)) scale(.4);
    opacity: 0
  }
}

/* the hint line under the plaque */
.scratch__hint {
  display: block;
  max-height: 2em;
  overflow: hidden;
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--gold-hi);
  opacity: .85;
  transition: opacity .6s ease, max-height .6s ease
}

.scratch__hint.gone {
  opacity: 0;
  max-height: 0
}

/* the date glows for a moment once uncovered */
.scratch.revealed {
  animation: revealGlow 1.8s ease-out
}

.scratch.revealed [data-date] {
  text-shadow: 0 0 18px rgba(241, 223, 174, .5)
}

@keyframes revealGlow {
  0% {
    box-shadow: 0 0 0 rgba(241, 223, 174, 0)
  }

  30% {
    box-shadow: 0 0 34px rgba(241, 223, 174, .75)
  }

  100% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0)
  }
}

/* signature written with a pen */
.sign {
  width: min(100%, 460px);
  height: auto;
  overflow: visible;
  margin-top: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45))
}

.sign text {
  font-family: "Pinyon Script", "Great Vibes", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive
}

.sign .pen {
  fill: none;
  stroke: #fff;
  stroke-width: 96;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 3.4s cubic-bezier(.45, 0, .3, 1) .4s
}

.sign .flourish {
  fill: none;
  stroke: url(#gs);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s ease 3.6s
}

.foot.in .sign .pen,
.foot.in .sign .flourish {
  stroke-dashoffset: 0
}

/* fireworks from the bow */
.fw {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none
}

/* countdown ribbon that gets shorter every day, fraying at the cut end */
.unrav {
  position: relative;
  width: min(100%, 520px);
  height: 18px;
  margin: 28px auto 0;
  --f: 1
}

.unrav__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(216, 189, 126, .14)
}

.unrav__fill {
  position: absolute;
  left: 0;
  top: 2px;
  height: 14px;
  width: 0;
  transition: width 2.2s var(--ease);
  background: linear-gradient(180deg, #8a6a2c, #d9bf7e 30%, #f6e9be 50%, #cfae66 75%, #8a6a2c);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%)
}

.count.in .unrav__fill {
  width: calc(var(--f) * 100%)
}

.unrav__end {
  position: absolute;
  top: 9px;
  left: 0;
  width: 0;
  height: 0;
  transition: left 2.2s var(--ease)
}

.count.in .unrav__end {
  left: calc(var(--f) * 100%)
}

.unrav__end i {
  position: absolute;
  left: -3px;
  top: 0;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, #d9bf7e, transparent);
  transform-origin: left center;
  transform: rotate(var(--r));
  animation: sway 3s ease-in-out infinite;
  animation-delay: var(--dl)
}

.unrav__end i:nth-child(1) {
  --r: -18deg;
  --dl: 0s;
  width: 15px
}

.unrav__end i:nth-child(2) {
  --r: -5deg;
  --dl: -.8s;
  width: 24px
}

.unrav__end i:nth-child(3) {
  --r: 9deg;
  --dl: -1.6s;
  width: 20px
}

.unrav__end i:nth-child(4) {
  --r: 22deg;
  --dl: -2.3s;
  width: 14px
}

@keyframes sway {
  50% {
    transform: rotate(calc(var(--r) + 9deg))
  }
}

.unrav__cap {
  margin: 12px 0 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-hi);
  opacity: .85
}

@media (prefers-reduced-motion:reduce) {

  .scratch:not(.revealed),
  .scratch.revealed,
  .scratch::after,
  .thread.is-end .thread__bowbtn,
  .unrav__end i {
    animation: none
  }

  .scratch__coin,
  .flake {
    display: none
  }

  .scratch canvas {
    transition: none
  }

  .sign .pen,
  .sign .flourish {
    stroke-dashoffset: 0;
    transition: none
  }

  .unrav__fill,
  .unrav__end {
    transition: none
  }
}


/* ===================== 3) extras.css (gallery, photo viewer, music button) ===================== */

/* ---------- gallery ---------- */
.gallery {
  --cw: clamp(210px, 62vw, 290px);
  --gap: clamp(14px, 3vw, 26px);
  width: min(100vw, 1000px);
  display: flex;
  flex-direction: column;
  align-items: center
}

.gallery__title {
  margin: 0;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold)
}

.gallery__sub {
  margin: 10px 0 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-hi);
  opacity: .85;
  padding: 0 24px
}

.gallery__stage {
  position: relative;
  width: 100%;
  margin-top: 26px
}

.gallery__track {
  position: relative;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 34px calc(50% - var(--cw) / 2) 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  perspective: 1100px;
  cursor: grab
}

.gallery__track::-webkit-scrollbar {
  display: none
}

.gallery__track.is-drag {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none
}

/* one photo: an arch with a fine gold frame, like the main photo */
.gcard {
  flex: 0 0 var(--cw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0;
  text-align: center;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent
}

.gcard__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5)
}

.gcard__frame::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(216, 189, 126, .5);
  border-radius: 999px 999px 16px 16px;
  pointer-events: none;
  transition: border-color .4s ease, box-shadow .4s ease
}

.gcard.is-active .gcard__frame::before {
  border-color: var(--gold-hi);
  box-shadow: 0 0 22px rgba(241, 223, 174, .28)
}

.gcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .9s ease;
  -webkit-user-drag: none;
  user-select: none
}

.gcard__frame.has-image .gcard__img {
  opacity: 1
}

.gcard__ph {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  letter-spacing: .12em;
  color: var(--gold);
  background: linear-gradient(160deg, #6d1a30, #2a0912);
  transition: opacity .9s ease
}

.gcard__frame.has-image .gcard__ph {
  opacity: 0
}

.gcard__cap {
  min-height: 1.5em;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-hi);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .5s ease, transform .5s var(--ease)
}

.gcard.is-active .gcard__cap {
  opacity: 1;
  transform: none
}

.gcard:focus-visible {
  outline: none
}

.gcard:focus-visible .gcard__frame::before {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px
}

/* arrows */
.gnav {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(26, 4, 9, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: var(--gold-hi);
  transition: background .3s ease, color .3s ease, opacity .3s ease
}

.gnav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.gnav--prev {
  left: 6px
}

.gnav--next {
  right: 6px
}

.gnav:hover:not(:disabled) {
  background: var(--gold);
  color: #2a0912
}

.gnav:disabled {
  opacity: .28;
  cursor: default
}

.gnav:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px
}

/* counter and progress line */
.gallery__count {
  margin: 2px 0 0;
  font-size: .95rem;
  letter-spacing: .3em;
  color: var(--gold-hi);
  font-variant-numeric: lining-nums tabular-nums
}

.gallery__bar {
  position: relative;
  width: min(60%, 220px);
  height: 2px;
  margin-top: 14px;
  border-radius: 1px;
  background: rgba(216, 189, 126, .2);
  overflow: hidden
}

.gallery__bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #8a6a2c, #f6e9be, #cfae66);
  transform-origin: 0 50%;
  transform: scaleX(.1);
  transition: transform .5s var(--ease)
}

/* ---------- full-screen viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(14, 2, 6, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  touch-action: pan-y
}

.lightbox.lb-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease
}

.lb__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px 0 24px
}

.lb__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(.96);
  transition: transform .5s var(--ease)
}

.lightbox.lb-open .lb__fig {
  transform: none
}

.lb__frame {
  position: relative;
  width: min(88vw, 820px);
  height: min(70vh, 820px)
}

.lb__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .5s ease;
  border-radius: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  -webkit-user-drag: none
}

.lb__fig.ok .lb__frame img {
  opacity: 1
}

.lb__ph {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 12vw, 5rem);
  letter-spacing: .12em;
  color: var(--gold);
  background: linear-gradient(160deg, #6d1a30, #2a0912);
  border: 1px solid rgba(216, 189, 126, .4);
  transition: opacity .5s ease
}

.lb__fig.ok .lb__ph {
  opacity: 0
}

.lb__fig figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center
}

#lbCap {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-hi)
}

#lbCount {
  font-size: .85rem;
  letter-spacing: .3em;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums
}

.lb__close,
.lb__nav {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(26, 4, 9, .55);
  display: grid;
  place-items: center;
  color: var(--gold-hi);
  transition: background .3s ease, color .3s ease
}

.lb__close svg,
.lb__nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.lb__close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right))
}

.lb__nav {
  top: 50%;
  margin-top: -23px
}

.lb__nav--prev {
  left: max(10px, env(safe-area-inset-left))
}

.lb__nav--next {
  right: max(10px, env(safe-area-inset-right))
}

.lb__close:hover,
.lb__nav:hover {
  background: var(--gold);
  color: #2a0912
}

.lb__close:focus-visible,
.lb__nav:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px
}

/* ---------- music button ---------- */
.music {
  position: fixed;
  z-index: 12;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(26, 4, 9, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s, background .3s ease
}

.is-page .music {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease 1.2s, background .3s ease
}

.music:hover {
  background: rgba(216, 189, 126, .22)
}

.music:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px
}

.music__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px
}

.music__bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--gold-hi)
}

.music.is-on .music__bars i {
  animation: eq 1.1s ease-in-out infinite
}

.music.is-on .music__bars i:nth-child(2) {
  animation-duration: .85s;
  animation-delay: -.4s
}

.music.is-on .music__bars i:nth-child(3) {
  animation-duration: 1.3s;
  animation-delay: -.7s
}

@keyframes eq {

  0%,
  100% {
    height: 4px
  }

  50% {
    height: 15px
  }
}

.music:not(.is-on) .music__bars {
  opacity: .55
}

.music:not(.is-on)::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1px;
  background: var(--gold-hi);
  transform: rotate(-45deg)
}

@media (prefers-reduced-motion:reduce) {

  .gcard__cap,
  .lb__fig,
  .gallery__bar i {
    transition: none;
    transform: none
  }

  .gallery__bar i {
    transform: scaleX(1)
  }

  .music.is-on .music__bars i {
    animation: none;
    height: 10px
  }
}


/* ===================== 4) rsvp.css ===================== */

/* RSVP / attendance confirmation. */

.rsvp {
  width: min(100%, 520px);
  padding: clamp(26px, 6vw, 42px) clamp(18px, 5vw, 36px);
  border: 1px solid rgba(216, 189, 126, .4);
  border-radius: 6px;
  background: rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.rsvp [hidden] {
  display: none !important
}

.rsvp__title {
  margin: 0;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold)
}

.rsvp__lead {
  margin: 10px 0 0;
  font-style: italic;
  font-size: clamp(1.3rem, 4.4vw, 1.7rem);
  color: var(--gold-hi)
}

.rsvp__deadline {
  margin: 8px 0 0;
  font-size: 1rem;
  letter-spacing: .06em;
  opacity: .8
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 28px
}

/* fields */
.rsvp__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0
}

.rsvp__label {
  padding: 0;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center
}

.rsvp__in {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(216, 189, 126, .4);
  border-radius: 6px;
  color: var(--ivory);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: center;
  outline: none;
  resize: vertical;
  transition: border-color .3s ease, box-shadow .3s ease
}

.rsvp__in::placeholder {
  color: rgba(230, 222, 206, .42);
  font-style: italic
}

.rsvp__in:focus {
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 3px rgba(216, 189, 126, .16)
}

.rsvp__field.is-bad .rsvp__in {
  border-color: #e58f7a
}

.rsvp__err {
  margin: 0;
  min-height: 1.2em;
  font-style: italic;
  font-size: 1rem;
  color: #f2b8a6
}

.rsvp__err:empty {
  min-height: 0
}

/* the two answers, as pills */
.rsvp__choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.rsvp__opt {
  position: relative;
  display: block;
  cursor: pointer
}

.rsvp__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer
}

.rsvp__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 12px 8px;
  border: 1px solid rgba(216, 189, 126, .4);
  border-radius: 6px;
  background: rgba(0, 0, 0, .18);
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease
}

.rsvp__opt:hover span {
  border-color: var(--gold)
}

.rsvp__opt input:checked+span {
  background: linear-gradient(180deg, #e9d49a, #c9a95e);
  border-color: var(--gold-hi);
  color: #2a0912;
  box-shadow: 0 0 18px rgba(241, 223, 174, .3)
}

.rsvp__opt input:focus-visible+span {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px
}

.rsvp__field.is-bad .rsvp__opt span {
  border-color: #e58f7a
}

/* number of guests */
.rsvp__step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px
}

.rsvp__step button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(216, 189, 126, .08);
  color: var(--gold-hi);
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease, opacity .3s ease
}

.rsvp__step button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round
}

.rsvp__step button:hover:not(:disabled) {
  background: var(--gold);
  color: #2a0912
}

.rsvp__step button:disabled {
  opacity: .3;
  cursor: default
}

.rsvp__step button:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px
}

.rsvp__step output {
  min-width: 2ch;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-hi);
  font-variant-numeric: lining-nums tabular-nums
}

/* hidden anti-spam field */
.rsvp__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0
}

/* send button */
.rsvp__send {
  align-self: center;
  margin-top: 4px;
  cursor: pointer;
  font-family: inherit
}

.rsvp__send:hover:not(:disabled),
.rsvp__act:hover {
  background: var(--gold);
  color: #2a0912;
  transform: translateY(-2px)
}

.rsvp__send:disabled {
  opacity: .6;
  cursor: progress
}

.rsvp__err--form {
  text-align: center
}

/* thank-you state */
.rsvp__thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
  animation: rsvpIn .9s var(--ease) both
}

@keyframes rsvpIn {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.rsvp__seal {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 6px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55))
}

.rsvp__seal svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible
}

.rsvp__seal text {
  font-family: "Pinyon Script", "Great Vibes", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive
}

.rsvp__thanks:not([hidden]) .rsvp__seal svg {
  animation: stamp .95s var(--ease) both
}

@keyframes stamp {
  0% {
    transform: scale(1.8) rotate(-16deg);
    opacity: 0
  }

  55% {
    transform: scale(.93) rotate(3deg);
    opacity: 1
  }

  100% {
    transform: none;
    opacity: 1
  }
}

.rsvp__thanks h4 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  letter-spacing: .04em;
  color: var(--gold-hi)
}

.rsvp__thanks p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 34ch
}

.rsvp__sum {
  font-style: italic;
  color: var(--cream);
  opacity: .9
}

.rsvp__acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px
}

.rsvp__act {
  cursor: pointer;
  font-family: inherit;
  padding: 13px 28px;
  font-size: .9rem
}

.rsvp__edit {
  padding: 8px 6px;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  transition: color .3s ease, border-color .3s ease
}

.rsvp__edit:hover {
  color: var(--gold-hi);
  border-color: var(--gold)
}

.rsvp__edit:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px
}

@media (max-width:380px) {
  .rsvp__opt span {
    font-size: .85rem;
    letter-spacing: .1em
  }
}

@media (prefers-reduced-motion:reduce) {

  .rsvp__thanks,
  .rsvp__thanks:not([hidden]) .rsvp__seal svg {
    animation: none
  }

  .rsvp__send:hover:not(:disabled),
  .rsvp__act:hover {
    transform: none
  }
}