/* Letícia & Guilherme · 27.02.2027
   Cores e fontes da identidade visual (Brittany Signature, Cormorant Garamond, Josefin Sans). */

@font-face { font-family: "Brittany Signature"; src: url("fonts/brittany-signature.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  --cafe: #33291B;
  --cafe-deep: #261E13;
  --terra: #6A543C;
  --musgo: #5F5F2D;
  --salvia: #8B8D5C;
  --salvia-claro: #B8BA97;
  --off: #F5F5F3;
  --papel: #F0ECE3;
  --linha: rgba(51, 41, 27, .14);
  --linha-clara: rgba(245, 245, 243, .18);

  --script: "Brittany Signature", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Josefin Sans", "Futura", "Avenir Next", "Segoe UI", sans-serif;

  --tinta: #2E2418;
  /* Grão do papel: relevo fino de fibras, claro para multiplicar sobre a cor do papel */
  --grao: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='2' lighting-color='%23fff'><feDistantLight azimuth='135' elevation='50'/></feDiffuseLighting><feColorMatrix values='.16 0 0 0 .84  .16 0 0 0 .84  .16 0 0 0 .84  0 0 0 0 1'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  /* Manchas suaves de papel de algodão */
  --fibras: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.006 .018' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .86  0 0 0 0 .83  0 0 0 0 .76  -1.3 0 0 0 .78'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  /* Linho escuro da mesa onde o envelope está */
  --linho: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='a'><feTurbulence type='fractalNoise' baseFrequency='.9 .012' numOctaves='2' seed='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.1 .55'/></filter><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 -1.1 .52'/></filter><rect width='100%' height='100%' filter='url(%23a)' opacity='.35'/><rect width='100%' height='100%' filter='url(%23b)' opacity='.06'/></svg>");
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .16  0 0 0 0 .1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: smooth; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  background: var(--off);
  color: var(--cafe);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--musgo);
}

/* ---------- Monograma (arquivo da identidade, colorido pela cor do texto) ---------- */
.mono {
  display: inline-block; width: 1.03em; height: 1em; vertical-align: middle;
  background: currentColor;
  -webkit-mask: url("img/monograma.png") center / contain no-repeat;
          mask: url("img/monograma.png") center / contain no-repeat;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  padding: 16px 30px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--musgo); transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-solid { background: var(--musgo); color: var(--off); }
.btn-solid:hover { background: var(--cafe); border-color: var(--cafe); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--musgo); }
.btn-ghost:hover { background: var(--musgo); color: var(--off); }
.btn-light { background: transparent; color: var(--off); border-color: rgba(245, 245, 243, .55); }
.btn-light:hover { background: var(--off); color: var(--cafe); border-color: var(--off); }
.btn:focus-visible, .link-btn:focus-visible, .envelope:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--salvia); outline-offset: 4px;
}

/* =========================================================
   ABERTURA
   ========================================================= */
