/* =========================================================
   Convite virtual — mobile first
   ========================================================= */

:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;

  --paper: #efe7dc;
  --ink: #4a3f35;
  --ink-soft: #65594d;
  --taupe: #8f857b;
  --taupe-dark: #5a4f45;
  --gold: #b0904f;
  --gold-grad: linear-gradient(135deg, #d9bf85 0%, #a8853f 35%, #e2c98f 55%, #9b7a36 80%, #c7a764 100%);

  --max: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: #cbc1b5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; height: 100svh; }

/* textura de papel sutil sobre tudo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

/* =========================================================
   SELETOR DE IDIOMA
   ========================================================= */

.lang {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: max(14px, calc(50vw - var(--max) / 2 + 14px));
  z-index: 45;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(80, 66, 52, .12);
}
.lang button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  padding: 6px 9px 6px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s, color .3s;
}
.lang button.active {
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
}

.invite,
.letter__frame,
.intro__hint { transition: opacity .25s ease; }
body.lang-switching .invite,
body.lang-switching .letter__frame,
body.lang-switching .intro__hint { opacity: 0 !important; }

/* =========================================================
   INTRO / ENVELOPE
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 28%, #f3ede5 0%, transparent 62%),
    radial-gradient(ellipse at 50% 105%, #b3a799 0%, transparent 70%),
    #d4cbbf;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.intro.is-fading { opacity: 0; pointer-events: none; }
.intro.is-done   { opacity: 0; visibility: hidden; }

.intro__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20vh;
  padding-top: 20svh;
}

.envelope {
  --w: min(66vw, 300px, 40vh);
  --ease-out: cubic-bezier(.22, .8, .25, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  position: relative;
  width: var(--w);
  aspect-ratio: 10 / 14;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  perspective: 1600px;
  -webkit-tap-highlight-color: transparent;
  animation: float 5s ease-in-out infinite;
  transition: transform 1s var(--ease-out);
}
.envelope:focus-visible { outline: none; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50%      { transform: translateY(-7px) rotate(.6deg); }
}

.envelope > span { position: absolute; display: block; }

/* sombra no chão */
.envelope__shadow {
  left: 8%;
  right: 8%;
  bottom: -7%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(70, 58, 46, .35), transparent 70%);
  filter: blur(6px);
  z-index: 0;
  transition: opacity .8s ease, transform 1.4s var(--ease-out);
}

