:root {
  --wine: #5a0f22;
  --wine-deep: #28060f;
  --wine-soft: #7e2239;
  --ivory: #f4ead8;
  --paper: #eadbc2;
  --gold: #c8a568;
  --gold-pale: #e2c98f;
  --ink: #36211d;
  --rose: #a95768;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ivory);
  background: var(--wine-deep);
  font-family: Georgia, "Times New Roman", serif;
}

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

.invitation {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  isolation: isolate;
  padding: 9vh 20px 5vh;
  text-align: center;
  background:
    radial-gradient(circle at 50% 33%, rgba(174, 60, 82, 0.34), transparent 36%),
    linear-gradient(150deg, #6d122a 0%, #3b0816 53%, #22040c 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 68vw;
  height: 68vw;
  max-width: 480px;
  max-height: 480px;
  content: "";
  border: 1px solid rgba(200, 165, 104, 0.22);
  border-radius: 50%;
}

.hero::before {
  top: -30vw;
  left: -30vw;
  box-shadow: 0 0 0 18px rgba(200, 165, 104, 0.04);
}

.hero::after {
  right: -34vw;
  bottom: -30vw;
  box-shadow: 0 0 0 28px rgba(200, 165, 104, 0.04);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 15% 18%, var(--gold) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 24%, var(--gold) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 77%, var(--gold) 0 1px, transparent 2px);
  background-size: 92px 92px, 126px 126px, 164px 164px;
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--gold-pale);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero .save-the-date {
  color: var(--gold-pale);
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: none;
}

.hero h1 {
  margin: 14px 0 5px;
  color: #fff5e7;
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero h1 span {
  color: var(--gold);
  font-size: 0.78em;
}

.hero-subtitle {
  margin: 0;
  color: rgba(244, 234, 216, 0.72);
  font-size: 0.88rem;
  font-style: italic;
}

.music-toggle {
  position: fixed;
  z-index: 30;
  top: 18px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--ivory);
  border: 1px solid rgba(226, 201, 143, 0.34);
  border-radius: 999px;
  background: rgba(39, 5, 14, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font: 600 0.67rem/1 Arial, sans-serif;
  letter-spacing: 0.08em;
}

.music-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.music-pulse.active {
  animation: pulse 1.1s infinite;
}

.envelope-button {
  display: flex;
  width: min(92vw, 480px);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.envelope {
  position: relative;
  display: block;
  width: min(78vw, 350px);
  aspect-ratio: 1.38;
  filter: drop-shadow(0 26px 35px rgba(16, 0, 5, 0.42));
  transform: translateY(10px);
}

.envelope-back,
.envelope-front,
.envelope-lining,
.envelope-flap {
  position: absolute;
  inset: 0;
  display: block;
}

.envelope-back {
  border: 1px solid #d7c5a5;
  border-radius: 4px;
  background:
    linear-gradient(rgba(247, 237, 219, 0.88), rgba(222, 204, 176, 0.9)),
    url("/botanica-romantica.png") center 82% / 125% auto;
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 238, 0.2),
    inset 0 -18px 30px rgba(138, 92, 55, 0.08);
}

.envelope-lining {
  top: 1px;
  height: 62%;
  background:
    linear-gradient(rgba(75, 9, 25, 0.82), rgba(75, 9, 25, 0.82)),
    url("/botanica-romantica.png") center 15% / cover;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
}

.envelope-flap {
  z-index: 8;
  height: 62%;
  border-top: 1px solid #dcc9a9;
  background:
    linear-gradient(rgba(248, 238, 220, 0.86), rgba(221, 201, 168, 0.9)),
    url("/botanica-romantica.png") center 18% / cover;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition:
    transform 1s cubic-bezier(0.22, 0.8, 0.2, 1),
    z-index 0s 0.45s;
}

.envelope-front {
  z-index: 7;
  background:
    linear-gradient(rgba(247, 236, 217, 0.82), rgba(222, 202, 171, 0.88)),
    url("/botanica-romantica.png") center 76% / 145% auto;
  box-shadow:
    inset 0 -1px 0 rgba(126, 82, 46, 0.28),
    inset 0 -28px 42px rgba(130, 84, 46, 0.08);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
}

.envelope-front::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(166, 125, 66, 0.42);
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
}

