:root {
  --bg: #f2eee5;
  --paper: #fcfaf4;
  --paper-shadow: rgba(69, 55, 34, 0.14);
  --ink: #382f25;
  --muted: #7c715f;
  --olive: #68713b;
  --olive-deep: #4f582b;
  --olive-soft: #a9af84;
  --line: rgba(87, 74, 52, 0.14);
  --gold: #c8b88f;
  --white-flower: #fffdf7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(180deg, #f4f0e8 0%, #ece5d8 100%);
}

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

.page-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 28px 18px 56px;
  position: relative;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(183, 193, 141, 0.34), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.62), transparent 12%),
    radial-gradient(circle at 50% 100%, rgba(172, 184, 124, 0.16), transparent 26%);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 10px 0 160px;
}

.hero-copy {
  text-align: center;
  padding-top: 4px;
}

.eyebrow,
.section-label,
.mini-kicker,
.kicker,
.hero-date,
.top-link,
.scene-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.hero-date,
.hero-location,
.section-label,
.mini-kicker,
.kicker,
.scene-label {
  color: var(--muted);
}

.eyebrow,
.hero-date,
.hero-location,
.section-label,
.mini-kicker,
.kicker,
.scene-label,
.top-link {
  font-size: 0.9rem;
}

.hero h1,
.card h2,
.detail-block h3,
.mini-card h3 {
  margin: 0;
  line-height: 0.95;
}

.hero h1 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 13vw, 5.6rem);
  font-weight: 400;
  color: var(--olive-deep);
  text-shadow: 0 8px 24px rgba(88, 83, 69, 0.08);
}

.hero h1 span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.56em;
  font-weight: 300;
  vertical-align: middle;
}

.hero-date {
  margin: 10px 0 0;
}

.hero-location {
  margin: 6px 0 0;
  font-size: 1.15rem;
}

.envelope-scene {
  position: relative;
  border: 0;
  background: transparent;
  padding: 42px 0 46px;
  cursor: pointer;
  display: block;
  min-height: 500px;
}

.envelope-scene:focus-visible {
  outline: 2px solid rgba(104, 113, 59, 0.55);
  outline-offset: 8px;
  border-radius: 30px;
}

.scene-label {
  display: block;
  text-align: center;
}

.top-label {
  margin-bottom: 12px;
}

.bottom-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transition: opacity 400ms ease;
}

.envelope {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1.45 / 1;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 24px 35px rgba(76, 65, 42, 0.18));
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0, 1), opacity 600ms ease;
  overflow: hidden;
  z-index: 0;
}

.envelope-back,
.envelope-flap,
.letter {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 6px;
}

.envelope-back {
  z-index: 1;
}

.envelope-back {
  bottom: 0;
  height: 76%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(180deg, var(--olive) 0%, var(--olive-deep) 100%);
}

.envelope-back::before,
.envelope-back::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  border-radius: 6px;
}

.envelope-back::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08));
}

.envelope-back::after {
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, 0.08) 50%, transparent 50.4%),
    linear-gradient(225deg, transparent 49.6%, rgba(255, 255, 255, 0.08) 50%, transparent 50.4%);
}

.letter {
  left: 50%;
  top: 46%;
  width: 74%;
  height: 46%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98)),
    var(--paper);
  box-shadow: 0 16px 24px rgba(73, 59, 39, 0.13);
  padding: 18px 16px 14px;
  text-align: center;
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0, 1), opacity 280ms ease;
  z-index: 2;
}

.letter-monogram {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  color: var(--olive-deep);
  margin-bottom: 8px;
}

.letter-title,
.letter-date {
  display: block;
}

.letter-title {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.letter-date {
  font-size: 1rem;
  color: var(--muted);
}

.envelope-flap {
  top: 24%;
  height: 52%;
  background: linear-gradient(180deg, #758146 0%, #5f6936 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0, 1), opacity 450ms ease;
  z-index: 3;
}

.seal {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 62px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72) 58%, rgba(209, 200, 179, 0.92) 100%);
  border: 3px solid rgba(239, 232, 219, 0.92);
  box-shadow: 0 8px 14px rgba(74, 66, 49, 0.16);
  transition: opacity 250ms ease, transform 250ms ease;
  z-index: 4;
}

.seal::before {
  content: "S";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
  color: rgba(128, 113, 81, 0.82);
}

.floral {
  position: absolute;
  top: 56%;
  width: 154px;
  height: 244px;
  transform: translateY(-50%);
  pointer-events: none;
  display: block;
  z-index: 2;
}

.floral-left {
  left: 50%;
  transform: translate(-224px, -50%);
}

