/* =========================================================
   CASAMENTO GI & GU — estilos
   Abertura, convite e local seguem o protótipo (cinza + rosa + moldura dourada);
   o resto do site usa verde oliva, com os tons da ID visual.
   Fundo branco com a textura de papel da ID bem clara.
   ========================================================= */

@font-face { font-family: 'Maratre'; src: url('../fonts/Maratre.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/Cormorant-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/Cormorant-Medium.otf') format('opentype'); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;          /* fundo branco; a textura clara entra por cima (multiply) */
  --card: #ffffff;
  --ink: #555555;          /* textos: cinza (antes verde-escuro) */
  --text: #6a6a6a;
  --muted: #7c7c7c;
  --olive: #6e7241;
  --olive-dark: #545832;
  --sage: #a4a883;
  --blush: #dfb0a3;
  --gold: #b99c7a;
  --line: rgba(110, 114, 65, .26);
  --offwhite: #f8f4ec;

  /* protótipo */
  --grey: #7c7c7c;        /* 10% mais escuro */
  --grey-dark: #6a6a6a;   /* 10% mais escuro */
  --rose: #c9a2a3;
  --rose-dark: #b88e90;

  --script: 'Maratre', 'Snell Roundhand', cursive;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --caps: 'Cormorant SC', 'Cormorant', Georgia, serif;

  --nav-h: 68px;
  --paper-size: 1020px auto;   /* textura de papel claro */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* impede o "modo escuro automático" de navegadores de celular de apagar/inverter o fundo de papel */
:root { color-scheme: only light; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--paper);
  background-image: url('../img/papel-fundo.jpg');
  background-size: var(--paper-size);
  background-repeat: repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked, body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; }
[hidden] { display: none !important; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
.container--narrow { width: min(560px, 100% - 32px); }

.script { font-family: var(--script); font-weight: 400; }

/* ---------- tipografia base ---------- */
.eyebrow {
  font-family: var(--serif);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .5rem;
}
.eyebrow--light { color: rgba(248, 244, 236, .78); }

.title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.3;
  color: var(--grey);
  margin: 0 0 .4rem;
  padding: .1em .15em 0;
}
.title--sm { font-size: clamp(2.2rem, 5vw, 3rem); }
.title--light { color: var(--offwhite); }

.lead { font-size: 1rem; color: var(--muted); max-width: 34em; margin-inline: auto; }

.section { position: relative; padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.9em;
  font-family: var(--serif); font-weight: 500; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--olive); border-radius: 0;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--olive { background: var(--olive); color: var(--offwhite); }
.btn--olive:hover { background: var(--olive-dark); border-color: var(--grey-dark); }
.btn--line { background: transparent; color: var(--grey); }
.btn--line:hover { background: var(--olive); color: var(--offwhite); }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--offwhite); border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* botão rosa arredondado do protótipo */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .5em 2.4em; border: 0; border-radius: 999px;
  background: var(--olive); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--caps); font-size: 1rem; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(70, 74, 40, .22);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pill:hover { background: var(--olive-dark); transform: translateY(-1px); }

.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--grey);
  font-size: 1rem; cursor: pointer; transition: background .3s, color .3s;
}
.round-btn:hover { background: var(--olive); color: var(--offwhite); }

