/* ==========================================================================
   Wedding Invitation
   Mobile-first. Breakpoints: 768px (tablet), 960px (desktop)
   ========================================================================== */

/* ---------- 1. Design tokens (✏️ edit palette & fonts here) ---------- */
:root {
  /* Green palette: #424236 · #646E57 · #95A32F · #B4B792 */
  --ivory:      #F5F5EE;   /* page background, opening screen (light tint of #B4B792) */
  --paper:      #FBFBF7;   /* cards (CLABE), gallery background */
  --beige:      #E4E5D6;   /* very light sage: alternate sections */
  --beige-deep: #B4B792;   /* sage: fine lines, photo placeholders */
  --charcoal:   #646E57;   /* grayish green: names, titles, buttons */
  --dark:       #737A3E;   /* olive: countdown & RSVP sections */
  --ink:        #424236;   /* body text */
  --muted:      #5A6050;   /* small labels */
  --gold:       #95A32F;   /* bright olive accent: opening card line, language buttons, dots */
  --gold-deep:  #95A32F;   /* "&", icons */

  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 13vw, 9rem);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

main:focus { outline: none; }

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

button { font: inherit; color: inherit; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* Image frames: tonal background shows while loading or if a file is missing */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--beige) 0%, var(--beige-deep) 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }

/* ---------- 3. Shared type ---------- */
.section-head {
  text-align: center;
  margin: 0 auto clamp(2.75rem, 8vw, 4.5rem);
  max-width: 36rem;
}

.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-lead {
  margin-top: 1rem;
  color: var(--muted);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 54px;
  padding: 0 2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.3;
}

.btn--solid { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.btn--solid:hover { background: var(--ink); }

.btn--outline { color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--ivory); }

.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
.btn--light:hover { background: var(--beige); border-color: var(--beige); }

.btn--ghost-light { color: var(--ivory); border-color: rgba(245, 245, 238, .45); }
.btn--ghost-light:hover { border-color: var(--ivory); background: rgba(245, 245, 238, .08); }


/* ==========================================================================
   5. OPENING SCREEN
   ========================================================================== */
.opener {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.opener__half {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: var(--ivory);
  transition: transform 1.05s var(--ease-out);
}
.opener__half--top { top: 0; }
.opener__half--bottom { bottom: 0; }

/* The fold line of the card */
.opener__half--top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(149, 163, 47, .35) 20%, rgba(149, 163, 47, .35) 80%, transparent);
}

.opener__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--gutter);
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  animation: opener-in 1.4s var(--ease-out) both;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.opener__content::before {              /* fine gold card frame */
  content: '';
  position: absolute;
  inset: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  border: 1px solid rgba(149, 163, 47, .5);
  pointer-events: none;
}
.opener__content:focus { outline: none; }
.opener__content:focus-visible::before { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.opener__intro {
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.opener__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 15vw, 5.5rem);
  line-height: 1;
  color: var(--charcoal);
}
.opener__amp {
  font-size: .5em;
  color: var(--gold-deep);
  margin: .3em 0 .35em;
}

.opener__rule {
  width: 44px; height: 1px;
  background: var(--gold);
}

.opener__date {
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--ink);
}

.opener__cta {
  position: absolute;
  bottom: calc(2.5rem + env(safe-area-inset-bottom));
  left: 0; right: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  animation: breathe 2.6s ease-in-out 1.4s infinite;
}

/* Opening sequence */
.opener.is-opening .opener__content {
  animation: opener-out .45s var(--ease) forwards;
  pointer-events: none;
}
.opener.is-opening .opener__half--top    { transform: translateY(-100%); transition-delay: .3s; }
.opener.is-opening .opener__half--bottom { transform: translateY(100%);  transition-delay: .3s; }
.opener.is-gone { display: none; }

@keyframes opener-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: scale(.97); }
}

@keyframes opener-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes breathe {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}


/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  position: absolute;
  top: -6%;
  left: 0;
  height: 112%;
  will-change: transform;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(36, 36, 28, .20) 0%,
    rgba(36, 36, 28, .05) 35%,
    rgba(36, 36, 28, .72) 100%);
}

.hero__content {
  position: relative;
  align-self: end;
  text-align: center;
  padding: 6rem var(--gutter) calc(clamp(3.5rem, 11vh, 6rem) + env(safe-area-inset-bottom));
}