.floral-right {
  left: 50%;
  transform: translate(70px, -50%) scaleX(-1);
}

.floral-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.98;
  mix-blend-mode: darken;
  filter: brightness(1.01) saturate(1.02);
}

.opened-suite {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(100%, 360px);
  height: 360px;
  transform: translate(-50%, -44%) scale(0.86);
  opacity: 0;
  pointer-events: none;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0, 1), opacity 600ms ease;
  z-index: 3;
}

.suite-envelope-backdrop {
  position: absolute;
  left: 76px;
  top: 8px;
  width: 184px;
  height: 136px;
  border: 8px solid #6f7f44;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  transform: none;
  opacity: 0.88;
}

.suite-card,
.suite-badge,
.suite-ribbon,
.suite-floral-center {
  position: absolute;
}

.suite-card {
  border-radius: 4px;
  box-shadow: 0 16px 26px rgba(75, 62, 42, 0.14);
}

.suite-save-date {
  left: 48px;
  top: 118px;
  width: 124px;
  height: 172px;
  background: linear-gradient(180deg, #65703d 0%, #4f592e 100%);
  color: #fbf3e6;
  border: 2px solid rgba(214, 194, 147, 0.68);
  transform: rotate(-4deg) translateY(28px);
  opacity: 0;
  transition: transform 820ms cubic-bezier(0.2, 0.7, 0, 1), opacity 500ms ease;
  z-index: 2;
}

.suite-save-date::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(230, 218, 182, 0.4);
}

.suite-mini-label,
.suite-mini-date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.suite-mini-label {
  top: 24px;
  font-family: "Great Vibes", cursive;
  font-size: 1.52rem;
  line-height: 0.88;
}

.suite-mini-date {
  bottom: 18px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.suite-main-card {
  right: 30px;
  top: 82px;
  width: 160px;
  min-height: 228px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 245, 1));
  color: #5f543f;
  padding: 18px 16px 46px;
  transform: rotate(3deg) translateY(32px);
  opacity: 0;
  transition: transform 860ms cubic-bezier(0.2, 0.7, 0, 1), opacity 520ms ease;
  z-index: 3;
}

.suite-main-label,
.suite-main-names,
.suite-main-copy {
  display: block;
  text-align: center;
}

.suite-main-label {
  font-family: "Great Vibes", cursive;
  font-size: 1.3rem;
}

.suite-main-names {
  font-family: "Great Vibes", cursive;
  font-size: 1.82rem;
  line-height: 0.9;
  color: #6f624b;
  margin-bottom: 6px;
}

.suite-main-copy {
  font-size: 0.7rem;
  line-height: 1.24;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  margin-top: 4px;
  color: #5e523f;
}

.suite-venue-name,
.suite-venue-place {
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #6a5c47;
}

.suite-venue-name {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.16;
  font-weight: 600;
}

.suite-venue-place {
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.14;
}

.suite-main-seal {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b6a56d, #8f7a44 72%, #6e5a2b 100%);
  box-shadow: 0 4px 8px rgba(78, 63, 36, 0.18);
}

.suite-ribbon {
  right: 20px;
  top: 84px;
  width: 64px;
  height: 142px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 760ms cubic-bezier(0.2, 0.7, 0, 1), opacity 460ms ease;
  z-index: 4;
}

.suite-ribbon-image {
  display: block;
  width: 100%;
  height: auto;
}

.suite-floral-center {
  left: 140px;
  top: 164px;
  width: 60px;
  height: 116px;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  transition: transform 820ms cubic-bezier(0.2, 0.7, 0, 1), opacity 520ms ease;
  z-index: 5;
}

.suite-floral-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.98;
}

.suite-badge {
  left: 58px;
  top: 278px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ebefbb, #dce19f 70%, #cad47e 100%);
  box-shadow: 0 14px 22px rgba(79, 69, 41, 0.12);
  opacity: 0;
  transform: translateY(28px) scale(0.85);
  transition: transform 880ms cubic-bezier(0.2, 0.7, 0, 1), opacity 560ms ease;
  pointer-events: auto;
  z-index: 6;
}

.suite-badge::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 250, 233, 0.78);
  border-radius: 50%;
}

.badge-script,
.badge-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: rgba(99, 88, 53, 0.9);
}

.badge-script {
  top: 34px;
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
}

