:root {
  --bg: #3b4b3e;
  --paper: #fcfaf5;
  --sage-soft: #eef2ea;
  --blush-soft: #f5ecea;
  --ink: #2c3a2f;
  --ink-muted: #5a6a5d;
  --sage: #4c6b53;
  --sage-deep: #37523d;
  --rose: #a85c68;
  --rose-hover: #904a56;
  --line: #dce2d5;
  --gold-hairline: rgba(173, 152, 114, 0.34);
  --card-radius: 28px;
  --shadow: 0 24px 58px rgba(12, 22, 14, 0.38), 0 4px 14px rgba(12, 22, 14, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg) url(images/marble.svg) center/900px repeat;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(252, 250, 245, 0.72);
}

.section-pad {
  padding: 84px clamp(18px, 6vw, 80px);
  position: relative;
}

.kicker {
  font: 400 11px "Tenor Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--sage);
  margin: 0;
}

.script {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
}

.couple-name {
  font-family: "Alex Brush", Georgia, cursive;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sage-deep);
}

.names {
  font-size: clamp(38px, 7.6vw, 82px);
  line-height: 1.24;
  margin: 18px 0;
  color: var(--sage-deep);
  text-wrap: balance;
}

.names span,
.footer-names span {
  font-family: "Alex Brush", Georgia, cursive;
  font-weight: 400;
  font-size: 0.9em;
  vertical-align: 0;
  margin: 0 0.1em;
  color: var(--rose);
}

.date-line {
  font: 400 11.5px "Tenor Sans", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.paper {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(244, 240, 231, 0.78);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.welcome-card::before,
.hero-card::before,
.invite-card::before,
.event-card::before,
.story-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-hairline);
  border-radius: calc(var(--card-radius) - 10px);
  pointer-events: none;
  z-index: 2;
}

.corner {
  position: absolute;
  width: 52%;
  pointer-events: none;
  opacity: 0.92;
}

.corner-tr {
  top: -6px;
  right: -6px;
}

.corner-bl {
  bottom: -6px;
  left: -6px;
  transform: rotate(180deg);
}

.ribbon {
  position: absolute;
  width: 170px;
  pointer-events: none;
  opacity: 0.85;
  animation: botanicalBreeze 11s ease-in-out infinite alternate;
}

.peony {
  position: absolute;
  width: 240px;
  pointer-events: none;
  opacity: 0.9;
  animation: botanicalBreeze 13s ease-in-out infinite alternate-reverse;
}

main,
footer {
  position: relative;
  z-index: 2;
}

/* Slow Falling Botanical Leaves & Blossoms */
.botanical-drift {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.botanical-drift-welcome {
  position: absolute;
  transition: opacity 1.05s var(--ease-out) 0.1s;
}

.drift-piece {
  position: absolute;
  top: -12vh;
  display: block;
  opacity: 0;
  will-change: transform, opacity;
  animation: botanicalFall var(--drift-duration, 20s) linear var(--drift-delay, 0s) infinite;
}

.drift-piece svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(12, 22, 14, 0.25));
}

@keyframes botanicalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  10% {
    opacity: var(--drift-opacity, 0.55);
  }
  25% {
    transform: translate3d(calc(var(--drift-sway, 24px) * 0.65), 24vh, 0) rotate(calc(var(--drift-spin, 180deg) * 0.25));
  }
  50% {
    transform: translate3d(calc(var(--drift-sway, 24px) * -0.45), 54vh, 0) rotate(calc(var(--drift-spin, 180deg) * 0.52));
  }
  75% {
    transform: translate3d(calc(var(--drift-sway, 24px) * 0.8), 84vh, 0) rotate(calc(var(--drift-spin, 180deg) * 0.78));
  }
  90% {
    opacity: var(--drift-opacity, 0.55);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift-sway, 24px) * -0.25), 116vh, 0) rotate(var(--drift-spin, 180deg));
  }
}

@keyframes botanicalBreeze {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(6px, -6px, 0) rotate(1.6deg);
  }
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rose);
  color: #fcfaf5;
  text-decoration: none;
  cursor: pointer;
  font: 400 11px "Tenor Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 28px;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.pill-btn:hover {
  background: var(--rose-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(144, 74, 86, 0.2);
}

/* Welcome Botanical Gatefold Dialog */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  overflow: hidden;
  background: transparent;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg) url(images/marble.svg) center/900px repeat;
  transition: opacity 1.35s var(--ease-out) 0.15s;
}

.welcome.hidden {
  opacity: 0;
  visibility: hidden;
}