/* ---------- revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* tulipas (abertura e início) */
.tulip { position: absolute; pointer-events: none; width: auto; height: clamp(240px, 58vh, 480px); }
.tulip--l { left: max(-70px, calc(50% - 600px)); transform-origin: bottom left; animation: sway 5.5s ease-in-out infinite alternate; }
.tulip--r { right: max(-70px, calc(50% - 600px)); transform-origin: bottom center; animation: sway-r 5.5s ease-in-out infinite alternate; }
@keyframes sway   { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes sway-r { from { transform: scaleX(-1) rotate(-2deg); } to { transform: scaleX(-1) rotate(2deg); } }

/* =========================================================
   ABERTURA
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px 16px;
  background-color: var(--paper);
  background-image: url('../img/papel-fundo.jpg');
  background-size: var(--paper-size); background-blend-mode: multiply;
  overflow: hidden;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
.intro .tulip { top: 50%; margin-top: calc(clamp(240px, 58vh, 480px) / -2); }
.intro.is-leaving { opacity: 0; transform: translateY(-3%); pointer-events: none; }
.intro__card { position: relative; text-align: center; max-width: 420px; animation: rise 1.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.intro__mono { width: clamp(56px, 9vw, 72px); margin: 0 auto 1.4rem; }
.intro__names { font-family: var(--script); font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1.25; color: var(--grey); margin: 0; }
.intro__date { font-family: var(--caps); font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--grey-dark); margin: .3rem 0 1.8rem; letter-spacing: .02em; }
.intro__hint { font-style: italic; font-size: .88rem; color: var(--grey); margin: .9rem 0 0; }

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 4vw, 44px);
  transition: background .4s, box-shadow .4s, transform .6s var(--ease);
}
.is-locked .nav { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.nav__brand { transition: opacity .4s; }
.nav:not(.is-scrolled):not(.is-open) .nav__brand { opacity: 0; pointer-events: none; }   /* no topo, o monograma já está no início */
.nav__brand img { width: 44px; height: 44px; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a {
  position: relative; text-decoration: none; color: var(--grey-dark);
  font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; padding: 6px 0;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }
/* sem barra de menu na rolagem: nada de fundo, sombra ou monograma, só o ícone */
.nav, .nav.is-scrolled { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.nav__brand { display: none !important; }
.nav__toggle, .nav.is-open .nav__links { pointer-events: auto; }
.nav { justify-content: flex-end; }

/* menu só com o ícone (os risquinhos), em todas as telas; os links abrem por cima da página */
@media all {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px; position: relative; z-index: 2;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--grey-dark); transition: transform .4s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    background-color: var(--paper); background-image: url('../img/papel-fundo.jpg'); background-size: var(--paper-size); background-blend-mode: multiply;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-size: .82rem; }
  .nav__brand { position: relative; z-index: 2; }
}

/* =========================================================
   MÚSICA
   ========================================================= */
/* player igual ao do site da Valentina (pílula com equalizador + "Música"), em rosa */
.music {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 16px;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 99px;
  background: rgba(110, 114, 65, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; cursor: pointer;
  box-shadow: 0 10px 30px rgba(50, 54, 25, .25);
  transition: background .3s;
}
.music:hover { background: var(--olive-dark); }
.music__label { font-family: var(--serif); font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.music__bars i { width: 2px; height: 30%; background: #fff; border-radius: 2px; }
.music.is-playing .music__bars i { animation: eq 1s ease-in-out infinite; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: -.3s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: -.6s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* player do YouTube fica fora da tela */
.yt-holder { position: fixed; left: -9999px; bottom: 0; width: 200px; height: 200px; overflow: hidden; opacity: 0; pointer-events: none; }

/* =========================================================
   1. INÍCIO — monograma, Gi e Gu, data, tulipas
   ========================================================= */
.hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: clamp(400px, 78vh, 700px);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 8px) 16px 48px;
}
.hero .tulip { top: 50%; margin-top: calc(clamp(240px, 58vh, 480px) / -2 + 20px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 38%; opacity: .22; filter: saturate(.75); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%); }
.hero > :not(.hero__bg) { position: relative; z-index: 1; }
.hero__stage { display: contents; }   /* no celular o palco não existe; no computador vira a composição do print */
.hero__content { position: relative; z-index: 1; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero__mono { width: clamp(74px, 10vw, 98px); margin: 0 auto clamp(40px, 7vh, 70px); }
.hero__names { font-family: var(--script); font-weight: 400; font-size: clamp(3.2rem, 8.6vw, 5.3rem); line-height: 1.2; color: var(--grey); margin: 0; padding: 0 .1em; }
.hero__date { font-family: var(--caps); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--grey-dark); margin: 0; letter-spacing: .02em; }
.garden-open .hero__content > * { animation: rise 1.4s var(--ease) both; }
.garden-open .hero__names { animation-delay: .15s; }
.garden-open .hero__date { animation-delay: .3s; }

/* =========================================================
   2. CONVITE — cartão sobre a estampa
   ========================================================= */
.convite {
  padding: clamp(36px, 7vw, 80px) 16px;
  background-color: #fff;
  background-image: url('../img/estampa.jpg'), url('../img/papel-fundo.jpg');
  background-size: 420px auto, var(--paper-size);
  background-position: center top, 0 0;
  background-blend-mode: multiply;
}
.convite__card {
  position: relative; width: min(620px, 72%); margin: 0 auto; text-align: center;
  padding: clamp(26px, 4.5vw, 48px) clamp(16px, 4vw, 52px);
  background: #fff url('../img/papel-claro.jpg') center / cover no-repeat;
  font-family: var(--caps); font-size: clamp(.8rem, 1.5vw, .98rem); line-height: 1.55; color: var(--grey-dark);
}
.convite__card p { margin: 0; }
.convite__sign { position: relative; display: inline-block; margin-top: 1.2em !important; }
.convite__butterfly { position: absolute; width: clamp(24px, 3.4vw, 36px); left: calc(100% + 14px); top: -40%; transform: rotate(-8deg); animation: flutter 4s ease-in-out infinite; }
@keyframes flutter { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-4px); } }

/* =========================================================
   3. O CASAMENTO — moldura dourada da ID
   Tudo dentro da moldura usa "cqw" (1% da largura da moldura),
   então as proporções do protótipo se mantêm no celular e no computador.
   ========================================================= */
.casamento { position: relative; padding: clamp(28px, 5vw, 64px) 12px clamp(22px, 3.5vw, 44px); }
.moldura-wrap { width: min(500px, 100%); margin: 0 auto; container-type: inline-size; }
.moldura {
  aspect-ratio: 1000 / 1752;
  background: url('../img/moldura.png') center / 100% 100% no-repeat;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36.5cqw 12cqw 0;
  color: var(--grey-dark);
}
.moldura p { margin: 0; }
.moldura__traje { display: none; }
.moldura__eyebrow { font-family: var(--caps); font-size: 4.5cqw; line-height: 1.2; }
.moldura__title { font-family: var(--script); font-weight: 400; font-size: var(--section-title); line-height: 1.3; color: var(--grey); margin: 1.4cqw 0 0; }
.moldura__date { font-family: var(--caps); font-size: 3.8cqw; line-height: 1.2; margin-top: 1.4cqw !important; }
.moldura__art { width: 60cqw; margin: 3.6cqw 0 0; mix-blend-mode: multiply; }   /* o fundo claro da ilustração some no papel */
.moldura__addr { font-family: var(--caps); font-size: 3.3cqw; line-height: 1.35; margin-top: 4.2cqw !important; }
.moldura .pill { margin-top: 4.4cqw; min-height: 0; height: 8.4cqw; padding: 0 6.4cqw; font-size: 3.5cqw; }

.traje { max-width: 560px; margin: clamp(25px, 4.2vw, 42px) auto 0; text-align: center; color: var(--grey-dark); }
.traje__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1.3; color: var(--grey); margin: 0 0 .5rem; }
/* mesmo tamanho dos textos do RSVP (2,7% da largura do bloco do RSVP) */
.traje p { font-family: var(--caps); font-size: calc(min(100vw, 700px) * .027); line-height: 1.6; margin: 0; }