.badge-copy {
  top: 68px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.suite-badge:focus-visible {
  outline: 2px solid rgba(104, 113, 59, 0.55);
  outline-offset: 4px;
}

.hero-countdown {
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
  margin-top: -14px;
}

.countdown-intro,
.countdown-note,
.countdown-date {
  margin: 0;
  color: var(--muted);
}

.countdown-intro {
  font-size: 1rem;
}

.countdown-intro span {
  font-family: "Great Vibes", cursive;
  font-size: 1.5em;
  color: var(--olive-deep);
}

.countdown-time {
  margin: 12px 0 6px;
  font-size: clamp(1.8rem, 5.8vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: #524831;
}

.countdown-labels {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-note {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-couple {
  margin: 8px 0 2px;
  font-size: 1.6rem;
  color: var(--olive-deep);
}

.countdown-date {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}


.invitation-content {
  display: none;
  gap: 18px;
  margin-top: 120px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

body.show-details .invitation-content {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: detailsReveal 500ms ease;
}

@keyframes detailsReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.open .envelope-flap {
  transform: rotateX(180deg);
  opacity: 0.18;
}

body.open .letter {
  transform: translateX(-50%) translateY(-190px);
  opacity: 1;
  z-index: 5;
}

body.open .seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.86);
}

body.open .envelope {
  opacity: 0.12;
  transform: translateY(24px) scale(0.92);
}

body.open .floral {
  z-index: 1;
}

body.open .opened-suite {
  opacity: 1;
  transform: translate(-50%, -44%) scale(1);
}

body.open .hero-countdown {
  opacity: 1;
  transform: translateY(0);
}

body.open .suite-save-date,
body.open .suite-main-card,
body.open .suite-ribbon,
body.open .suite-floral-center,
body.open .suite-badge {
  opacity: 1;
}

body.open .suite-save-date,
body.open .suite-main-card,
body.open .suite-ribbon,
body.open .suite-floral-center {
  transform: translateY(0) rotate(0deg);
}

body.open .suite-save-date {
  transform: rotate(-4deg);
}

body.open .suite-main-card {
  transform: rotate(3deg);
}

body.open .suite-badge {
  transform: translateY(0) scale(1);
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 16px;
  }

  .card {
    padding: 22px 18px;
  }

  .card::before {
    inset: 12px;
  }

  .card-intro,
  .card-intro .kicker,
  .card-intro h2,
  .card-intro .script-line,
  .card-intro .supporting-copy {
    text-align: center;
  }

  .card-intro .supporting-copy {
    max-width: 28ch;
    margin-inline: auto;
  }

  .suite-save-date {
    left: 28px;
    top: 124px;
    width: 128px;
    height: 176px;
  }

  .suite-mini-label {
    font-size: 1.42rem;
  }

  .suite-mini-date {
    bottom: 20px;
    font-size: 0.72rem;
  }

  .suite-main-card {
    right: 10px;
    top: 88px;
    width: 152px;
    min-height: 222px;
    padding: 16px 14px 44px;
  }

  .suite-main-names {
    font-size: 1.68rem;
  }

  .suite-main-copy {
    font-size: 0.66rem;
  }

  .suite-floral-center {
    left: 132px;
    top: 184px;
    width: 40px;
    height: 76px;
  }

  .suite-ribbon {
    right: 10px;
    top: 92px;
    width: 56px;
    height: 124px;
  }

  .suite-badge {
    left: 62px;
    top: 270px;
    width: 102px;
    height: 102px;
  }

  .badge-script {
    top: 30px;
    font-size: 1.4rem;
  }

  .badge-copy {
    top: 62px;
    font-size: 0.72rem;
  }
}

body.open .bottom-label {
  opacity: 0;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 252, 246, 0.92)),
    var(--paper);
  box-shadow: 0 22px 46px var(--paper-shadow);
  padding: 24px 22px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(122, 109, 79, 0.09);
  border-radius: 20px;
  pointer-events: none;
}

.card-intro h2,
.attire-card h2,
.entourage-card h2,
.venue-card h2,
.rsvp-card h2 {
  font-size: clamp(2rem, 7vw, 2.7rem);
  line-height: 0.98;
  margin-top: 8px;
}

.script-line {
  font-family: "Great Vibes", cursive;
  font-size: 3.2rem;
  color: var(--olive-deep);
  margin: 14px 0 4px;
}

.supporting-copy,
.detail-block p,
.mini-card p,
.venue-copy {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.28;
}

.details-grid {
  display: grid;
  gap: 14px;
}

.detail-block {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(124, 113, 95, 0.12);
}

.detail-block.accent {
  background:
    linear-gradient(180deg, rgba(107, 119, 61, 0.98), rgba(82, 90, 45, 1)),
    var(--olive);
  color: #f7f1e8;
}