.welcome.opening {
  pointer-events: none;
}

.welcome-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gatefold-stage {
  position: relative;
  width: 100%;
  height: 410px;
  perspective: 1800px;
}

.gate-doors {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  pointer-events: none;
}

.gate-door {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 231, 0.72);
  box-shadow: 0 26px 64px rgba(12, 22, 14, 0.42);
  backface-visibility: hidden;
  transition:
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    opacity 0.95s var(--ease-out) 0.55s;
}

.gate-door-left {
  transform-origin: left center;
  border-radius: var(--card-radius) 0 0 var(--card-radius);
  border-right: 1px solid rgba(173, 152, 114, 0.45);
  background: linear-gradient(155deg, #fcfaf4 0%, #f1ede2 58%, #e9efe5 100%);
}

.gate-door-right {
  transform-origin: right center;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  border-left: 1px solid rgba(173, 152, 114, 0.28);
  background: linear-gradient(205deg, #fcfaf4 0%, #f1ede2 58%, #e9efe5 100%);
}

.gate-door-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-hairline);
  pointer-events: none;
}

.gate-door-left .gate-door-frame {
  border-right: 0;
  border-radius: calc(var(--card-radius) - 10px) 0 0 calc(var(--card-radius) - 10px);
}

.gate-door-right .gate-door-frame {
  border-left: 0;
  border-radius: 0 calc(var(--card-radius) - 10px) calc(var(--card-radius) - 10px) 0;
}

.gate-floral {
  position: absolute;
  width: 84%;
  pointer-events: none;
  opacity: 0.48;
}

.gate-floral-tl {
  top: -8px;
  left: -8px;
  transform: scaleX(-1);
}

.gate-floral-br {
  bottom: -8px;
  right: -8px;
  transform: scaleY(-1);
}

.gate-cover-text {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1.4fr auto 0.85fr;
  justify-items: center;
  align-items: center;
  padding: 26px 24px 28px;
  text-align: center;
  pointer-events: none;
}

.gate-cover-top {
  width: 100%;
  align-self: end;
  margin-bottom: 18px;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.55s var(--ease-out);
}

.gate-married-line {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.7vw, 24px);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--rose);
  margin: 0 0 8px;
  text-shadow: 0 1px 10px rgba(252, 250, 244, 0.92);
}

.gate-cover-names {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
  margin: 0;
  color: var(--sage-deep);
  text-shadow: 0 1px 12px rgba(252, 250, 244, 0.94);
}

.gate-cover-names span {
  font-family: "Alex Brush", Georgia, cursive;
  font-weight: 400;
  font-size: 0.9em;
  vertical-align: 0;
  margin: 0 0.12em;
  color: var(--rose);
}

