:root {
  --ink: #570d24;
  --ink-soft: #4a173a;
  --paper: #f3ede0;
  --paper-deep: #e7dcc8;
  --sage: #a5b58b;
  --sage-dark: #62663a;
  --gold: #b69a62;
  --gold-light: #d3bd91;
  --ivory: #f3ede0;
  --serif: Georgia, "Times New Roman", Times, serif;
  --script: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 24px 70px rgba(15, 15, 10, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

.js body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--ivory);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 6.5rem max(1.5rem, env(safe-area-inset-left));
}

.section--paper {
  background:
    radial-gradient(circle at 10% 20%, rgba(179, 146, 89, 0.11), transparent 28rem),
    var(--paper);
}

.section--ink {
  color: var(--ivory);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
}

.section--sage {
  color: var(--ivory);
  background: var(--sage-dark);
}

.events,
.itinerary,
.details { overflow: hidden; }

.section-floral {
  position: absolute;
  z-index: 0;
  width: min(25rem, 72vw);
  pointer-events: none;
}

.section-floral--events {
  top: 1rem;
  right: -8rem;
  opacity: .18;
  mix-blend-mode: screen;
  transform: rotate(12deg);
}

.section-floral--itinerary {
  right: -7rem;
  bottom: 1rem;
  opacity: .15;
  mix-blend-mode: screen;
  transform: rotate(-8deg);
}

.section-floral--rsvp {
  right: -8rem;
  bottom: -3rem;
  opacity: .2;
  mix-blend-mode: screen;
  transform: rotate(-14deg);
}

.details::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1rem;
  left: -8rem;
  width: min(25rem, 72vw);
  aspect-ratio: 1;
  opacity: .15;
  background: center / contain no-repeat url("./assets/florals/burgundy-rose-transparent.png");
  pointer-events: none;
  transform: rotate(-12deg);
}

.events > *:not(.section-floral),
.itinerary > *:not(.section-floral),
.details > * { position: relative; z-index: 1; }

.welcome {
  display: none;
}

.js .welcome {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/portada.webp") center 38% / cover no-repeat;
  transform: scale(1.04);
  animation: welcome-zoom 7s ease-out both;
}

.welcome__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 10, 7, 0.52), rgba(9, 10, 7, 0.77)),
    radial-gradient(circle, transparent 5%, rgba(4, 5, 3, 0.6) 100%);
}

