/* =========================================================
   Convite · Andressa & Alexander · 02.09.2027
   Papel linho creme · acácia dourada (AU) · ipê-amarelo (BR)
   ========================================================= */

:root {
  --linen: #f3ebda;
  --linen-2: #ebdfc6;
  --envelope: #efe3c9;
  --backdrop: #ddd0b3;
  --ink: #3b3828;
  --ink-soft: #6b6550;
  --gold: #b48a35;
  --gold-2: #d4af5a;
  --gold-3: #8f6a22;
  --olive: #4b5320;        /* verde militar */
  --olive-2: #5e6a2e;
  --olive-3: #7b8744;

  --f-script: 'Pinyon Script', 'Brush Script MT', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans: 'Jost', 'Segoe UI', system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: var(--backdrop) url(../assets/linen.svg);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: clamp(17px, 0.6vw + 14px, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--olive); }

.linen {
  background-color: var(--linen);
  background-image: url(../assets/linen.svg);
}

/* ---------- tipografia ---------- */
.script { font-family: var(--f-script); font-weight: 400; line-height: 1.15; }
.title-thin, .page-title {
  font-family: var(--f-sans);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .32em;
  margin: 0 0 .6em;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  line-height: 1.5;
  padding-left: .32em; /* compensa o tracking para centralizar */
}
.eyebrow, .meta, .block-title, .sub-title, .countdown, .formal, .soon, .chapter-num {
  font-family: var(--f-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .24em;
}
.eyebrow { font-size: .7rem; color: var(--ink-soft); margin: 0 0 .4em; }
.muted { color: var(--ink-soft); }
.small { font-size: .85em; }
.text-left { text-align: left; }

.monogram {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: .12em;
  margin: 0;
  color: var(--ink);
}
.monogram span { font-family: var(--f-script); color: var(--gold); font-size: .9em; margin: 0 .12em; }
.monogram.small { font-size: 1.6rem; }

/* ---------- botões & campos ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: #f4ecd9;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 1.9em 1em 2.15em;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}
.btn:hover { background: var(--olive-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: rgba(75, 83, 32, .08); }
.link-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-sans); font-weight: 300; font-size: .7rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
  padding: 10px 14px; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(180, 138, 53, .5);
}
.btn:focus-visible, .link-btn:focus-visible, .ribbon:focus-visible, input:focus-visible, textarea:focus-visible, .tabs a:focus-visible, .langs button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.field { display: block; text-align: left; margin: 0 0 1.1rem; }
.field > span {
  display: block;
  font-family: var(--f-sans); font-weight: 300; font-size: .66rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .2rem;
}
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(143, 106, 34, .45);
  background: transparent;
  font-family: var(--f-serif);
  font-size: 1.15rem;
  color: var(--ink);
  padding: .35rem .1rem;
  border-radius: 0;
}
.field textarea { border: 1px solid rgba(143, 106, 34, .35); padding: .5rem .6rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-error { color: #8a2f1c; font-size: .95rem; min-height: 1.4em; margin: .8rem 0 0; }

/* ---------- cantos florais ---------- */
.corner { position: absolute; pointer-events: none; user-select: none; z-index: 1; }
.corner.tl { top: -4px; left: -4px; }
.corner.tr { top: -4px; right: -4px; transform: scaleX(-1); }
.corner.bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.corner.br { bottom: -4px; right: -4px; transform: rotate(180deg); }

/* ---------- ornamento ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 1.4rem auto; max-width: 320px; }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.ornament i {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2b0, #f2c230 45%, #c98a17);
  box-shadow: -14px 0 0 -2.5px #e0b23a, 14px 0 0 -2.5px #e0b23a;
}

/* =========================================================
   LOGIN
   ========================================================= */
.view-login {
  display: grid; place-items: center;
  padding: 24px 16px;
  min-height: 100svh;
}
.login-card {
  position: relative;
  width: min(100%, 420px);
  padding: 120px 32px 110px;
  overflow: hidden;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(60, 45, 15, .12), 0 24px 60px -24px rgba(60, 45, 15, .45);
  animation: rise .9s var(--ease-out) both;
}
.login-card::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(180, 138, 53, .5); pointer-events: none;
}
.login-card .corner { width: 190px; }
.login-inner { position: relative; z-index: 2; }
.login-card .title-thin { margin: 1.2rem 0 1.6rem; font-size: .95rem; }
.login-card .dot { color: var(--gold); }
.login-card .btn { width: 100%; margin-top: .6rem; }