.gate-tap-hint {
  align-self: end;
  font: 400 11px "Tenor Sans", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0;
  text-shadow: 0 1px 10px rgba(252, 250, 244, 0.92);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.gate-clasp {
  position: relative;
  z-index: 4;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(252, 250, 245, 0.72);
  background: radial-gradient(circle at 32% 30%, #be7480 0%, var(--rose) 65%, #8c4854 100%);
  box-shadow: 0 12px 30px rgba(66, 40, 44, 0.28), inset 0 2px 6px rgba(255, 255, 255, 0.28);
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.gate-clasp-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(173, 152, 114, 0.55);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s var(--ease-out);
}

.gate-clasp .script {
  color: #fcfaf5;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.gate-clasp:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 36px rgba(66, 40, 44, 0.34), inset 0 2px 6px rgba(255, 255, 255, 0.32);
}

.welcome-actions {
  margin-top: 32px;
  text-align: center;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.welcome-actions .pill-btn {
  margin-top: 0;
  border: 1px solid rgba(252, 250, 245, 0.34);
  box-shadow: 0 14px 34px rgba(12, 22, 14, 0.36);
}

/* Continuous Gatefold Opening Directly Into Invitation */
.welcome.opening .welcome-backdrop,
.welcome.opening .botanical-drift-welcome,
.welcome.opening .ribbon-welcome,
.welcome.opening .peony-welcome {
  opacity: 0;
}

.welcome.opening .gate-cover-top {
  opacity: 0;
  transform: translateY(-10px);
}

.welcome.opening .gate-tap-hint {
  opacity: 0;
  transform: translateY(8px);
}

.welcome.opening .gate-clasp {
  opacity: 0;
  transform: scale(1.18);
  pointer-events: none;
}

.welcome.opening .gate-clasp-ring {
  transform: scale(1.35);
  opacity: 0;
}

.welcome.opening .welcome-actions {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.welcome.opening .gate-door-left {
  transform: rotateY(-82deg) translateX(-54%);
  opacity: 0;
}

.welcome.opening .gate-door-right {
  transform: rotateY(82deg) translateX(54%);
  opacity: 0;
}

.ribbon-welcome {
  z-index: 1;
  left: 4%;
  top: 0;
  height: 100%;
  transition: opacity 1.05s var(--ease-out) 0.1s;
}

.peony-welcome {
  z-index: 1;
  right: -36px;
  bottom: -24px;
  transition: opacity 1.05s var(--ease-out) 0.1s;
}

/* Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 clamp(18px, 6vw, 80px);
  background: rgba(252, 250, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 226, 213, 0.9);
  box-shadow: 0 6px 26px rgba(12, 22, 14, 0.22);
}

.monogram {
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  color: var(--sage-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font: 400 11px "Tenor Sans", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 0;
  transition: color 0.18s var(--ease-out);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease-out);
}

.site-nav a:hover {
  color: var(--sage-deep);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ribbon-hero {
  left: 2%;
  top: -30px;
  height: 108%;
}

.peony-hero {
  left: -40px;
  top: 28px;
}

.hero-card {
  max-width: 580px;
  width: 100%;
  padding: 88px 38px 70px;
}

.sprig {
  width: 220px;
  margin: 14px auto;
  display: block;
}

blockquote {
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin: 14px auto 0;
  max-width: 38ch;
}

cite {
  display: block;
  font: 400 10.5px "Tenor Sans", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--sage);
  margin-top: 12px;
}

/* Countdown Section */
.countdown-section {
  text-align: center;
  padding-top: 32px;
}

.countdown-section .kicker {
  color: #dfe8dc;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  max-width: 680px;
  margin-inline: auto;
}

.countdown-tile {
  position: relative;
  flex: 1 1 130px;
  max-width: 152px;
  background: var(--paper);
  border: 1px solid rgba(244, 240, 231, 0.78);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px 12px 20px;
  text-align: center;
  overflow: hidden;
}

.countdown-tile::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-hairline);
  border-radius: calc(var(--card-radius) - 7px);
  pointer-events: none;
}

.countdown strong {
  display: block;
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  margin-top: 8px;
  font: 400 10px "Tenor Sans", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Invitation Wreath Card */
.invite-card {
  max-width: 600px;
  margin: auto;
  aspect-ratio: 3/4;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 44px;
}

.invite-wreath-bg {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.wreath-inner {
  position: relative;
  z-index: 1;
  max-width: 376px;
}

.wreath-inner p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

.invite-grace {
  font-size: clamp(24px, 3.6vw, 31px);
  letter-spacing: 0.01em;
  color: var(--sage-deep);
  margin-bottom: 14px !important;
}

.invite-parents {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(10.5px, 1.25vw, 12.5px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.invite-and {
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--sage);
  margin: 6px 0 !important;
}

.invite-request {
  font: 400 10.5px "Tenor Sans", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ink-muted);
  margin: 18px 0 10px !important;
}

.invite-names {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--rose);
}

/* Events Section */
.section-title {
  text-align: center;
  margin: 0 auto 44px;
}

.section-title .kicker {
  color: #dfe8dc;
}

.section-title h2 {
  font-size: clamp(34px, 5.2vw, 46px);
  letter-spacing: 0.01em;
  margin: 8px 0 0;
  color: #faf6ee;
  text-wrap: balance;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  max-width: 1020px;
  margin: auto;
}

.event-card {
  padding: 88px 34px 50px;
  grid-row: span 7;
  display: grid;
  grid-template-rows: subgrid;
  justify-items: center;
  align-items: start;
}

.garland {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 58%;
  pointer-events: none;
}

.garland-left {
  right: auto;
  left: -8px;
  transform: scaleX(-1);
}

.event-title {
  font-size: 34px;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--sage-deep);
}

.event-date {
  font: 400 11px "Tenor Sans", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 10px 0 0;
}

.event-time {
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--rose);
  margin: 4px 0 0;
}

.event-detail h3 {
  font-size: 23px;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 22px 0 6px;
  color: var(--rose);
}

.event-detail + .event-link + .event-detail h3 {
  margin-top: 26px;
}

.event-detail p {
  font-family: "Tenor Sans", sans-serif;
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.82;
}

.event-card .event-link {
  margin-top: 14px;
  padding: 11px 22px;
}

/* Story Editorial Card */
.story-card {
  max-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  text-align: left;
}

.story-media {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #f3ede2 0%, #eae4d6 100%);
  overflow: hidden;
  border-right: 1px solid var(--line);
}

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

.story-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 52px 44px;
  background: var(--paper);
}