.intro { display: none; }
.js .intro {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(80% 60% at 30% 15%, rgba(255, 255, 255, .75), transparent 70%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(80, 70, 55, .14) 100%),
    var(--grao),
    #E8E6E0;
  background-blend-mode: normal, normal, multiply, normal;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity .9s ease, visibility .9s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* Sombras de folhagem desfocadas, como luz de janela passando por ramos */
.intro-deco { position: fixed; width: min(80vw, 640px); opacity: .5; pointer-events: none; filter: brightness(0) blur(7px); }
.intro-deco--tl { top: -60px; left: -80px; }
.intro-deco--br { bottom: -80px; right: -90px; transform: rotate(180deg); opacity: .35; }

.stage {
  min-height: 100%;
  display: grid; place-items: center; align-content: center;
  gap: 34px;
  padding: max(32px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

/* ---------- Envelope ----------
   Branco, na vertical, dobras nítidas, selo de cera sálvia fosco e tira com o nome. */
.stage-envelope { transition: opacity .8s ease, transform .8s ease; }
.stage-envelope.is-leaving { opacity: 0; transform: translateY(40px) scale(.96); }

.envelope {
  --ew: min(72vw, 370px, 48vh);
  --eh: calc(var(--ew) * 1.38);
  position: relative;
  width: var(--ew); height: var(--eh);
  perspective: 1600px;
  cursor: pointer;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(60, 50, 35, .12),
    0 14px 24px -10px rgba(60, 50, 35, .22),
    0 40px 60px -30px rgba(60, 50, 35, .25);
  animation: float 7s ease-in-out infinite;
  transition: transform 1s cubic-bezier(.45, .05, .3, 1);
  -webkit-tap-highlight-color: transparent;
}
.envelope.is-opening { animation: none; cursor: default; }
.envelope.flap-open { transform: translateY(calc(var(--eh) * .22)); }
@keyframes float { 50% { transform: translateY(-5px); } }

.env-back, .env-front, .env-letter, .env-flap, .env-seal { position: absolute; }

.env-back { inset: 0; z-index: 1; border-radius: 2px; background: linear-gradient(#E4E2DC, #EFEDE8); }

.env-letter {
  z-index: 3;
  left: 7%; right: 7%; top: 4%; height: 92%;
  background: var(--grao), #FBFAF7;
  background-blend-mode: multiply, normal;
  display: grid; justify-items: center; align-content: start;
  gap: 6px; padding-top: 12%;
  color: var(--tinta);
  box-shadow: 0 -1px 6px rgba(60, 50, 35, .1);
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1);
}
.mono--small { font-size: calc(var(--ew) * .16); color: var(--tinta); margin-bottom: 6px; }
.letter-names { font-family: var(--script); font-size: calc(var(--ew) * .075); line-height: 1.2; }
.letter-date { font-family: var(--sans); font-size: calc(var(--ew) * .032); letter-spacing: .3em; color: var(--terra); }
.envelope.letter-up .env-letter { transform: translateY(-52%); }

.env-front {
  inset: 0; z-index: 4; border-radius: 2px;
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(110% 60% at 25% 35%, rgba(255, 255, 255, .55), transparent 65%),
    linear-gradient(to bottom, transparent 55%, rgba(70, 60, 45, .05)),
    var(--grao),
    #F5F4F0;
  background-blend-mode: normal, normal, multiply, normal;
}
.env-folds { position: absolute; inset: 0; width: 100%; height: 100%; }
.env-folds path { fill: none; vector-effect: non-scaling-stroke; }
.fold-shade { stroke: rgba(70, 60, 45, .16); stroke-width: 1; }
.fold-light { stroke: rgba(255, 255, 255, .9); stroke-width: 1; }

.env-flap {
  z-index: 6; left: 0; right: 0; top: 0; height: 62%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.45, .05, .3, 1);
}
.envelope.flap-open .env-flap { transform: rotateX(180deg); }
.envelope.flap-behind .env-flap { z-index: 2; }

.flap-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* A sombra fica num elemento e o recorte em outro, para a borda da aba projetar sombra nítida */
.flap-out { filter: drop-shadow(0 1px .8px rgba(60, 50, 35, .2)) drop-shadow(0 3px 5px rgba(60, 50, 35, .08)); }
.flap-out::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    var(--grao),
    #F3F2EE;
  background-blend-mode: normal, multiply, normal;
}
.flap-in {
  transform: rotateX(180deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(to top, #E6E4DE, #F0EEE9);
}

/* ---------- Selo de cera e tira com o nome ---------- */
.env-seal {
  z-index: 7;
  left: 50%; top: 62%;
  width: calc(var(--ew) * .26); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.env-tag {
  position: absolute; left: 50%; top: 50%;
  width: 290%; height: 27%;
  transform-origin: 0 50%;
  transform: translate(8%, -50%) rotate(-59deg) translateY(-15%);
  background: var(--grao), #FDFDFB;
  background-blend-mode: multiply, normal;
  box-shadow: 0 1px 1.2px rgba(60, 50, 35, .2), 0 2px 6px rgba(60, 50, 35, .07);
  display: flex; align-items: center;
  padding: 0 7% 0 30%;
  overflow: hidden;
  transition: opacity .5s ease, transform .7s ease;
}
.env-tag-name {
  font-family: var(--script); font-size: calc(var(--ew) * .058); line-height: 1;
  color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-top: .15em;
}
.seal-half {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(.3, .6, .3, 1), opacity .6s ease;
}
.seal-wrap { position: absolute; inset: 0; }
.seal-shadow {
  position: absolute; inset: 11%; border-radius: 50%;
  box-shadow: 0 1.5px 2px rgba(60, 50, 35, .3), 0 5px 9px rgba(60, 50, 35, .16);
  transition: opacity .4s ease;
}
.envelope.seal-broken .seal-shadow { opacity: 0; }
.seal-half--l { clip-path: polygon(0 0, 54% 0, 48% 30%, 56% 55%, 49% 100%, 0 100%); }
.seal-half--r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 47% 100%, 54% 55%, 46% 30%); }
.envelope:not(.is-opening):hover .env-seal { transform: translate(-50%, -50%) scale(1.03); }

.envelope.seal-broken .seal-half--l { transform: translate(-18%, 10%) rotate(-14deg); opacity: 0; }
.envelope.seal-broken .seal-half--r { transform: translate(18%, 12%) rotate(12deg); opacity: 0; }
.envelope.seal-broken .env-tag { opacity: 0; transform: translate(8%, -50%) rotate(-59deg) translateY(-15%) translateX(12%); }

.env-hint {
  font-family: var(--sans); font-size: 11.5px; font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: var(--terra);
  animation: hint 2.6s ease-in-out infinite;
  transition: opacity .4s;
}
.stage-envelope.is-opening .env-hint { opacity: 0; animation: none; }
@keyframes hint { 50% { opacity: .45; } }

/* ---------- Convite ---------- */
.stage-invite { padding-top: max(40px, env(safe-area-inset-top)); padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.stage-invite.is-entering .invite { animation: inviteIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes inviteIn {
  from { opacity: 0; transform: translateY(60px) scale(.92) rotate(-2deg); }
  to { opacity: 1; transform: rotate(-.5deg); }
}

.invite-wrap { width: min(100%, 470px); display: grid; justify-items: center; gap: 30px; }
.stage-invite.is-entering .invite-actions { animation: rise 1s 5s cubic-bezier(.2, .7, .2, 1) both; }

/* Cartão impresso: papel de algodão com borda rasgada, tinta com leve relevo */
.invite {
  position: relative; isolation: isolate;
  width: 100%;
  color: var(--tinta);
  text-align: center;
  padding: 52px 38px 48px;
  display: grid; justify-items: center; gap: 14px;
  transform: rotate(-.5deg);
}
.invite-paper {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, .6), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(106, 84, 60, .08), transparent 60%),
    var(--fibras),
    var(--grao),
    #F4F2EA;
  background-blend-mode: normal, normal, normal, multiply, normal;
  box-shadow:
    0 1px 1.5px rgba(60, 50, 35, .18),
    0 18px 30px -14px rgba(60, 50, 35, .28),
    0 60px 90px -40px rgba(60, 50, 35, .35);
  filter: url(#deckle);
}
/* O grão do papel passa por cima da tinta, como em impressão de verdade */
.invite::after {
  content: ""; position: absolute; inset: 4px; z-index: 2; pointer-events: none;
  background: var(--grao); mix-blend-mode: multiply; opacity: .55;
}
.invite > :not(.invite-paper) { text-shadow: 0 .5px 0 rgba(255, 255, 255, .7); }

.invite-frame {
  position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid rgba(95, 95, 45, .5);
  outline: 1px solid rgba(95, 95, 45, .28); outline-offset: -5px;
}
.invite-crest { display: grid; justify-items: center; gap: 4px; width: 100%; }
.invite-mono { font-size: 66px; color: var(--tinta); opacity: .92; }
.invite-garland { width: min(70%, 240px); opacity: .9; }
.invite-garland svg { width: 100%; height: auto; display: block; }

.invite-greeting { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--terra); }
.invite-lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.12rem; line-height: 1.45; max-width: 30ch; color: var(--terra);
}
.invite-names {
  display: grid; justify-items: center;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.4rem, 9.5vw, 3.1rem); line-height: 1.15;
  color: var(--tinta);
  padding: 4px 0 14px;
}
.invite-names .amp, .hero-names .amp {
  font-family: var(--serif); font-style: normal; font-weight: 300;
  font-size: .62em; color: var(--salvia); line-height: .9; margin: 0;
}

.inv-date { display: grid; justify-items: center; gap: 6px; color: var(--cafe); }
.inv-month, .inv-year {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .4em;
  text-transform: uppercase; padding-left: .4em;
}
.inv-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.inv-row span {
  font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: .24em;
  text-transform: uppercase; padding: 6px 0 4px; min-width: 88px;
  border-block: 1px solid rgba(139, 141, 92, .6);
}
.inv-row strong {
  font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--musgo);
  font-variant-numeric: lining-nums;
}