.envelope-front::after {
  position: absolute;
  right: 19%;
  bottom: 16%;
  left: 19%;
  height: 1px;
  content: "";
  background: linear-gradient(
    to right,
    transparent,
    rgba(151, 108, 54, 0.52),
    transparent
  );
  box-shadow: 0 8px 0 rgba(151, 108, 54, 0.2);
}

.wax-seal {
  position: absolute;
  z-index: 10;
  top: 36%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #e8cf9a;
  border: 4px double rgba(226, 201, 143, 0.45);
  border-radius: 46% 54% 51% 49%;
  background: radial-gradient(circle at 35% 30%, #a6314c, #6b1329 68%);
  box-shadow: 0 4px 8px rgba(49, 7, 19, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%) rotate(-4deg);
  transition:
    opacity 0.35s,
    transform 0.5s;
}

.letter {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 50%;
  display: grid;
  width: 50%;
  height: 66%;
  place-items: center;
  overflow: hidden;
  color: var(--wine);
  border: 1px solid rgba(90, 15, 34, 0.18);
  background: #f7edda;
  box-shadow: 0 8px 18px rgba(33, 4, 12, 0.2);
  font-size: 0.75rem;
  transform: translateX(-50%);
  transition: transform 1.1s cubic-bezier(0.18, 0.8, 0.18, 1);
}

.letter-back {
  width: 52%;
  background:
    linear-gradient(rgba(250, 244, 232, 0.26), rgba(250, 244, 232, 0.26)),
    url("/botanica-romantica.png") center / cover;
}

.letter-left,
.letter-right {
  width: 44%;
  height: 64%;
}

.photo-card {
  display: block;
  padding: 7px 7px 17px;
  border: 1px solid rgba(119, 82, 55, 0.22);
  background: #fbf2e2;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-one img {
  object-position: 50% 34%;
}

.photo-card-two img {
  object-position: 50% 42%;
}

.tiny-title {
  max-width: 86%;
  padding: 8px;
  border-radius: 50%;
  background: rgba(248, 239, 222, 0.88);
  font-size: 0.62rem;
  font-style: italic;
}

.tap-copy {
  margin-top: 30px;
  color: var(--gold-pale);
  font: 700 0.68rem/1 Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.is-open .envelope-flap {
  z-index: 1;
  transform: rotateX(178deg);
}

.is-open .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg) scale(0.6);
}

.is-open .letter-back {
  transform: translate(-50%, -62%);
}

.is-open .letter-left {
  transform: translate(-104%, -42%) rotate(-6deg);
}

.is-open .letter-right {
  transform: translate(4%, -35%) rotate(6deg);
}

.scroll-cue {
  display: grid;
  width: 30px;
  height: 48px;
  place-items: start center;
  padding-top: 8px;
  border: 1px solid rgba(226, 201, 143, 0.48);
  border-radius: 20px;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--gold);
  animation: scroll 1.8s infinite;
}

.intro,
.date-section,
.rsvp {
  position: relative;
  padding: 100px 24px;
  text-align: center;
}

.intro {
  color: var(--ink);
  background:
    linear-gradient(rgba(245, 236, 219, 0.93), rgba(245, 236, 219, 0.94)),
    url("/botanica-romantica.png") center / cover;
}

.ornament {
  margin-bottom: 24px;
  color: var(--rose);
  font-size: 2.2rem;
}

.intro .section-kicker {
  color: #8d5b54;
}

.venue h2,
.rsvp h2 {
  margin: 18px 0;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-style: italic;
  font-weight: 400;
}

.bible-verse {
  width: min(86vw, 610px);
  margin: 28px auto 24px;
  padding: 28px 20px 24px;
  border-top: 1px solid rgba(142, 92, 76, 0.38);
  border-bottom: 1px solid rgba(142, 92, 76, 0.38);
}

.bible-verse p {
  margin: 0;
  color: #4e3029;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  font-style: italic;
  line-height: 1.55;
}

.bible-verse cite {
  display: block;
  margin-top: 18px;
  color: var(--wine);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-copy,
.rsvp > p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.85;
}

