:root {
  --ivory: #f7f3eb;
  --paper: #fffdf8;
  --forest: #21352d;
  --forest-deep: #16251f;
  --sage: #778c7d;
  --gold: #b8955a;
  --gold-light: #d8c095;
  --ink: #27332d;
  --muted: #6f756f;
  --line: rgba(33, 53, 45, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", Arial, sans-serif;
  --shadow-soft: 0 25px 80px rgba(26, 41, 35, 0.14);
  --shadow-card: 0 16px 55px rgba(8, 25, 17, 0.16);
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--gold-light);
  color: var(--forest-deep);
}

.noscript-message {
  position: fixed;
  z-index: 9999;
  inset: 0 0 auto;
  padding: 12px 20px;
  background: #8b2f2f;
  color: white;
  text-align: center;
}

.page-noise {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.petal-layer {
  position: fixed;
  z-index: 35;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -12vh;
  width: 11px;
  height: 17px;
  border-radius: 80% 15% 70% 20%;
  background: linear-gradient(145deg, rgba(255, 248, 241, 0.95), rgba(220, 185, 171, 0.72));
  box-shadow: inset 0 0 5px rgba(123, 86, 72, 0.15);
  opacity: 0;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.8; }
  85% { opacity: 0.55; }
  100% { transform: translate3d(var(--drift), 115vh, 0) rotate(var(--spin)); opacity: 0; }
}

.cover {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px;
  color: white;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

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

.cover.is-closed {
  visibility: hidden;
  opacity: 0;
}

.cover__backdrop,
.cover__shade {
  position: absolute;
  inset: 0;
}

.cover__backdrop {
  background: url("assets/images/background.jpeg") center 42% / cover no-repeat;
  transform: scale(1.035);
  animation: cover-breathe 16s ease-in-out infinite alternate;
}

.cover__shade {
  background:
    radial-gradient(circle at 50% 45%, rgba(23, 41, 33, 0.05), rgba(15, 29, 23, 0.62) 72%),
    linear-gradient(180deg, rgba(16, 31, 25, 0.25), rgba(16, 31, 25, 0.7));
  backdrop-filter: saturate(0.78);
}

@keyframes cover-breathe {
  to { transform: scale(1.09); }
}

.invitation-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 530px);
  min-height: min(76svh, 700px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 7vh, 70px) clamp(28px, 6vw, 68px);
  border: 1px solid rgba(216, 192, 149, 0.72);
  background: rgba(25, 43, 35, 0.7);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.35);
  text-align: center;
  backdrop-filter: blur(12px);
  animation: card-arrive 1.35s cubic-bezier(.21,.75,.3,1) both;
}

.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-color: var(--gold-light);
  opacity: 0.72;
}

.invitation-card::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.invitation-card::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

@keyframes card-arrive {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.invitation-card__line {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(transparent, var(--gold-light), transparent);
}

.invitation-card__line--top { top: 0; }
.invitation-card__line--bottom { bottom: 0; }

.invitation-card__flower {
  width: 92px;
  height: 76px;
  margin-bottom: 8px;
  overflow: hidden;
  opacity: 0.95;
}

.invitation-card__flower lottie-player {
  width: 100%;
  height: 100%;
  filter: sepia(0.5) brightness(1.3);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.29em;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--gold);
}