.invite-place {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: .04em;
}
.invite-actions { display: grid; justify-items: center; gap: 12px; text-align: center; }
.invite-note { font-size: 13px; color: var(--terra); max-width: 32ch; }

/* =========================================================
   SITE
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(14px + env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 14px;
  background: rgba(245, 245, 243, .86);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-color: var(--linha); }
.topbar-mono { color: var(--cafe); text-decoration: none; font-size: 34px; display: block; line-height: 1; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.nav a {
  font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cafe); text-decoration: none; padding: 6px 0 4px;
  border-bottom: 1px solid transparent; transition: border-color .25s, color .25s;
}
.nav a:hover { color: var(--musgo); border-color: var(--salvia); }
.nav-toggle {
  display: none;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  background: none; border: 1px solid var(--linha); color: var(--cafe);
  padding: 10px 16px 8px; border-radius: 999px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(calc(100svh - 64px), 940px);
  display: grid; place-items: center;
  padding: 72px 16px 88px;
  background: var(--noise), var(--off);
  text-align: center;
}
.hero-deco { position: absolute; pointer-events: none; }
.hero-deco--tl { width: clamp(220px, 34vw, 460px); top: -20px; left: -30px; }
.hero-deco--br { width: clamp(200px, 30vw, 420px); bottom: -24px; right: -30px; }
.hero-deco svg { width: 100%; height: auto; display: block; }

.hero-inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.hero-names {
  display: grid; justify-items: center;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.9rem, 9.5vw, 5.4rem); line-height: 1.15; color: var(--cafe); padding-bottom: .15em;
}
.hero-date {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  letter-spacing: .14em; color: var(--musgo); font-variant-numeric: lining-nums;
}
.hero-date i { font-style: normal; color: var(--salvia); }
.hero-place { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--terra); text-wrap: balance; }
.hero, .section { scroll-margin-top: 64px; }

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 10px;
  border-block: 1px solid var(--linha);
}
.countdown div { display: grid; gap: 2px; padding: 14px clamp(12px, 3vw, 28px); }
.countdown div + div { border-left: 1px solid var(--linha); }
.countdown span {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1; font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums; color: var(--cafe);
}
.countdown small { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); }

.js .site.is-in .hero-in { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.js .site.is-in .hero-in:nth-child(2) { animation-delay: .12s; }
.js .site.is-in .hero-in:nth-child(3) { animation-delay: .24s; }
.js .site.is-in .hero-in:nth-child(4) { animation-delay: .32s; }
.js .site.is-in .hero-in:nth-child(5) { animation-delay: .42s; }
.js .site.is-in .hero-in:nth-child(6) { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 11vw, 140px) 16px; }
.section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.005em;
}
.section-head { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 640px; margin: 0 auto; }
.section-lede { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--terra); max-width: 44ch; }
.head-sprig, .footer-sprig { width: 150px; }
.head-sprig svg, .footer-sprig svg, .arch-sprig svg { width: 100%; height: auto; display: block; }

/* História */
.story {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 100px); align-items: center;
}
.story-photo { position: relative; display: grid; justify-items: center; margin: 0; }
.arch {
  position: relative; overflow: hidden;
  width: min(100%, 380px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 4px 4px;
  background: var(--grao), #E9E8DC;
  background-blend-mode: multiply, normal;
  outline: 1px solid rgba(139, 141, 92, .5); outline-offset: 10px;
}
.arch img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 92%;
  object-fit: contain; object-position: center bottom;
  mix-blend-mode: multiply;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.story-photo:hover .arch img { transform: scale(1.03) rotate(-.6deg); }
.photo-note {
  font-family: var(--script); font-size: 1.7rem; line-height: 1; color: var(--terra);
  transform: rotate(-4deg); margin-top: 22px;
}
.arch-sprig { width: 46%; margin-top: 8px; position: relative; }

.story-text { display: grid; gap: 20px; min-width: 0; }
.story-text h2 { margin-top: -4px; }
.placeholder { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; color: var(--terra); max-width: 46ch; }

.timeline { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linha); }
.timeline li {
  display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 20px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--linha);
}
.tl-when { font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--musgo); }
.tl-what { font-family: var(--serif); font-size: 1.25rem; }