/* fundo interno do envelope */
.envelope__back {
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(180deg, #675e55 0%, #7a7067 60%);
  box-shadow: 0 14px 30px rgba(70, 58, 46, .25);
  transition: opacity .7s ease;
}

/* ---------- carta ---------- */
.envelope__letter {
  left: 6%;
  right: 6%;
  top: 4%;
  height: 90%;
  z-index: 2;
  padding: 6%;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 25% 15%, #fff 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, #f1e5d7 0%, transparent 60%),
    #f7f1e9;
  box-shadow: 0 -2px 12px rgba(40, 30, 20, .12), 0 1px 2px rgba(40, 30, 20, .1);
  transition:
    transform 1.05s var(--ease-out),
    opacity 1s ease;
}
.letter__frame {
  height: 100%;
  border: 1px solid rgba(176, 144, 79, .45);
  outline: 1px solid rgba(176, 144, 79, .2);
  outline-offset: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 16%;
  gap: 2px;
  text-align: center;
}
.letter__small {
  font-size: calc(var(--w) * .052);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.letter__script {
  font-family: var(--script);
  font-size: calc(var(--w) * .16);
  line-height: 1.15;
  color: var(--taupe-dark);
}
.letter__line {
  width: 26%;
  height: 1px;
  margin: 6px 0 8px;
  background: var(--gold);
  opacity: .55;
}
.letter__names {
  font-size: calc(var(--w) * .056);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.letter__date {
  margin-top: 4px;
  font-size: calc(var(--w) * .045);
  letter-spacing: .3em;
  color: var(--gold);
}

/* ---------- frente (bolso) ---------- */
.envelope__pocket {
  inset: 0;
  z-index: 3;
  border-radius: 8px;
  overflow: hidden;
  background: #8a8077;
  transition: opacity .7s ease;
}
.pocket__sides,
.pocket__bottom {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 2px rgba(50, 40, 30, .28));
}
.pocket__sides::before,
.pocket__sides::after,
.pocket__bottom::before {
  content: "";
  position: absolute;
  inset: 0;
}
.pocket__sides::before {
  background: linear-gradient(90deg, #918780 0%, #9b918a 100%);
  clip-path: polygon(0 0, 52% 50%, 0 100%);
}
.pocket__sides::after {
  background: linear-gradient(270deg, #8f857d 0%, #998f88 100%);
  clip-path: polygon(100% 0, 48% 50%, 100% 100%);
}
.pocket__bottom::before {
  background: linear-gradient(0deg, #93897f 0%, #a1978e 100%);
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
}

/* ---------- aba superior (3D, com forro interno) ---------- */
.envelope__flap {
  top: 0;
  left: 0;
  width: 100%;
  height: 53%;
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
  transition:
    transform .8s var(--ease-io),
    z-index 0s linear .4s,
    opacity .7s ease;
}
.flap__front,
.flap__inner {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flap__front {
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 40%),
    linear-gradient(180deg, #a59b92 0%, #958b82 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* forro: aparece quando a aba vira */
.flap__inner {
  transform: rotateX(180deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(0deg, rgba(60, 45, 30, .3) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(160, 125, 60, .35) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(160, 125, 60, .35) 0 1px, transparent 1px 9px),
    #ddd0be;
}

/* ---------- selo de cera ---------- */
.seal {
  left: 50%;
  top: 53%;
  width: 26%;
  aspect-ratio: 1;
  z-index: 5;
  transform: translate(-50%, -50%);
  border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 32% 28%, #fbeab4 0%, #d9b665 28%, #b38b3b 60%, #7e5d21 100%);
  box-shadow:
    inset 0 -3px 6px rgba(90, 60, 10, .55),
    inset 0 3px 5px rgba(255, 240, 200, .6),
    0 4px 10px rgba(40, 30, 15, .4);
  display: grid !important;
  place-items: center;
  transition:
    transform .55s var(--ease-out),
    opacity .45s ease,
    filter .45s ease;
}
.seal__inner {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(110, 78, 22, .55);
  box-shadow: inset 0 1px 2px rgba(255, 240, 200, .6), 0 1px 1px rgba(255, 240, 200, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--w) * .085);
  color: #5f4416;
  text-shadow: 0 1px 0 rgba(255, 236, 190, .7);
}
.seal__inner i {
  width: 1.5px;
  height: 46%;
  background: #5f4416;
  box-shadow: 0 1px 0 rgba(255, 236, 190, .7);
}
.seal::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 220, .8);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.intro__hint {
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 20px;
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* =========================================================
   SEQUÊNCIA DE ABERTURA
   ========================================================= */

.envelope.is-pressed { animation: none; }
.intro.is-opening .intro__hint { opacity: 0; animation: none; }

/* 1. selo afunda */
.envelope.is-pressed .seal {
  transform: translate(-50%, -50%) scale(.92);
  transition-duration: .15s;
}
.envelope.is-pressed .seal::after { display: none; }

/* 2. selo se solta */
.envelope.step-seal .seal {
  transform: translate(-50%, -50%) translateY(-16px) scale(1.18) rotate(-10deg);
  opacity: 0;
  filter: blur(1.5px);
  transition-duration: .55s;
}

/* 3. aba abre */
.envelope.step-flap .envelope__flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* 4. envelope desce, carta sobe */
.envelope.step-letter { transform: translateY(16%); }
.envelope.step-letter .envelope__shadow { transform: translateY(-40%) scale(.9); }
.envelope.step-letter .envelope__letter { transform: translateY(-64%); }

/* 5. envelope sai, carta vem para frente */
.envelope.step-leave .envelope__back,
.envelope.step-leave .envelope__pocket,
.envelope.step-leave .envelope__flap,
.envelope.step-leave .envelope__shadow { opacity: 0; }
.envelope.step-leave .envelope__letter {
  transform: translateY(-40%) scale(1.5);
  opacity: 0;
  transition:
    transform .85s var(--ease-io),
    opacity .6s ease .1s;
}

/* =========================================================
   CONTEÚDO
   ========================================================= */

.invite {
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(60, 50, 40, .2);
}

.card {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* fundo de rosas brancas (img/fundo.jpg) com véu creme por cima */
  background-image:
    linear-gradient(180deg,
      rgba(242, 234, 224, .30) 0%,
      rgba(242, 234, 224, .38) 60%,
      rgba(236, 226, 214, .80) 100%),
    url("img/fundo.jpg");
  background-color: var(--paper);
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* varia o enquadramento da rosa entre as páginas */
.card:nth-of-type(4n+1) { background-size: 100% 100%, auto 150%; background-position: center, 30% 15%; }
.card:nth-of-type(4n+2) { background-size: 100% 100%, auto 135%; background-position: center, 75% 60%; }
.card:nth-of-type(4n+3) { background-size: 100% 100%, cover;     background-position: center, center; }
.card:nth-of-type(4n)   { background-size: 100% 100%, auto 170%; background-position: center, 55% 35%; }

.card + .card { border-top: 1px solid rgba(255, 255, 255, .5); }

/* ---------- foto (mostra a foto inteira no topo, sem cortar) ---------- */
.card--photo {
  --ph: calc(min(100vw, var(--max)) * 1.3325); /* altura da foto (proporção 3:4) */
  justify-content: flex-end;
  padding-bottom: 64px;
  color: #fff;
  background-image:
    linear-gradient(180deg,
      transparent 0,
      transparent calc(var(--ph) * .6),
      rgba(138, 127, 115, .92) calc(var(--ph) * .88),
      #8a7f73 var(--ph)),
    linear-gradient(rgba(190, 160, 130, .12), rgba(190, 160, 130, .12)),
    var(--photo);
  background-color: #8a7f73;
  background-size: 100% 100%, 100% var(--ph), 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}
.card--photo.card--photo { background-size: 100% 100%, 100% var(--ph), 100% auto; background-position: top center; }

.photo-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 1. hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  line-height: 1;
}
.hero__caps {
  font-size: clamp(40px, 13vw, 62px);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(150, 135, 120, .6),
    0 3px 6px rgba(90, 75, 60, .45);
}
.hero__script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(56px, 19vw, 92px);
  color: var(--taupe-dark);
  margin: -6px 0 6px;
  transform: rotate(-4deg);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-hint i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--ink-soft), transparent);
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0%   { transform: scaleY(0); opacity: 1; }
  70%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- textos comuns ---------- */
.names {
  font-weight: 400;
  font-size: clamp(28px, 8.4vw, 40px);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.names--small { font-size: 20px; letter-spacing: .16em; margin-top: 10px; }

.divider {
  display: block;
  width: 64px;
  height: 1px;
  margin: 14px auto;
  background: rgba(255, 255, 255, .7);
}
.divider--dark { background: rgba(110, 98, 86, .45); margin-top: 6px; }

.script-sub {
  font-family: var(--script);
  font-size: clamp(26px, 8vw, 36px);
}

.eyebrow {
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-soft);
}
.eyebrow--light { color: rgba(255, 255, 255, .9); margin-top: 22px; }

.big-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 20vw, 96px);
  line-height: 1.1;
  color: var(--taupe-dark);
  margin: 6px 0 22px;
  transform: rotate(-4deg);
}

/* ---------- 3. data ---------- */
.date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.date__month, .date__year {
  font-size: 17px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
}
.date__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date__side {
  width: 92px;
  padding: 8px 0;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid rgba(110, 98, 86, .4);
  border-bottom: 1px solid rgba(110, 98, 86, .4);
}
.date__day {
  font-size: 68px;
  line-height: 1;
  font-weight: 500;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 30px 0 28px;
}
.countdown div {
  display: flex;
  flex-direction: column;
  padding: 10px 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(176, 144, 79, .3);
}
.countdown strong {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.venue {
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.8;
  margin-bottom: 26px;
}
.venue strong { font-weight: 600; }

.rings {
  width: 56px;
  margin-top: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
}

/* ---------- 4. cronograma ---------- */
.title-combo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 40px;
}
.title-combo__caps {
  font-size: clamp(34px, 10.5vw, 50px);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}
.title-combo__script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(32px, 10vw, 46px);
  color: var(--ink-soft);
  margin-top: -8px;
}
.title-combo--inverse .title-combo__script { margin: 0 0 -6px; }

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.timeline li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 28px;
  margin: 12px 0;
  background: linear-gradient(transparent, var(--gold), transparent);
}
.timeline time {
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- 5. detalhes ---------- */
.panel {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(150, 138, 125, .62);
  color: #fff;
  box-shadow: 0 6px 18px rgba(80, 66, 52, .12);
}
.panel__img {
  aspect-ratio: 16 / 9;
  background-image: var(--photo), linear-gradient(150deg, #cdbba4, #8d7a66);
  background-size: cover;
  background-position: center;
}
.panel__head {
  padding: 8px 12px;
  background: var(--gold-grad);
  color: #4c3c22;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.panel__body {
  padding: 18px 18px 20px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.panel__body .muted {
  text-transform: none;
  letter-spacing: .02em;
  font-style: italic;
  opacity: .85;
  line-height: 1.4;
}

.swatches { display: flex; gap: 10px; }
.swatches span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(255, 255, 255, .7);
}

.hearts { letter-spacing: .3em; opacity: .9; }

/* ---------- botões ---------- */
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(90, 65, 20, .4);
  box-shadow: 0 8px 20px rgba(150, 115, 50, .3);
  transition: transform .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); box-shadow: 0 4px 10px rgba(150, 115, 50, .3); }

.btn--small {
  margin-top: 0;
  padding: 9px 20px;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: none;
  text-shadow: none;
}

/* ---------- 6. RSVP ---------- */
.rsvp {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  margin: 8px 0 20px;
  font-size: clamp(96px, 32vw, 150px);
  font-weight: 500;
  line-height: .85;
}
.rsvp span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(120, 90, 30, .2));
}
.rsvp__date {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.small-note {
  margin-top: 22px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- 7. obrigado ---------- */
.thanks-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 19vw, 90px);
  line-height: 1.1;
  transform: rotate(-5deg);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(60, 50, 40, .3);
}
.thanks-text {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.9;
  max-width: 330px;
}

/* acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01s !important;
    transition-delay: 0s !important;
  }
}

/* ajustes por idioma (textos mais longos) */
html[lang="ro"] .big-script { font-size: clamp(46px, 14vw, 66px); }
html[lang="ro"] .script-sub { font-size: clamp(24px, 7vw, 32px); }

/* =========================================================
   AJUSTES FINOS
   ========================================================= */

/* rosas em tom creme uniforme (remove o verde das folhas) */
.card {
  background-color: #f1d9bb;
  background-blend-mode: normal, luminosity;
}
.card--photo { background-blend-mode: normal; }

/* véu um pouco mais forte para leitura */
.card:not(.card--photo) {
  background-image:
    linear-gradient(180deg,
      rgba(244, 237, 228, .40) 0%,
      rgba(244, 237, 228, .46) 60%,
      rgba(238, 229, 218, .82) 100%),
    url("img/fundo.jpg");
}

.names {
  white-space: nowrap;
  font-size: clamp(24px, 7vw, 34px);
  letter-spacing: .06em;
}
.names--small { font-size: 19px; letter-spacing: .14em; }

.date__side {
  width: auto;
  min-width: 92px;
  padding: 8px 4px;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .1em;
}

.rsvp__date { font-size: 15px; letter-spacing: .08em; }