/* =========================================================
   CAPA · ENVELOPE
   ========================================================= */
.view-cover {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 4vh, 40px);
  padding: 24px 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 252, 240, .45), transparent 70%),
    var(--backdrop) url(../assets/linen.svg);
  transition: opacity .8s ease;
}
.view-cover.leaving { opacity: 0; }

.cover-hint {
  margin: 0;
  display: grid; gap: 4px; text-align: center;
  font-family: var(--f-sans); font-weight: 300; font-size: .68rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
  transition: opacity .5s;
}
.cover-hint span:nth-child(2) { color: var(--gold-3); }
.cover-hint .arrows { display: flex; justify-content: center; gap: 18px; color: var(--gold); font-size: 1rem; letter-spacing: 0; margin-top: 4px; }
.cover-hint .arrows b { font-weight: 300; animation: nudge-l 1.8s ease-in-out infinite; }
.cover-hint .arrows b + b { animation-name: nudge-r; }
#open-btn { transition: opacity .5s; }
.view-cover.opening .cover-hint, .view-cover.opening #open-btn { opacity: 0; pointer-events: none; }

.env-stage {
  perspective: 1600px;
  transition: transform 1s var(--ease-out);
}
.view-cover.opening .env-stage { transform: scale(.8); }

.envelope {
  position: relative;
  width: min(82vw, 400px, 46svh);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  animation: rise 1s var(--ease-out) both;
}
.envelope > * { position: absolute; }

/* fundo/forro do envelope */
.env-back, .lining {
  background-color: var(--olive);
  background-image:
    radial-gradient(rgba(222, 186, 98, .28) 1px, transparent 1.6px),
    radial-gradient(rgba(222, 186, 98, .16) 1px, transparent 1.6px);
  background-size: 14px 14px, 14px 14px;
  background-position: 0 0, 7px 7px;
}
.env-back {
  inset: 0; border-radius: 3px;
  transform: translateZ(0);
  box-shadow: 0 34px 50px -24px rgba(50, 40, 15, .55), 0 8px 18px rgba(50, 40, 15, .2);
}

/* carta dobrada */
.env-letter {
  inset: 5% 6%;
  transform: translateZ(1px);
  transition: transform 1.1s var(--ease-out);
}
.mini-letter {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14%;
}
.mini-letter::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(180, 138, 53, .5); }
.mini-letter .corner { width: 48%; }
.mini-letter .script { font-size: clamp(1.8rem, 8vw, 2.6rem); margin: 0 0 .3rem; position: relative; z-index: 2; }
.mini-names, .mini-date {
  margin: .1rem 0; position: relative; z-index: 2;
  font-family: var(--f-sans); font-weight: 300; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
}

/* abas laterais */
.env-sides {
  inset: 0;
  transform: translateZ(2px);
  filter: drop-shadow(0 0 1.2px rgba(90, 70, 30, .45)) drop-shadow(0 2px 5px rgba(90, 70, 30, .15));
  pointer-events: none;
}
.side { position: absolute; inset: 0; background-color: #ebdec2; }
.side-l { clip-path: polygon(0 0, 37% 50%, 0 100%); }
.side-r { clip-path: polygon(100% 0, 63% 50%, 100% 100%); }

/* abas superior e inferior */
.flap {
  left: 0; width: 100%; height: 56%;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.5, .05, .2, 1);
}
.flap-top { top: 0; transform-origin: 50% 0; transform: translateZ(4px) rotateX(0deg); }
.flap-bottom { bottom: 0; transform-origin: 50% 100%; transform: translateZ(3px) rotateX(0deg); }
.face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  filter: drop-shadow(0 0 1.2px rgba(90, 70, 30, .5)) drop-shadow(0 3px 6px rgba(90, 70, 30, .18));
}
.face.back { transform: rotateX(180deg); }
.shape { position: absolute; inset: 0; }
.flap .front .shape { background-color: var(--envelope); }
.flap-top .shape { clip-path: polygon(0 0, 100% 0, 100% 70%, 53% 98.5%, 50% 100%, 47% 98.5%, 0 70%); }
.flap-bottom .shape { clip-path: polygon(0 100%, 100% 100%, 100% 30%, 53% 1.5%, 50% 0, 47% 1.5%, 0 30%); }
.flap-top .back .shape { clip-path: polygon(0 100%, 100% 100%, 100% 30%, 53% 1.5%, 50% 0, 47% 1.5%, 0 30%); }
.flap-bottom .back .shape { clip-path: polygon(0 0, 100% 0, 100% 70%, 53% 98.5%, 50% 100%, 47% 98.5%, 0 70%); }