/* computador: moldura deitada, ilustração à esquerda e informações à direita */
@media (min-width: 900px) {
  .moldura-wrap { width: min(1200px, 100%); }
  .moldura {
    aspect-ratio: 1800 / 1028;
    background-image: url('../img/moldura-h.png');
    display: grid; grid-template-columns: 30cqw 26cqw; column-gap: 3cqw;
    justify-content: center; align-content: center; justify-items: center;
    padding: 0;
  }
  .moldura > * { grid-column: 2; }
  .moldura__art { grid-column: 1; grid-row: 1 / span 5; align-self: center; width: 100%; margin: 0; }
  .moldura__eyebrow { font-size: 2.05cqw; }
  .moldura__title { font-size: 4.5cqw; margin-top: .3cqw; }
  .moldura__date { font-size: 1.7cqw; margin-top: .3cqw !important; }
  .moldura__addr { font-size: 1.35cqw; margin-top: 1.6cqw !important; }   /* mesmo tamanho do texto do traje */
  .moldura .pill { margin-top: 1.9cqw; height: 4cqw; padding: 0 3.4cqw; font-size: 1.65cqw; }
  /* traje dentro da moldura, embaixo, ocupando as duas colunas */
  .moldura__traje { display: block; grid-column: 1 / -1; grid-row: 6; margin-top: 1.6cqw; max-width: 56cqw; justify-self: center; text-align: center; }
  .moldura__traje-title { font-family: var(--script); font-size: 3.8cqw; line-height: 1.25; color: var(--grey); }
  .moldura__traje p:not(.moldura__traje-title) { font-family: var(--caps); font-size: 1.15cqw; line-height: 1.55; margin-top: .4cqw; }
  .traje { display: none; }   /* no computador o traje já está dentro da moldura */
  /* computador: confirmação mais perto do local */
  .casamento { padding-bottom: 8px; }
  .rsvp { margin-top: -40px; }
}

/* contagem regressiva — pequena, embaixo do "Gi e Gu" */
.hero__cd { margin-top: auto; padding-top: clamp(40px, 8vh, 90px); }
.hero__cd-title { font-family: var(--script); font-size: clamp(1.9rem, 3.2vw, 2.3rem); line-height: 1.3; color: var(--grey); margin: 0; }
.cd { display: flex; justify-content: center; margin-top: .15rem; }
.cd__unit { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 0 10px; }
.cd__unit + .cd__unit { border-left: 1px solid rgba(0, 0, 0, .12); }
.cd__num { font-family: var(--caps); font-size: 1.12rem; line-height: 1.15; color: var(--grey-dark); font-variant-numeric: lining-nums tabular-nums; }
.cd__lbl { font-family: var(--caps); font-size: .66rem; line-height: 1.2; color: var(--grey); margin-top: .1rem; }

/* =========================================================
   4. NOSSA HISTÓRIA
   ========================================================= */
.historia { padding-bottom: clamp(16px, 3vw, 36px); }
.dicas { padding-top: clamp(56px, 7vw, 90px); }   /* mais respiro entre a história e as dicas */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco--hist-r { width: clamp(100px, 13vw, 180px); right: -30px; top: 60px; opacity: .9; }

.story__lead { font-style: italic; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; color: var(--ink); max-width: 30em; margin: 1rem auto 0; }

/* história em linha do tempo: linha no centro, capítulos alternando os lados */
.chapters { position: relative; list-style: none; margin: 0 auto clamp(10px, 2vw, 24px); padding: 0; max-width: 900px; }
.chapters::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 0; width: 1px; background: linear-gradient(var(--line) 85%, transparent); }
.chapter { position: relative; width: 50%; padding: 0 clamp(28px, 4vw, 52px) clamp(30px, 4vw, 46px) 0; text-align: right; }
.chapter:nth-child(even) { margin-left: 50%; padding: 0 0 clamp(30px, 4vw, 46px) clamp(28px, 4vw, 52px); text-align: left; }
.chapter::before { content: ""; position: absolute; top: 5px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); }
.chapter:nth-child(even)::before { right: auto; left: -4px; }
.chapter__when { display: block; font-family: var(--caps); font-size: .95rem; color: var(--gold); line-height: 1.2; }
.chapter__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.5rem, 4.4vw, 3.1rem); line-height: 1.3; color: var(--grey); margin: .1rem 0 .35rem; }
.chapter p { margin: 0; font-size: .82rem; line-height: 1.7; color: var(--grey-dark); }
/* blocos encaixados: cada um começa na altura da última linha do anterior (posições calculadas no main.js) */
.chapters.is-stacked .chapter { position: absolute; left: 0; margin: 0; padding-bottom: 0; }
.chapters.is-stacked .chapter:nth-child(even) { left: 50%; margin-left: 0; }
.chapter__when { font-size: .88rem !important; }
.chapter--final { width: auto; margin: 0 auto !important; padding: 26px 0 0 !important; text-align: center !important; max-width: 420px; background: var(--paper); }
.chapter--final::before { display: none; }
.chapter__rings { width: 74px; margin: 0 auto .5rem; }
.chapters::before { background: var(--line) !important; bottom: 0 !important; }
.chapters__guide { position: absolute; left: 50%; top: 0; width: 0; height: 100%; list-style: none; pointer-events: none; }
.chapters__butterfly { position: absolute; left: 0; top: 0; width: 60px; max-width: none;  transform: translate(-50%, 0); z-index: 2; will-change: transform; }
.historia .section__head .title { font-size: clamp(3rem, 7vw, 4.4rem); color: var(--grey); }