.hero__names {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.9rem, 19vw, 7rem);
  line-height: .92;
  letter-spacing: -0.02em;
}
.hero__names > span { display: block; }
.hero__amp {
  font-style: italic;
  font-size: .5em;
  line-height: 1.5;
  color: var(--beige);
}

.hero__tagline {
  margin: 1.4rem 0 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .95rem;
  letter-spacing: .08em;
  color: rgba(255, 253, 249, .88);
}

/* Entrance (runs once the invitation is opened) */
.js .hero [data-enter] { opacity: 0; }
.is-open .hero [data-enter] {
  animation: rise 1.15s var(--ease-out) both;
  animation-delay: calc(var(--d) * 130ms + 150ms);
}
.js .hero__media { transform: scale(1.06); }
.is-open .hero__media { transform: none; transition: transform 2.6s var(--ease-out); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   7. COUNTDOWN
   ========================================================================== */
.countdown {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.25rem, 9vw, 5.5rem) var(--gutter);
}

.countdown__title {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: rgba(245, 245, 238, .85);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 40rem;
  margin: 0 auto;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown__unit + .countdown__unit { border-left: 1px solid rgba(245, 245, 238, .14); }

.countdown__num {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 11vw, 4.25rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__label {
  margin-top: .6rem;
  font-size: .8rem;
  letter-spacing: .08em;
  color: rgba(245, 245, 238, .7);
}

.countdown__message {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.25;
}
.countdown.is-done .countdown__grid { display: none; }


/* ==========================================================================
   8. OUR STORY
   ========================================================================== */
.story {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.chapter {
  display: grid;
  gap: 1.75rem;
}
.chapter + .chapter { margin-top: clamp(3.75rem, 11vw, 7.5rem); }

.chapter__media { aspect-ratio: 4 / 5; }

.chapter__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-deep);
}
.chapter__title {
  margin: .3rem 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 2.75rem);
  line-height: 1.1;
}
.chapter__text {
  max-width: 32rem;
  color: var(--ink);
  line-height: 1.75;
}

/* Image reveal */
.js .reveal { clip-path: inset(14% 0 0 0); }
.js .reveal img { transform: scale(1.1); }
.js .reveal,
.js .reveal img { transition: clip-path 1.3s var(--ease-out), transform 1.6s var(--ease-out); }
.js .reveal.is-visible { clip-path: inset(0 0 0 0); }
.js .reveal.is-visible img { transform: none; }


/* ==========================================================================
   9. THE WEDDING — details
   ========================================================================== */
.details {
  background: var(--beige);
  padding: var(--section) var(--gutter);
}

.details__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 64rem;
  display: grid;
  gap: 2.75rem;
  text-align: center;
}

.detail__icon {
  width: 34px; height: 34px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.detail__label {
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.detail__value {
  margin: .35rem 0 .2rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
}
.detail__sub { color: var(--ink); }

.details__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(3rem, 8vw, 4.5rem);
}


/* ==========================================================================
   10. SCHEDULE — timeline (vertical on mobile)
   ========================================================================== */
.schedule { padding: var(--section) var(--gutter); }

.timeline {
  --time-col: 5.5rem;
  --dot-col: 2rem;
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 26rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 2rem; bottom: 2rem;
  left: calc(var(--time-col) + var(--dot-col) / 2);
  width: 1px;
  background: var(--beige-deep);
}

.timeline__item {
  display: grid;
  grid-template-columns: var(--time-col) var(--dot-col) 1fr;
  align-items: center;
  padding: 1.15rem 0;
}

.timeline__time {
  text-align: right;
  font-size: .95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timeline__dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ivory);
}
.timeline__event {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
}
.timeline__item.is-key .timeline__dot { background: var(--gold); transform: scale(1.3); }


/* ==========================================================================
   11. GALLERY (swipe row on mobile)
   ========================================================================== */
.gallery {
  background: var(--paper);
  padding: var(--section) 0;
}
.gallery .section-head { padding: 0 var(--gutter); }

.gallery__hint {
  margin-top: .9rem;
  font-size: .9rem;
  color: var(--muted);
}