.welcome__card {
  position: relative;
  width: min(100%, 29rem);
  padding: 3.8rem 1.5rem 3.2rem;
  text-align: center;
  border: 1px solid rgba(211, 189, 145, 0.48);
  background: rgba(19, 20, 15, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.welcome__card::before,
.welcome__card::after {
  content: "";
  position: absolute;
  width: 2.3rem;
  height: 2.3rem;
  border-color: var(--gold-light);
}

.welcome__card::before {
  top: 0.65rem;
  left: 0.65rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.welcome__card::after {
  right: 0.65rem;
  bottom: 0.65rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.monogram {
  margin: 1.6rem 0;
  color: var(--gold-light);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.monogram span,
.welcome h1 i {
  font-family: var(--script);
  font-weight: 400;
}

.welcome h1 {
  margin: 0;
  font-size: clamp(2.8rem, 12vw, 5rem);
  font-weight: 400;
  line-height: 0.92;
}

.welcome h1 i {
  display: block;
  margin: 0.3rem 0 0.1rem;
  color: var(--gold-light);
  font-size: 0.72em;
}

.welcome__date {
  margin: 1.8rem 0 2.2rem;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
}

.welcome.is-closing {
  opacity: 0;
  visibility: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 3.4rem;
  padding: 0.95rem 1.45rem;
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.button--light {
  color: var(--ink);
  background: var(--ivory);
}

.button--light:hover {
  color: var(--ivory);
  border-color: var(--ivory);
  background: transparent;
}

.button--gold {
  color: var(--ink);
  background: var(--gold-light);
}

.button--gold:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
  background: transparent;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 38%;
  animation: hero-drift 14s ease-out both;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(10, 11, 8, 0.34) 0%, rgba(10, 11, 8, 0.06) 35%, rgba(10, 11, 8, 0.82) 100%),
    radial-gradient(circle at center, transparent 20%, rgba(7, 8, 5, 0.38) 100%);
}

.hero__topline {
  position: absolute;
  z-index: 2;
  top: max(1.6rem, env(safe-area-inset-top));
  right: 1.5rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  font-family: var(--sans);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 66rem);
  padding: 3rem 1.5rem 7.2rem;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.36);
}

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

.hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(3.8rem, 15vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.8;
}

.hero h1 span {
  display: block;
  margin: 0.2em 0;
  color: var(--gold-light);
  font-family: var(--script);
  font-size: 0.72em;
}

.hero__invitation {
  max-width: 30rem;
  margin: 1.8rem auto 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-style: italic;
  line-height: 1.6;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 1.2rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.23em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(var(--gold-light), transparent);
}

.ornament {
  display: flex;
  width: min(100%, 15rem);
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto 3rem;
  color: var(--gold);
}

.ornament span {
  height: 1px;
  flex: 1;
  background: currentColor;
}

.ornament i {
  font-style: normal;
}

.blessing {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blessing__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.blessing__floral {
  position: absolute;
  z-index: 0;
  width: min(25rem, 72vw);
  opacity: .25;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.blessing__floral--left {
  top: 1rem;
  left: -9rem;
  transform: rotate(-14deg);
}

.blessing__floral--right {
  right: -9rem;
  bottom: 1rem;
  transform: rotate(12deg);
}

.blessing__families {
  display: grid;
  gap: 1.1rem;
  margin: 2rem auto 2.8rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
}

.blessing__families p { margin: 0; }
.blessing__families span { color: var(--gold); font-size: 1.45rem; }

.blessing__invite {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.blessing h2 {
  max-width: 38rem;
  margin: 0 auto;
  font-size: clamp(2rem, 6vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.blessing h2 span { color: var(--gold); }

.blessing__date {
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.story {
  overflow: hidden;
  text-align: center;
}

.floral {
  position: absolute;
  z-index: 0;
  width: min(25rem, 72vw);
  opacity: .46;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.floral--hydrangea { top: 1.6rem; left: -4.2rem; transform: rotate(-12deg); }
.floral--rose { top: 12rem; right: -5rem; transform: rotate(14deg); }
.floral--bouquet { right: -3rem; bottom: 1.2rem; transform: rotate(-8deg); }

.story > :not(.floral) { position: relative; z-index: 1; }

.story__copy {
  max-width: 42rem;
  margin: 0 auto;
}

.story h2,
.section-heading h2,
.places h2,
.rsvp h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.story__copy > p:last-child,
.section-heading > p:last-child,
.places__copy > p:last-child,
.detail > p:last-child,
.rsvp__content > p {
  line-height: 1.75;
}

.story blockquote { max-width:31rem; margin:2.2rem auto 0; color:var(--ink-soft); font-size:1.25rem; font-style:italic; line-height:1.5; }
.story blockquote cite { display:block; margin-top:.65rem; font-family:var(--sans); font-size:.62rem; font-style:normal; font-weight:600; letter-spacing:.16em; text-transform:uppercase; }

.story__copy > p:last-child {
  max-width: 35rem;
  margin: 1.8rem auto 0;
  color: #555446;
}

.date-card {
  position: relative;
  display: grid;
  width: min(100%, 27rem);
  min-height: 20rem;
  place-items: center;
  margin: 4.5rem auto 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--ink);
}

.date-card__heart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .98;
}

.date-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 66%;
  justify-items: center;
  text-align: center;
}

.date-card__content > p {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.date-card__month {
  margin: 1rem 0 0 !important;
  font-family: var(--sans);
  font-size: clamp(0.62rem, 2.4vw, 0.82rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.date-card__day {
  color: var(--ink);
  font-size: clamp(4.8rem, 15vw, 8rem);
  font-weight: 400;
  line-height: 0.8;
}

.countdown {
  width: min(100%, 35rem);
  margin: 3.3rem auto 0;
}

.countdown__label {
  margin: 0 0 1.2rem;
  color: #6d695e;
  font-family: var(--script);
  font-size: 1.8rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.countdown__grid div {
  padding: 1rem 0.35rem;
  color: var(--ivory);
  background: var(--sage-dark);
}

.countdown strong {
  display: block;
  font-size: clamp(1.45rem, 6vw, 2.3rem);
  font-weight: 400;
}

.countdown span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-break {
  position: relative;
  height: min(82vh, 58rem);
  min-height: 36rem;
  overflow: hidden;
  background: var(--ink);
}

.portrait-break img {
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.portrait-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 6, 0.08), rgba(8, 9, 6, 0.5));
}

.portrait-break__mark {
  position: absolute;
  z-index: 1;
  right: 1.3rem;
  bottom: 1.1rem;
  margin: 0;
  color: rgba(247, 242, 233, 0.78);
  font-size: 1rem;
  letter-spacing: 0.28em;
}

.section-heading {
  max-width: 39rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--gold-light);
}

.section-heading > p:last-child {
  max-width: 30rem;
  margin: 1.5rem auto 0;
  color: rgba(247, 242, 233, 0.64);
}

.section-heading--dark {
  color: var(--ink);
}

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

.event-list {
  width: min(100%, 66rem);
  margin: 0 auto;
  border-top: 1px solid rgba(211, 189, 145, 0.35);
}

.event {
  position: relative;
  display: grid;
  padding: 3.2rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(211, 189, 145, 0.35);
}

.event__number {
  position: absolute;
  top: 1.2rem;
  left: 0;
  margin: 0;
  color: rgba(211, 189, 145, 0.52);
  font-size: 0.74rem;
}

.event__icon {
  width: 3.8rem;
  margin: 0 auto 1.5rem;
  color: var(--gold-light);
}

.event__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event h3,
.detail h3 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 400;
}

.event__detail {
  margin: 1.2rem 0 0;
  color: rgba(247, 242, 233, 0.63);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event__action,
.text-link {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.event__action { border-bottom: 1px solid currentColor; padding-bottom: 0.25rem; }
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 0.32rem; }

.itinerary__list { width:min(100%, 43rem); margin:0 auto; padding:0; list-style:none; border-top:1px solid rgba(211,189,145,.35); }
.itinerary__list li { display:grid; grid-template-columns:6rem 1fr; gap:1rem; padding:1.45rem 0; border-bottom:1px solid rgba(211,189,145,.25); }
.itinerary__list time { color:var(--gold-light); font-family:var(--sans); font-size:.68rem; font-weight:600; letter-spacing:.12em; }
.itinerary__list strong { display:block; margin-bottom:.3rem; font-size:1.25rem; font-weight:400; }
.itinerary__list span { color:rgba(247,242,233,.66); font-size:.95rem; line-height:1.5; }

.places {
  display: grid;
  gap: 3rem;
  overflow: hidden;
}

.places::before {
  content: "A";
  position: absolute;
  top: -0.4em;
  right: -0.1em;
  color: rgba(255, 255, 255, 0.035);
  font-size: min(70vw, 34rem);
  line-height: 1;
}

.places__seal {
  position: relative;
  display: grid;
  width: 12.5rem;
  height: 12.5rem;
  place-content: center;
  justify-self: center;
  text-align: center;
  border: 1px solid rgba(211, 189, 145, 0.75);
  border-radius: 50%;
}

.places__seal::before,
.places__seal::after {
  content: "✦";
  position: absolute;
  left: 50%;
  color: var(--gold-light);
  transform: translateX(-50%);
}

.places__seal::before {
  top: 0.9rem;
}

.places__seal::after {
  bottom: 0.9rem;
}

.places__seal span {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.places__seal strong {
  display: block;
  margin: 0.1rem 0;
  color: var(--gold-light);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 0.9;
}

.places__copy {
  position: relative;
  max-width: 36rem;
  text-align: center;
}

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

.places h2 em {
  color: var(--gold-light);
  font-family: var(--script);
  font-size: 1.08em;
  font-weight: 400;
}

.places__copy > p:last-child {
  color: rgba(247, 242, 233, 0.68);
}

.gallery {
  padding-right: 0;
  padding-left: 0;
  background: var(--paper-deep);
}

.gallery .section-heading {
  padding: 0 1.5rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  width: min(100%, 78rem);
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  height: 16rem;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.gallery__item--tall {
  grid-row: span 2;
  height: auto;
  min-height: 32.45rem;
}

.gallery__item--wide {
  grid-column: 1 / -1;
  height: 23rem;
}

.gallery__item--feature {
  grid-column: 1 / -1;
  height: min(78vh, 48rem);
  min-height: 34rem;
}

.gallery__item--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 10, 7, 0.68));
}

.gallery__item--feature img {
  object-position: center 56%;
}

.gallery__item--feature figcaption {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ivory);
}

.gallery__item--feature figcaption span {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 4rem);
}

.gallery__item--feature figcaption strong {
  padding-bottom: 0.45rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.gallery__item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery__item:hover img {
  transform: scale(1.025);
}

.gallery__item:nth-child(2) img,
.gallery__item:nth-child(3) img {
  object-position: center 45%;
}

.gallery__item:nth-child(4) img,
.gallery__item:nth-child(5) img {
  object-position: center 56%;
}

.details__grid {
  display: grid;
  gap: 3rem;
  width: min(100%, 64rem);
  margin: 0 auto;
}

.detail {
  position: relative;
  padding-top: 2.2rem;
  text-align: center;
}

.detail__line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}

.detail .eyebrow {
  color: #777063;
}

.detail > p:last-child {
  max-width: 24rem;
  margin: 1rem auto 0;
  color: #5a574f;
}

.rsvp {
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  background: var(--sage-dark);
}

.rsvp::before,
.rsvp::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(211, 189, 145, 0.17);
  border-radius: 50%;
}

.rsvp::before {
  top: -9rem;
  left: -9rem;
}

.rsvp::after {
  right: -9rem;
  bottom: -9rem;
}

.rsvp__wash {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: radial-gradient(circle at center, rgba(179, 146, 89, 0.35), transparent 50%);
}

.rsvp__content {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  margin: 0 auto;
}

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

.rsvp__deadline {
  margin: 1.5rem 0 0.6rem !important;
  color: var(--gold-light);
  font-style: italic;
}

.rsvp__content > p:not(.eyebrow):not(.rsvp__deadline) {
  max-width: 32rem;
  margin: 0 auto 2.2rem;
  color: rgba(247, 242, 233, 0.67);
}

.rsvp__phone {
  display: block;
  width: fit-content;
  margin: 1.4rem auto 0;
  color: rgba(247, 242, 233, 0.67);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.closing {
  position: relative;
  display: grid;
  min-height: 92svh;
  place-items: center;
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
}

.closing > img,
.closing__veil {
  position: absolute;
  inset: 0;
  height: 100%;
}

.closing > img {
  object-fit: cover;
  object-position: center 44%;
}

.closing__veil {
  background:
    linear-gradient(180deg, rgba(7, 8, 5, 0.38), rgba(7, 8, 5, 0.75)),
    radial-gradient(circle at center, transparent 5%, rgba(7, 8, 5, 0.48));
}

.closing__content {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  padding: 6rem 1.5rem;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

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

.closing__names {
  margin: 2rem 0 1.2rem;
  font-size: clamp(2rem, 8vw, 4rem);
}

.closing__names span {
  color: var(--gold-light);
  font-family: var(--script);
}

.closing__content > p:last-child {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
}

.sticky-rsvp {
  position: fixed;
  z-index: 20;
  right: 0.8rem;
  bottom: calc(0.8rem + env(safe-area-inset-bottom));
  left: 0.8rem;
  display: none;
  padding: 0.95rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--gold-light);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sticky-rsvp.is-visible {
  display: block;
}

.sticky-rsvp.is-near-rsvp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
}

.music-control {
  position: fixed;
  z-index: 20;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .85rem;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1px solid rgba(243,237,224,.5);
  border-radius: 999px;
  background: rgba(87,13,36,.86);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  cursor: pointer;
}

.music-control span:first-child { font-size: 1rem; line-height: .7; }
.is-locked .music-control { display: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes welcome-zoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}

@keyframes hero-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@media (min-width: 48rem) {
  .section {
    padding: 8.5rem 4rem;
  }

  .welcome__card {
    padding: 4.8rem 3rem 4rem;
  }

  .welcome h1 i,
  .hero h1 span {
    display: inline;
    margin: 0 0.08em;
  }

  .hero__topline {
    top: 2rem;
    right: 3rem;
    left: 3rem;
  }

  .hero__content {
    padding-bottom: 7.6rem;
  }

  .hero h1 {
    max-width: none;
    line-height: 0.94;
  }

  .portrait-break {
    height: min(95vh, 66rem);
  }

  .portrait-break img {
    object-position: center 55%;
  }

  .event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid rgba(211, 189, 145, 0.35);
  }

  .event {
    padding: 4rem 2.5rem;
    border-bottom: 0;
  }

  .event + .event {
    border-left: 1px solid rgba(211, 189, 145, 0.35);
  }

  .places {
    grid-template-columns: minmax(14rem, 0.8fr) minmax(24rem, 1.2fr);
    align-items: center;
    justify-content: center;
  }

  .places__seal {
    width: 15rem;
    height: 15rem;
  }

  .places__copy {
    text-align: left;
  }

  .gallery {
    padding-top: 8rem;
    padding-bottom: 0;
  }

  .gallery__grid {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 0.75rem;
    padding: 0 0.75rem 0.75rem;
  }

  .gallery__item {
    height: 21rem;
  }

  .gallery__item--tall {
    min-height: 42.75rem;
  }

  .gallery__item--wide {
    grid-column: auto;
    height: 28rem;
  }

  .gallery__item:nth-child(4) {
    grid-column: 1 / 3;
  }

  .gallery__item:nth-child(5) {
    grid-column: 3 / 4;
  }

  .gallery__item--feature {
    grid-column: 1 / -1;
    height: min(92vh, 64rem);
  }

  .gallery__item--feature figcaption {
    right: 3rem;
    bottom: 2.5rem;
    left: 3rem;
  }

  .details__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .detail {
    padding: 2.5rem 3rem 0;
  }

  .detail + .detail {
    border-left: 1px solid rgba(23, 24, 18, 0.16);
  }

  .sticky-rsvp {
    right: 1.2rem;
    bottom: 1.2rem;
    left: auto;
    width: auto;
    min-width: 14rem;
  }
}

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

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