.cover-names {
  margin: 5px 0 12px;
  font-family: var(--script);
  font-size: clamp(4rem, 10vw, 6.2rem);
  font-weight: 400;
  line-height: 0.77;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.cover-names span {
  display: block;
}

.cover-names b {
  display: block;
  margin: 9px 0 3px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.4em;
  font-weight: 400;
}

.cover-copy {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.65;
}

.cover-date {
  margin: 0 0 30px;
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover-hint {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-style: italic;
  letter-spacing: 0.06em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
}

.button--primary {
  background: var(--gold);
  color: white;
  box-shadow: 0 9px 28px rgba(184, 149, 90, 0.28);
}

.button--primary:hover {
  background: #a9854f;
  box-shadow: 0 13px 32px rgba(184, 149, 90, 0.36);
}

.button--open {
  min-width: 210px;
}

.button--light {
  background: var(--paper);
  color: var(--forest);
}

.button--light:hover {
  background: white;
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: white;
}

.button--outline-light:hover {
  border-color: white;
  background: white;
  color: var(--forest);
}

.button--full {
  width: 100%;
}

.site-shell {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.site-shell.is-visible {
  visibility: visible;
  opacity: 1;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(33, 53, 45, 0.09);
  background: rgba(247, 243, 235, 0.87);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
}

.desktop-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.icon-button {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.icon-button:hover {
  background: var(--forest);
  color: white;
  transform: rotate(-6deg);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button .icon-music-off,
.icon-button[aria-pressed="true"] .icon-music-on {
  display: none;
}

.icon-button[aria-pressed="true"] .icon-music-off {
  display: block;
}

.section-pad {
  padding: clamp(82px, 10vw, 145px) clamp(22px, 7vw, 108px);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto clamp(46px, 6vw, 76px);
  text-align: center;
}

.section-heading h2,
.story__content h2,
.rsvp__intro h2 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.96;
}

.section-heading > p:last-child {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
}

.section-heading--light h2,
.section-heading--light > p:last-child {
  color: white;
}

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding: clamp(60px, 7vw, 105px) clamp(22px, 7vw, 108px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 95%, rgba(184, 149, 90, 0.12), transparent 30%),
    var(--ivory);
}

.hero__content {
  max-width: 620px;
}

.hero__names {
  margin: 0;
  color: var(--forest);
  font-family: var(--script);
  font-size: clamp(5rem, 9vw, 8.4rem);
  font-weight: 400;
  line-height: 0.76;
}

.hero__names span {
  display: block;
}

.hero__names b {
  display: block;
  margin: 7px 0 0 27%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.32em;
  font-weight: 400;
}

.hero__lead {
  max-width: 500px;
  margin: 34px 0 30px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.72;
}

.hero__date-row {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 435px;
  margin-bottom: 26px;
}

.hero__date-row p {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  white-space: nowrap;
}

.hero__date-row strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
}

.hero__date-row span:not(.hero__date-rule) {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero__date-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link svg {
  width: 19px;
  transition: transform 0.25s ease;
}

.text-link:hover svg {
  transform: translateX(5px);
}

.hero__art {
  position: relative;
  min-height: min(69vw, 720px);
  display: grid;
  place-items: center;
}

.hero__photo-frame {
  position: relative;
  z-index: 2;
  width: min(36vw, 500px);
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 48% 48% 2px 2px;
  box-shadow: var(--shadow-soft);
}

.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  pointer-events: none;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}

.hero__photo-frame:hover img {
  transform: scale(1.035);
}

.hero__ring {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
}

.hero__ring--one {
  width: 52%;
  aspect-ratio: 1;
  top: 4%;
  right: 1%;
}

.hero__ring--two {
  width: 32%;
  aspect-ratio: 1;
  bottom: 2%;
  left: 2%;
  opacity: 0.48;
}

.countdown-section {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.countdown-section::before,
.countdown-section::after {
  content: "";
  position: absolute;
  width: 270px;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 149, 90, 0.21);
  border-radius: 50%;
}

.countdown-section::before {
  top: -170px;
  left: -100px;
}

.countdown-section::after {
  right: -110px;
  bottom: -190px;
}

.countdown {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 36px);
}

.countdown__item {
  min-width: clamp(70px, 11vw, 135px);
  text-align: center;
}

.countdown__item strong {
  display: block;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__item span {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown__separator {
  align-self: flex-start;
  margin-top: clamp(4px, 1vw, 14px);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1;
}

.countdown-message {
  margin: 30px 0 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.3rem;
  text-align: center;
}

.story {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(50px, 8vw, 125px);
  background: var(--ivory);
}

.story__image {
  position: relative;
  padding: 0 0 55px 45px;
}

.story__image::before {
  content: "";
  position: absolute;
  top: 45px;
  right: 45px;
  bottom: 5px;
  left: 0;
  border: 1px solid var(--gold-light);
}

.story__image img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.story__image-caption {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 3px;
  max-width: 300px;
  padding: 23px 28px;
  background: var(--forest);
  color: white;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}

.story__content {
  max-width: 620px;
}

.story__content > p:not(.eyebrow) {
  margin: 32px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.86;
}

.story__content blockquote {
  position: relative;
  margin: 38px 0 0;
  padding: 26px 0 0 34px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.23rem;
  font-style: italic;
  line-height: 1.6;
}

.story__content blockquote::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.details {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(26, 47, 38, 0.94), rgba(26, 47, 38, 0.97)),
    url("assets/images/background.jpeg") center / cover fixed;
}

.details::after {
  content: "";
  position: absolute;
  inset: 21px;
  border: 1px solid rgba(216, 192, 149, 0.2);
  pointer-events: none;
}

.event-layout {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin: 0 auto;
}

.event-stack {
  display: grid;
  gap: 22px;
}

.event-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4.5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.065);
  color: white;
  backdrop-filter: blur(9px);
}