.gallery__track {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 78%;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery__item img { transition: transform .9s var(--ease-out); }
.gallery__item:focus-visible { outline-offset: -4px; }


/* ==========================================================================
   12. VENUE
   ========================================================================== */
.venue {
  padding: var(--section) var(--gutter);
  text-align: center;
}
.venue__inner {
  max-width: 34rem;
  margin: 0 auto;
}
.venue__name {
  margin: 1.75rem 0 .5rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.15;
}
.venue__address {
  color: var(--ink);
  margin-bottom: 2.25rem;
}


/* ==========================================================================
   13. RSVP
   ========================================================================== */
.rsvp {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding: var(--section) var(--gutter);
}
.rsvp__lead {
  margin-top: 1rem;
  color: rgba(245, 245, 238, .75);
}
.rsvp__actions {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 22rem;
  margin: 2.75rem auto 0;
}


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 5.5rem) var(--gutter) calc(6rem + env(safe-area-inset-bottom));
}
.footer__monogram {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}
.footer__monogram em {
  font-size: .55em;
  color: var(--gold-deep);
  margin: 0 .2em;
}
.footer__line {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
}


/* ==========================================================================
   15. MUSIC BUTTON
   ========================================================================== */
.music-toggle {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 80;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(66, 66, 54, .12);
  background: rgba(245, 245, 238, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(66, 66, 54, .14);
  color: var(--charcoal);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.music-toggle.is-ready { opacity: 1; transform: none; pointer-events: auto; }

.music-toggle__play { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }

.music-toggle__bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.music-toggle__bars span {
  width: 2px;
  height: 100%;
  background: var(--gold-deep);
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite;
}
.music-toggle__bars span:nth-child(2) { animation-delay: -.4s; }
.music-toggle__bars span:nth-child(3) { animation-delay: -.8s; }

.music-toggle.is-playing .music-toggle__play { display: none; }
.music-toggle.is-playing .music-toggle__bars { display: flex; }

@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50%      { transform: scaleY(1); }
}


/* ==========================================================================
   16. LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(4rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(40, 40, 32, .985);
  color: var(--ivory);
  opacity: 0;
  transition: opacity .3s var(--ease);
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: linear-gradient(160deg, var(--beige), var(--beige-deep));
  transition: opacity .25s var(--ease);
}
.lightbox__img.is-swapping { opacity: 0; }

.lightbox__btn {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 245, 238, .25);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.lightbox__btn:hover { border-color: var(--ivory); background: rgba(245, 245, 238, .08); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.lightbox__close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
}

.lightbox__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.lightbox__counter {
  min-width: 3.5rem;
  text-align: center;
  font-size: .9rem;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 245, 238, .75);
}


/* ==========================================================================
   17. TABLET — 768px+
   ========================================================================== */
@media (min-width: 768px) {
  .chapter {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
  }
  .chapter:nth-child(odd) .chapter__media { order: 2; }   /* alternate sides */
  .chapter:nth-child(odd) .chapter__body  { text-align: right; }
  .chapter:nth-child(odd) .chapter__text  { margin-left: auto; }

  .details__list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .detail { padding: 0 1.5rem; }
  .detail + .detail { border-left: 1px solid var(--beige-deep); }

  /* Gallery becomes an editorial mosaic */
  .gallery__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(13rem, 24vw, 20rem);
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    overflow: visible;
  }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item:nth-child(1) { grid-column: 1;     grid-row: 1 / 3; }
  .gallery__item:nth-child(5) { grid-column: 3;     grid-row: 2 / 4; }
  .gallery__item:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }
  .gallery__item:hover img { transform: scale(1.04); }
  .gallery__hint { display: none; }

  .rsvp__actions { flex-direction: row; max-width: none; justify-content: center; }

  .lightbox { padding: 2rem 6rem; }
  .lightbox__nav { margin: 0; }
  .lightbox__prev,
  .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox__prev { left: 1.5rem; }
  .lightbox__next { right: 1.5rem; }
  .lightbox__counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
}


/* ==========================================================================
   18. DESKTOP — 960px+
   ========================================================================== */
@media (min-width: 960px) {
  /* Hero: typography left, photograph right */
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: var(--ivory);
    color: var(--charcoal);
    min-height: 100vh;
  }
  .hero__media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
  }
  .hero__media::after { display: none; }
  .hero__content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    text-align: left;
    padding: 4rem 3rem 4rem clamp(3rem, 6vw, 6.5rem);
  }
  .hero__names { font-size: clamp(5rem, 8.5vw, 8.5rem); }
  .hero__amp { color: var(--gold-deep); padding-left: .15em; }
  .hero__tagline { margin: 2rem 0; }
  .hero__meta { color: var(--ink); }

  /* Schedule: horizontal timeline */
  .timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    max-width: 68rem;
  }
  .timeline::before { display: none; }
  .timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 0 .5rem;
    text-align: center;
  }
  .timeline__item::before {           /* line segment between dots */
    content: '';
    position: absolute;
    top: calc(1.5rem + 1.1rem + 4px);
    left: 0; right: 0;
    height: 1px;
    background: var(--beige-deep);
  }
  .timeline__item:first-child::before { left: 50%; }
  .timeline__item:last-child::before  { right: 50%; }
  .timeline__time { height: 1.5rem; line-height: 1.5rem; text-align: center; }
}