.flap-label {
  position: absolute; left: 0; right: 0; top: 13%;
  text-align: center; padding: 0 12%;
}
.flap-label .eyebrow { font-size: .62rem; }
.cover-names {
  margin: .1rem 0 0;
  font-size: clamp(1.7rem, 7.4vw, 2.5rem);
  color: var(--ink);
}

.envelope.open .flap-top { transform: translateZ(4px) rotateX(180deg); }
.envelope.open .flap-bottom { transform: translateZ(3px) rotateX(-180deg); transition-delay: .18s; }
.envelope.lift .env-letter { transform: translateZ(12px) translateY(-22%) scale(1.04); }

/* fita + laço */
.ribbon {
  left: -2.5%; right: -2.5%; top: 50%;
  height: clamp(16px, 6.4%, 26px);
  transform: translateY(-50%) translateZ(8px);
  cursor: grab;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  outline: none;
}
.ribbon::before { content: ''; position: absolute; left: 0; right: 0; top: -36px; bottom: -36px; }
.ribbon.dragging { cursor: grabbing; }
.band {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(180deg, #343c19 0%, #59652d 28%, #7d8947 50%, #56622b 72%, #2f3616 100%);
  box-shadow: 0 2px 4px rgba(30, 30, 10, .35);
  transition: transform .4s var(--ease-out), opacity .4s;
}
.band-l { left: 0; right: 50%; border-radius: 2px 0 0 2px; transform: translateX(calc(var(--dx, 0px) * .28)); }
.band-r { left: 50%; right: 0; border-radius: 0 2px 2px 0; transform: translateX(calc(var(--dx, 0px) * .28)); }

.knot {
  position: absolute; left: 50%; top: 50%;
  width: clamp(120px, 44%, 176px);
  aspect-ratio: 200 / 130;
  transform: translate(-50%, -46%) translateX(calc(var(--dx, 0px) * .72));
  transition: transform .45s var(--ease-out), opacity .5s;
}
.ribbon.dragging .knot, .ribbon.dragging .band { transition: none; }
.knot-inner { position: absolute; inset: 0; animation: wiggle 2.6s ease-in-out 1.2s infinite; }
.ribbon.dragging .knot-inner, .ribbon.untied .knot-inner { animation: none; }
.bow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px rgba(30, 30, 10, .35)); }
.loop { transform-box: view-box; transform: scaleX(calc(1 - var(--p, 0) * .55)); transition: transform .45s var(--ease-out); }
.loop-l { transform-origin: 100px 64px; }
.loop-r { transform-origin: 100px 64px; }
.ribbon.dragging .loop { transition: none; }
.seal {
  position: absolute; left: 50%; top: 49%;
  width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: transform .8s var(--ease-out), opacity .6s;
}
.seal-text { font-family: var(--f-script); font-size: 30px; }

.ribbon.untied { pointer-events: none; }
.ribbon.untied .band { transition: transform .9s cubic-bezier(.5, 0, .7, .4), opacity .9s; opacity: 0; }
.ribbon.untied .band-l { transform: translateX(-115%); }
.ribbon.untied .band-r { transform: translateX(115%); }
.ribbon.untied .loop { transform: scaleX(.05); transition-duration: .5s; }
.ribbon.untied .knot {
  transform: translate(calc(-50% + var(--dir, 1) * 150%), -30%) rotate(calc(var(--dir, 1) * 28deg)) scale(.8);
  opacity: 0;
  transition: transform 1s cubic-bezier(.5, 0, .6, .5), opacity .9s .15s;
}

/* =========================================================
   SITE
   ========================================================= */