/* O grande dia */
.day {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(106, 84, 60, .4), transparent 70%),
    var(--noise), var(--cafe);
  color: var(--off);
}
.day .eyebrow { color: var(--salvia-claro); }
.info-grid {
  max-width: 1080px; margin: clamp(48px, 7vw, 80px) auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--linha-clara);
}
.info { display: grid; align-content: start; gap: 6px; padding: 28px clamp(16px, 2.4vw, 32px) 8px; }
.info + .info { border-left: 1px solid var(--linha-clara); }
.info dt { font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--salvia-claro); margin-bottom: 6px; }
.info dd { margin: 0; }
.info-main { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.info-sub { font-size: 14px; color: rgba(245, 245, 243, .7); }
.link-arrow {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--off); text-decoration: none; border-bottom: 1px solid var(--salvia); padding-bottom: 3px;
}
.link-arrow::after { content: " →"; letter-spacing: 0; }
.link-arrow:hover { color: var(--salvia-claro); }

/* Confirmação */
.rsvp-section { background: var(--noise), var(--papel); }
.rsvp {
  max-width: 520px; margin: clamp(40px, 6vw, 64px) auto 0;
  display: grid; gap: 26px;
}
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend {
  font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); padding: 0;
}
.field label em { font-style: normal; font-weight: 300; letter-spacing: .1em; text-transform: none; }
.field legend { margin-bottom: 10px; }
.field input[type="text"], .field select, .field textarea {
  font: 400 1.25rem/1.4 var(--serif); color: var(--cafe);
  background: transparent; border: 0; border-bottom: 1px solid rgba(51, 41, 27, .3);
  padding: 8px 2px; border-radius: 0; width: 100%;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--terra) 50%), linear-gradient(135deg, var(--terra) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--musgo); }