.event-card--featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.event-card__number {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--serif);
  font-size: 4.3rem;
  line-height: 1;
}

.event-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(216, 192, 149, 0.55);
  border-radius: 50%;
  color: var(--gold-light);
}

.event-card__icon svg {
  width: 21px;
  height: 21px;
}

.event-card__label {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 500;
  line-height: 1;
}

.event-card > p:not(.event-card__label):not(.event-card__time) {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.68;
}

.event-card dl {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 38px 0;
  padding: 27px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.event-card dl div {
  min-width: 0;
}

.event-card dt {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-card dd {
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: 1.16rem;
}

.event-card__time {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card__time strong {
  color: white;
}

.palette {
  display: flex;
  gap: 9px;
  margin-top: 25px;
}

.palette span {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.palette span:nth-child(1) { background: #f2eadb; }
.palette span:nth-child(2) { background: #d5bf98; }
.palette span:nth-child(3) { background: #8d9c82; }
.palette span:nth-child(4) { background: #28453a; }

.detail-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.gallery-section {
  background: var(--paper);
}

.gallery-grid {
  width: min(100%, 1140px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(240px, 330px));
  gap: 17px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--forest);
  cursor: zoom-in;
}

.gallery-item--large {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.3,1), opacity 0.5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 27, 19, 0.65));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  color: white;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  opacity: 0.93;
}

.gallery-item:hover::after,
.gallery-item:hover span {
  opacity: 1;
}

.gallery-item:hover span {
  transform: translateY(0);
}

.rsvp {
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 149, 90, 0.12), transparent 25%),
    var(--ivory);
}

.rsvp__panel {
  width: min(100%, 1080px);
  min-height: 625px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.rsvp__intro {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 78px);
  background:
    linear-gradient(rgba(243, 237, 226, 0.86), rgba(243, 237, 226, 0.93)),
    url("assets/images/gallery2.jpeg") center / cover;
}

.rsvp__intro::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(184, 149, 90, 0.28);
  pointer-events: none;
}

.rsvp__intro > * {
  position: relative;
  z-index: 2;
}

.rsvp__intro > p:not(.eyebrow) {
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.78;
}

.rsvp__intro > p strong {
  color: var(--forest);
  font-weight: 600;
}

.rsvp__note {
  margin-top: 62px;
}

.rsvp__note span {
  display: block;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.rsvp__note strong {
  display: block;
  margin-top: 6px;
  color: var(--forest);
  font-family: var(--script);
  font-size: 2.6rem;
  font-weight: 400;
}

.rsvp-form {
  padding: clamp(45px, 6vw, 76px);
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--forest);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.form-field label span {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(33, 53, 45, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  transition: border-color 0.25s ease;
}

.form-field input,
.form-field select {
  height: 47px;
}

.form-field textarea {
  min-height: 92px;
  padding: 12px 0;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  outline: 0;
}

.form-field.is-invalid input,
.form-field.is-invalid select {
  border-color: #a74a4a;
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: #9d4040;
  font-size: 0.68rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--forest);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-error {
  color: #9d4040;
}

.form-disclaimer {
  margin: 14px 0 0;
  color: #868a86;
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.rsvp-success {
  align-self: center;
  padding: clamp(45px, 6vw, 80px);
  text-align: center;
}

.rsvp-success__icon {
  width: 67px;
  height: 67px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
}

.rsvp-success h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 2.55rem;
  font-weight: 500;
}

.rsvp-success p {
  max-width: 430px;
  margin: 18px auto 26px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
}

.text-button {
  padding: 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  position: relative;
  padding: 82px 22px 55px;
  overflow: hidden;
  background: var(--forest-deep);
  color: white;
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  top: -335px;
  left: 50%;
  border: 1px solid rgba(216, 192, 149, 0.16);
  border-radius: 50%;
  transform: translateX(-50%);
}

.footer__monogram {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2.1rem;
  letter-spacing: 0.28em;
}

.footer > p {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.footer__date {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem !important;
  font-family: var(--sans) !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.back-to-top {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 34px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
}

.back-to-top svg {
  width: 20px;
}

.lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(9, 18, 14, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2,.7,.3,1);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
  }

  .hero__content {
    max-width: 680px;
    text-align: center;
    margin: 0 auto;
  }

  .hero__names b {
    margin-left: 0;
  }

  .hero__lead,
  .hero__date-row {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__art {
    order: -1;
    min-height: 620px;
  }

  .hero__photo-frame {
    width: min(66vw, 450px);
  }

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

  .story__image,
  .story__content {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .event-layout {
    grid-template-columns: 1fr;
  }

  .rsvp__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cover {
    padding: 14px;
  }

  .invitation-card {
    width: 100%;
    min-height: calc(100svh - 28px);
  }

  .cover-hint {
    display: none;
  }

  .section-pad {
    padding: 80px 20px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .hero {
    padding: 58px 20px 82px;
  }

  .hero__art {
    min-height: 490px;
  }

  .hero__photo-frame {
    width: min(82vw, 380px);
  }

  .hero__date-row {
    gap: 10px;
  }

  .countdown {
    gap: 7px;
  }

  .countdown__item {
    min-width: 58px;
  }

  .countdown__separator {
    display: none;
  }

  .story__image {
    padding: 0 0 42px 22px;
  }

  .story__image::before {
    top: 24px;
    right: 25px;
  }

  .story__image-caption {
    right: 0;
    max-width: 82%;
    padding: 18px 21px;
  }

  .details {
    background-attachment: scroll;
  }

  .details::after {
    inset: 9px;
  }

  .event-card {
    padding: 35px 28px;
  }

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

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 350px);
  }

  .gallery-item--large {
    grid-row: auto;
  }

  .rsvp__intro,
  .rsvp-form,
  .rsvp-success {
    padding: 46px 29px;
  }

  .rsvp__note {
    margin-top: 42px;
  }
}

@media (max-width: 420px) {
  .cover-names {
    font-size: 3.55rem;
  }

  .invitation-card__flower {
    width: 72px;
    height: 58px;
  }

  .hero__art {
    min-height: 410px;
  }

  .hero__photo-frame {
    width: 82vw;
  }

  .hero__date-row strong {
    font-size: 2.05rem;
  }

  .hero__date-row span:not(.hero__date-rule) {
    font-size: 0.57rem;
  }

  .countdown__item strong {
    font-size: 2.75rem;
  }

  .countdown__item span {
    font-size: 0.53rem;
    letter-spacing: 0.1em;
  }

  .gallery-grid {
    grid-template-rows: repeat(3, 290px);
  }
}

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

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

  .petal-layer {
    display: none;
  }

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