.detail-block.accent .section-label {
  color: rgba(255, 247, 232, 0.78);
}

.detail-block h3,
.mini-card h3 {
  font-size: 2rem;
  margin: 8px 0;
}

.palette-row {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
}

.swatch {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 14px rgba(78, 67, 50, 0.12);
}

.swatch-emerald {
  background: #2f6d4c;
}

.swatch-sage {
  background: #8ca873;
}

.swatch-beige {
  background: #dac19c;
}

.swatch-neutral {
  background: #ebe0d3;
}

.attire-gallery {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.attire-photo-frame {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(124, 113, 95, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 32px rgba(78, 67, 50, 0.1);
}

.attire-photo {
  display: block;
  width: 100%;
  height: auto;
}

.gift-photo-frame {
  margin: 20px 0 0;
  width: min(100%, 620px);
  margin-inline: auto;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(124, 113, 95, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 32px rgba(78, 67, 50, 0.1);
}

.gift-photo {
  display: block;
  width: 100%;
  height: auto;
}

.gift-copy {
  margin: 14px 0 0;
  font-size: 1.14rem;
  line-height: 1.45;
  color: #665b49;
  max-width: 52ch;
}

.entourage-card {
  text-align: center;
}

.entourage-columns,
.entourage-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.entourage-block,
.entourage-panel,
.entourage-role {
  border: 1px solid rgba(124, 113, 95, 0.12);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 22px;
}

.entourage-block,
.entourage-panel {
  padding: 18px 16px;
}

.entourage-panel + .entourage-panel {
  margin-top: 16px;
}

.entourage-block h3,
.entourage-panel h3,
.entourage-role h4 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entourage-block h3,
.entourage-panel h3 {
  font-size: 1.45rem;
}

.entourage-role h4 {
  font-size: 1.15rem;
}

.entourage-subtitle {
  margin: 6px 0 0;
  font-style: italic;
  color: var(--muted);
}

.entourage-block p,
.entourage-panel p,
.entourage-role p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.entourage-list {
  margin-top: 16px;
  text-align: center;
}

.entourage-list div,
.entourage-role {
  display: grid;
  gap: 4px;
}

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

.entourage-role {
  padding: 16px 14px;
}

.entourage-followup {
  color: var(--muted);
  font-style: italic;
}

.venue-card {
  text-align: center;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 18px;
  color: #fffaf0;
  text-decoration: none;
  background: linear-gradient(180deg, #6a7440 0%, #4f592e 100%);
  border: 1px solid rgba(79, 88, 43, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(79, 88, 43, 0.16);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.map-link:hover,
.map-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(79, 88, 43, 0.22);
  filter: brightness(1.04);
}

.location-photo-frame {
  margin: 22px auto 0;
  width: min(100%, 620px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(124, 113, 95, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 32px rgba(78, 67, 50, 0.1);
}

.location-photo {
  display: block;
  width: 100%;
  height: auto;
}

.timeline-photo-frame {
  margin: 20px auto 0;
  width: min(100%, 480px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(124, 113, 95, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 32px rgba(78, 67, 50, 0.1);
}

.timeline-photo {
  display: block;
  width: 100%;
  height: auto;
}

.venue-pillars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.venue-pillars span {
  width: 54px;
  height: 92px;
  border-radius: 27px 27px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(210, 202, 188, 0.92)),
    #f1eadc;
  box-shadow: inset 0 -10px 16px rgba(112, 102, 79, 0.12);
}

.rsvp-card {
  margin-bottom: 20px;
}

.compact-copy {
  margin-top: 12px;
}

.rsvp-placeholder {
  margin-top: 22px;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.rsvp-qr-box {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  border: 1px dashed rgba(94, 82, 63, 0.34);
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.04) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.04) 75%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  background-color: rgba(255, 255, 255, 0.6);
}

.rsvp-followup {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.top-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--olive-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 88, 43, 0.34);
}

@media (min-width: 700px) {
  .page-shell {
    width: min(100%, 980px);
    padding-inline: 28px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 190px;
  }

  .invitation-content {
    margin-top: 170px;
  }

  .details-grid,
  .entourage-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attire-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .invitation-content,
  .envelope-flap,
  .letter {
    transition: none;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 16px;
  }

  .card {
    padding: 22px 18px;
  }

  .card::before {
    inset: 12px;
  }

  .card-intro,
  .card-intro .kicker,
  .card-intro h2,
  .card-intro .script-line,
  .card-intro .supporting-copy {
    text-align: center;
  }

  .card-intro .supporting-copy {
    max-width: 28ch;
    margin-inline: auto;
  }
}