.field input::placeholder { color: rgba(106, 84, 60, .5); font-style: italic; }
.field.has-error input { border-color: #9B4A2F; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.field .choice { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--cafe); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; font-family: var(--serif); font-size: 1.15rem;
  padding: 10px 22px 9px; border-radius: 999px; border: 1px solid rgba(51, 41, 27, .25);
  transition: background .2s, color .2s, border-color .2s;
}
.choice input:checked + span { background: var(--musgo); border-color: var(--musgo); color: var(--off); }
.choice input:focus-visible + span { outline: 2px solid var(--salvia); outline-offset: 3px; }
.rsvp .btn { justify-self: start; }
.form-note { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--terra); }

/* Presentes */
.gifts { text-align: center; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.gifts .form-note { margin-top: 18px; }

/* Padrinhos */
.soon {
  font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--off); background: var(--salvia); padding: 7px 14px 5px; border-radius: 999px;
}

/* Rodapé */
.footer {
  background: var(--noise), var(--cafe); color: var(--off);
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 72px 16px calc(56px + env(safe-area-inset-bottom));
}
.footer-mono { font-size: 52px; color: var(--off); margin-bottom: 8px; }
.footer-names { font-family: var(--script); font-size: clamp(2rem, 6.5vw, 2.7rem); line-height: 1.2; }
.footer-date { font-family: var(--serif); letter-spacing: .2em; color: var(--salvia-claro); }
.link-btn {
  margin-top: 14px; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--off); border-bottom: 1px solid var(--salvia); padding: 4px 0;
}
.link-btn:hover { color: var(--salvia-claro); }

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--off); border-bottom: 1px solid var(--linha);
    padding: 8px 16px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0 12px; border-bottom: 1px solid var(--linha); font-size: 13px; }
  .nav a:last-child { border-bottom: 0; }

  .story { grid-template-columns: minmax(0, 1fr); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info:nth-child(3) { border-left: 0; }
  .info:nth-child(n+3) { border-top: 1px solid var(--linha-clara); }
}
@media (max-width: 520px) {
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info + .info { border-left: 0; border-top: 1px solid var(--linha-clara); }
  .info { padding: 24px 4px 20px; }
  .countdown div { padding: 12px 8px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .invite { padding: 40px 22px 36px; }
  .inv-row { gap: 10px; }
  .inv-row span { min-width: 74px; font-size: 10.5px; letter-spacing: .18em; }
  .rsvp .btn { justify-self: stretch; }
  .hero-place { font-size: 12px; letter-spacing: .2em; }
  .countdown div { padding: 12px 4px; }
  .countdown small { font-size: 9px; letter-spacing: .12em; }
  .btn { letter-spacing: .18em; padding: 15px 22px 13px; }
  .arch { width: 84%; }
  .section { padding-block: 72px; }
  .hero { padding: 56px 16px 72px; }
  .hero-inner { gap: 14px; }
  .topbar-mono { font-size: 30px; }
  .invite-mono { font-size: 54px; }
  .inv-row strong { font-size: 2.4rem; }
  .photo-note { font-size: 1.5rem; }
  .env-hint { font-size: 10.5px; letter-spacing: .22em; text-align: center; }
}

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


/* ---- v4: convite horizontal, aviso de giro, novas seções ---- */

.stage-invite .invite-wrap { width: min(100%, 940px, calc((100vh - 150px) * 1.43)); }
.invite-card {
  display: block; width: 100%; height: auto; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(60, 50, 35, .18), 0 18px 40px -12px rgba(60, 50, 35, .35);
}
.stage-invite.is-entering .invite-card { animation: inviteIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }


.ride-note {
  max-width: 640px; margin: 36px auto 0; padding: 18px 22px; text-align: center; display: grid; gap: 4px;
  border: 1px solid rgba(139, 141, 92, .7); background: rgba(139, 141, 92, .14); color: var(--off);
}
.ride-note strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--off); }
.ride-note span { font-size: 14px; color: rgba(245, 245, 243, .85); }
.inspo { max-width: 820px; margin: 44px auto 0; text-align: center; display: grid; gap: 16px; }
.inspo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.inspo-ph {
  aspect-ratio: 3 / 4; display: grid; place-items: center; font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--terra); border: 1px dashed rgba(106, 84, 60, .4); background: rgba(139, 141, 92, .07);
}
@media (max-width: 520px) { .inspo-grid { grid-template-columns: repeat(2, 1fr); } }
.guide-grid { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card {
  display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 20px;
  border: 1px solid rgba(139, 141, 92, .45); outline: 1px solid rgba(139, 141, 92, .25); outline-offset: -8px; background: rgba(139, 141, 92, .08);
}
.guide-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--cafe); }
.guide-card p { font-family: var(--serif); font-size: 1.05rem; color: var(--terra); max-width: 28ch; }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }

.lede-1 { white-space: nowrap; font-size: clamp(.82rem, 3.6vw, 1.2rem); }
.day .inspo-ph { color: rgba(245, 245, 243, .75); border-color: rgba(245, 245, 243, .35); background: rgba(245, 245, 243, .05); }
.guide .section-head { margin-bottom: clamp(36px, 6vw, 56px); }
.guide-links { display: grid; gap: 10px; justify-items: center; }
.guide-card { align-content: start; }
.guide-card .soon { align-self: start; margin-top: 6px; }
.guide-card .link-arrow { color: var(--musgo); border-bottom-color: var(--salvia); }
.guide-card .link-arrow:hover { color: var(--cafe); }
.guide-card p.wide { max-width: none; }

/* ---------- Envelope horizontal (mesma proporção do convite) e selo verde liso ---------- */
.envelope {
  --ew: min(86vw, 640px, calc((100vh - 90px) / 1.75 * 1.4));
  --eh: calc(var(--ew) / 1.4);
}
.envelope.flap-open { transform: translateY(calc(var(--eh) * .3)); }
.env-letter { left: 3.5%; right: 3.5%; top: 5%; height: auto; padding: 0; display: block; }
.env-letter img { display: block; width: 100%; height: auto; }
.envelope.letter-up .env-letter { transform: translateY(-58%); }
.env-front { clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); }
.env-flap { height: 58%; }
.env-seal { top: 58%; width: calc(var(--ew) * .15); }
.env-tag { width: 300%; height: 30%; transform: translate(8%, -50%) rotate(-24deg) translateY(-15%); }
.envelope.seal-broken .env-tag { transform: translate(8%, -50%) rotate(-24deg) translateY(-15%) translateX(12%); }
.env-tag-name { font-size: calc(var(--ew) * .036); }
.seal-half { clip-path: none; }
.seal-shadow { inset: 10%; box-shadow: 0 1px 2px rgba(40, 40, 20, .25), 0 4px 8px rgba(40, 40, 20, .12); }
.envelope.seal-broken .seal-half { transform: scale(.85); opacity: 0; }
@media (max-height: 500px) { .stage-invite .invite-wrap { width: min(100%, calc((100vh - 60px) * 1.4)); } }
.invite-note { max-width: none; white-space: nowrap; font-size: clamp(11px, 3.2vw, 13px); }

