:root {
  --espresso: #211817;
  --mocha: #4a2f30;
  --cocoa: #6e4146;
  --latte: #c4a89b;
  --champagne: #d7b77c;
  --paper: #f7f2ec;
  --ivory: #fffaf4;
  --ink: #2c2422;
  --muted: #756762;
  --line: rgba(74, 47, 48, 0.17);
  --serif: Didot, "Bodoni 72", "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(33, 24, 23, 0.14);
  --radius: 1rem;
  --radius-large: 1.5rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--espresso);
  transform: translateY(-150%);
}

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

.opening {
  position: fixed;
  z-index: 999;
  inset: 0;
  overflow: hidden;
  background: var(--ivory);
  opacity: 1;
  visibility: visible;
  perspective: 1200px;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.opening.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening__paper {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 8vw, 7rem) 1.25rem;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20, 10, 7, 0.2), rgba(20, 10, 7, 0.66)),
    url("assets/martha-elve-portada.jpeg") center 50% / cover;
}

.opening__paper::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 10, 7, 0.24), transparent 20% 80%, rgba(20, 10, 7, 0.24)),
    radial-gradient(circle at 50% 22%, transparent 15%, rgba(20, 10, 7, 0.26) 78%);
  content: "";
  pointer-events: none;
}

.opening__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(90%, 660px);
  place-items: center;
  opacity: 0.15;
  transform: translate(-50%, -48%) scale(0.94);
  transition: opacity 900ms ease 500ms, transform 1300ms ease 500ms;
}

.opening__content h1 {
  display: grid;
  gap: 0.05em;
  font-size: clamp(2.7rem, 11vw, 6.5rem);
}

.opening__content h1 i {
  color: var(--champagne);
  font-size: 0.55em;
  font-weight: 400;
  line-height: 0.8;
}

.opening__content h1,
.opening__content p,
.opening__paper small {
  text-shadow: 0 3px 24px rgba(20, 10, 7, 0.72);
}

.opening__date {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(0.8rem, 4vw, 2rem);
  align-items: center;
  margin: clamp(1.5rem, 5vh, 3rem) 0 1rem;
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.opening__date strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
}