.polaroid {
  background: #fff; padding: 12px 12px 0; box-shadow: 0 14px 36px rgba(70, 74, 40, .14), 0 1px 3px rgba(70, 74, 40, .1);
  max-width: 320px; margin-inline: auto;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { font-style: italic; font-size: .98rem; line-height: 1.3; color: var(--grey); text-align: center; padding: 12px 6px 14px; }
.polaroid--tilt { transform: rotate(-3deg); }
.polaroid--tilt-r { transform: rotate(2.5deg); }

.story__end { font-family: var(--serif); font-size: .92rem; line-height: 1.75; color: var(--text); text-align: center; max-width: 38em; margin: 0 auto; }

/* linha do tempo */
/* galeria: faixa rosa com as polaroids alternando altura */
.galeria { background-color: var(--sage); background-image: url('../img/papel-fundo.jpg'); background-size: var(--paper-size); background-blend-mode: multiply; padding: clamp(44px, 7vw, 80px) 0; overflow: hidden; }
.timeline {
  display: flex; align-items: center; gap: clamp(24px, 3.4vw, 46px); overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y;
  padding: 30px clamp(20px, 4vw, 60px);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; user-select: none;
}
.timeline.is-dragging { cursor: grabbing; }
.timeline::-webkit-scrollbar { display: none; }
.timeline img { -webkit-user-drag: none; pointer-events: none; }
.moment { flex: 0 0 clamp(172px, 22vw, 265px); position: relative; margin: 0; cursor: zoom-in; }
/* alterna a altura em volta do centro, para as fotos ficarem no meio da faixa rosa */
.moment:nth-child(odd) { top: 18px; }
.moment:nth-child(even) { top: -18px; }
.moment .polaroid { background: #fff; padding: 9px 9px 0; max-width: none; box-shadow: 0 10px 24px rgba(110, 70, 70, .18); transition: transform .5s var(--ease); }
.moment:nth-child(odd) .polaroid { transform: rotate(1.2deg); }
.moment:nth-child(even) .polaroid { transform: rotate(-1.4deg); }
.moment:hover .polaroid, .moment:focus-visible .polaroid { transform: rotate(0) translateY(-4px); }
.moment .polaroid img { aspect-ratio: 3 / 4; }
.moment .polaroid figcaption { font-family: var(--caps); font-style: normal; font-size: .88rem; color: var(--grey); padding: 8px 6px 10px; min-height: 0; }
.moment:focus-visible { outline: none; }

.band {
  height: clamp(80px, 10vw, 120px);
  background: url('../img/estampa.jpg') center top / 380px auto repeat;
}

/* =========================================================
   5. DICAS
   ========================================================= */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); max-width: 900px; margin: 0 auto; }
.tip {
  position: relative; text-align: center; padding: clamp(30px, 4vw, 44px) clamp(20px, 3.5vw, 38px);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line);
}
.tip__art { height: 120px; width: auto; margin: 0 auto .8rem; }
.tip__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.1rem, 3.8vw, 2.6rem); line-height: 1.3; color: var(--grey); margin: 0 0 1rem; }
/* dicas na página principal: só ícone + botão */
.tips--links { max-width: 640px; }
.tips.tips--links { grid-template-columns: 1fr 1fr; }   /* lado a lado no celular, no iPad e no computador */
/* texto das dicas: cinza, em versalete e no mesmo tamanho do texto do convite */
.dicas .lead { font-family: var(--caps); font-size: clamp(.8rem, 1.5vw, .98rem); line-height: 1.55; color: var(--grey-dark); }
.tip-link { display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; }
.tip-link__art { height: clamp(110px, 16vw, 150px); width: auto; transition: transform .5s var(--ease); }
.tip-link:hover .tip-link__art { transform: translateY(-4px) rotate(-2deg); }
.tip-link .pill { min-width: 220px; }