/* Celular em pé: só o convite abre deitado (girado 90°); nome e botão ficam em pé */
@media (orientation: portrait) and (max-width: 820px) {
  .stage-invite { padding: 20px 16px; gap: 0; }
  .stage-invite .invite-wrap {
    --ch: min(calc(100vw - 32px), calc((100svh - 230px) / 1.4));
    --cw: calc(var(--ch) * 1.4);
    width: auto; gap: 18px;
  }
  .stage-invite .invite-card {
    width: var(--cw); max-width: none;
    transform: rotate(90deg);
    margin: calc((var(--cw) - var(--ch)) / 2) calc((var(--ch) - var(--cw)) / 2);
  }
  .stage-invite.is-entering .invite-card { animation: none; }
}

/* Nossa história: texto */
.story-chapter { display: grid; gap: 12px; max-width: 58ch; }
.story-chapter + .story-chapter { padding-top: 20px; border-top: 1px solid var(--linha); }
.story-chapter h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--musgo); margin: 0; }
.story-chapter p { margin: 0; line-height: 1.7; }

/* Transporte e traje dentro do Guia (fundo claro) */
.guide .ride-note { margin-top: 44px; color: var(--cafe); background: rgba(139, 141, 92, .1); }
.guide .ride-note strong { color: var(--cafe); }
.guide .ride-note span { color: var(--terra); }
.guide .inspo .eyebrow { color: var(--musgo); }