.opening__paper small {
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.envelope-cover {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.envelope-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition: transform 1450ms cubic-bezier(0.45, 0.02, 0.18, 1);
}

.envelope-panel--top {
  z-index: 8;
  clip-path: polygon(0 0, 100% 0, 49.6% 50%);
  transform-origin: 50% 0;
}

.envelope-panel--left {
  z-index: 7;
  clip-path: polygon(0 0, 49.6% 50%, 0 100%);
  transform-origin: 0 50%;
}

.envelope-panel--right {
  z-index: 6;
  clip-path: polygon(100% 0, 100% 100%, 49.6% 50%);
  transform-origin: 100% 50%;
}

.envelope-panel--bottom {
  z-index: 5;
  clip-path: polygon(0 100%, 49.6% 50%, 100% 100%);
  transform-origin: 50% 100%;
}

.envelope-trigger {
  position: absolute;
  z-index: 12;
  inset: 0;
  width: 100%;
  padding: 0;
  color: var(--ivory);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 450ms ease;
}

.envelope-trigger:focus-visible {
  outline: 4px solid var(--ivory);
  outline-offset: -10px;
}

.envelope-hint {
  position: absolute;
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
  left: 50%;
  display: grid;
  gap: 0.12rem;
  min-width: 11.5rem;
  padding: 0.65rem 1.1rem;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(45, 29, 24, 0.8);
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: opening-hint 1.8s ease-in-out infinite;
}

.envelope-hint small {
  font-size: 0.62rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: none;
}

.opening.is-opening .opening__content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.opening.is-opening .envelope-panel--top {
  transform: translateY(-108%) rotateX(-12deg);
}

.opening.is-opening .envelope-panel--left {
  transform: translateX(-108%) rotateY(10deg);
  transition-delay: 120ms;
}

.opening.is-opening .envelope-panel--right {
  transform: translateX(108%) rotateY(-10deg);
  transition-delay: 120ms;
}

.opening.is-opening .envelope-panel--bottom {
  transform: translateY(108%) rotateX(10deg);
  transition-delay: 260ms;
}

.opening.is-opening .envelope-trigger {
  opacity: 0;
  pointer-events: none;
}

.opening__eyebrow,
.kicker,
.section-kicker {
  display: block;
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.opening__eyebrow,
.section-kicker {
  color: var(--cocoa);
}

.opening__eyebrow {
  color: var(--ivory);
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(20, 10, 7, 0.95), 0 0 2px rgba(20, 10, 7, 0.8);
}

.monogram,
.hero__monogram,
.footer__monogram {
  --monogram-letters: var(--mocha);
  --monogram-ampersand: var(--champagne);
  position: relative;
  isolation: isolate;
  display: grid;
  width: 9.5rem;
  height: 7rem;
  place-items: center;
  color: var(--monogram-ampersand);
  font-family: Didot, "Bodoni 72", "Bodoni MT", var(--serif);
  font-size: 2.65rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.08em;
}

.monogram::before,
.monogram::after,
.hero__monogram::before,
.hero__monogram::after,
.footer__monogram::before,
.footer__monogram::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  color: var(--monogram-letters);
  font-size: 6.4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.12em;
}

.monogram::before,
.hero__monogram::before,
.footer__monogram::before {
  left: 41%;
  content: attr(data-first);
  transform: translate(-50%, -50%) scaleX(0.82);
  transform-origin: center;
}

.monogram::after,
.hero__monogram::after,
.footer__monogram::after {
  right: 37%;
  content: attr(data-second);
  transform: translate(50%, -45%) scaleX(0.9);
  transform-origin: center;
}

.monogram {
  margin: 1.5rem auto;
}

.opening h1,
.paper-section h2,
.cocoa-section h2,
.dark-section h2,
.rsvp h2,
.footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 8vw, 4.85rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.opening h1 {
  font-size: clamp(1.8rem, 6vw, 3.65rem);
}

.opening p {
  max-width: 28ch;
  margin: 0.75rem auto 1rem;
  color: var(--ivory);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.3rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.button svg,
.text-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

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

.button:focus-visible,
.text-link:focus-visible,
.scroll-cue:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 4px;
}

.button--filled {
  color: var(--ivory);
  background: var(--mocha);
  border-color: var(--mocha);
}

.button--filled:hover {
  background: var(--espresso);
  border-color: var(--espresso);
}

.button--outline {
  color: var(--mocha);
  background: transparent;
  border-color: var(--mocha);
}

.button--outline:hover {
  color: var(--ivory);
  background: var(--mocha);
}

.button--wide {
  width: min(100%, 340px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: url("assets/gallery/IMG_3555.webp") center 52% / cover no-repeat;
}

.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 12, 9, 0.24), rgba(21, 12, 9, 0.1) 32%, rgba(21, 12, 9, 0.72) 100%),
    linear-gradient(90deg, rgba(74, 47, 48, 0.2), transparent 42% 62%, rgba(33, 24, 23, 0.12));
}

.hero__content {
  width: min(900px, calc(100% - 2.5rem));
  padding: 5rem 0 3rem;
  text-align: center;
}

.kicker {
  color: var(--ivory);
}

.hero__monogram {
  --monogram-letters: var(--ivory);
  --monogram-ampersand: var(--champagne);
  width: 8.75rem;
  height: 6.5rem;
  margin: 0.65rem auto 1.1rem;
  text-shadow: 0 2px 22px rgba(20, 10, 7, 0.38);
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 12vw, 8.75rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.hero h1 i {
  color: var(--champagne);
  font-size: 0.52em;
  font-weight: 400;
}

.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: min(440px, 100%);
  margin: 2.4rem auto 0;
  color: var(--ivory);
}

.date-lockup span {
  padding: 0.6rem 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 250, 243, 0.46);
  border-bottom: 1px solid rgba(255, 250, 243, 0.46);
}

.date-lockup strong {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
}

.hero__place {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 3rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__place,
.scroll-cue {
  color: var(--ivory);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.46);
}

.scroll-cue svg {
  width: 1.4rem;
  height: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
}

.paper-section,
.cocoa-section,
.dark-section,
.rsvp {
  padding: clamp(5.5rem, 12vw, 10rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}

.paper-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(215, 183, 124, 0.12), transparent 23rem),
    radial-gradient(circle at 92% 88%, rgba(110, 65, 70, 0.08), transparent 26rem),
    var(--paper);
}

.ornament {
  color: var(--champagne);
  font-size: 1.6rem;
}

