:root {
  --col: min(100vw, 480px);
  --burgundy: #4f5a2a;
  --burgundy-deep: #3c4520;
  --gold: #b38a3c;
  --gold-soft: #c9a65a;
  --ink: #4b4a34;
  --ink-soft: #88825f;
  --paper-a: #fbf8f1;
  --paper-b: #f4efe4;
  --olive: #5f6b2e;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --num: "Cormorant Garamond", Georgia, serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #d9d1bf radial-gradient(120% 90% at 50% 0%, #efe9dc 0%, #d9d1bf 70%) fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100svh; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
.script { font-family: var(--script); font-weight: 400; }

.page {
  position: relative;
  width: var(--col);
  margin: 0 auto;
  background: var(--paper-a);
  box-shadow: 0 0 80px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.page::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--noise); opacity: .09; mix-blend-mode: multiply;
}

/* ================= Envelope ================= */
#envelope {
  position: fixed; z-index: 100; top: 0; left: 50%;
  width: var(--col); height: 100svh; transform: translateX(-50%);
  overflow: hidden; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  perspective: 1400px;
  transition: opacity .9s ease .7s;
}
.env-inside { position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 45%, #fff3df 0%, #f3ecdc 38%, #dccfb2 100%); }
.flapw {
  position: absolute; inset: 0;
  filter: drop-shadow(0 0 .6px #c9a65a) drop-shadow(0 0 .6px #c9a65a) drop-shadow(0 3px 8px rgba(0, 0, 0, .5));
  transition: transform 1.5s cubic-bezier(.65, 0, .25, 1), opacity 1.1s ease;
  will-change: transform;
}
.flap {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(130% 85% at 50% 42%, #fbf8f1 0%, #f3eee3 50%, #e4dccb 100%);
}
.flap::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .5; mix-blend-mode: overlay; }
.flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .25), transparent 40%, rgba(0, 0, 0, .18)); }
.left .flap { clip-path: polygon(0 0, 50% 50%, 0 100%); }
.right .flap { clip-path: polygon(100% 0, 50% 50%, 100% 100%); }
.bottom .flap { clip-path: polygon(0 100%, 50% 50%, 100% 100%); background: radial-gradient(120% 90% at 50% 20%, #f7f3ea 0%, #efe9dc 55%, #e2d9c6 100%); }
.top .flap { clip-path: polygon(0 0, 100% 0, 50% 50%); background: linear-gradient(180deg, #ece5d6 0%, #f4efe5 70%, #f8f4ec 100%); }
.top { transform-origin: 50% 0; }

.flap svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.flap svg.emb { filter: drop-shadow(1px 1.4px .6px rgba(120, 100, 60, .35)) drop-shadow(-.7px -.8px .4px rgba(255, 255, 255, .8)); }
.flap svg.gold { opacity: 0; filter: drop-shadow(0 0 4px rgba(255, 220, 140, .6)) drop-shadow(.8px 1.2px .8px rgba(110, 80, 20, .45)); transition: opacity 2.2s ease; }
#envelope.gilded .flap svg.gold { opacity: 1; }

.seal { position: relative; display: grid; place-items: center; border: 0; padding: 0; background: none; }
.seal .seal-art, .seal .seal-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal .mono { position: relative; z-index: 1; }
.env-seal {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%); z-index: 5;
  transition: transform .7s cubic-bezier(.5, -0.3, .6, 1), opacity .6s ease;
  animation: sealPulse 2.8s ease-in-out infinite;
}
.env-seal .mono {
  font-family: var(--script); font-size: calc(var(--col) * .105); color: #a8812f; letter-spacing: -.01em;
  text-shadow: -.6px -.8px 0 rgba(120, 80, 50, .55), .8px 1px 0 rgba(255, 255, 255, .85);
  padding-top: .06em;
}
@keyframes sealPulse { 50% { transform: translate(-50%, -50%) scale(1.035); } }
.tap-hint {
  position: absolute; left: 0; right: 0; top: calc(50% + var(--col) * .22); z-index: 5; text-align: center;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: #8a6d2c; opacity: .85;
  animation: hint 2.8s ease-in-out infinite;
}
@keyframes hint { 50% { opacity: .35; } }
.burst {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; z-index: 4;
  transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, #fff3d2 22%, rgba(255, 206, 128, .75) 45%, rgba(255, 170, 80, 0) 70%);
  transition: transform 1.9s cubic-bezier(.5, 0, .3, 1), opacity .8s ease;
}
#envelope.opening .env-seal { animation: none; transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
#envelope.opening .tap-hint { opacity: 0; animation: none; transition: opacity .3s; }
#envelope.opening .top { transform: rotateX(84deg); opacity: 0; transition-delay: .25s, .7s; }
#envelope.opening .burst { opacity: 1; transform: translate(-50%, -50%) scale(1.6); transition-delay: .45s; }
#envelope.parting .left { transform: translateX(-104%); }
#envelope.parting .right { transform: translateX(104%); }
#envelope.parting .bottom { transform: translateY(104%); }
#envelope.parting .burst { transform: translate(-50%, -50%) scale(9); transition-delay: 0s; }
#envelope.parting { opacity: 0; pointer-events: none; }

/* ================= Hero ================= */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #f6efe1; }
#scene, #scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: absolute; left: 0; right: 0; top: 25%; text-align: center; color: var(--burgundy); z-index: 2; padding: 0 16%; }
.hero-kicker { font-size: calc(var(--col) * .078); line-height: 1.1; color: #5b6532; }
.hero-date { font-family: var(--num); font-size: calc(var(--col) * .056); letter-spacing: .06em; color: #9a7630; margin-top: 2px; }
.names { font-family: var(--script); font-weight: 400; font-size: calc(var(--col) * .2); line-height: .95; margin-top: calc(var(--col) * .09); color: var(--burgundy); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.names span { display: block; }
.names .amp { font-size: .42em; line-height: 1.1; color: #6f7944; }
.scroll-cue { position: absolute; left: 0; right: 0; top: 66%; z-index: 2; text-align: center; color: #5b6532; text-decoration: none; font-size: calc(var(--col) * .062); }
.scroll-cue svg { width: 22px; margin: 2px auto 0; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.hero-text > *, .scroll-cue { opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s ease; }
body.opened .hero-text > *, body.opened .scroll-cue { opacity: 1; transform: none; }
body.opened .hero-date { transition-delay: .2s; }
body.opened .names { transition-delay: .5s; }
body.opened .scroll-cue { transition-delay: 1.3s; }

.hero-roses { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hr { position: absolute; max-width: none; filter: drop-shadow(0 6px 8px rgba(80, 70, 30, .22)); transform-origin: 50% 100%; }
.hr.l1 { width: 36%; left: -7%; bottom: calc(var(--col) * -.13); transform: rotate(-10deg); }
.hr.l2 { width: 37%; left: 11%; bottom: calc(var(--col) * -.21); transform: rotate(13deg); }
.hr.r1 { width: 42%; right: -9%; bottom: calc(var(--col) * -.17); transform: scaleX(-1) rotate(-8deg); }
.hr.r2 { width: 35%; right: 13%; bottom: calc(var(--col) * -.17); transform: scaleX(-1) rotate(14deg); }
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -6%; width: 11px; height: 14px; border-radius: 80% 10% 80% 10%;
  background: linear-gradient(135deg, #ffffff, #e8e1cf); opacity: .85;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(34px, 55svh, 0) rotate(200deg); }
  100% { transform: translate3d(-14px, 112svh, 0) rotate(420deg); }
}

/* ================= Paper sections ================= */
.paper { position: relative; padding: 72px 26px 80px; text-align: center; }
.paper.a { background: var(--paper-a); }
.paper.b { background: var(--paper-b); }
.torn { position: absolute; left: 0; top: -13px; width: 100%; height: 15px; z-index: 3; }
.paper h2.script, .closing h2.script { font-size: 38px; line-height: 1.15; color: var(--gold); }
.paper h2.big { font-size: 42px; color: var(--burgundy); margin: 14px 0 6px; }
.body { max-width: 330px; margin: 14px auto 0; font-size: 16.5px; letter-spacing: .01em; color: var(--ink); }
.eyebrow { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.note { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

.flourished { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.flourish { width: 46px; flex: none; color: var(--gold-soft); }
.flourish.flip { transform: scaleX(-1); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

.corner { position: absolute; width: 150px; height: 150px; pointer-events: none; z-index: 1; }
.corner img { position: absolute; width: 112px; max-width: none; left: -8px; top: -52px; transform: rotate(132deg); filter: drop-shadow(0 4px 6px rgba(80, 70, 30, .18)); }
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner.br { bottom: 0; right: 0; transform: scale(-1, -1); }
.corner.grow { width: 46%; height: 250px; transform: none; overflow: hidden; }
.corner.grow.br { transform: scaleX(-1); }
.corner.grow img { width: 88%; left: -10%; top: auto; bottom: -38%; transform: rotate(-9deg); }

/* invite */
.invite { padding-top: 96px; }
.family { margin-top: 14px; }
.family b { display: block; font-weight: 400; font-size: 20px; color: var(--burgundy-deep); letter-spacing: .02em; }
.family span { display: block; font-size: 13.5px; color: var(--ink-soft); }
.family + .amp-row { font-family: var(--script); font-size: 26px; color: var(--gold); line-height: 1; margin-top: 10px; }
.arch-photo {
  width: 74%; margin: 34px auto 30px; padding: 7px; aspect-ratio: 3 / 4.1;
  border: 1.2px solid var(--gold-soft); border-radius: 999px 999px 10px 10px; position: relative;
  box-shadow: 0 18px 36px -18px rgba(80, 70, 30, .55);
  background: #fdfbf6;
}
.arch-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 6px 6px; }
.fullname { font-size: 19px; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy-deep); }
.and { font-size: 30px; color: var(--gold); line-height: 1.2; }

/* countdown */
.count { display: flex; justify-content: center; align-items: flex-start; gap: 8px; margin: 26px 0 8px; color: var(--gold); }
.count b { display: block; font-family: var(--num); font-weight: 500; font-size: 46px; line-height: 1; min-width: 58px; font-variant-numeric: tabular-nums lining-nums; }
.count span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); letter-spacing: .04em; }
.count i { font-style: normal; font-family: var(--num); font-size: 40px; line-height: 1; }

/* timeline */
.timeline { position: relative; max-width: 330px; margin: 34px auto 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 36px; bottom: 36px; width: 1px; background: #a39d80; }
.row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; min-height: 84px; }
.row .time { font-family: var(--num); font-size: 26px; color: var(--ink); text-align: right; letter-spacing: .02em; }
.row .dot { width: 7px; height: 7px; background: #88825f; transform: rotate(45deg); justify-self: center; }
.row .what { font-size: 16px; line-height: 1.25; color: var(--ink); padding: 0 6px; }
.tl-rose { position: absolute; left: 50%; top: 42px; width: 44px; height: 44px; margin: -22px 0 0 -22px; transition: top .7s cubic-bezier(.5, 0, .2, 1); filter: drop-shadow(0 2px 3px rgba(50, 60, 20, .35)); }

/* location */
.underline { width: 80px; margin: 2px auto 0; color: var(--gold-soft); }
.venue { margin-top: 30px; }
.venue + .venue { margin-top: 56px; }
.venue .kind { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.venue h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--burgundy-deep); margin: 6px 0 8px; line-height: 1.25; }
.venue p { font-size: 15px; max-width: 320px; margin: 2px auto 0; }
.map {
  position: relative; margin: 22px auto 0; width: 92%; aspect-ratio: 1 / .82; padding: 5px;
  border: 1.2px solid var(--gold-soft); border-radius: 18px; background: #fdfbf6;
  box-shadow: 0 16px 30px -18px rgba(80, 70, 30, .5);
}
.map iframe { width: 100%; height: 100%; border: 0; border-radius: 13px; display: block; }
.map::before, .map::after {
  content: ""; position: absolute; left: 50%; width: 70px; height: 12px; margin-left: -35px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 12'%3E%3Cpath d='M2,6 C12,0 22,12 35,6 C48,0 58,12 68,6' fill='none' stroke='%23b08552' stroke-width='1.1'/%3E%3Ccircle cx='35' cy='6' r='2' fill='%23b08552'/%3E%3C/svg%3E");
}
.map::before { top: -12px; } .map::after { bottom: -12px; }
.btn {
  display: inline-block; margin-top: 26px; padding: 11px 24px; border-radius: 999px;
  border: 1px solid var(--burgundy); color: var(--burgundy); text-decoration: none;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; background: rgba(255, 255, 255, .25);
}
.petal { position: absolute; width: 22px; height: 14px; border-radius: 80% 10% 80% 10%; background: linear-gradient(135deg, #fbe9c9, #e3c08c); opacity: .8; }
.petal.p1 { top: 70px; left: 14%; transform: rotate(-20deg); }
.petal.p2 { top: 96px; right: 12%; transform: rotate(30deg); }
.petal.p3 { top: 190px; left: 7%; transform: rotate(40deg) scale(.8); }
.petal.p4 { top: 170px; right: 6%; transform: rotate(-35deg) scale(.9); }

/* gallery */
.gallery { padding-left: 0; padding-right: 0; }
.gal-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 30px 13% 18px; scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-item {
  flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: center; padding: 6px; border: 1.2px solid var(--gold-soft);
  border-radius: 999px 999px 10px 10px; background: #fdfbf6; cursor: zoom-in;
  box-shadow: 0 18px 30px -20px rgba(80, 70, 30, .6);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 6px 6px; }
.gal-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d9ceb6; transition: background .3s, transform .3s; }
.gal-dots i.on { background: var(--burgundy); transform: scale(1.3); }

/* dress */
.dress { padding-top: 110px; padding-bottom: 120px; }
.swatches { display: flex; justify-content: center; gap: 22px; margin-top: 26px; }
.swatches div { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.swatches i { display: block; width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 9px; border: 3px solid #fdfbf6; box-shadow: 0 0 0 1px var(--gold-soft), 0 8px 14px -8px rgba(60, 55, 20, .6); }
.figures { width: 86%; margin: 30px auto 0; }

/* rsvp */
.rsvp-seal { width: 132px; aspect-ratio: 1; margin: 34px auto 0; display: grid; transition: transform .3s; }
.rsvp-seal:hover, .rsvp-seal:focus-visible { transform: scale(1.05) rotate(-3deg); }
.rsvp-seal .mono { font-family: var(--num); font-weight: 600; font-size: 25px; letter-spacing: .08em; color: #fbf3dc; text-shadow: 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 210, .3); }
.chev { width: 22px; margin: 16px auto 0; color: var(--gold); animation: bobUp 1.8s ease-in-out infinite; }
@keyframes bobUp { 50% { transform: translateY(-5px); } }
.click { font-size: 24px; color: var(--gold); }
.phones { margin-top: 26px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.phones a { color: var(--burgundy); text-decoration: none; white-space: nowrap; margin: 0 5px; border-bottom: 1px solid rgba(79, 90, 42, .3); }

/* closing */
.closing { position: relative; text-align: center; background: var(--paper-b); padding-bottom: 150px; }
.closing-photo { position: relative; }
.closing-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 20%; }
.closing-photo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26%; background: linear-gradient(var(--paper-a), rgba(251, 248, 241, 0)); z-index: 1; }
.closing-photo::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 45%; background: linear-gradient(rgba(244, 239, 228, 0), var(--paper-b)); }
.closing-text { position: relative; z-index: 2; margin-top: -40px; padding: 0 26px; }
.toast { font-family: var(--num); font-style: italic; font-size: 19px; color: var(--ink); max-width: 300px; margin: 0 auto 18px; }
.closing h2.script { font-size: 44px; color: var(--burgundy); }
.closing-names { font-size: 22px; letter-spacing: .05em; color: var(--gold); margin-top: 8px; }
.hashtag { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 14px; }

/* scroll vine */
#vine { position: fixed; top: 0; left: calc((100vw - var(--col)) / 2); width: 40px; height: 100svh; z-index: 30; pointer-events: none; opacity: 0; transition: opacity 1.2s ease 1s; }
body.opened #vine { opacity: 1; }
#vine svg { position: absolute; inset: 0; overflow: visible; }
#vine .track { fill: none; stroke: rgba(176, 133, 82, .28); stroke-width: 1; stroke-dasharray: 1.5 6; stroke-linecap: round; }
#vine .grow { fill: none; stroke: #8c9a5e; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#vine .vleaf { opacity: 0; transition: opacity .5s ease; }
#vine .vleaf.on { opacity: 1; }
#vine .bud { position: absolute; left: 0; top: 0; width: 34px; max-width: none; will-change: transform; filter: drop-shadow(0 2px 3px rgba(50, 60, 20, .4)); }

/* music */
#music {
  position: fixed; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom)); right: calc((100vw - var(--col)) / 2 + 16px);
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #7a8546, #3c4520); box-shadow: 0 6px 16px rgba(50, 60, 20, .45);
}
#music[hidden] { display: none; }
#music svg { width: 22px; height: 22px; fill: #fbf3dc; grid-area: 1 / 1; }
#music .i-play, #music.paused .i-pause { display: none; }
#music.paused .i-play { display: block; }

/* modal */
.modal, .lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(40, 42, 24, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .35s; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal.show, .lightbox.show { opacity: 1; }
.sheet {
  position: relative; width: min(calc(var(--col) - 28px), 420px); max-height: 92svh; overflow: auto;
  background: var(--paper-a); border-radius: 6px; padding: 30px 24px 26px; text-align: left;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: translateY(24px); transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.modal.show .sheet { transform: none; }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; text-align: center; color: var(--ink); margin-bottom: 18px; }
.sheet h3.script { font-family: var(--script); font-size: 44px; color: var(--burgundy); margin-bottom: 6px; }
.sheet label, .sheet legend { display: block; font-size: 15px; color: var(--ink); margin: 14px 0 6px; padding: 0; }
.sheet small { color: var(--ink-soft); }
.sheet fieldset { border: 0; padding: 0; margin: 0; }
.sheet input[type=text], .sheet input[type=number], .sheet input[type=email], .sheet input[type=tel], .sheet textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 10px 12px; border-radius: 3px;
  border: 1px solid #d3c5a3; background: #efe9dc; outline: none;
}
.sheet input:focus-visible, .sheet textarea:focus-visible { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(79, 90, 42, .15); }
.sheet .radio { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 14.5px; cursor: pointer; }
.sheet .radio input { accent-color: var(--burgundy); width: 17px; height: 17px; margin: 0; }
.err { color: #a11a2c; font-size: 13.5px; min-height: 1.2em; margin-top: 8px; }
.send { display: block; width: 100%; margin-top: 10px; padding: 14px; border: 0; border-radius: 999px; background: linear-gradient(#66713a, #3c4520); color: #fbf3dc; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.sheet .hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.sheet .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send[disabled] { opacity: .6; cursor: progress; }
.wa { display: inline-block; margin-bottom: 16px; color: var(--burgundy); font-size: 14.5px; }
.thanks { text-align: center; }
.thanks p { margin-bottom: 18px; }
.close { position: absolute; top: 6px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--ink); z-index: 2; }

/* lightbox */
.lightbox { background: rgba(22, 24, 14, .92); }
.lightbox img { max-width: min(94vw, 720px); max-height: 86svh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox .close { color: #fbf3dc; top: 10px; right: 12px; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: none; color: #fbf3dc; font-size: 44px; line-height: 1; }
.lightbox .prev { left: 2px; } .lightbox .next { right: 2px; }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
#envelope:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals, .env-seal, .tap-hint, .scroll-cue svg, .chev { animation: none !important; }
  .petals { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ===== Ivory marble theme (Ifeoma & Kennedy) ===== */
.paper, .flap, .hero { background-image: url("../assets/marble.jpg"); background-size: 100% auto; background-repeat: repeat-y; }
.paper.b { background-position: 0 -40%; }
.paper::after { opacity: .04; }
.flap::before { opacity: .12; }
.env-inside { background: radial-gradient(90% 60% at 50% 45%, #fffdf7 0%, #f3ecdc 45%, #d9cdb0 100%); }
.top .flap { background-position: 0 0; }
.bottom .flap { background-position: 0 100%; }
.flapw { filter: drop-shadow(0 0 .6px #c9a65a) drop-shadow(0 0 .6px #c9a65a) drop-shadow(0 3px 8px rgba(80, 70, 30, .35)); }
.hero-text { color: var(--burgundy); }
.notice { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 18px; }
.notice::before, .notice::after { content: ""; display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: .7; }
.venue .same { font-style: italic; color: var(--ink-soft); margin-top: 8px; }
.closing.no-photo { padding-top: 80px; background-image: url("../assets/marble.jpg"); }
.hr { filter: drop-shadow(0 6px 8px rgba(80, 70, 30, .16)); }
#envelope .top .flap { background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(236, 228, 210, .35)), url("../assets/marble.jpg") 0 0 / 100% auto; }
#envelope .bottom .flap { background: linear-gradient(0deg, rgba(220, 210, 188, .35), rgba(255, 255, 255, .2)), url("../assets/marble.jpg") 0 100% / 100% auto; }
.env-seal .mono { color: #7a5a18; text-shadow: -.6px -.8px 0 rgba(90, 60, 10, .5), .8px 1px 0 rgba(255, 245, 210, .9); }