/* páginas de dicas (hospedagem / beleza) */
.dica { max-width: 560px; margin: 0 auto; padding: clamp(36px, 7vw, 64px) 20px clamp(56px, 9vw, 90px); text-align: center; }
.dica__mono img { width: 60px; margin: 0 auto clamp(22px, 4vw, 36px); }
.dica__art { height: clamp(110px, 18vw, 150px); width: auto; margin: 0 auto 10px; }
.dica__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1.3; color: var(--grey); margin: 0; }
.dica__lead { font-family: var(--caps); font-size: .92rem; color: var(--grey-dark); margin: .4rem auto clamp(24px, 4vw, 36px); max-width: 30em; }
.dica__lead--longo { font-size: .8rem; line-height: 1.6; }
.dica__list { margin-bottom: clamp(30px, 5vw, 44px); }
.dica__back { padding: .5em 2.4em; }
.tip__list { list-style: none; margin: 0; padding: 0; text-align: left; }
.tip__list li + li { border-top: 1px solid var(--line); }
.tip__list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 4px; text-decoration: none; transition: padding .35s var(--ease); }
.tip__list a:hover { padding-left: 10px; }
.tip__name { display: block; font-weight: 500; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.tip__where { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.tip__go { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--grey); font-size: .9rem; transition: background .3s, color .3s; }
.tip__list a:hover .tip__go { background: var(--olive); color: var(--offwhite); }

/* =========================================================
   6. PRESENTES
   ========================================================= */
.presentes {
  position: relative; overflow: hidden; text-align: left;
  background-color: var(--olive); background-image: url('../img/papel-fundo.jpg'); background-size: var(--paper-size); background-blend-mode: multiply;
  color: #fff;
}
/* celular: proporção do print (647 x 389), tudo em % da largura */
.presentes__stage { position: relative; width: min(100%, 1000px); margin: 0 auto; aspect-ratio: 647 / 389; container-type: inline-size; }
.presentes__content { position: relative; z-index: 1; width: 62cqw; padding: 9.5cqw 0 9cqw 5.25cqw; }
.presentes__title { font-family: var(--script); font-weight: 400; font-size: 10.6cqw; line-height: 1.2; color: #fff; margin: 0; }
.presentes__text { font-family: var(--caps); font-size: max(1.85cqw, .65rem); line-height: 1.5; color: rgba(255, 255, 255, .95); margin: 3.4cqw 0 0; }
.presentes__gift { position: absolute; z-index: 0; width: 48cqw; height: auto; right: -8cqw; bottom: -7cqw; pointer-events: none; }
.gift-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8cqw; height: max(8.4cqw, 40px); padding: 0 max(4.6cqw, 22px); border-radius: 999px;
  background: var(--offwhite); color: var(--olive); text-decoration: none;
  font-family: var(--caps); font-size: max(3.1cqw, .9rem); letter-spacing: .02em;
  transition: background .3s, transform .3s var(--ease);
}
.gift-btn:hover { background: #fff; transform: translateY(-1px); }
.gift-btn.is-soon { cursor: default; }
@media (min-width: 900px) {
  /* computador: mesmo arranjo, com fonte e presente bem menores */
  .presentes__stage { aspect-ratio: auto; width: min(100% - 48px, 960px); }
  .presentes__content { width: 56%; padding: 72px 0 84px 20px; }
  .presentes__title { font-size: clamp(2.4rem, 5vw, 3.2rem); }   /* igual aos outros títulos */
  .presentes__text { font-size: .86rem; margin-top: 14px; max-width: 30em; }   /* computador mantém */
  .gift-btn { margin-top: 30px; height: 44px; padding: 0 28px; font-size: .95rem; }
  .presentes__gift { width: 400px; right: calc(50cqw - 50vw - 80px); bottom: -60px; }   /* sai pela borda da tela */
}

/* =========================================================
   7. RSVP + formulários
   ========================================================= */
/* RSVP — reproduz o protótipo. O "palco" tem a proporção do print (448 x 390)
   e tudo dentro dele é medido em cqw (1% da largura do palco). */
.rsvp { position: relative; overflow: hidden; }
.rsvp__stage { position: relative; width: min(100%, 700px); margin: 0 auto; aspect-ratio: 448 / 390; container-type: inline-size; }
.rsvp__title {
  position: absolute; left: 0; right: 0; top: 11.2cqw; transform: translateY(-50%);
  font-family: var(--script); font-weight: 400; font-size: 10.6cqw; line-height: 1.25; color: var(--grey); text-align: center; margin: 0;
}
.rsvp__deadline { position: absolute; left: 0; right: 0; top: 17cqw; margin: 0; text-align: center; font-family: var(--caps); font-size: 2.6cqw; color: var(--grey); }
.rsvp__bird { position: absolute; z-index: 0; pointer-events: none; height: 66cqw; width: auto; max-width: none; top: 19cqw; right: -7cqw; }
.rsvp__form, .rsvp .rsvp__done { position: relative; z-index: 1; width: 46.4cqw; margin-left: 9cqw; padding-top: 23.8cqw; padding-bottom: 7cqw; }
.rsvp .field { margin: 0; }
.rsvp .field label { display: block; font-family: var(--caps); font-weight: 400; font-size: 2.7cqw; line-height: 1; letter-spacing: .02em; text-transform: none; color: var(--grey-dark); margin: 0; }
.rsvp .field--line { margin-bottom: 4.1cqw; }
.rsvp .field--line + .field--select { margin-top: 2.6cqw; }
.rsvp .field--line input {
  display: block; font-family: var(--caps); font-size: 2.9cqw; color: var(--grey-dark);
  height: 3.4cqw; padding: 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .25); border-radius: 0; background: transparent;
}
.rsvp .field--line input:focus { border-bottom-color: var(--olive); }
.rsvp .field--select label { font-size: 2.7cqw; margin-bottom: 2.4cqw; }
.rsvp .field select {
  display: block; width: 100%; height: 9cqw; font-family: var(--caps); font-size: 2.9cqw; color: var(--grey-dark);
  border: 1px solid rgba(0, 0, 0, .25); border-radius: 0; padding: 0 9cqw 0 3.2cqw;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='%23777' stroke-width='1.3'/%3E%3C/svg%3E") right 3cqw center / 4.2cqw auto no-repeat;
}
.rsvp .field select:focus { border-color: var(--olive); }
.rsvp .companions { margin-top: 3cqw; }
.rsvp .field--sub { margin: 0 0 3cqw; }
.rsvp .field--sub label { font-size: 2.6cqw; }
.rsvp .field--sub input { width: 100%; font-family: var(--caps); font-size: 2.9cqw; height: 4.4cqw; padding: 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .25); background: transparent; }
.rsvp .pill { margin-top: 5.3cqw; height: 9.4cqw; min-height: 0; padding: 0; font-size: 3.2cqw; box-shadow: none; }
.rsvp .form__error { font-size: 2.6cqw; min-height: 0; margin: 2cqw 0 0; }
.rsvp .rsvp__done { text-align: center; background: transparent; border: 0; }
.rsvp .rsvp__done h3 { font-size: 7cqw; color: var(--grey); }
.rsvp .rsvp__done p { font-family: var(--caps); font-size: 2.8cqw; color: var(--grey-dark); }
.rsvp .rsvp__done .pill { padding: 0 5cqw; }
.pill--wide { width: 100%; }
.pill:disabled { opacity: .6; cursor: default; }
.pill.is-loading { position: relative; color: transparent; }
.pill.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff; border-right-color: transparent; animation: spin .8s linear infinite; }
.deco--rsvp-l { width: clamp(150px, 19vw, 280px); left: -60px; bottom: -40px; }
.deco--rsvp-r { width: clamp(90px, 10vw, 150px); right: -20px; top: 40px; transform: scaleX(-1); }