/* ==========================================================================
   19. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { clip-path: none; }
  .js .reveal img,
  .js .hero__media { transform: none; }
  .opener__cta { opacity: 1; }
}

/* Hero slideshow */
.hero__media img {
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__media img.is-active {
  opacity: 1;
}


/* Venue note: all events at the same place */
.venue__note {
  display: inline-block;
  max-width: 28rem;
  margin: -0.75rem 0 2.25rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Less empty space between The Evening and Venue (same background) */
.schedule + .venue { padding-top: 0; }


/* ==========================================================================
   WHERE TO STAY
   ========================================================================== */
.stay { padding: var(--section) var(--gutter); }

.stay__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 64rem;
  display: grid;
}

.hotel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 0;
}
.hotel:first-child { padding-top: 0; }
.hotel + .hotel { border-top: 1px solid var(--beige-deep); }

.hotel__name {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
}
.hotel__address {
  max-width: 20rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  color: var(--muted);
}
.hotel .btn { min-height: 48px; padding: 0 1.5rem; font-size: .72rem; }

@media (min-width: 768px) {
  .stay__list { grid-template-columns: repeat(3, 1fr); }
  .hotel { padding: 0 1.75rem; }
  .hotel + .hotel { border-top: 0; border-left: 1px solid var(--beige-deep); }
  .hotel__address { flex: 1; }          /* keeps the three buttons aligned */
}


/* ==========================================================================
   GIFTS
   ========================================================================== */
.gifts {
  background: var(--beige);
  padding: var(--section) var(--gutter);
  text-align: center;
}
.gifts__text {
  max-width: 32rem;
  margin: 1rem auto 0;
  color: var(--ink);
}

