:root {
  --paper: #f8f2e9;
  --paper-light: #fffaf3;
  --blush: #dba9aa;
  --blush-deep: #b97f82;
  --rose-mist: #f0d7d5;
  --ink: #5d4740;
  --ink-soft: #826d64;
  --gold: #b28a59;
  --sage: #a8aa8c;
  --line: rgba(150, 112, 94, 0.22);
  --hero-image: url('/solomiika-hero.png');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 55%, rgba(156,122,100,.08) 0 1px, transparent 1.5px),
    repeating-linear-gradient(98deg, transparent 0 4px, rgba(137,104,85,.025) 4px 5px);
  background-size: 13px 17px, 19px 23px, 100% 8px;
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }
.gate-locked { overflow: hidden; }

.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 28px 20px;
  background-color: #e9ddd0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 1px, transparent 1.6px),
    repeating-linear-gradient(92deg, transparent 0 5px, rgba(108,78,62,.025) 5px 6px);
  transition: opacity .65s ease 1s, visibility .65s ease 1s;
}

.envelope-gate::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(178,138,89,.33); pointer-events: none; }
.envelope-gate.opening { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-kicker { position: absolute; z-index: 2; top: 84px; left: 20px; right: 20px; margin: 0; text-align: center; color: var(--ink-soft); font: 700 10px/1.4 Arial, sans-serif; letter-spacing: .25em; text-transform: uppercase; }
.gate-florals { position: absolute; display: flex; align-items: center; gap: 18px; color: rgba(185,127,130,.48); font-size: 25px; letter-spacing: .2em; }
.gate-florals::before, .gate-florals::after { content: ""; width: 90px; height: 1px; background: rgba(178,138,89,.32); }
.gate-florals.top { top: 6vh; }
.gate-florals.bottom { bottom: 4.5vh; transform: rotate(180deg); }

.envelope-scene { position: relative; width: min(640px, 88vw); height: min(405px, 55vw); min-height: 310px; perspective: 1100px; filter: drop-shadow(0 28px 30px rgba(82,60,49,.2)); }
.envelope { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; transform-style: preserve-3d; }
.envelope-back { position: absolute; inset: 0; border: 1px solid rgba(164,126,101,.24); border-radius: 4px; background: #f8f0e5; }
.envelope-letter-shadow { position: absolute; inset: 8% 5% 0; box-shadow: 0 -14px 25px rgba(84,59,48,.1); }
.envelope-front { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.envelope-front.left { clip-path: polygon(0 0, 52% 54%, 0 100%); background: linear-gradient(135deg, #f7eee3, #ead9ca); }
.envelope-front.right { clip-path: polygon(100% 0, 48% 54%, 100% 100%); background: linear-gradient(225deg, #f7eee3, #e8d7c8); }
.envelope-front.bottom { clip-path: polygon(0 100%, 50% 48%, 100% 100%); background: linear-gradient(0deg, #f9f1e7, #ead9cb); }

.envelope-flap { position: absolute; z-index: 8; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 64%); background: linear-gradient(180deg, #fbf3e9 0%, #e9d8ca 100%); transform-origin: top center; backface-visibility: hidden; transition: transform .8s cubic-bezier(.64,.02,.28,1); }
.opening .envelope-flap { transform: rotateX(180deg); }

.envelope-card { position: absolute; z-index: 3; left: 7%; right: 7%; bottom: 6%; height: 79%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(178,138,89,.28); background: radial-gradient(circle at 13% 14%, rgba(219,169,170,.18) 0 2px, transparent 3px), repeating-linear-gradient(95deg, transparent 0 5px, rgba(90,65,50,.025) 5px 6px), #fffaf2; transition: transform 1s cubic-bezier(.2,.75,.25,1) .38s; }
.opening .envelope-card { transform: translateY(-64%); }
.envelope-card .tiny-cross { color: var(--gold); font-size: 19px; margin-bottom: 10px; }
.envelope-card small { color: var(--ink-soft); font: 700 9px/1 Arial, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.envelope-card strong { margin: 8px 0 11px; color: var(--blush-deep); font: 52px/.9 "Monotype Corsiva", "Segoe Script", cursive; }
.envelope-card em { color: var(--gold); font-size: 12px; letter-spacing: .28em; font-style: normal; }

.ribbon { position: absolute; z-index: 9; background: linear-gradient(90deg, #c48c8e, #e7b9b7 48%, #bd7d81); box-shadow: inset 0 1px rgba(255,255,255,.45), 0 3px 8px rgba(93,56,54,.12); transition: opacity .45s ease, transform .65s ease; }
.ribbon.horizontal { left: -1%; right: -1%; top: 49%; height: 34px; }
.ribbon.vertical { top: -4%; bottom: -4%; left: calc(50% - 17px); width: 34px; background: linear-gradient(90deg, #c18084, #e7b8b5 50%, #b9797e); }
.opening .ribbon.horizontal { opacity: 0; transform: scaleX(1.15); }
.opening .ribbon.vertical { opacity: 0; transform: scaleY(1.15); }

.wax-seal { position: absolute; z-index: 12; left: 50%; top: 54%; display: grid; place-items: center; width: 78px; height: 78px; padding: 0; border: 2px solid rgba(255,230,222,.65); border-radius: 50% 47% 53% 48%; color: #f6ddd5; background: radial-gradient(circle at 35% 28%, #d8a09d, #a96769 72%); box-shadow: 0 8px 18px rgba(92,55,54,.3), inset 0 0 0 7px rgba(118,64,66,.12); transform: translate(-50%, -50%); cursor: pointer; transition: opacity .35s, transform .55s; }
.wax-seal span { font-size: 27px; text-shadow: 0 1px rgba(90,49,50,.35); }
.wax-seal:hover { transform: translate(-50%, -50%) scale(1.06) rotate(-3deg); }
.opening .wax-seal { opacity: 0; transform: translate(-50%, -50%) scale(.65) rotate(20deg); }

.open-invitation { display: inline-flex; align-items: center; gap: 15px; margin-top: 28px; padding: 12px 0 7px; border: 0; border-bottom: 1px solid var(--blush-deep); color: var(--ink); background: transparent; font: 700 10px/1 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.open-invitation i { color: var(--blush-deep); font-size: 15px; font-style: normal; }
.opening .open-invitation { opacity: 0; }

.gate-generated-ornament { position: absolute; z-index: 1; top: 10px; left: 50%; width: min(300px, 58vw); height: 62px; transform: translateX(-50%); object-fit: contain; pointer-events: none; }
.generated-envelope-scene { position: relative; width: min(690px, 92vw); aspect-ratio: 1.34; margin-top: 72px; filter: drop-shadow(0 28px 32px rgba(82,60,49,.22)); }
.generated-envelope { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .55s ease, transform .85s cubic-bezier(.2,.75,.25,1); }
.generated-envelope.closed-image { z-index: 4; opacity: 1; }
.generated-envelope.open-image { z-index: 2; opacity: 0; transform: scale(.96); }
.opening .generated-envelope.closed-image { opacity: 0; transform: scale(1.025); }
.opening .generated-envelope.open-image { opacity: 1; transform: scale(1); }
.generated-invitation-card { position: absolute; z-index: 3; left: 50%; top: 42%; width: 58%; min-height: 42%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(178,138,89,.28); color: var(--ink); background: repeating-linear-gradient(95deg, transparent 0 5px, rgba(90,65,50,.025) 5px 6px), #fffaf2; box-shadow: 0 10px 26px rgba(84,59,48,.12); opacity: 0; transform: translate(-50%, 12%); transition: opacity .35s ease .35s, transform .95s cubic-bezier(.2,.75,.25,1) .28s; }
.opening .generated-invitation-card { opacity: 1; transform: translate(-50%, -62%); }
.generated-invitation-card .tiny-cross { width: 22px; height: 30px; margin-bottom: 8px; object-fit: contain; }
.generated-invitation-card small { color: var(--ink-soft); font: 700 8px/1 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.generated-invitation-card strong { margin: 8px 0 10px; color: var(--blush-deep); font: 48px/.9 "Monotype Corsiva", "Segoe Script", cursive; }
.generated-invitation-card em { color: var(--gold); font-size: 10px; letter-spacing: .26em; font-style: normal; }
.envelope-hitbox { position: absolute; z-index: 7; inset: 10% 7%; border: 0; background: transparent; cursor: pointer; }

.music-button {
  position: fixed;
  z-index: 20;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(178,138,89,.32);
  border-radius: 999px;
  padding: 7px 13px 7px 7px;
  color: var(--ink);
  background: rgba(255,250,243,.82);
  box-shadow: 0 8px 28px rgba(95,71,60,.11);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.music-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--blush-deep);
  font: 19px/1 Georgia, serif;
}

.music-label {
  font: 600 10px/1 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.music-button.is-playing .music-icon { animation: musicPulse 1.8s ease-in-out infinite; }

@keyframes musicPulse { 50% { transform: scale(.9); box-shadow: 0 0 0 8px rgba(219,169,170,.18); } }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(430px, .82fr) minmax(540px, 1.18fr);
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 6vw;
  position: relative;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-copy::before { top: 8%; }
.hero-copy::after { bottom: 8%; }

.hero-cross { width: 46px; height: 62px; margin-bottom: 14px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(94,70,55,.09)); }

.eyebrow {
  margin: 0 0 19px;
  color: var(--blush-deep);
  font: 700 11px/1.4 Arial, sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 15px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: .97;
  font-weight: 400;
}

h1 span {
  display: block;
  margin-top: 12px;
  color: var(--blush-deep);
  font-family: "Monotype Corsiva", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(68px, 7vw, 112px);
  font-weight: 400;
  line-height: .86;
}

.hero-date {
  margin: 26px 0 8px;
  font-size: 20px;
  letter-spacing: .34em;
  color: var(--gold);
}

.hero-place {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font: 600 10px/1.4 Arial, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero-divider {
  width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blush);
}

.hero-divider::before,
.hero-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.hero-intro {
  margin: 22px 0 25px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.text-link {
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--blush);
  font: 600 10px/1 Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.text-link:hover span { transform: translateY(3px); }

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 64px);
  border-radius: 300px 300px 24px 24px;
  background: #fbf5eb var(--hero-image) center/cover no-repeat;
  box-shadow: 0 24px 70px rgba(100,72,56,.15), inset 0 0 0 1px rgba(255,255,255,.6);
}

.hero-angel { position: absolute; z-index: 2; left: 50%; bottom: 1%; width: min(72%, 560px); max-height: 86%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(92,67,53,.11)); }

.section { padding: 118px 24px; }

.letter {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.letter h2,
.section-heading h2,
.countdown h2,
.location h2,
.dress h2 {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.08;
}

.letter-text {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.signature {
  margin: 0;
  color: var(--gold);
  font: 16px/1.5 "Monotype Corsiva", "Segoe Script", cursive;
}

.parents {
  margin: 3px 0 24px;
  color: var(--blush-deep);
  font: 42px/1 "Monotype Corsiva", "Segoe Script", cursive;
}

.mini-flower { color: var(--blush); font-size: 24px; }

.section-bunny { display: block; width: min(250px, 58vw); height: auto; margin: 28px auto -26px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(92,67,53,.08)); }
.generated-divider { width: min(900px, 94vw); margin: 0 auto; padding: 12px 0 2px; text-align: center; }
.generated-divider img { display: block; width: 100%; height: auto; object-fit: contain; }

.ornament-divider { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); }
.ornament-divider::before, .ornament-divider::after { content: ""; width: min(16vw, 170px); height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.ornament-divider::after { transform: rotate(180deg); }
.ornament-divider i { color: var(--blush); font-style: normal; }
.ornament-divider b { color: var(--blush-deep); font-weight: 400; }

.countdown {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--paper-light);
  background: #b98a88;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(255,255,255,.09) 0 1px, transparent 1.5px),
    repeating-linear-gradient(8deg, transparent 0 6px, rgba(255,255,255,.025) 6px 7px);
}

.countdown::before,
.countdown::after { content: none; }
.countdown > .eyebrow,
.countdown > h2,
.countdown > .section-cross { position: relative; z-index: 2; }
.countdown .eyebrow { color: #fbe8e5; }
.countdown h2 { color: white; }
.section-cross { display: block; width: 34px; height: 46px; margin: 0 auto 20px; object-fit: contain; filter: brightness(1.05) drop-shadow(0 8px 12px rgba(97,56,57,.1)); }
.countdown-flowers { position: absolute; z-index: 1; top: 80%; width: min(24vw, 370px); height: auto; object-fit: contain; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(97,56,57,.12)); }
.countdown-flowers-left { left: -3%; transform: translateY(-50%); }
.countdown-flowers-right { right: -3%; transform: translateY(-50%) scaleX(-1); }

.countdown-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 180px));
  justify-content: center;
  margin-top: 48px;
}

.time-unit { position: relative; display: grid; gap: 8px; }
.time-unit strong { font-size: clamp(42px, 6vw, 76px); font-weight: 400; line-height: 1; }
.time-unit span { color: #f5dfdc; font: 600 10px/1 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.time-unit i { position: absolute; right: 0; top: 18px; font-size: 28px; font-style: normal; color: #ead0cc; }

.schedule { max-width: 1100px; margin: 0 auto; }
.section-heading { max-width: 720px; margin: 0 auto 70px; text-align: center; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }

.timeline { max-width: 820px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 105px 58px 1fr; min-height: 138px; }
.timeline-time { padding-top: 6px; color: var(--gold); font-size: 19px; letter-spacing: .08em; }
.timeline-dot { position: relative; display: flex; justify-content: center; }
.timeline-dot::after { content: ""; position: absolute; top: 38px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-dot span { z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--blush); border-radius: 50%; color: var(--blush-deep); background: var(--paper); font: 11px Arial, sans-serif; }
.timeline-copy { padding: 0 0 42px 24px; }
.timeline-copy h3 { margin-bottom: 8px; font-size: 25px; font-weight: 400; }
.timeline-copy p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.location { padding-top: 30px; }
.location-card {
  position: relative;
  max-width: 930px;
  margin: 0 auto;
  padding: 92px 30px 72px;
  text-align: center;
  border: 1px solid rgba(178,138,89,.35);
  border-radius: 340px 340px 22px 22px;
  background: rgba(255,250,243,.72);
  box-shadow: 0 24px 70px rgba(111,83,67,.09);
}
.location-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(219,169,170,.25); border-radius: inherit; pointer-events: none; }
.location-pin { display: grid; place-items: center; width: 54px; height: 65px; margin: 0 auto 28px; border: 1px solid var(--blush); border-radius: 30px 30px 30px 4px; transform: rotate(-45deg); }
.location-pin span { transform: rotate(45deg); color: var(--blush-deep); font-size: 20px; }
.location h2 { margin-bottom: 5px; }
.location-subtitle { color: var(--blush-deep); font: 34px/1.2 "Monotype Corsiva", "Segoe Script", cursive; }
.address { margin: 30px 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.primary-button { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 999px; color: white; background: var(--blush-deep); text-decoration: none; font: 600 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(143,91,94,.2); }
.parking-note { max-width: 500px; margin: 24px auto 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.map-frame { position: relative; z-index: 1; width: min(760px, 100%); margin: 34px auto 28px; overflow: hidden; border: 1px solid rgba(178,138,89,.35); border-radius: 24px; background: #f1eadf; box-shadow: 0 18px 42px rgba(88,67,57,.12); }
.map-frame img { display: block; width: 100%; height: 360px; object-fit: cover; }
.map-frame figcaption { padding: 10px 14px 12px; color: var(--ink-soft); background: rgba(255,250,243,.94); font: 10px/1.45 Arial, sans-serif; letter-spacing: .04em; }

.dress { max-width: 730px; margin: 0 auto; text-align: center; }
.dress > p:not(.eyebrow):not(.dress-note) { color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.palette { display: flex; justify-content: center; gap: 18px; margin: 36px 0 26px; }
.swatch { width: 62px; height: 62px; border: 6px solid rgba(255,255,255,.7); border-radius: 50%; box-shadow: 0 8px 22px rgba(91,68,57,.1); }
.swatch.ivory { background: #f5eee2; }
.swatch.beige { background: #d9c2aa; }
.swatch.blush { background: #dca7a8; }
.swatch.sage { background: #a9aa8d; }
.dress-note { color: var(--gold); font-style: italic; font-size: 14px; }

.rsvp { padding-top: 30px; }
.rsvp-shell { position: relative; max-width: 860px; margin: 0 auto; padding: 84px 90px 74px; text-align: center; border: 1px solid rgba(178,138,89,.32); background: rgba(255,250,243,.76); box-shadow: 0 22px 65px rgba(104,74,59,.09); }
.rsvp-shell::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(219,169,170,.22); pointer-events: none; }
.rsvp-decoration { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; color: var(--blush); }
.rsvp-decoration b { color: var(--gold); font-size: 23px; }
.rsvp h2 { margin: 0 0 20px; color: var(--ink); font-size: clamp(44px, 6vw, 76px); font-weight: 400; line-height: 1; }
.rsvp-lead { max-width: 570px; margin: 0 auto 42px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.rsvp-form { position: relative; z-index: 1; display: grid; text-align: left; }
.rsvp-hp { display: none; }
.field-label { margin: 0 0 9px; color: var(--ink); font: 700 10px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form input[type="text"], .rsvp-form select, .rsvp-form textarea { width: 100%; margin-bottom: 25px; border: 0; border-bottom: 1px solid rgba(150,112,94,.34); border-radius: 0; padding: 14px 4px; color: var(--ink); background: transparent; font: 16px/1.5 Georgia, serif; outline: none; }
.rsvp-form textarea { resize: vertical; min-height: 102px; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--blush-deep); box-shadow: 0 1px var(--blush-deep); }
.rsvp-form fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attendance-options label { position: relative; cursor: pointer; }
.attendance-options input { position: absolute; opacity: 0; }
.attendance-options span { display: grid; gap: 6px; min-height: 92px; align-content: center; padding: 18px; border: 1px solid rgba(150,112,94,.26); background: rgba(248,242,233,.46); transition: border-color .2s, background .2s, transform .2s; }
.attendance-options b { font-size: 17px; font-weight: 400; }
.attendance-options small { color: var(--ink-soft); font: 11px/1.4 Arial, sans-serif; }
.attendance-options input:checked + span { border-color: var(--blush-deep); background: rgba(240,215,213,.48); transform: translateY(-2px); }
.submit-rsvp { justify-self: center; border: 0; cursor: pointer; }
.form-note { margin: 16px auto 0; max-width: 420px; text-align: center; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.rsvp-success { position: relative; z-index: 1; max-width: 560px; margin: 40px auto 0; }
.success-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px; border: 1px solid var(--blush-deep); border-radius: 50%; color: var(--blush-deep); font-size: 24px; }
.rsvp-success p { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.rsvp-success .primary-button { border: 0; cursor: pointer; }
.edit-response { display: block; margin: 18px auto 0; border: 0; border-bottom: 1px solid var(--line); padding: 4px; color: var(--ink-soft); background: transparent; font: 12px Georgia, serif; cursor: pointer; }

.closing {
  min-height: 84vh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(rgba(248,242,233,.13), rgba(248,242,233,.15)), var(--hero-image) center 58%/cover no-repeat;
}
.closing-content { max-width: 680px; padding: 70px 60px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,250,243,.82); box-shadow: 0 24px 70px rgba(90,65,53,.14); backdrop-filter: blur(8px); }
.closing-symbol { color: var(--gold); font-size: 26px; }
.closing-content p { margin: 24px 0; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.closing-content h2 { margin: 0; color: var(--blush-deep); font: 64px/.95 "Monotype Corsiva", "Segoe Script", cursive; }
.closing-names { margin-top: 30px; color: var(--gold); font: 700 10px/1.4 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 0; }
  .hero-copy { min-height: auto; z-index: 2; order: 1; padding: 120px 24px 86px; background: transparent; }
  .hero-art { position: relative; inset: auto; order: 2; min-height: 78svh; border-radius: 260px 260px 0 0; background-position: center top; box-shadow: 0 -18px 50px rgba(100,72,56,.1); }
  .hero-angel { width: min(72%, 520px); }
  h1 span { font-size: clamp(72px, 17vw, 108px); }
  .hero-intro { font-size: 14px; }
}

@media (max-width: 620px) {
  .envelope-gate { justify-content: center; padding-inline: 14px; }
  .envelope-gate::before { inset: 9px; }
  .gate-florals::before, .gate-florals::after { width: 42px; }
  .gate-florals.top { top: 4vh; }
  .gate-florals.bottom { bottom: 3vh; }
  .gate-kicker { top: 70px; font-size: 8px; }
  .envelope-scene { width: 94vw; min-height: 270px; height: 72vw; }
  .gate-generated-ornament { top: 8px; width: 70vw; height: 54px; }
  .generated-envelope-scene { width: 96vw; margin-top: 64px; }
  .generated-invitation-card { width: 58%; min-height: 39%; }
  .generated-invitation-card strong { font-size: 35px; }
  .generated-invitation-card small { font-size: 6px; letter-spacing: .15em; }
  .generated-invitation-card em { font-size: 8px; letter-spacing: .17em; }
  .envelope-card strong { font-size: 41px; }
  .wax-seal { width: 66px; height: 66px; }
  .ribbon.horizontal { height: 28px; }
  .ribbon.vertical { left: calc(50% - 14px); width: 28px; }
  .open-invitation { margin-top: 18px; }
  .music-button { top: 14px; right: 14px; padding-right: 7px; }
  .music-label { display: none; }
  .section { padding: 82px 20px; }
  .letter h2, .section-heading h2, .countdown h2, .location h2, .dress h2 { font-size: 40px; }
  .letter-text { font-size: 16px; }
  .countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 34px; }
  .countdown { padding-bottom: 164px; }
  .countdown-flowers { top: auto; bottom: -54px; width: 58vw; max-width: 310px; opacity: .88; }
  .countdown-flowers-left { left: -18%; transform: none; }
  .countdown-flowers-right { right: -18%; transform: scaleX(-1); }
  .time-unit strong { font-size: 36px; }
  .time-unit span { font-size: 8px; letter-spacing: .08em; }
  .time-unit i { top: 5px; font-size: 22px; }
  .section-heading { margin-bottom: 45px; }
  .timeline-item { grid-template-columns: 66px 42px 1fr; min-height: 126px; }
  .timeline-time { font-size: 15px; }
  .timeline-copy { padding-left: 14px; }
  .timeline-copy h3 { font-size: 21px; }
  .timeline-copy p { font-size: 14px; }
  .location { padding-top: 8px; }
  .location-card { padding: 68px 21px 54px; border-radius: 150px 150px 18px 18px; }
  .location-subtitle { font-size: 28px; }
  .map-frame { margin-top: 28px; border-radius: 18px; }
  .map-frame img { height: 240px; }
  .swatch { width: 48px; height: 48px; border-width: 4px; }
  .palette { gap: 10px; }
  .rsvp { padding-top: 12px; }
  .rsvp-shell { padding: 66px 24px 56px; }
  .rsvp h2 { font-size: 43px; }
  .rsvp-lead { font-size: 15px; }
  .attendance-options { grid-template-columns: 1fr; }
  .closing { min-height: 78vh; padding: 28px 18px; }
  .closing-content { padding: 55px 24px; }
  .closing-content h2 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