.form { position: relative; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); padding: clamp(24px, 4.5vw, 42px); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: .45em 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e7241' stroke-width='1.3'/%3E%3C/svg%3E") right 4px center no-repeat;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--grey); }
.field input::placeholder { color: #b3b49c; }
.field .is-invalid, .field input.is-invalid { border-bottom-color: #b5654f; }
.field--sub { margin: .9rem 0 0 1rem; }
.field__count { display: block; text-align: right; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.companions:empty { display: none; }
.form__error { color: #a4553f; font-size: .92rem; min-height: 1.4em; margin: 0 0 .9rem; }

.rsvp__done { text-align: center; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); padding: clamp(32px, 5vw, 50px); }
.rsvp__done img { width: 76px; margin: 0 auto .5rem; }
.rsvp__done h3 { font-size: clamp(2.3rem, 5vw, 2.9rem); font-weight: 400; color: var(--grey); margin: 0 0 .3rem; line-height: 1.3; }

/* =========================================================
   8. MURAL DE RECADOS
   ========================================================= */
/* mural no visual da primeira parte: papel, cinza, rosa e flores da ID */
.mural { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 16px clamp(64px, 9vw, 110px); }
.mural__arte { display: block; width: auto; height: clamp(84px, 11vw, 110px); margin: 0 auto 10px; }
.mural__inner { position: relative; z-index: 1; width: min(880px, 100%); margin: 0 auto; text-align: center; }
.mural__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.2rem); line-height: 1.3; color: var(--grey); margin: 0; }
.mural__lead { font-family: var(--caps); font-size: clamp(.8rem, 1.5vw, .98rem); color: var(--grey-dark); margin: .3rem 0 clamp(38px, 6vw, 58px); }
.mural__form { width: min(420px, 100%); margin: 0 auto clamp(40px, 6vw, 64px); text-align: left; }
.mural .field { margin-bottom: 1.3rem; }
.mural .field label { display: block; font-family: var(--caps); font-weight: 400; font-size: .82rem; letter-spacing: .02em; text-transform: none; color: var(--grey-dark); margin: 0; }
.mural .field input, .mural .field textarea {
  display: block; width: 100%; font-family: var(--caps); font-size: .92rem; color: var(--grey-dark);
  border: 0; border-bottom: 1px solid rgba(0, 0, 0, .25); border-radius: 0; background: transparent; padding: .3em 0; resize: none;
}
.mural .field textarea { min-height: 3.4em; }
.mural .field input:focus, .mural .field textarea:focus { outline: none; border-bottom-color: var(--olive); }
.mural .field__count { font-family: var(--caps); font-size: .72rem; color: var(--grey); }
.mural .pill { min-height: 44px; }
.mural .form__error { font-family: var(--caps); font-size: .8rem; margin: .8rem 0 0; text-align: center; }

/* recadinhos: cartões de papel claro presos por uma borboleta */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 24px; text-align: center; }
.note {
  position: relative; margin: 0; padding: 30px 20px 20px;
  background: #fff url('../img/papel-claro.jpg') center / cover;
  box-shadow: 0 10px 26px rgba(90, 80, 70, .12); transform: rotate(var(--r, 0deg));
}
.note__pin { position: absolute; width: 34px; top: -14px; left: 50%; margin-left: -17px; }
.note blockquote { margin: 0 0 .7rem; font-family: var(--caps); font-size: .86rem; line-height: 1.55; color: var(--grey-dark); }
.note figcaption { font-family: var(--script); font-size: 1.5rem; color: var(--olive); line-height: 1.2; }
.note.is-new { animation: noteIn .8s var(--ease); }
@keyframes noteIn { from { opacity: 0; transform: translateY(-14px) rotate(0); } }
.notes__empty { grid-column: 1 / -1; text-align: center; font-family: var(--caps); font-size: .86rem; color: var(--grey); }
/* com um recado só, ele fica centralizado (no celular e no computador) */
.note:only-child { grid-column: 1 / -1; justify-self: center; width: min(320px, 100%); margin-inline: auto; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { text-align: center; padding: clamp(52px, 7vw, 80px) 16px calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__mono { width: 72px; margin: 0 auto .7rem; }
.footer__names { font-size: 2.6rem; color: var(--grey); margin: 0; line-height: 1.4; }
.footer__meta { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: .3rem 0 1.5rem; }
.footer__credit { margin: 0; }
.footer__credit a { font-weight: 500; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.footer__credit a:hover { color: var(--grey); }

/* =========================================================
   FOTO AMPLIADA
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 60px 16px;
  background: rgba(44, 46, 26, .93); animation: fade .35s ease;
}
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 860px); max-height: 78vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.lightbox figcaption { font-style: italic; font-size: 1.1rem; color: var(--offwhite); margin-top: 12px; line-height: 1.3; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: transparent; color: var(--offwhite); cursor: pointer;
  width: 50px; height: 50px; font-size: 1.5rem; display: grid; place-items: center;
}
.lightbox__close { top: 10px; right: 10px; font-size: 2rem; }
.lightbox__nav--prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 6px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 820px) {
  .polaroid { max-width: 270px; }
  /* história: linha à esquerda, todos os capítulos do mesmo lado */
  .chapters__butterfly { width: 42px; }
  .moment { flex-basis: 129px; }
  .moment:nth-child(odd) { top: 14px; }
  .moment:nth-child(even) { top: -14px; }
  .moment .polaroid { padding: 6px 6px 0; }
  .moment .polaroid figcaption { font-size: .72rem; padding: 6px 4px 8px; }
  .timeline { gap: 18px; }
  .chapter { padding: 0 22px 26px 0; }
  .chapter:nth-child(even) { padding: 0 0 26px 22px; }
  .chapter p { font-size: .76rem; line-height: 1.6; }
  .tips { grid-template-columns: 1fr; }
  .deco--hist-r { opacity: .5; }
  .deco--rsvp-l { opacity: .45; }
  .deco--rsvp-r, .deco--mural { opacity: .5; }
}
@media (max-width: 560px) {
  body { font-size: .95rem; }
  :root { --nav-h: 60px; }
  .nav__brand img { width: 38px; height: 38px; }

  /* início como no protótipo: tulipas saindo pelas bordas */
  .hero { min-height: 0; padding: 50px 16px 35px; }
  .intro .tulip { height: 250px; }
  .hero .tulip { top: auto; bottom: 0; margin-top: 0; height: 270px; }
  .tulip--l { left: -10px; }
  .tulip--r { right: -10px; }
  .hero__mono { width: 60px; margin-bottom: 44px; }
  .hero__names { font-size: 4.3rem; }
  .hero__date { font-size: 1.12rem; }
  .intro .tulip { margin-top: -125px; }

  .convite { background-size: 340px auto, var(--paper-size); padding: 40px 12px; }
  .convite__card { width: 78%; max-width: 330px; font-size: .72rem; line-height: 1.5; padding: 24px 14px; }

  .hero__cd { margin-top: 0; padding-top: 64px; }
  .deco--hist-r { display: none; }
  .btn { width: 100%; }
  .field--sub { margin-left: 0; }
  .lightbox__nav { top: auto; bottom: 10px; transform: none; }
}

/* computador: tulipas grandes, cortadas nos cantos da tela */
@media (min-width: 561px) {
  .hero .tulip, .intro .tulip {
    --th: min(92vh, 64vw, 860px);
    height: var(--th); top: auto; bottom: 0; margin-top: 0;
  }
  .hero .tulip--l, .intro .tulip--l { left: calc(var(--th) * -0.1); }
  .hero .tulip--r, .intro .tulip--r { right: calc(var(--th) * -0.1); }
  .hero { min-height: clamp(520px, 88vh, 860px); padding-top: 26px; padding-bottom: clamp(18px, 3.5vh, 35px); }
  /* monograma no alto, nomes no meio, contagem embaixo */
  .hero__mono { margin-bottom: 0; }
  .hero__names { margin-top: auto; }
}

/* =========================================================
   COMPUTADOR (a partir de 900px)
   ========================================================= */
@media (min-width: 900px) {
  /* foto do casal: mostra uma parte mais de baixo da foto, para os rostos subirem na tela */
  .hero__bg { object-position: center 46%; }
  /* Início: composição do print do computador (625 x 523), medida em % da largura do palco */
  .hero { display: block; min-height: 0; padding: 0 16px; }
  .hero__stage { display: block; position: relative; width: min(100%, calc(100vh * 1.2), 1000px); margin: 0 auto; aspect-ratio: 625 / 523; container-type: inline-size; }
  /* tulipas grandes, presas à borda da TELA (não do bloco) e levemente cortadas nela.
     50cqw - 50vw = distância do centro do bloco até a borda da tela */
  /* descem além da divisa da seção e ficam cortadas nela (o .hero corta o que passa) */
  .hero .tulip { position: absolute; top: auto; bottom: -18cqw; margin: 0; height: 92cqw; }
  .hero .tulip--l { left: calc(50cqw - 50vw + 1.6cqw); }
  .hero .tulip--r { right: calc(50cqw - 50vw + 1.6cqw); }
  .hero__content { position: absolute; inset: 0; display: block; flex: none; }
  .hero__mono { position: absolute; left: 0; right: 0; top: 12cqw; width: 10.8cqw; margin: 0 auto; }
  .hero__names { position: absolute; left: 0; right: 0; top: 29.6cqw; font-size: 10.35cqw; line-height: 1.2; margin: 0 !important; white-space: nowrap; }
  .hero__date { position: absolute; left: 0; right: 0; top: 41.6cqw; font-size: 4.1cqw; margin: 0; }
  .hero__cd { position: absolute; left: 0; right: 0; top: 60cqw; margin: 0; padding: 0; }
  .hero__cd-title { font-size: 6.1cqw; line-height: 1.3; }
  .hero .cd { margin-top: .8cqw; }
  .hero .cd__unit { min-width: 0; padding: 0 1.4cqw; }
  .hero .cd__num { font-size: 2.9cqw; }
  .hero .cd__lbl { font-size: 1.35cqw; }
  /* Nossa história: mesmo formato do celular, com caixas bem mais largas (menos altura) */
  .chapters.is-stacked { max-width: 1040px; }
  .chapters.is-stacked .chapter { padding: 0 44px 0 0 !important; }
  .chapters.is-stacked .chapter:nth-child(even) { padding: 0 0 0 44px !important; }
  .chapters.is-stacked .chapter p { font-size: .84rem; line-height: 1.75; }

  /* Nossa história na horizontal: textos acima e abaixo da linha, centralizados
     no ponto da linha, com um fio fino ligando o texto ao ponto */
  .chapters.is-horizontal { max-width: 900px; margin-bottom: clamp(40px, 5vw, 70px); }
  .chapters.is-horizontal::before { left: 0; right: 0; top: var(--line-y, 50%); bottom: auto !important; width: auto; height: 1px; background: rgba(0, 0, 0, .14) !important; }
  .chapters.is-horizontal .chapter { position: absolute; margin: 0 !important; padding: 0 12px !important; text-align: center; }
  .chapters.is-horizontal .chapter p {
    font-family: var(--caps); font-size: .56rem; line-height: 1.85; letter-spacing: .03em; color: var(--grey);
    text-wrap: pretty; max-width: 19em; margin: 0 auto;
  }
  /* ponto na linha */
  .chapters.is-horizontal .chapter::before { left: 50%; right: auto; width: 7px; height: 7px; margin-left: -3.5px; top: calc(100% + 28px - 3.5px); }
  .chapters.is-horizontal .chapter:nth-child(even)::before { left: 50%; top: calc(-28px - 3.5px); }
  /* fio ligando o texto ao ponto */
  .chapters.is-horizontal .chapter::after { content: ""; position: absolute; left: 50%; width: 1px; height: 18px; background: rgba(0, 0, 0, .14); top: calc(100% + 6px); }
  .chapters.is-horizontal .chapter:nth-child(even)::after { top: auto; bottom: calc(100% + 6px); }
  .chapters.is-horizontal .chapters__guide { left: 0; top: var(--line-y, 50%); width: 100%; height: 0; }
  .chapters.is-horizontal .chapters__butterfly { width: 44px; transform: translate(0, -50%); z-index: 3; }

  /* Confirmação como no print do computador (1005 x 667): passarinho à esquerda, formulário à direita */
  .rsvp__stage { width: min(100%, 1005px); aspect-ratio: 1005 / 667; }
  .rsvp__title { top: 9.95cqw; font-size: clamp(2.4rem, 5vw, 3.2rem); }   /* mesmo tamanho do título do traje */
  .rsvp__deadline { top: 14.6cqw; font-size: 1.5cqw; }
  .rsvp__bird { left: 23.1cqw; right: auto; top: 22.1cqw; height: 32.8cqw; transform: scaleX(-1); }
  .rsvp__form, .rsvp .rsvp__done { width: 30.1cqw; margin-left: 52.2cqw; padding-top: 21.4cqw; padding-bottom: 6cqw; }
  .rsvp .field label, .rsvp .field--select label { font-size: 1.6cqw; }
  .rsvp .field--line { margin-bottom: 4.4cqw; }
  .rsvp .field--line input, .rsvp .field--sub input { font-size: 1.6cqw; height: 2.2cqw; }
  .rsvp .field--line + .field--select { margin-top: 2.6cqw; }
  .rsvp .field--select label { margin-bottom: 1.8cqw; }
  .rsvp .field select { height: 5.9cqw; font-size: 1.6cqw; padding: 0 5cqw 0 1.8cqw; background-position: right 1.8cqw center; background-size: 2.2cqw auto; }
  .rsvp .companions { margin-top: 1.6cqw; }
  .rsvp .field--sub { margin-bottom: 1.6cqw; }
  .rsvp .field--sub label { font-size: 1.4cqw; }
  .rsvp .pill { margin-top: 3.4cqw; height: 6.2cqw; font-size: 2.5cqw; }
  .rsvp .form__error { font-size: 1.4cqw; margin-top: 1.2cqw; }
  .rsvp .rsvp__done h3 { font-size: 4.5cqw; }
  .rsvp .rsvp__done p { font-size: 1.7cqw; }
  .rsvp .rsvp__done .pill { padding: 0 3cqw; }
  /* traje no mesmo tamanho dos textos da confirmação */
  .traje p { font-size: calc(min(100vw, 1005px) * .016); }
}
/* =========================================================
   CELULAR (até 560px): início igual ao print (483 x 661), em % da largura
   ========================================================= */
@media (max-width: 560px) {
  :root { --paper-size: 680px auto; }   /* no celular a textura fica menor e nítida (3x) */
  .hero { display: block; min-height: 0; padding: 0; }
  .hero__stage { display: block; position: relative; width: 100%; aspect-ratio: 100 / 145; container-type: inline-size; }
  .hero .tulip { position: absolute; top: auto; bottom: 0; margin: 0; height: 80cqw; }   /* começam abaixo dos nomes */
  .hero .tulip--l { left: -1cqw; }
  .hero .tulip--r { right: -1cqw; }
  .hero__content { position: absolute; inset: 0; display: block; flex: none; }
  .hero__mono { position: absolute; left: 0; right: 0; top: 14.4cqw; width: 18.4cqw; margin: 0 auto; }
  .hero__names { position: absolute; left: 0; right: 0; top: 45.6cqw; font-size: 14.5cqw; line-height: 1.2; margin: 0 !important; white-space: nowrap; }
  .hero__date { position: absolute; left: 0; right: 0; top: 61.6cqw; font-size: 5.7cqw; margin: 0; }
  .hero__cd { position: absolute; left: 0; right: 0; top: 115.1cqw; margin: 0; padding: 0; }
  .hero__cd-title { font-size: 10cqw; line-height: 1.3; }
  .hero .cd { margin-top: .6cqw; }
  .hero .cd__unit { min-width: 0; padding: 0 2.4cqw; }
  .hero .cd__num { font-size: 4.3cqw; }
  .hero .cd__lbl { font-size: 2.1cqw; }

  /* títulos do traje e da confirmação do mesmo tamanho (10,6% da largura) */
  .casamento { container-type: inline-size; }
  .traje { padding-inline: 34px; }
  .dicas { padding-top: 38px; }   /* ~20% menos espaço entre a história e as dicas no celular */
  .hero__bg { transform: translateY(11%);   /* foto do casal um pouco mais para baixo no celular */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 68%, transparent 89%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 68%, transparent 89%); }
  /* mural no celular: flores menores, fora do texto */
  .mural__lead { font-size: .72rem; padding-inline: 18px; }
  .mural__form { padding-inline: 18px; }
  /* recadinhos no celular: menores e lado a lado, deslizando para o lado */
  .notes {
    display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 22px 16px 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .notes::-webkit-scrollbar { display: none; }
  .note { flex: 0 0 58%; padding: 24px 14px 14px; scroll-snap-align: center; }
  .note__pin { width: 28px; top: -12px; margin-left: -14px; }
  .note blockquote { font-size: .76rem; line-height: 1.5; margin-bottom: .5rem; }
  .note figcaption { font-size: 1.2rem; }
  .notes__empty { flex: 1 0 100%; }
  .dicas .lead { font-size: .72rem; line-height: 1.5; max-width: 300px; }
  /* dicas: os dois botões lado a lado, menores, cada um com o ícone em cima */
  .tips.tips--links { grid-template-columns: 1fr 1fr; gap: 14px; max-width: 360px; }
  .tip-link { gap: 12px; }
  .tip-link__art { height: 92px; }
  .tip-link .pill { min-width: 0; width: 100%; min-height: 36px; padding: .35em .8em; font-size: .78rem; white-space: nowrap; box-shadow: 0 4px 10px rgba(70, 74, 40, .18); }
  .traje__title { font-size: calc((100cqw + 24px) * .106); }   /* largura da seção (sem a barra de rolagem), igual ao bloco do RSVP */
}
/* =========================================================
   TÍTULOS DAS SEÇÕES: todos no mesmo tamanho do "Nossa história"
   ========================================================= */
:root { --section-title: clamp(3rem, 7vw, 4.4rem); }
.title, .historia .section__head .title, .traje__title, .rsvp__title, .presentes__title, .mural__title, .dica__title {
  font-size: var(--section-title) !important;
}
.presentes__title { white-space: nowrap; }

/* "Deixe um recadinho para os noivos" maior */
.mural__lead { font-size: clamp(.95rem, 1.8vw, 1.15rem) !important; }
@media (max-width: 560px) { .mural__lead { font-size: .9rem !important; } }
/* TEXTO DOS BOTÕES: o mesmo tamanho em todo o site */
:root { --btn-font: .9rem; }
.pill, .moldura .pill, .rsvp .pill, .tip-link .pill, .mural .pill, .dica__back, .gift-btn, .btn {
  font-size: var(--btn-font) !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
