/* Luana e Felipe — impresso no papel (direção da Luana: marfim, renda, champanhe) */
:root {
  --paper: #f3ede3;
  --ink: #2f241c;          /* espresso, como a tinta do save the date */
  --ink-soft: #5d4d3f;
  --muted: #7d6d5e;
  --gold: #8a6a45;
  --gold-lite: #c9a874;
  --dark: #241b15;         /* veludo café */
  --dark-ink: #efe6d6;
  --line: rgba(47, 36, 28, .22);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --max: 1040px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6;
  background: var(--paper) url("assets/img/paper.jpg") repeat; background-size: 640px 640px;
  accent-color: var(--ink);
}
body.is-sealed { overflow: hidden; overscroll-behavior: none; }
html:has(body.is-sealed) { overflow: hidden; overscroll-behavior: none; }
html:not(.lenis) { scroll-behavior: smooth; }                      /* native fallback when Lenis is off (reduced motion) */
.opening { touch-action: none; overscroll-behavior: contain; }     /* a swipe on the envelope never scrolls the page behind it */
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0 0 1rem; }

/* ---------- type ---------- */
.eyebrow { font-size: .8125rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .9rem; }
.title { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.15; letter-spacing: .01em; margin: 0 0 1.4rem; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.note { font-style: italic; opacity: .85; margin-top: 2rem; }
.rule { display: block; width: 56px; height: 1px; background: var(--ink); opacity: .55; margin: 1.2rem auto .9rem; }

/* ---------- layout ---------- */
.section { padding: 5rem 1.25rem; text-align: center; }
@media (min-width: 820px) { .section { padding: 7rem 2rem; } }
.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 620px; }
.section--tint { background: rgba(214, 199, 172, .16); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark .eyebrow { color: rgba(239,230,214,.7); }
.section--dark .title { color: var(--dark-ink); }

/* ---------- light: one light source for the whole page; the phone's tilt (or the mouse) moves it ---------- */
@property --lx { syntax: "<number>"; inherits: true; initial-value: -0.7; }
@property --ly { syntax: "<number>"; inherits: true; initial-value: -0.7; }
@property --fx { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
:root { --lx: -0.7; --ly: -0.7; --fx: 30%; }
body:not(.has-motion) { animation: light-idle 9s ease-in-out infinite alternate; }
@keyframes light-idle { from { --lx: -0.9; --ly: -0.5; --fx: 8%; } to { --lx: 0.6; --ly: -0.9; --fx: 92%; } }

/* blind emboss: the frame is pressed up out of the paper — same colour as the paper, visible only through
   a lit edge and a shadow edge that swing with the light (tilt/mouse). Only the L | F is inked. */
.emboss { position: relative; width: 112px; aspect-ratio: 1; margin: 0 auto 1rem; --ed: 1.4px; --paper-c: #f2ebe0; }
.emboss > i, .emboss > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.emboss > i { -webkit-mask: url("assets/img/emboss-face.png") center / contain no-repeat; mask: url("assets/img/emboss-face.png") center / contain no-repeat; }
.emboss__lo { background: rgba(84, 62, 44, .42); filter: blur(.7px); transform: translate(calc(var(--lx) * -1 * var(--ed)), calc(var(--ly) * -1 * var(--ed))); }
.emboss__hi { background: rgba(255, 253, 248, .95); filter: blur(.35px); transform: translate(calc(var(--lx) * var(--ed)), calc(var(--ly) * var(--ed))); }
.emboss__face { background: var(--paper-c); }
.emboss--small { width: 84px; --ed: 1.1px; }

/* champagne foil on the date: metallic gradient + a sharp sheen that sweeps with the light */
.foil-text {
  color: transparent; -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(100deg, rgba(255,236,196,0) 46%, rgba(255,236,196,.55) 50%, rgba(255,236,196,0) 54%),
    linear-gradient(180deg, #8f6c42 0%, #b8925c 45%, #7a5a36 62%, #a7824f 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: var(--fx) 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
}
.foil-text i { background: #8f6c42; opacity: .8; }

/* ---------- ABERTURA ---------- */
.opening { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: var(--dark); }
.opening::before {
  content: ""; position: absolute; inset: -40px;
  background: url("assets/img/lace-closed.jpg") center / cover no-repeat;
  filter: blur(30px) brightness(.55); transition: opacity .8s ease;
}
.opening__stage {
  position: relative; height: 100svh; width: min(100vw, calc(100svh * 9 / 16));
  transform-origin: var(--ox, 50%) var(--oy, 40%);
  box-shadow: 0 0 120px rgba(0,0,0,.5); will-change: transform;
}
/* the film and the scene share one 9:16 box, centred in the stage (the stage may be narrower on phones) */
.opening__video, .scene { position: absolute; top: 0; height: 100%; width: calc(100svh * 9 / 16); left: 50%; translate: -50% 0; }
.opening__video { object-fit: cover; }
.scene { container-type: inline-size; }
.scene__back, .scene__pocket { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__paper { position: absolute; inset: 0; z-index: 1; background: var(--paper) url("assets/img/paper.jpg") repeat; background-size: 640px 640px; clip-path: circle(0% at 50% 40%); }
.scene__pocket { z-index: 3; will-change: transform; }
.pcard {
  position: absolute; z-index: 2; left: 17.2%; top: 32.66%; width: 65.35%; aspect-ratio: 0.7125; container-type: inline-size;
  box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.18);
  transform: translateY(0); transition: transform 1.7s cubic-bezier(.3, .7, .2, 1), box-shadow .8s ease;
  will-change: transform;
  --lx: -0.7; --ly: -0.7; --fx: 30%;         /* fixed light while it moves = the light the film was baked with; no re-raster shimmer */
}
.pcard__paper { position: absolute; inset: 0; background: #e6e0d6 url("assets/img/card-paper.jpg") top / 100% auto no-repeat; transition: opacity 1.1s ease .2s; }
.scene.is-risen .pcard { transform: translateY(-21.37%); }
.pcard__print { position: absolute; inset: 0; }
.pcard__print .emboss { --paper-c: #e6e0d6; }
.pcard__print .print__names { mix-blend-mode: multiply; }

/* the printed block — shared by the card in the envelope and the site header, so the card can land on the header exactly.
   Sized in cqw of its container (.pcard / .invite__card). */
.print { display: flex; flex-direction: column; align-items: center; padding-top: 6cqw; color: var(--ink); text-align: center; }
.print .emboss { width: 38cqw; --ed: .35cqw; margin: 0; }
.print__names { width: 68cqw; height: auto; margin: -8cqw 0 -8.5cqw; }
.print__names img { width: 100%; height: auto; }
.print__date { margin: 0; font-size: 6cqw; letter-spacing: .2em; display: flex; align-items: center; gap: 3cqw; font-variant-numeric: lining-nums; }
.print__date i { width: max(1px, .3cqw); height: 1.15em; }
.print__place { margin: 2cqw 0 0; font-size: 2.7cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

.opening__stage { touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.opening__stage::after { content: none; }
.opening__ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: max(3.2svh, calc(env(safe-area-inset-bottom) + 10px)); text-align: center; transition: opacity .5s ease; }
.opening__for { position: absolute; z-index: 2; left: 0; right: 0; top: max(15svh, calc(env(safe-area-inset-top) + 72px)); margin: 0; padding: 0 1.5rem; text-align: center; font-style: italic; font-size: 1.35rem; color: var(--dark-ink); text-shadow: 0 1px 16px rgba(0,0,0,.7); transition: opacity .5s ease; }
.opening.is-playing .opening__for { opacity: 0; }
.opening__pearl {
  position: absolute; z-index: 2; pointer-events: none; width: 7svh; aspect-ratio: 1; border-radius: 50%;
  left: calc(50% - .225svh); top: 60.1%; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 250, 238, .55) 0%, rgba(255, 250, 238, .18) 38%, rgba(255, 250, 238, 0) 70%);
  mix-blend-mode: screen; animation: pearl 2.8s ease-in-out infinite; transition: opacity .3s;
}
@keyframes pearl { 0%, 100% { opacity: .25; scale: .8; } 50% { opacity: 1; scale: 1.1; } }
.opening.is-playing .opening__pearl { opacity: 0; animation: none; }
.opening__btn {
  font: italic 400 1.0625rem/1 var(--serif); letter-spacing: .04em; color: rgba(239, 230, 214, .88);
  background: none; border: 0; border-radius: 0; min-height: 44px; padding: 0 1.2rem; cursor: pointer;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.opening__btn:focus-visible { outline: 1px solid var(--gold-lite); outline-offset: 2px; }
.opening__paper { position: absolute; inset: 0; background: var(--paper) url("assets/img/paper.jpg") repeat; background-size: 512px 512px; opacity: 0; pointer-events: none; }
.opening.is-playing .opening__ui { opacity: 0; pointer-events: none; }
/* the zoom: the card's paper grows until it IS the site's paper */
/* landing: the world fades to the site's paper while the card glides onto the header's printed block */
.opening__paper { z-index: 0; }
.opening__stage { z-index: 1; }
.opening.is-zooming .opening__stage { transform-origin: 0 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--zoom, 1)); transition: transform 1.6s cubic-bezier(.6, 0, .2, 1); box-shadow: none; }
/* the page's paper spreads out from behind the card (no dark→light cross-fade: that went muddy grey) */
.opening__paper { opacity: 1; clip-path: circle(0px at var(--pcx, 50%) var(--pcy, 40%)); }
.opening.is-zooming .opening__paper { clip-path: circle(150vmax at var(--pcx, 50%) var(--pcy, 40%)); transition: clip-path 1.35s cubic-bezier(.55, 0, .25, 1) .05s; }
.opening.is-zooming .scene__paper { clip-path: circle(150% at 50% 40%); transition: clip-path 1.35s cubic-bezier(.55, 0, .25, 1) .05s; }
.scene__pocket, .opening__video { transition: opacity .6s ease; }
.opening.is-zooming .scene__pocket, .opening.is-zooming .opening__video { opacity: 0; }
.opening.is-zooming .pcard { box-shadow: 0 0 0 rgba(0,0,0,0); }
.opening.is-zooming .pcard__paper { opacity: 0; }
.opening.is-zooming .pcard__print .emboss { --paper-c: #f2ebe0; }
.emboss__face { transition: background-color 1.1s ease .2s; }
.opening.is-zooming::before { opacity: 0; }
.opening.is-gone { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }

/* ---------- CONVITE ---------- */
.invite { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 1.25rem 1.25rem 4rem; }
.invite__frame {
  position: relative; width: min(100%, 560px); padding: 2.4rem 1.4rem 2.2rem; text-align: center;
  border: 1px solid var(--ink); outline: 1px solid var(--line); outline-offset: -9px;
}
@media (min-width: 600px) { .invite__frame { padding: 4rem 3rem 3.2rem; } }
.invite__greeting { font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin: 0 auto .2rem; max-width: 30ch; }
.invite__card { container-type: inline-size; width: min(100%, 440px); margin: 0 auto; }
.invite__card .print { padding-bottom: 1rem; }
.invite__time { font-style: italic; font-size: 1.15rem; margin: 0; }
.invite .reveal { opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
body.is-open .invite .reveal { opacity: 1; transform: none; transition-delay: .1s; }
body.is-open .invite .rule.reveal { transition-delay: .2s; } body.is-open .invite__time.reveal { transition-delay: .3s; }
body.is-open .invite .countdown.reveal { transition-delay: .4s; } body.is-open .invite .btn.reveal { transition-delay: .5s; }
.invite__scroll { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-soft); animation: nudge 2.4s ease-in-out infinite; }
.invite__scroll svg { width: 24px; height: 24px; }
@keyframes nudge { 50% { transform: translateY(5px); } }


.countdown { display: flex; justify-content: center; gap: 1.4rem; margin: 1rem 0 0; }
.countdown div { display: grid; }
.countdown b { font-size: 1.75rem; font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.countdown span { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.8rem; margin-top: 1.6rem;
  font: 500 .8125rem/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); cursor: pointer;
}
.btn:hover { background: #46362a; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(47,36,28,.06); }
.btn--small { min-height: 44px; padding: 0 1.2rem; margin-top: .8rem; }
.btn:focus-visible, .link:focus-visible, .tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.btn-row .btn { margin-top: .6rem; }
.link { color: var(--gold); text-decoration: none; font-style: italic; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none;
  padding: 0 1.25rem; white-space: nowrap; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(243, 237, 227, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tabs::after { content: ""; position: sticky; right: -1.25rem; flex: none; width: 48px; margin-left: -48px; background: linear-gradient(90deg, rgba(243,237,227,0), rgb(243,237,227) 75%); pointer-events: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 50px; text-decoration: none; color: var(--ink-soft); }
@media (min-width: 900px) { .tabs { justify-content: center; } .tabs::after { display: none; } }

/* ---------- história ---------- */
.story { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 820px) { .story { grid-template-columns: 1fr 1fr; gap: 4.5rem; text-align: left; } }
.story__photos { position: relative; height: 400px; width: min(100%, 420px); margin: 0 auto; }
.polaroid { position: absolute; width: 190px; margin: 0; background: #fbf8f2; padding: 10px 10px 40px; box-shadow: 0 14px 30px rgba(47,36,28,.16), 0 2px 4px rgba(47,36,28,.1); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.p1 { left: 0; top: 24px; transform: rotate(-6deg); }
.p2 { left: 50%; top: 0; transform: translateX(-42%) rotate(3deg); z-index: 2; }
.p3 { right: 0; top: 196px; transform: rotate(-2deg); z-index: 3; }
@media (max-width: 420px) { .story__photos { height: 370px; } .polaroid { width: 156px; } .p3 { top: 172px; } }
.ph { aspect-ratio: 1; background: linear-gradient(135deg, #e6dccb, #d9ccb6); background-size: cover; background-position: center; display: grid; place-items: center; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.ph::after { content: none; }
.story__text p { font-size: 1.15rem; }
.story__sign { font-style: italic; color: var(--gold); font-size: 1.25rem; }

/* ---------- programação ---------- */
.program { list-style: none; padding: 0; margin: 2.8rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 1rem; }
@media (min-width: 820px) { .program { grid-template-columns: repeat(3, 1fr); gap: 3.4rem 2rem; max-width: 760px; } }
.program li { display: grid; justify-items: center; align-content: start; gap: .3rem; }
.program img { width: 78px; height: 78px; object-fit: contain; margin-bottom: .6rem; opacity: .95; }
.program time { font-size: 1.55rem; font-style: italic; color: var(--gold-lite); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.program b { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8125rem; margin-top: .15rem; }
.program span { font-size: 1rem; font-style: italic; color: rgba(239,230,214,.72); }

/* ---------- local ---------- */
.local { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 820px) { .local { grid-template-columns: 1.1fr 1fr; gap: 4rem; text-align: left; } .local .btn-row { justify-content: flex-start; } }
.postcard { margin: 0; background: #fbf8f2; padding: 12px 12px 14px; box-shadow: 0 18px 40px rgba(47,36,28,.18); transform: rotate(-1.2deg); }
.postcard__img { aspect-ratio: 3 / 2; overflow: hidden; background: #d9ccb6 url("assets/img/villa-painting.jpg") center / cover; }
.postcard__img video { width: 100%; height: 100%; object-fit: cover; }
.postcard figcaption { font-style: italic; font-size: 1rem; color: var(--ink-soft); text-align: center; margin-top: .6rem; }

/* ---------- traje ---------- */
.palette { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin: 1.6rem auto; }
.palette li { display: grid; justify-items: center; gap: .5rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.palette li::before { content: ""; width: 52px; height: 52px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(47,36,28,.18); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2rem; text-align: center; }
.card { background: rgba(251, 248, 242, .7); border: 1px solid var(--line); padding: 1.8rem 1.4rem; }
.card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.card p { margin-bottom: .4rem; }
.card--todo { opacity: .55; border-style: dashed; }

/* ---------- traje ---------- */
.lead { font-size: 1.25rem; max-width: 34ch; margin: 0 auto 1.6rem; }
.dress { margin: 0 auto 2.2rem; max-width: 880px; }
.dress img { width: 100%; height: auto; mix-blend-mode: multiply; }
.dress__half { display: none; }
@media (max-width: 719px) {
  .dress { margin-inline: -1.25rem; }
  .dress__full { display: none; }
  .dress__half { display: block; aspect-ratio: 700 / 752; object-fit: cover; }
  .dress__half--a { object-position: 0 0; width: 100%; }
  .dress__half--b { object-position: 100% 0; aspect-ratio: 600 / 752; width: 86%; margin: -.5rem auto 0; }
}
.dress__cols { display: grid; gap: 1.6rem; max-width: 760px; margin: 0 auto; }
@media (min-width: 720px) { .dress__cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.dress__cols p { margin-bottom: .5rem; }
.subtitle { font-size: 1.5rem; font-style: italic; font-weight: 500; margin: 0 0 .5rem; }
.tones__title { margin-top: 2.8rem; }
.note-strong { font-style: italic; font-size: 1.15rem; margin: .4rem 0 .8rem; }

/* ---------- hospedagem / beleza ---------- */
.feature { background: rgba(251, 248, 242, .75); border: 1px solid var(--line); padding: 2rem 1.4rem 1.6rem; margin: 2rem 0 2.6rem; }
@media (min-width: 600px) { .feature { padding: 2.6rem 2.6rem 2rem; } }
.feature__title { font-size: 1.75rem; margin: 0 0 1rem; }
.feature .btn-row { margin-top: .4rem; }
.feature .btn { margin-top: .6rem; }
@media (max-width: 480px) { .feature .btn-row { flex-direction: column; } .feature .btn { width: 100%; letter-spacing: .2em; padding: 0 1rem; } }
.list__title { margin-bottom: .6rem; }
.list { list-style: none; padding: 0; margin: 1.4rem 0 0; text-align: left; border-top: 1px solid var(--line); }
.list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
.list__name { margin: 0; font-size: 1.25rem; display: grid; line-height: 1.25; }
.list__name .muted { font-size: .95rem; }
.list__acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line);
  font-size: .95rem; text-decoration: none; color: var(--ink); background: rgba(251, 248, 242, .6); white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.pill:hover { background: rgba(47, 36, 28, .06); }
.pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill svg { width: 17px; height: 17px; flex: none; }

/* ---------- pix ---------- */
.pix { display: flex; gap: 1.8rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.pix__qr { width: 164px; height: 164px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); background: rgba(251,248,242,.7); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 1rem; }
.pix__qr img { width: 100%; height: 100%; object-fit: contain; }
.pix__key code { display: block; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; background: rgba(47,36,28,.05); padding: .6rem .8rem; word-break: break-all; }

/* ---------- rsvp ---------- */
.rsvp { display: grid; gap: 1.2rem; margin-top: 2rem; text-align: left; }
.rsvp__household { text-align: center; font-style: italic; font-size: 1.5rem; margin: 0; }
.field { display: grid; gap: .4rem; font-size: 1rem; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: rgba(251,248,242,.85);
  border: 1px solid var(--line); border-radius: 0; min-height: 50px; padding: .8rem .9rem;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }
.rsvp__group { border: 1px solid var(--line); padding: .9rem 1.1rem 1rem; margin: 0; display: grid; gap: .2rem; background: rgba(251,248,242,.5); }
.rsvp__group legend { padding: 0 .4rem; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.rsvp__group label { display: flex; align-items: center; gap: .8rem; min-height: 46px; font-size: 1.1rem; cursor: pointer; }
.rsvp__group input { width: 22px; height: 22px; margin: 0; flex: none; }
.rsvp .btn { justify-self: center; }
.form-status { text-align: center; min-height: 1.5em; margin: 0; font-style: italic; }
.rsvp__sent { margin-top: 2rem; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--dark-ink); text-align: center; padding: 4rem 1.25rem calc(4.5rem + env(safe-area-inset-bottom)); }
.footer__names { width: min(72%, 300px); height: auto; margin: 0 auto 1.2rem; }
.footer .eyebrow { color: rgba(239,230,214,.75); }
.footer .muted { color: rgba(239,230,214,.6); }
.footer a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- sound toggle ---------- */
.sound-toggle {
  position: fixed; z-index: 60; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem 0 .8rem;
  border: 1px solid rgba(239,230,214,.45); background: rgba(36,27,21,.45); color: var(--dark-ink);
  font: 500 .75rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
}
.sound-toggle__icon { width: 20px; height: 20px; flex: none; }
.sound-toggle .wave { display: none; } .sound-toggle.is-on .wave { display: inline; } .sound-toggle.is-on .off { display: none; }
.sound-toggle.is-compact { top: auto; right: auto; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); border-radius: 50%; width: 44px; padding: 0; justify-content: center; border-color: var(--line); background: rgba(243,237,227,.88); color: var(--ink); }
.sound-toggle.is-compact .sound-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sound-toggle.is-compact { transition: transform .35s ease, opacity .35s ease; }
.sound-toggle.is-compact.is-tucked { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.sound-toggle:focus-visible { outline: 2px solid var(--gold-lite); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .opening__stage, .opening__paper, .pcard { transition: none !important; }
  .invite__scroll, body:not(.has-motion), .opening__pearl { animation: none; }
}

.invite .btn { margin-top: 1.3rem; }
.opening__paper { background-size: 640px 640px; }

@media (max-width: 480px) {
  .palette { gap: .55rem; flex-wrap: nowrap; }
  .palette li { font-size: .6875rem; letter-spacing: .1em; }
  .palette li::before { width: 46px; height: 46px; }
}