.story-body h2 {
  font-size: clamp(32px, 4.6vw, 42px);
  letter-spacing: 0.01em;
  margin: 8px 0 14px;
  color: var(--sage-deep);
}

.story-body p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}

.story-sprig {
  width: 170px;
  margin: 24px auto 0;
}

/* Wishes Cards */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 540px;
  margin: auto;
}

.wish-card {
  position: relative;
  margin: 0;
  padding: 18px 20px;
  text-align: center;
  border: 1px solid rgba(244, 240, 231, 0.78);
  border-radius: var(--card-radius);
  box-shadow: 0 14px 34px rgba(12, 22, 14, 0.28), 0 3px 10px rgba(12, 22, 14, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out);
}

.wish-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-hairline);
  border-radius: calc(var(--card-radius) - 7px);
  pointer-events: none;
}

.wish-card:hover {
  transform: translateY(-2px);
}

.wish-sage {
  background: var(--sage-soft);
}

.wish-blush {
  background: var(--blush-soft);
}

.wish-rule {
  display: none;
}

.wish-name {
  margin: 0;
  color: var(--sage-deep);
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Footer & Music Button */
footer {
  text-align: center;
  padding: 64px 20px 80px;
}

footer .footer-names {
  font-size: 52px;
  line-height: 1.18;
  margin: 8px 0 6px;
  color: #faf6ee;
}

footer .footer-names span {
  color: #e8b2ba;
}

footer span {
  font: 400 10.5px "Tenor Sans", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dfe8dc;
}

.music-btn {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(252, 250, 245, 0.65);
  border-radius: 50%;
  background: #5a7d62;
  color: #fcfaf5;
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(12, 22, 14, 0.42);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.music-btn:hover {
  transform: translateY(-2px);
}

.music-btn.playing {
  background: var(--rose);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(168, 92, 104, 0.16);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .music-btn.playing {
    animation: none;
  }
  .botanical-drift {
    display: none;
  }
  .ribbon,
  .peony {
    animation: none;
  }
  .pill-btn,
  .wish-card,
  .music-btn,
  .welcome,
  .welcome-backdrop,
  .ribbon-welcome,
  .peony-welcome,
  .gate-door,
  .gate-cover-top,
  .gate-tap-hint,
  .gate-clasp,
  .gate-clasp-ring,
  .welcome-actions {
    transition: none;
  }
}

@media (max-width: 760px) {
  .section-pad {
    padding: 58px 16px;
  }

  .gatefold-stage {
    height: 360px;
  }

  .gate-cover-text {
    padding: 22px 18px 22px;
  }

  .gate-cover-top {
    margin-bottom: 14px;
  }

  .gate-clasp {
    width: 74px;
    height: 74px;
  }

  .gate-clasp .script {
    font-size: 16px;
  }

  .menu-btn {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .event-grid,
  .story-card {
    grid-template-columns: 1fr;
  }

  .wish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 340px;
  }

  .wish-card {
    padding: 14px 12px;
  }

  .wish-card::before {
    inset: 6px;
    border-radius: calc(var(--card-radius) - 6px);
  }

  .wish-name {
    font-size: 18px;
  }

  .event-grid {
    row-gap: 32px;
  }

  .event-card {
    grid-row: auto;
    grid-template-rows: none;
    display: block;
  }

  .story-media {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-body {
    padding: 36px 24px;
  }

  .ribbon {
    width: 100px;
    opacity: 0.45;
  }

  .peony {
    width: 150px;
  }

  .invite-card {
    padding: 46px 34px;
    aspect-ratio: auto;
    min-height: 550px;
  }

  .invite-wreath-bg {
    inset: 2%;
    width: 96%;
    height: 96%;
    object-fit: fill;
  }

  .wreath-inner {
    max-width: 260px;
  }

  .invite-grace {
    font-size: 20px;
    margin-bottom: 10px !important;
  }

  .invite-parents {
    font-size: 10px;
    letter-spacing: 0.09em;
    line-height: 1.6;
  }

  .invite-request {
    font-size: 9.5px;
    letter-spacing: 0.15em;
    line-height: 1.75;
    margin: 14px 0 8px !important;
  }

  .invite-names {
    font-size: 31px;
  }

  .countdown-tile {
    flex: 1 1 42%;
    max-width: none;
  }
}