.view-app { min-height: 100svh; }
.view-app.entering .sheet { animation: unfold 1.1s var(--ease-out) both; }
.view-app.entering .topbar { animation: fade 1s .4s both; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  background: rgba(240, 231, 211, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 138, 53, .28);
}
.tabs {
  flex: 1; min-width: 0;
  display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  font-family: var(--f-sans); font-weight: 300;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: 10px 10px 8px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.langs { flex: none; display: flex; gap: 6px; }
.langs button {
  border: 0; background: none; padding: 4px; border-radius: 3px; cursor: pointer;
  opacity: .45; filter: saturate(.5); transition: opacity .2s, filter .2s;
  display: grid; place-items: center;
}
.langs button svg { width: 26px; height: 18px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.langs button[data-lang="en"] svg { height: 13px; }
.langs button[aria-pressed="true"] { opacity: 1; filter: none; box-shadow: 0 0 0 1px var(--gold); }

@media (min-width: 900px) {
  .tabs { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .topbar { padding-left: 120px; }
  .tabs a { font-size: .7rem; padding: 12px 14px 10px; }
}

.sheet-wrap { padding: clamp(14px, 4vw, 48px) clamp(10px, 3vw, 32px) 32px; overflow-x: clip; }
.sheet {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: clamp(120px, 26vw, 200px) clamp(26px, 8vw, 96px) clamp(120px, 26vw, 190px);
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(60, 45, 15, .12), 0 26px 60px -26px rgba(60, 45, 15, .45);
}
.sheet::before, .sheet::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
.sheet::before { inset: clamp(10px, 2.2vw, 18px); border: 1px solid rgba(180, 138, 53, .55); }
.sheet::after { inset: clamp(14px, 2.8vw, 23px); border: .5px solid rgba(180, 138, 53, .3); }
.sheet .corner { width: clamp(140px, 36vw, 260px); }
.page { position: relative; z-index: 2; animation: fade .6s ease both; }

/* home */
.countdown {
  font-size: .62rem; letter-spacing: .26em; color: var(--gold-3);
  margin: 0 0 2rem; opacity: .9;
}
.countdown b { font-weight: 400; color: var(--ink); }
.guest-names { font-size: clamp(2rem, 8vw, 3rem); margin: 0; color: var(--ink); }
.save-the-date {
  font-size: clamp(3.4rem, 15vw, 6.2rem);
  margin: .2rem 0 .6rem; line-height: 1;
  color: var(--ink);
}
.couple {
  font-family: var(--f-serif); font-weight: 300;
  text-transform: uppercase; letter-spacing: .14em; white-space: nowrap;
  font-size: clamp(.95rem, 4.6vw, 2rem);
  margin: 0 0 .9rem; padding-left: .2em;
}
.couple span { font-family: var(--f-script); text-transform: none; color: var(--gold); letter-spacing: 0; font-size: 1.15em; margin: 0 .2em; }
.date-big {
  display: flex; align-items: center; justify-content: center; gap: .7em;
  font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(1.6rem, 7vw, 3.2rem); letter-spacing: .04em; white-space: nowrap;
  margin: .2rem 0 .5rem;
}
.date-big .rule { flex: 1 1 20px; max-width: 70px; min-width: 12px; height: 1px; background: var(--gold); opacity: .7; }
.meta { font-size: .72rem; color: var(--ink-soft); margin: .25rem 0; }
.place {
  font-family: var(--f-sans); font-weight: 300; text-transform: uppercase;
  letter-spacing: .2em; font-size: .78rem; line-height: 1.9; margin: 1rem 0 0;
}
.tagline { font-style: italic; font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.35; margin: 0 0 1rem; }
.intro { margin: 0 auto 2rem; max-width: 30em; color: var(--ink-soft); }
.rsvp-box { margin: 0 0 1.6rem; }
.rsvp-status { font-size: .95rem; color: var(--olive); margin: .8rem 0 0; min-height: 1.2em; }
.rsvp-status button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--gold-3); }
.formal { font-size: .62rem; color: var(--ink-soft); margin: 0; }

/* páginas internas */
.page-title { color: var(--ink); }
.lead { font-size: 1.15rem; max-width: 30em; margin: 0 auto 1.4rem; }
.soon { font-size: .66rem; color: var(--gold-3); }
.venue-name { font-size: clamp(2.6rem, 11vw, 4rem); margin: 0; }
.map-frame {
  position: relative; margin: 1.6rem auto; max-width: 560px;
  aspect-ratio: 4 / 3; padding: 6px; background: #fffaf0;
  box-shadow: 0 0 0 1px rgba(180, 138, 53, .4), 0 10px 26px -14px rgba(60, 45, 15, .5);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.18) saturate(.9); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 2rem; }