.countdown h2 {
  max-width: 14ch;
  margin: 0 auto;
}

.countdown__intro {
  margin: 1.25rem auto 2.3rem;
  color: var(--muted);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(680px, 100%);
  margin: 0 auto 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown__grid div {
  position: relative;
  padding: 1.7rem 0.4rem;
}

.countdown__grid div:not(:last-child)::after {
  position: absolute;
  top: 24%;
  right: 0;
  bottom: 24%;
  width: 1px;
  background: var(--line);
  content: "";
}

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

.countdown__grid strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.countdown__grid span {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--mocha);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4rem;
  text-transform: uppercase;
}

.story-moment {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 9rem) clamp(1rem, 4vw, 3rem);
  color: var(--ivory);
  text-align: center;
  background: var(--espresso);
}

.story-moment::before {
  position: absolute;
  width: clamp(18rem, 42vw, 36rem);
  height: clamp(18rem, 42vw, 36rem);
  border: 1px solid rgba(201, 172, 122, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.story-moment--intro::before {
  top: -15rem;
  right: -12rem;
}

.story-moment__heading {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
}

.story-moment .section-kicker {
  color: var(--latte);
}

.story-moment h2 {
  max-width: 15ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 8vw, 4.85rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.story-moment__frame {
  position: relative;
  z-index: 1;
  width: min(630px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  background: #1b110e;
  border-radius: var(--radius-large);
  box-shadow: 0 32px 80px rgba(20, 10, 7, 0.28);
}

.story-moment__frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 250, 243, 0.16);
  box-shadow: inset 0 0 0 0.45rem rgba(45, 29, 24, 0.18);
  content: "";
  pointer-events: none;
}

.story-moment__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 900ms ease;
}

.story-moment__frame:hover img {
  transform: scale(1.025);
}

.story-moment--intro .story-moment__frame img {
  object-position: 50% 46%;
}

.story-moment--garden {
  padding-inline: clamp(1rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 10% 18%, rgba(215, 183, 124, 0.13), transparent 25rem),
    var(--paper);
}

.story-moment--garden::before {
  top: -12rem;
  left: -10rem;
  border-color: rgba(75, 49, 40, 0.16);
}

.story-moment--garden .story-moment__frame {
  width: min(700px, 100%);
  margin-right: auto;
  margin-left: clamp(0rem, 7vw, 7rem);
  box-shadow: 0 32px 80px rgba(45, 29, 24, 0.17);
}

.story-moment--garden .story-moment__frame img {
  object-position: 50% 48%;
}

.story-moment--night {
  background: var(--cocoa);
}

.story-moment--night::before {
  right: -11rem;
  bottom: -14rem;
}

.story-moment--night .story-moment__frame {
  width: min(630px, 100%);
  margin-right: clamp(0rem, 7vw, 7rem);
  margin-left: auto;
}

.story-moment--night .story-moment__frame img {
  object-position: 50% 44%;
}

.gallery {
  position: relative;
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
}

.gallery::before {
  position: absolute;
  top: -13rem;
  right: -11rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(201, 172, 122, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.gallery__heading {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
}

.gallery__heading p:last-child {
  max-width: 42ch;
  margin: 1.25rem auto 0;
  color: var(--latte);
}

.gallery__shell {
  position: relative;
  width: 100%;
}

.gallery__viewport {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 1.5rem);
  padding: 0 max(1rem, calc((100vw - 680px) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__viewport::-webkit-scrollbar {
  display: none;
}

.gallery__viewport:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: -3px;
}

.gallery__slide {
  position: relative;
  flex: 0 0 min(78vw, 610px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #1b110e;
  border-radius: var(--radius-large);
  box-shadow: 0 28px 60px rgba(12, 6, 4, 0.34);
  scroll-snap-align: center;
}

.gallery__slide::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 250, 243, 0.2);
  box-shadow: inset 0 0 0 0.45rem rgba(45, 29, 24, 0.16);
  content: "";
  pointer-events: none;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery__slide--wide img {
  object-position: 58% center;
}

.gallery__button {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  padding: 0;
  color: var(--espresso);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(201, 172, 122, 0.6);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(20, 10, 7, 0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery__button:hover {
  color: var(--ivory);
  background: var(--cocoa);
}

.gallery__button:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}

.gallery__button svg {
  width: 1.4rem;
  height: 1.4rem;
}

.gallery__button--previous {
  left: max(1rem, calc((100vw - 760px) / 2));
}

.gallery__button--next {
  right: max(1rem, calc((100vw - 760px) / 2));
}

.gallery__counter {
  margin: 1.7rem 0 0;
  color: var(--latte);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

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

.dark-section .section-kicker {
  color: var(--latte);
}

.promise {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.promise::before,
.promise::after {
  position: absolute;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(201, 172, 122, 0.2);
  border-radius: 50%;
  content: "";
}

.promise::before {
  top: -13rem;
  left: -8rem;
}

.promise::after {
  right: -10rem;
  bottom: -14rem;
}

.promise__frame {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(201, 172, 122, 0.35);
  border-radius: var(--radius-large);
}

.promise__frame > span {
  display: block;
  height: 3rem;
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}

.promise blockquote {
  max-width: 28ch;
  margin: 1.5rem auto 2rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  font-style: italic;
  line-height: 1.25;
}

.promise p {
  color: var(--latte);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.families h2 {
  max-width: 13ch;
  margin-right: auto;
  margin-left: auto;
}

.families__intro {
  max-width: 44ch;
  margin: 1.5rem auto 3.25rem;
  color: var(--muted);
}

.families__parents,
.families__sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(920px, 100%);
  margin: 0 auto;
  background: transparent;
}

.family-group {
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.25rem);
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(33, 24, 23, 0.08);
}

.family-group__label {
  margin: 0 0 1.35rem;
  color: var(--cocoa);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.family-group__names {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.family-group__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.22;
}

.family-group__name--remembered::after {
  display: inline-block;
  width: 0.9em;
  height: 1.3em;
  margin-left: 0.45em;
  background: linear-gradient(
    90deg,
    #80500a 0%,
    #d49a20 16%,
    #ffe69a 36%,
    #bd7610 56%,
    #f3c95e 78%,
    #754605 100%
  );
  clip-path: polygon(
    37% 0,
    63% 0,
    63% 29%,
    100% 29%,
    100% 48%,
    63% 48%,
    63% 100%,
    37% 100%,
    37% 48%,
    0 48%,
    0 29%,
    37% 29%
  );
  content: "";
  filter: drop-shadow(0 2px 1px rgba(91, 52, 5, 0.3));
  transform: translateY(0.22em);
}

.families__divider {
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  gap: 1rem;
  align-items: center;
  width: min(420px, 70%);
  margin: clamp(3.5rem, 8vw, 6rem) auto 2rem;
  color: var(--champagne);
}

.families__divider span {
  height: 1px;
  background: var(--line);
}

.families__divider i {
  font-style: normal;
}

.families__subtitle {
  margin: 0 auto 2rem;
  color: var(--mocha);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  font-style: italic;
}

.families__memory {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  width: min(680px, 100%);
  margin: 2.5rem auto 0;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  color: var(--mocha);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  line-height: 1.55;
  text-wrap: balance;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.families__memory + .families__divider {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.families__memory span {
  flex: 0 0 auto;
  display: inline-block;
  width: 0.9em;
  height: 1.3em;
  background: linear-gradient(
    90deg,
    #80500a 0%,
    #d49a20 16%,
    #ffe69a 36%,
    #bd7610 56%,
    #f3c95e 78%,
    #754605 100%
  );
  clip-path: polygon(
    37% 0,
    63% 0,
    63% 29%,
    100% 29%,
    100% 48%,
    63% 48%,
    63% 100%,
    37% 100%,
    37% 48%,
    0 48%,
    0 29%,
    37% 29%
  );
  font-size: 1.25em;
  font-style: normal;
  line-height: 0;
  text-indent: -9999px;
  filter: drop-shadow(0 2px 1px rgba(91, 52, 5, 0.3));
}

.details h2,
.notes h2,
.lodging h2 {
  margin-bottom: clamp(2.8rem, 7vw, 5rem);
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.event-card {
  padding: clamp(2rem, 6vw, 4.5rem);
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(75, 49, 40, 0.14);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.line-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.2rem;
  color: var(--cocoa);
}

.line-icon svg {
  width: 100%;
  height: 100%;
}

.line-icon--large {
  width: 4.5rem;
  height: 4.5rem;
}

.line-icon--light {
  color: var(--champagne);
}

.event-card__label {
  margin: 0 0 0.5rem;
  color: var(--cocoa);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 400;
  line-height: 1.15;
}

.event-card p:not(.event-card__label) {
  min-height: 3.3em;
  margin: 1rem auto;
  color: var(--muted);
}

.event-card strong {
  display: block;
  margin: 1.15rem 0 1.75rem;
  color: var(--mocha);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

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

.cocoa-section .section-kicker {
  color: #eadbcd;
}

.dress {
  display: grid;
  justify-items: center;
}

.dress__content {
  max-width: 680px;
}

.dress__content p:last-child {
  max-width: 48ch;
  margin: 1.25rem auto 0;
  color: var(--muted);
}

.palette {
  display: flex;
  gap: 0.55rem;
  margin-top: 2.25rem;
}

.palette span {
  width: clamp(2.6rem, 7vw, 4rem);
  aspect-ratio: 1;
  background: var(--swatch);
  border: 5px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(45, 29, 24, 0.13);
}

.gifts__content {
  max-width: 760px;
  margin: 0 auto;
}

.gifts__content > p:not(.section-kicker) {
  max-width: 52ch;
  margin: 1.5rem auto 2rem;
  color: rgba(255, 250, 243, 0.76);
}

.gifts__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.gift-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(700px, 100%);
  margin: 2.25rem auto 0;
}

.gift-option {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.6rem, 5vw, 2.5rem);
  border: 1px solid rgba(201, 172, 122, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.045);
}

.gift-option__eyebrow,
.gift-option__caption {
  color: var(--champagne);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gift-option__title {
  margin: 0.55rem 0 1rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
}

.gift-option__number {
  margin-top: 0.35rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.gift-option__spark {
  margin: 0.15rem 0 0.65rem;
  color: var(--champagne);
}

.gift-option__envelope {
  display: grid;
  width: 2.6rem;
  height: 2.1rem;
  place-items: center;
  margin: 0.15rem 0 0.75rem;
  color: var(--champagne);
}

.gift-option__envelope svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.35;
}

.gift-option small {
  display: block;
  max-width: 24ch;
  margin-top: 0.75rem;
  color: rgba(255, 250, 243, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
}

.gifts__links .button--outline {
  color: var(--ivory);
  border-color: rgba(255, 250, 243, 0.55);
}

.gifts__links .button--outline:hover {
  color: var(--espresso);
  background: var(--ivory);
}

.notes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  background: transparent;
}

.notes__grid.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 620px;
}

.note-card {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 250, 243, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-card--adults {
  background:
    linear-gradient(rgba(255, 250, 243, 0.88), rgba(255, 250, 243, 0.88)),
    url("assets/mocha-botanica.png") center / cover;
}

.note-card__number {
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 3rem;
}

.note-card h3 {
  margin: 0.7rem 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.note-card p {
  margin: 0;
  color: var(--muted);
}

.rsvp {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(45, 29, 24, 0.44), rgba(45, 29, 24, 0.72)),
    url("assets/mocha-botanica.png") center / cover;
}

.rsvp__panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem);
  color: var(--ink);
  background: rgba(255, 250, 243, 0.91);
  border: 1px solid rgba(255, 250, 243, 0.52);
  border-radius: var(--radius-large);
  box-shadow: 0 28px 90px rgba(31, 18, 14, 0.32);
  backdrop-filter: blur(8px);
}

.rsvp__panel > p:not(.section-kicker) {
  margin: 1.25rem 0 1.8rem;
  color: var(--muted);
}

.rsvp__panel > p[data-field="rsvpPrompt"] {
  margin-bottom: 0.45rem;
}

.rsvp__panel > .rsvp__deadline {
  margin: 0 0 1.8rem;
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 700px;
  margin: 0 auto;
}

.rsvp__actions .button--wide {
  width: 100%;
}

@media (max-width: 640px) {
  .rsvp__actions {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

.rsvp small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
}

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

.hotel-card {
  padding: 2rem;
  text-align: left;
  background: rgba(255, 250, 243, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hotel-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.hotel-card p {
  margin: 0.7rem 0 1.3rem;
  color: var(--muted);
}

.hotel-card a {
  color: var(--cocoa);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer {
  position: relative;
  display: grid;
  min-height: 72svh;
  place-items: center;
  overflow: hidden;
  padding: 6rem 1.25rem;
  color: var(--ivory);
  text-align: center;
  background: var(--espresso);
}

.footer__botanical {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(45, 29, 24, 0.68), rgba(45, 29, 24, 0.88)),
    url("assets/mocha-botanica.png") center 80% / cover;
  filter: saturate(0.75);
}

.footer__content {
  position: relative;
  z-index: 1;
}

.footer .section-kicker {
  color: var(--latte);
}

.footer h2 {
  overflow-wrap: anywhere;
}

.footer__monogram {
  --monogram-letters: var(--ivory);
  --monogram-ampersand: var(--champagne);
  width: 8.75rem;
  height: 6.5rem;
  margin: 2.8rem auto 1rem;
}

.footer__content > p:not(.section-kicker) {
  margin-bottom: 0.15rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer__content > span {
  color: rgba(255, 250, 243, 0.7);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 750ms ease, transform 750ms ease;
}

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

.noscript {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  color: white;
  text-align: center;
  background: var(--espresso);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes opening-hint {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (max-width: 760px) {
  .opening {
    padding: 0;
  }

  .opening__paper {
    padding: 2rem 1rem;
    background-position: 53% center;
  }

  .opening__content {
    width: min(88%, 32rem);
  }

  .hero h1 {
    flex-direction: column;
    gap: 0;
  }

  .hero {
    background-position: 51% center;
  }

  .hero h1 i {
    margin: 0.12em 0;
  }

  .date-lockup {
    gap: 0.75rem;
  }

  .countdown__grid strong {
    font-size: clamp(1.75rem, 9vw, 2.65rem);
  }

  .countdown__grid span {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .details__grid,
  .families__parents,
  .families__sponsors,
  .gift-options,
  .notes__grid,
  .lodging__list {
    grid-template-columns: 1fr;
  }

  .story-moment__frame,
  .story-moment--garden .story-moment__frame,
  .story-moment--night .story-moment__frame {
    width: min(32rem, 100%);
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery__viewport {
    padding-inline: 11vw;
  }

  .gallery__slide {
    flex-basis: 78vw;
  }

  .gallery__button {
    top: calc(50% + 0.5rem);
    width: 2.8rem;
    height: 2.8rem;
  }

  .gallery__button--previous {
    left: 0.65rem;
  }

  .gallery__button--next {
    right: 0.65rem;
  }

  .palette {
    gap: 0.35rem;
  }

  .paper-section {
    background-attachment: scroll;
  }
}

@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;
  }

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

/* Editorial minimal: restrained, timeless and precise */
:root {
  --espresso: #1c1514;
  --mocha: #4b302f;
  --cocoa: #704746;
  --latte: #cbb6ab;
  --champagne: #c6a469;
  --paper: #f6f2ec;
  --ivory: #fffdfa;
  --ink: #251e1c;
  --muted: #746966;
  --line: rgba(52, 34, 32, 0.16);
  --shadow: 0 24px 70px rgba(30, 20, 18, 0.09);
  --radius: 0.35rem;
  --radius-large: 0.55rem;
}

body {
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.family-group__name {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.opening__paper {
  background:
    linear-gradient(180deg, rgba(17, 10, 8, 0.18), rgba(17, 10, 8, 0.64)),
    url("assets/martha-elve-portada.jpeg") center 50% / cover;
}

.opening__content::before,
.opening__content::after {
  display: block;
  width: 4rem;
  height: 1px;
  margin: 1rem auto;
  background: var(--champagne);
  content: "";
}

.envelope-hint {
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
}

.music-control {
  position: fixed;
  z-index: 80;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.25rem));
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  padding: 0;
  color: var(--ivory);
  background: rgba(28, 21, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(28, 21, 20, 0.22);
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 280ms ease, transform 280ms ease, background 180ms ease;
}

body:not(.is-locked) .music-control {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.music-control:hover {
  background: var(--cocoa);
}

.music-control:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}

.music-control svg {
  width: 1.2rem;
  height: 1.2rem;
}

.music-control:not(.is-playing) .music-waves {
  opacity: 0.2;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(18, 11, 9, 0.16), rgba(18, 11, 9, 0.08) 38%, rgba(18, 11, 9, 0.76) 100%),
    linear-gradient(90deg, rgba(18, 11, 9, 0.18), transparent 30% 70%, rgba(18, 11, 9, 0.18));
}

.hero__content {
  width: min(1040px, calc(100% - 2.5rem));
}

.hero h1 {
  font-size: clamp(3.6rem, 12.5vw, 9.5rem);
  letter-spacing: -0.075em;
  text-shadow: 0 7px 35px rgba(10, 6, 5, 0.28);
}

.hero__monogram {
  margin-bottom: 1.5rem;
}

.date-lockup {
  gap: 2rem;
  width: min(500px, 100%);
}

.date-lockup span {
  border-color: rgba(255, 253, 250, 0.62);
}

/* Tipografía de los nombres, a juego con la portada para WhatsApp */
.opening__content h1 span,
.hero h1 span {
  font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  font-weight: 400;
}

.opening__content h1 span:first-child,
.hero h1 span:first-child {
  font-style: italic;
  letter-spacing: -0.055em;
}

.opening__content h1 span:last-child,
.hero h1 span:last-child {
  font-style: italic;
  letter-spacing: -0.055em;
}

.opening__content h1 i,
.hero h1 i {
  font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  font-style: italic;
}

.opening .opening__content h1 {
  gap: 0;
  font-size: clamp(2.65rem, 10.5vw, 6rem);
  line-height: 0.92;
}

.paper-section,
.dark-section,
.rsvp,
.story-moment {
  padding-block: clamp(6.5rem, 13vw, 11rem);
}

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

.section-kicker {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
}

.ornament {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.countdown__grid {
  width: min(760px, 100%);
  margin-bottom: 3rem;
  border-color: var(--line);
}

.countdown__grid div {
  padding-block: 2.15rem;
}

.countdown__grid strong {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
}

.story-moment {
  background: var(--espresso);
}

.story-moment::before,
.gallery::before,
.promise::before,
.promise::after {
  opacity: 0.48;
}

.story-moment__frame,
.gallery__slide {
  overflow: visible;
  background: transparent;
  border-radius: var(--radius-large);
  box-shadow: none;
}

.story-moment__frame img,
.gallery__slide img {
  display: block;
  height: 100%;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.story-moment__frame::after,
.gallery__slide::after {
  inset: 0.8rem -0.8rem -0.8rem 0.8rem;
  border-color: rgba(198, 164, 105, 0.38);
  border-radius: var(--radius-large);
  box-shadow: none;
}

.family-group,
.event-card,
.note-card,
.hotel-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.family-group {
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
}

.family-group__label::after {
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1rem auto 0;
  background: var(--champagne);
  content: "";
}

.event-card {
  position: relative;
}

.event-card::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 4rem;
  height: 2px;
  background: var(--champagne);
  content: "";
  transform: translateX(-50%);
}

.line-icon {
  color: var(--mocha);
}

.button {
  min-width: 10.5rem;
  border-radius: 0.2rem;
  box-shadow: none;
}

.button--filled {
  background: var(--mocha);
}

.gift-option {
  border-radius: 0.35rem;
  background: transparent;
}

.rsvp {
  background:
    linear-gradient(rgba(30, 19, 17, 0.5), rgba(30, 19, 17, 0.74)),
    url("assets/mocha-botanica.png") center / cover;
}

.rsvp__panel {
  padding: clamp(3rem, 8vw, 5.5rem);
  background: rgba(255, 253, 250, 0.95);
  border-radius: 0.35rem;
  box-shadow: 0 34px 90px rgba(20, 12, 10, 0.25);
}

.promise__frame {
  border: 0;
  border-top: 1px solid rgba(198, 164, 105, 0.45);
  border-bottom: 1px solid rgba(198, 164, 105, 0.45);
  border-radius: 0;
}

.palette span {
  border-width: 2px;
  box-shadow: none;
}

.gallery__button {
  border-radius: 0.2rem;
}

.reveal {
  transform: translateY(14px);
  transition: opacity 850ms ease, transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 760px) {
  .date-lockup {
    gap: 0.7rem;
  }

  .story-moment__frame::after,
  .gallery__slide::after {
    inset: 0.55rem -0.35rem -0.55rem 0.35rem;
  }

  .family-group,
  .event-card,
  .note-card,
  .hotel-card {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-control,
  body:not(.is-locked) .music-control {
    transform: none;
    transition: none;
  }
}