.date-section {
  color: var(--ivory);
  background:
    radial-gradient(circle at top, rgba(139, 35, 58, 0.65), transparent 42%),
    var(--wine-deep);
}

.date-card {
  width: min(88vw, 460px);
  margin: 0 auto;
  padding: 46px 26px;
  border: 1px solid rgba(226, 201, 143, 0.5);
  background: rgba(90, 15, 34, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.date-card p {
  margin: 0 0 18px;
  color: var(--gold-pale);
  font: 700 0.7rem/1 Arial, sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.date-card strong {
  display: block;
  color: #fff3df;
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
}

.date-card > span {
  display: block;
  margin-top: 18px;
  color: var(--gold-pale);
  font-size: 1rem;
}

.countdown {
  display: grid;
  width: min(90vw, 520px);
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 34px auto 0;
}

.countdown div {
  padding: 17px 5px;
  border-top: 1px solid rgba(226, 201, 143, 0.35);
  border-bottom: 1px solid rgba(226, 201, 143, 0.35);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  color: var(--gold-pale);
  font-size: 1.7rem;
  font-weight: 400;
}

.countdown span {
  margin-top: 7px;
  color: rgba(244, 234, 216, 0.62);
  font: 700 0.58rem/1 Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: #e8ddca;
}

.venue-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(246, 239, 226, 0.36), rgba(231, 217, 194, 0.3)),
    url("/botanica-romantica.png") center / cover;
}

.venue-copy {
  position: relative;
  z-index: 1;
  width: min(86vw, 470px);
  margin: 72px 0;
  padding: 52px 28px;
  border: 1px solid rgba(173, 132, 79, 0.52);
  background: rgba(247, 239, 223, 0.89);
  box-shadow: 0 24px 60px rgba(63, 38, 24, 0.2);
  text-align: center;
  backdrop-filter: blur(5px);
}

.venue-copy .section-kicker {
  color: #8d5b54;
}

.venue-copy > p:not(.section-kicker) {
  margin: 8px 0;
  color: #6b4d42;
}

.venue-copy .time {
  margin-top: 18px !important;
  color: var(--wine) !important;
  font-weight: 700;
}

.outline-button,
.gold-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 0 28px;
  border-radius: 999px;
  font: 700 0.7rem/1 Arial, sans-serif;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.outline-button {
  color: var(--wine);
  border: 1px solid var(--wine);
}

.gold-button {
  color: #37101a;
  background: linear-gradient(135deg, #d7b976, #f0dcaa, #b98f4c);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.rsvp {
  background:
    radial-gradient(circle at 50% 0, rgba(137, 30, 53, 0.52), transparent 35%),
    linear-gradient(150deg, #4e0c1d, #26050d);
}

.adults-only {
  display: flex;
  width: min(86vw, 360px);
  flex-direction: column;
  gap: 6px;
  margin: 28px auto 0;
  padding: 18px 24px;
  color: var(--gold-pale);
  border-top: 1px solid rgba(226, 201, 143, 0.45);
  border-bottom: 1px solid rgba(226, 201, 143, 0.45);
}

.adults-only strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.adults-only span {
  color: rgba(244, 234, 216, 0.66);
  font-size: 0.78rem;
  font-style: italic;
}

.rsvp h2 {
  color: #fff2dd;
}

.rsvp > p {
  color: rgba(244, 234, 216, 0.76);
}

.phone {
  display: block;
  margin-top: 22px;
  color: var(--gold-pale);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

footer {
  padding: 60px 20px;
  color: #694b3f;
  text-align: center;
  background: var(--ivory);
}

.footer-monogram {
  color: var(--wine);
  font-size: 2.1rem;
  font-style: italic;
}

.footer-monogram span {
  color: #ad7a4d;
}

footer p {
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-style: italic;
}

.reveal {
  opacity: 0.45;
  transform: translateY(18px);
  transition:
    opacity 0.9s,
    transform 0.9s;
}

.is-open .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(200, 165, 104, 0.12);
    transform: scale(0.72);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 760px) {
  .hero {
    padding-top: 8vh;
  }

  .venue {
    min-height: 760px;
  }

  .venue-copy {
    width: min(72vw, 520px);
    padding: 70px 58px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