.block { margin: 2rem auto 0; max-width: 36em; }
.block-title { font-size: .78rem; letter-spacing: .26em; margin: 0 0 .8rem; color: var(--ink); text-align: center; }
.sub-title { font-size: .68rem; color: var(--gold-3); margin: 1.6rem 0 .5rem; }
.steps, .tips { padding-left: 1.3em; margin: 0; }
.steps li, .tips li { margin: 0 0 .45rem; padding-left: .2em; }
.steps li::marker { font-family: var(--f-sans); font-weight: 300; color: var(--gold-3); }
.tips li::marker { color: var(--gold); }

/* nossa história */
.chapter { margin: 0 auto; max-width: 34em; }
.chapter-num { font-size: .8rem; color: var(--gold-3); margin: 0 0 .3rem; letter-spacing: .4em; }
.photo {
  margin: 1.4rem auto 1.6rem; max-width: 380px; aspect-ratio: 4 / 5;
  padding: 10px 10px 38px; background: #fffaf0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 14px 30px -16px rgba(60, 45, 15, .55);
  display: grid; place-items: center;
  transform: rotate(-1.4deg);
}
.photo:nth-of-type(even), .chapter:nth-of-type(even) .photo { transform: rotate(1.2deg); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 22px); margin: 1.6rem 0 0; }
.gallery .photo { margin: 0; padding: 6px 6px 22px; max-width: none; }
.gallery .photo:nth-child(odd) { transform: rotate(-1.6deg); }
.gallery .photo:nth-child(even) { transform: rotate(1.4deg) translateY(10px); }
.gallery .photo.wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; transform: rotate(-.6deg); }
.photo > span {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--linen-2) url(../assets/linen.svg);
  font-family: var(--f-sans); font-weight: 300; font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft);
}
.story-text p { margin: 0 0 1em; }
.story-text p:first-child::first-letter {
  font-family: var(--f-serif); font-weight: 300; float: left;
  font-size: 3.4em; line-height: .85; margin: .06em .1em 0 0; color: var(--gold-3);
}
.story-text .quote { font-style: italic; text-align: center; font-size: 1.15em; }
.signature { font-size: 2rem; margin: .2rem 0 0; text-align: right; color: var(--gold-3); }

/* rodapé */
.site-footer { text-align: center; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.footer-line { font-style: italic; color: var(--ink-soft); margin: .3rem 0 .2rem; }

/* RSVP dialog */
dialog#rsvp-dialog {
  width: min(92vw, 480px);
  max-height: 90svh;
  border: 0; border-radius: 2px;
  padding: 34px 26px 26px;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(30, 25, 10, .6);
  text-align: center;
}
dialog#rsvp-dialog::backdrop { background: rgba(40, 35, 20, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open] { animation: rise .45s var(--ease-out) both; }
.dlg-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
  padding: 6px 10px;
}
.choice, .members { border: 0; padding: 0; margin: 1.2rem 0; text-align: left; }
.choice label, .members label {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .8rem; margin: 0 0 .5rem;
  border: 1px solid rgba(180, 138, 53, .35); border-radius: 2px;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.choice label:has(input:checked), .members label:has(input:checked) { border-color: var(--olive); background: rgba(75, 83, 32, .07); }
.choice input, .members input { accent-color: var(--olive); width: 18px; height: 18px; flex: none; margin: 0; }
.members legend {
  font-family: var(--f-sans); font-weight: 300; font-size: .66rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem;
}
.members input[type="number"] {
  width: 90px; border: 0; border-bottom: 1px solid rgba(143, 106, 34, .45); background: transparent;
  font-family: var(--f-serif); font-size: 1.2rem; text-align: center; color: var(--ink);
}
#rsvp-form .btn { width: 100%; }
.rsvp-thanks .big { font-size: 2.4rem; margin: 0 0 .6rem; }

/* =========================================================
   animações
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes unfold {
  0% { opacity: 0; transform: perspective(1400px) rotateX(14deg) translateY(40px) scale(.9); transform-origin: 50% 0; }
  100% { opacity: 1; transform: none; }
}
@keyframes wiggle {
  0%, 70%, 100% { transform: translateX(0); }
  78% { transform: translateX(7px) rotate(1deg); }
  86% { transform: translateX(-5px) rotate(-.8deg); }
  93% { transform: translateX(3px); }
}
@keyframes nudge-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes nudge-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .flap, .env-letter, .knot, .band, .view-cover { transition-duration: .2s !important; }
}