/* contraste: dourado mais escuro quando é texto sobre fundo claro */
.timeline time,
.letter__date { color: #86662a; }
.eyebrow, .scroll-hint, .small-note, .countdown span { color: var(--ink-soft); }
.timeline li, .venue, .date, .rsvp__date { color: var(--ink); }

/* textos pequenos: peso maior + halo claro para destacar das pétalas */
.eyebrow, .timeline li, .venue, .date, .rsvp__date, .small-note,
.countdown span, .scroll-hint, .title-combo__script, .big-script, .hero__script {
  text-shadow: 0 0 10px rgba(250, 244, 236, .9), 0 0 2px rgba(250, 244, 236, .8);
}
.eyebrow, .timeline li > span, .countdown span, .scroll-hint, .small-note { font-weight: 600; }
.venue, .date__side, .rsvp__date { font-weight: 600; }
.timeline time { font-weight: 700; }

/* =========================================================
   PAINEL BRANCO SOBRE AS ROSAS (contraste do texto)
   ========================================================= */
.card:not(.card--photo) { padding: 64px 40px; }

.card:not(.card--photo)::before {
  content: "";
  position: absolute;
  inset: 22px 16px;
  z-index: 0;
  border-radius: 14px;
  background: rgba(255, 253, 249, .68);
  border: 1px solid rgba(255, 255, 255, .9);
  outline: 1px solid rgba(176, 144, 79, .28);
  outline-offset: -9px;
  box-shadow: 0 10px 30px rgba(90, 70, 50, .12);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.card:not(.card--photo) > * { position: relative; z-index: 1; }

/* com o painel branco, o halo claro não é mais necessário */
.card:not(.card--photo) * { text-shadow: none; }
.card:not(.card--photo) .hero__caps {
  color: var(--ink);
  text-shadow: 0 2px 6px rgba(255, 255, 255, .6);
}

/* contador e painéis um pouco mais definidos sobre o branco */
.countdown div { background: rgba(255, 255, 255, .7); border-color: rgba(176, 144, 79, .4); }
.panel { background: rgba(138, 126, 114, .9); }
.card:not(.card--photo) .hero__script { font-size: clamp(50px, 16vw, 80px); }
.card:not(.card--photo) .hero__caps   { font-size: clamp(36px, 11.5vw, 56px); }

/* =========================================================
   SLIDE DE FOTOS
   ========================================================= */
.card--slider {
  justify-content: flex-start;
  padding: 0 0 56px;
  background: linear-gradient(180deg, #8a7f73 0%, #7a6f64 100%);
}
.card--slider.card--photo { background-image: linear-gradient(180deg, #8a7f73 0%, #7a6f64 100%); }

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.slider__track { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  display: block;
  transform: scale(1.08);
  transition: transform 6.5s ease-out;
  pointer-events: none;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img { transform: scale(1); }

/* degradê da foto para o fundo */
.slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, #8a7f73);
  pointer-events: none;
}

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .4s ease, background .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.slider__dots button.active { width: 24px; background: #fff; }

.card--slider .photo-bottom {
  flex: 1;
  justify-content: center;
  padding: 28px 28px 0;
}

/* =========================================================
   TIPOGRAFIA MAIOR E MAIS ENCORPADA
   ========================================================= */
body { font-weight: 500; }
.card:not(.card--photo) { padding-left: 32px; padding-right: 32px; }

.eyebrow            { font-size: 16px; font-weight: 700; }
.hero__caps,
.card:not(.card--photo) .hero__caps { font-weight: 600; }
.title-combo__caps  { font-weight: 600; }
.date__month,
.date__year         { font-size: 19px; font-weight: 700; }
.date__row          { gap: 12px; }
.date__side         { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.date__day          { font-size: 72px; font-weight: 600; }
.countdown strong   { font-size: 28px; font-weight: 600; }
.countdown span     { font-size: 11px; font-weight: 700; }
.venue              { font-size: 17px; font-weight: 700; }
.timeline li        { font-size: 18px; }
.timeline li > span { font-weight: 700; }
.timeline time      { font-size: 22px; font-weight: 700; }
.panel__head        { font-size: 15px; font-weight: 700; }
.panel__body        { font-size: 16.5px; font-weight: 600; }
.panel__body .muted { font-size: 16px; font-weight: 500; }
.btn                { font-size: 15px; font-weight: 700; }
.btn--small         { font-size: 13px; }
.rsvp__date         { font-size: 16px; font-weight: 700; }
.small-note         { font-size: 17px; font-weight: 600; }
.names              { font-weight: 600; }
.thanks-text        { font-size: 16px; font-weight: 600; }
.scroll-hint        { font-size: 13px; font-weight: 700; }

/* slide como "porta-retrato" centralizado */
.card--slider {
  justify-content: center;
  padding: 72px 26px 56px;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .12), transparent 65%),
    linear-gradient(180deg, #8f8478 0%, #776c61 100%);
}
.card--slider.card--photo {
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .12), transparent 65%),
    linear-gradient(180deg, #8f8478 0%, #776c61 100%);
}
.slider {
  border-radius: 14px;
  border: 6px solid rgba(255, 255, 255, .92);
  box-shadow: 0 18px 40px rgba(40, 30, 20, .35);
  outline: 1px solid rgba(255, 255, 255, .35);
  outline-offset: 6px;
}
.slider::after { height: 22%; background: linear-gradient(180deg, transparent, rgba(30, 22, 15, .45)); }
.slider__dots { bottom: 12px; }
.card--slider .photo-bottom { flex: none; padding: 34px 0 0; }
.card--slider.card--photo { background-size: 100% 100%, 100% 100%; background-position: center, center; }

/* quadros de detalhes: fonte maior */
.panel__head        { font-size: 17px; padding: 10px 12px; }
.panel__body        { font-size: 19px; line-height: 1.6; padding: 20px 18px 22px; }
.panel__body .muted { font-size: 18px; }
.btn--small         { font-size: 15px; padding: 11px 24px; }
.swatches span      { width: 42px; height: 42px; }

/* slide: nome e frase um pouco maiores; foto clicável */
.card--slider .script-sub { font-size: clamp(28px, 8.4vw, 38px); }
.slider { cursor: pointer; }