.gifts__card {
  max-width: 24rem;
  margin: 2.5rem auto 0;
  padding: 2rem 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(149, 163, 47, .45);
}
.gifts__row + .gifts__row { margin-top: 1.1rem; }
.gifts__label {
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.gifts__value {
  margin-top: .15rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
}
.gifts__value--number {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.gifts__card .btn { margin-top: 1.5rem; min-height: 46px; padding: 0 1.5rem; font-size: .72rem; }

.gifts__cash {
  max-width: 30rem;
  margin: 2rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}


/* ==========================================================================
   Calligraphy for names and section titles (Pinyon Script)
   ========================================================================== */
:root { --script: 'Pinyon Script', 'Bodoni Moda', cursive; }

.section-title,
.opener__names,
.hero__names,
.footer__monogram {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

/* The "&" also in calligraphy, without extra slant */
.opener__amp,
.hero__amp,
.footer__monogram em { font-style: normal; }

/* Calligraphy looks smaller and has tall strokes: a bit larger, more line room */
.section-title { font-size: clamp(3rem, 11vw, 5rem); line-height: 1.2; }
.opener__names { line-height: 1.1; }
.hero__names   { line-height: 1.05; }
.footer__monogram { font-size: 3.5rem; }

/* Other elegant texts in Bodoni italic (small information text stays upright) */
.detail__value,
.timeline__event,
.venue__name,
.hotel__name,
.gifts__value { font-style: italic; }

.gifts__value--number { font-style: normal; }   /* CLABE stays upright so it reads clearly */


/* Google Maps + Apple Maps buttons: stacked, same width */
.map-links {
  display: inline-flex;
  flex-direction: column;
  gap: .75rem;
}
.map-links .btn { width: 100%; }


/* ==========================================================================
   Opening screen: language choice (ENGLISH / ESPAÑOL)
   Only these buttons open the invitation; the rest of the card is not clickable.
   ========================================================================== */
.opener__content { cursor: default; }

.opener__lang {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(2.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
}

.opener__prompt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

.opener__choices {
  display: flex;
  gap: .75rem;
}

.lang-btn {
  min-width: 8.75rem;
  min-height: 50px;
  padding: 0 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.lang-btn:hover,
.lang-btn:active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Very short screens: keep the buttons clear of the names */
@media (max-height: 640px) {
  .opener__content { justify-content: flex-start; padding-top: 3.5rem; }
  .opener__lang { bottom: calc(1.75rem + env(safe-area-inset-bottom)); }
}


/* Dark sections in the darkest green of the palette */
.countdown,
.rsvp { background: var(--dark); }

/* Lighter olive background: small light text a bit stronger so it stays sharp */
.countdown__label { color: rgba(245, 245, 238, .92); }
.countdown__title { color: rgba(245, 245, 238, .96); }
.rsvp__lead       { color: rgba(245, 245, 238, .94); }
.btn--ghost-light { border-color: rgba(245, 245, 238, .7); }


/* ==========================================================================
   BLACK & WHITE THEME — warm off-white + charcoal  (✏️ colors of each section)
   #FAF8F5 off-white · #1F1F1F charcoal · #2B2B2B body text · #5C5C5C gray
   #EDEAE5 warm light gray · #E4E0D9 warm gray · #D6D1C9 thin lines
   #BDB7AE lines on gray · #8A8580 ornaments on dark · #FFFFFF cards
   ========================================================================== */
:root {
  --ivory:      #FAF8F5;   /* page background, light text on dark */
  --paper:      #FFFFFF;   /* cards */
  --beige:      #EDEAE5;   /* light gray sections */
  --beige-deep: #D6D1C9;   /* thin lines, photo placeholders */
  --charcoal:   #1F1F1F;   /* headings, buttons */
  --dark:       #1F1F1F;
  --ink:        #2B2B2B;   /* body text */
  --muted:      #5C5C5C;   /* small labels */
  --gold:       #D6D1C9;   /* thin lines, dividers */
  --gold-deep:  #1F1F1F;   /* icons, "&" on light backgrounds */
  --ornament:   #BDB7AE;   /* line-diamond-line under titles */
}
body { background: var(--ivory); color: var(--ink); }

/* Keyboard focus visible on light and dark sections */
:focus-visible,
.lang-btn:focus-visible { outline-color: #8A8580; }

/* ---------- Ornament under every section title ---------- */
.section-title::after {
  content: '';
  display: block;
  width: 88px;
  height: 12px;
  margin: 1.1rem auto 0;
  background: var(--ornament);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 12'%3E%3Crect x='0' y='5.5' width='34' height='1'/%3E%3Crect x='54' y='5.5' width='34' height='1'/%3E%3Cpath d='M44 1.5l4.5 4.5-4.5 4.5-4.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 12'%3E%3Crect x='0' y='5.5' width='34' height='1'/%3E%3Crect x='54' y='5.5' width='34' height='1'/%3E%3Cpath d='M44 1.5l4.5 4.5-4.5 4.5-4.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-title { color: var(--charcoal); }

/* ---------- Small labels: refined uppercase ---------- */
.detail__label,
.countdown__label,
.gifts__label {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .68rem;
  font-weight: 500;
}
.countdown__label { letter-spacing: .14em; }


/* 1. Opening screen: off-white card, charcoal text, soft gray lines */
.opener {
  --ivory:     #FAF8F5;    /* card halves */
  --charcoal:  #1F1F1F;    /* names, button hover fill */
  --ink:       #1F1F1F;    /* date */
  --gold:      #BDB7AE;    /* line under the names, button borders */
  --gold-deep: #5C5C5C;    /* "&" */
}
.opener__half--top::after { background: linear-gradient(90deg, transparent, #BDB7AE 20%, #BDB7AE 80%, transparent); opacity: .7; }
.opener__content::before { border-color: #BDB7AE; }
.opener__content::after {               /* second, inner frame */
  content: '';
  position: absolute;
  inset: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(189, 183, 174, .55);
  pointer-events: none;
}
.opener__date { letter-spacing: .18em; font-size: .85rem; text-transform: uppercase; }
.lang-btn { color: #1F1F1F; border-color: #1F1F1F; }
.lang-btn:hover,
.lang-btn:active { background: #1F1F1F; border-color: #1F1F1F; color: #FAF8F5; }

/* 2. Couple photo: even dark veil (photos stay in color) */
.hero__media::after { background: rgba(20, 20, 20, .35); }
.hero__amp { color: #EDEAE5; }
@media (min-width: 960px) {
  .hero__amp { color: #5C5C5C; }        /* desktop: "&" sits on the off-white side */
}

/* 3. Countdown: charcoal */
.countdown { background: #1F1F1F; color: #FAF8F5; }
.countdown__title,
.countdown__message { color: #FAF8F5; }
.countdown__label { color: rgba(250, 248, 245, .8); }
.countdown__unit + .countdown__unit { border-left-color: rgba(250, 248, 245, .18); }

/* 4. The Wedding: off-white, charcoal headings */
.details { background: #FAF8F5; color: #2B2B2B; }
.details .section-lead,
.detail__label,
.detail__sub { color: #5C5C5C; }
.detail__value { color: #1F1F1F; }
.detail__icon {
  width: 58px;
  height: 58px;
  padding: 14px;
  border: 1px solid #D6D1C9;
  border-radius: 50%;
  stroke: #1F1F1F;
}
.detail__label { margin-top: .25rem; }
.detail + .detail { border-color: #D6D1C9; }

/* 5. The Evening: warm light gray, charcoal text and dots */
.schedule {
  --charcoal: #1F1F1F;
  --ornament: #BDB7AE;
  background: #EDEAE5;
  color: #1F1F1F;
}
.schedule .timeline__time { color: #5C5C5C; font-weight: 500; }
.schedule .timeline__event { color: #1F1F1F; }
.schedule .timeline::before,
.schedule .timeline__item::before { background: #BDB7AE; }
.schedule .timeline__dot { background: #EDEAE5; border-color: #8A8580; }
.schedule .timeline__item.is-key .timeline__dot { background: #1F1F1F; border-color: #1F1F1F; }

/* 6. Venue + Where to Stay: warm gray with white cards */
.venue,
.stay {
  --charcoal: #1F1F1F;
  --ornament: #BDB7AE;
  background: #E4E0D9;
}
.schedule + .venue { padding-top: var(--section); }
.stay .section-lead { color: #4A4A4A; }

.venue__inner,
.hotel,
.hotel:first-child {
  --charcoal: #1F1F1F;
  --gold:     #D6D1C9;
  background: #FFFFFF;
  color: #2B2B2B;
  border: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .07);
}
.venue__inner { padding: clamp(2.5rem, 7vw, 3.5rem) clamp(1.5rem, 5vw, 3rem); }
.venue__inner .section-title { --ornament: #D6D1C9; }
.venue__name,
.hotel__name { color: #1F1F1F; }
.venue__address,
.venue__note,
.hotel__address { color: #5C5C5C; }
.venue .btn--outline,
.hotel .btn--outline { color: #1F1F1F; border-color: #1F1F1F; }
.venue .btn--outline:hover,
.hotel .btn--outline:hover { background: #1F1F1F; border-color: #1F1F1F; color: #FFFFFF; }

.stay__list { gap: 1rem; }
.hotel,
.hotel:first-child { padding: 2.25rem 1.5rem; }
.hotel + .hotel { border: 0; }
@media (min-width: 768px) {
  .stay__list { gap: 1.25rem; }
  .hotel + .hotel { border-left: 0; }
}

/* Moments: off-white */
.gallery { background: #FAF8F5; }
.gallery__hint { color: #5C5C5C; }

/* 7. RSVP: charcoal */
.rsvp {
  --ivory:    #FAF8F5;     /* text, main button fill */
  --charcoal: #1F1F1F;     /* main button text */
  --ornament: #8A8580;
  background: #1F1F1F;
  color: #FAF8F5;
}
.rsvp .section-title { color: #FAF8F5; }
.rsvp__lead { color: rgba(250, 248, 245, .85); }
.rsvp .btn--light { background: #FAF8F5; border-color: #FAF8F5; color: #1F1F1F; }
.rsvp .btn--light:hover { background: #EDEAE5; border-color: #EDEAE5; }
.rsvp .btn--ghost-light { color: #FAF8F5; border-color: rgba(250, 248, 245, .7); }

/* Gifts: off-white, white card with a double thin frame */
.gifts { background: #FAF8F5; color: #2B2B2B; }
.gifts .section-lead,
.gifts__text,
.gifts__label,
.gifts__cash { color: #5C5C5C; }
.gifts__value { color: #1F1F1F; }
.gifts__card {
  background: #FFFFFF;
  border: 1px solid #D6D1C9;
  outline: 1px solid #D6D1C9;
  outline-offset: -9px;
  padding: 2.5rem 1.75rem;
}

/* Footer: charcoal, like the opening screen */
.footer { background: #1F1F1F; color: #FAF8F5; }
.footer__monogram { color: #FAF8F5; }
.footer__monogram em { color: #BDB7AE; }
.footer__line { color: rgba(250, 248, 245, .85); letter-spacing: .06em; }

/* Music button, photo viewer */
.music-toggle {
  background: rgba(250, 248, 245, .9);
  border-color: rgba(31, 31, 31, .18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  color: #1F1F1F;
}
.music-toggle__bars span { background: #1F1F1F; }
.lightbox { background: rgba(15, 15, 15, .97); }


/* ==========================================================================
   Adjustments
   ========================================================================== */
/* Venue + hotel cards: double thin frame like the bank card (shadow kept) */
.venue .venue__inner,
.stay .hotel,
.stay .hotel + .hotel {
  border: 1px solid #D6D1C9;
  outline: 1px solid #D6D1C9;
  outline-offset: -9px;
}

/* Hotel map buttons: a bit smaller */
.stay .hotel .btn {
  min-height: 42px;
  padding: 0 1.25rem;
  font-size: .66rem;
  letter-spacing: .14em;
}

/* RSVP: both buttons the same width when side by side */
@media (min-width: 768px) {
  .rsvp__actions {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}


/* ==========================================================================
   OUR PARENTS (after the countdown): compact framed card
   Same fonts as the rest: Bodoni italic for phrase and names, Jost for labels
   ========================================================================== */
.formal {
  background: #EDEAE5;                 /* warm beige around the card */
  padding: clamp(2rem, 6vw, 3rem) var(--gutter);
}
.formal__card {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 2.75rem) clamp(1.1rem, 5vw, 3rem);
  background: #FAF8F5;
  border: 1px solid #D6D1C9;
  outline: 1px solid #D6D1C9;          /* inner line: double frame */
  outline-offset: -10px;
  text-align: center;
  color: #2B2B2B;
}

.formal__phrase {
  max-width: 30rem;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  line-height: 1.6;
  color: #3A3A3A;
}

/* Parents: stacked on phones, side by side on larger screens */
.formal__parents {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem auto 0;
  max-width: 36rem;
}
.formal__family + .formal__family {
  padding-top: 1.5rem;
  border-top: 1px solid #D6D1C9;
}
.formal__label {
  margin-bottom: .5rem;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5C5C5C;
}
.formal__parent {
  font-family: var(--serif);
  font-style: italic;                  /* like the other names and values */
  font-size: clamp(1.15rem, 4.6vw, 1.3rem);
  line-height: 1.5;
  color: #1F1F1F;
}

@media (min-width: 768px) {
  .formal__parents { grid-template-columns: 1fr 1fr; gap: 0; }
  .formal__family { padding: 0 1.5rem; }
  .formal__family + .formal__family {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid #D6D1C9;
  }
}


/* Our Parents: no frame; phrase in the same calligraphy as the section titles */
.formal { padding: clamp(3.5rem, 10vw, 5.5rem) var(--gutter); }
.formal__card {
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
}
.formal__title {
  max-width: 40rem;
  margin: 0 auto;
  font-size: clamp(2.1rem, 8.2vw, 3.4rem);   /* calligraphy like "La Boda", sized for a long phrase */
  line-height: 1.25;
}
.formal__parents { margin-top: 2.25rem; }
@media (max-width: 767px) {
  .formal__family + .formal__family { border-top: 0; position: relative; }
  .formal__family + .formal__family::before {   /* short centered divider */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 1px;
    background: #BDB7AE;
    transform: translateX(-50%);
  }
}


/* ==========================================================================
   HERO: only date and place (no names, no tagline)
   ========================================================================== */
.hero__meta {
  gap: .35rem;
  font-size: clamp(.85rem, 3.6vw, 1rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #FAF8F5;
}

/* Desktop: full-screen photo with date and place over it, like on phones */
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    background: #1F1F1F;
    color: #FAF8F5;
  }
  .hero__media {
    position: absolute;
    inset: 0;
    grid-column: auto;
    grid-row: auto;
  }
  .hero__media::after { display: block; }
  .hero__content {
    grid-column: auto;
    grid-row: auto;
    align-self: end;
    text-align: center;
    padding: 6rem var(--gutter) clamp(3.5rem, 11vh, 6rem);
  }
  .hero__meta { color: #FAF8F5; }
}


/* Hero monogram "E & M" (same calligraphy as the footer monogram, larger) */
.hero__monogram {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(5rem, 24vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: #FAF8F5;
}
.hero__monogram > [data-enter] { display: inline-block; }
.hero__monogram-amp {
  font-style: normal;
  font-size: .55em;
  margin: 0 .2em;
  color: #EDEAE5;
}
.hero__rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 1.5rem auto 1.4rem;
  background: rgba(250, 248, 245, .7);
}

/* The Wedding without the calendar button: same spacing as before, now that the section closes correctly */
.details {
  padding-top: clamp(3rem, 8vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}

/* Itinerario: a little less space above and below */
.schedule { padding-top: clamp(3.75rem, 10vw, 7rem); padding-bottom: clamp(3.75rem, 10vw, 7rem); }


/* Venue: title, ornament and note outside the card (like Where to Stay); card holds name, address, buttons */
.venue .section-lead { max-width: 30rem; margin-left: auto; margin-right: auto; color: #4A4A4A; }
.venue__name { margin-top: 0; }


/* ==========================================================================
   FOOTER CREDIT: "Digital invitation by ..." bottom-left, beside the music button
   The language follows the choice on the opening screen (no script needed).
   ========================================================================== */
.footer {
  position: relative;
  padding-bottom: calc(50px + 2rem + 3.5rem + env(safe-area-inset-bottom));
}
.footer__credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(50px + 2rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  padding: 0 calc(50px + 2rem + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(1.25rem + env(safe-area-inset-left));
  border-top: 1px solid rgba(250, 248, 245, .14);
  text-align: left;
}
.footer__credit a {
  font-size: .72rem;
  letter-spacing: .04em;
  color: rgba(250, 248, 245, .6);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.footer__credit strong {
  font-weight: 500;
  color: rgba(250, 248, 245, .85);
}
.footer__credit a:hover,
.footer__credit a:focus-visible { color: #FAF8F5; }
.footer__credit a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Show the credit in the chosen language */
.credit-es { display: none; }
html[lang="es"] .credit-es { display: inline; }
html[lang="es"] .credit-en { display: none; }


/* ==========================================================================
   GIFTS by language: Spanish = cash in an envelope, English = Zelle or cash
   The language follows the choice on the opening screen.
   ========================================================================== */
.gifts-es { display: none; }
html[lang="es"] .gifts-es { display: block; }
html[lang="es"] .gifts-en { display: none; }

/* Envelope: same thin-line icon in a circle as in The Wedding */
.gifts__envelope { margin-top: 2.25rem; }

/* Hero monogram: room for the calligraphy flourishes (the tail of the "M") so they are not cut */
.hero__monogram > [data-enter] {
  padding: .15em .5em;
  overflow: visible;
}

/* ==========================================================================
   GIFT SUGGESTION: bank transfer + Zelle cards, side by side (stacked on phones)
   ========================================================================== */
.gifts .gifts-es,
.gifts .gifts-en { display: none; }
html[lang="es"] .gifts .gifts-es,
html:not([lang="es"]) .gifts .gifts-en { display: block; }
.gifts__label span,
.gifts__card-title span,
.gifts .btn span { display: none; }
html[lang="es"] .gifts__label .gifts-es,
html[lang="es"] .gifts__card-title .gifts-es,
html[lang="es"] .gifts .btn .gifts-es,
html:not([lang="es"]) .gifts__label .gifts-en,
html:not([lang="es"]) .gifts__card-title .gifts-en,
html:not([lang="es"]) .gifts .btn .gifts-en { display: inline; }

.gifts__envelope { display: none; }            /* no longer used */

.gifts__cards {
  display: grid;
  gap: 1.25rem;
  max-width: 50rem;
  margin: 2.5rem auto 0;
}
.gifts__cards .gifts__card {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gifts__card-title {
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid #D6D1C9;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #1F1F1F;
}
.gifts__card .gifts__value--number { font-size: 1.2rem; }
.gifts__card .btn { margin-top: auto; text-transform: uppercase; }
.gifts__card .gifts__row:last-of-type { margin-bottom: 1.5rem; }

@media (min-width: 768px) {
  .gifts__cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* RSVP: "no kids" note under the reply-by date, same style as that line */
.rsvp__note {
  margin: .4rem auto 0;
  text-align: center;
  color: rgba(250, 248, 245, .85);
}