/* =========================================================
   Ana Bárbara & Rodrigo — Invitación digital
   Paleta: papel marfil, tinta negra, sobre rosa empolvado
   ========================================================= */

:root {
  --paper: #FBF8F3;
  --paper-2: #F5EFE8;
  --outside: #EFE8E1;
  --ink: #1C1A19;
  --muted: #6F6662;
  --line: #CFC6BF;

  --blush: #EEDFD7;
  --blush-2: #E6D1C6;
  --blush-3: #DCC1B4;
  --blush-edge: #C9A99B;

  --wax: #B48A80;
  --wax-dark: #8F665D;
  --wax-light: #D2ADA3;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-caps: "Tenor Sans", "Optima", "Gill Sans", sans-serif;
  --f-body: "Cormorant Garamond", "Garamond", Georgia, serif;

  --col: min(100%, 520px);
  --gutter: clamp(20px, 6vw, 36px);
  --ease: cubic-bezier(.22, .8, .26, 1);
  --shadow-card: 0 1px 1px rgba(60, 40, 30, .04), 0 10px 30px -12px rgba(60, 40, 30, .22);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100dvh; }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

/* subtle paper grain */
.page, .intro {
  background-color: var(--paper);
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .27 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.caps {
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
}
.caps-display {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .02em;
}
.eyebrow {
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .68rem;
  color: var(--muted);
  margin: 0;
}
.mono { font-variant-numeric: tabular-nums; letter-spacing: .06em; }

/* =========================================================
   INTRO / SOBRE
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__inner {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 4vh, 34px);
}
.intro__names {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .95;
}
.intro__names .caps-display { font-size: clamp(2.1rem, 10vw, 3.1rem); }
.intro__names .script { font-size: clamp(3.4rem, 15vw, 4.6rem); margin: -.2em 0 -.32em; color: var(--muted); line-height: 1; }
.intro__names { transition: opacity .5s ease; }
.intro.is-opening .intro__names { opacity: 0; }

.intro__hint {
  margin: 0;
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .66rem;
  color: var(--muted);
  animation: breathe 2.6s ease-in-out infinite;
}
.intro__place {
  margin: 0;
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .62rem;
  color: var(--muted);
}

@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* --- Envelope --- */
.envelope {
  --w: min(84vw, 360px);
  position: relative;
  width: var(--w);
  aspect-ratio: 100 / 70;
  perspective: 1200px;
  filter: drop-shadow(0 18px 24px rgba(90, 60, 50, .18)) drop-shadow(0 2px 3px rgba(90, 60, 50, .12));
  transition: transform 1s var(--ease);
}

.env-back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background:
    linear-gradient(rgba(238, 223, 215, .55), rgba(238, 223, 215, .55)),
    url("../assets/img/portada.jpg") center / cover;
  filter: grayscale(1) contrast(.9);
}
.env-back::after { /* tint the liner pink */
  content: "";
  position: absolute; inset: 0;
  background: var(--blush-3);
  mix-blend-mode: multiply;
  opacity: .55;
  border-radius: inherit;
}

.env-letter {
  position: absolute;
  left: 6%; right: 6%;
  top: 6%; height: 88%;
  z-index: 2;
  background: var(--paper);
  border: 1px solid #e9e2da;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 9%;
  gap: 6px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
  transition: transform 1.1s var(--ease) .75s;
}
.env-letter__date { font-family: var(--f-display); font-size: clamp(1.4rem, 6vw, 1.8rem); letter-spacing: .04em; }

.env-pocket {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  overflow: visible;
}
.env-pocket .pk-l { fill: var(--blush-2); }
.env-pocket .pk-r { fill: var(--blush-2); }
.env-pocket .pk-b { fill: var(--blush); stroke: var(--blush-edge); stroke-width: .25; stroke-opacity: .5; }

.env-flap {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 58%;
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease), z-index 0s linear .45s;
}
.flap-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flap-front {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, var(--blush) 0%, var(--blush-2) 100%);
}
.flap-front::after { /* soft crease shadow along the flap edges */
  content: "";
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, transparent 60%, rgba(120, 80, 70, .1));
}
.flap-inner {
  transform: rotateX(180deg);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  background:
    linear-gradient(rgba(236, 218, 208, .72), rgba(236, 218, 208, .72)),
    url("../assets/img/portada.jpg") center 30% / cover;
}

/* --- Wax seal --- */
.seal {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 5;
  width: clamp(62px, 18vw, 76px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 35% 30%, var(--wax-light) 0%, var(--wax) 42%, var(--wax-dark) 100%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, .08),
    inset 0 0 0 7px rgba(80, 40, 35, .12),
    inset -3px -4px 8px rgba(70, 35, 30, .35),
    0 4px 8px rgba(70, 35, 30, .3);
  color: rgba(255, 245, 240, .92);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease), opacity .45s ease;
  -webkit-tap-highlight-color: transparent;
}
.seal::before { /* irregular wax drip ring */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 55% 45% 52% 48% / 46% 56% 44% 54%;
  background: var(--wax);
  z-index: -1;
  box-shadow: 0 3px 6px rgba(70, 35, 30, .25);
}
.seal span {
  font-family: var(--f-script);
  font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  line-height: 1;
  text-shadow: 0 -1px 0 rgba(80, 40, 35, .45), 0 1px 0 rgba(255, 255, 255, .25);
  padding-top: .1em;
}
.seal i { font-style: normal; font-size: .75em; margin: 0 .05em; }
.seal:hover { transform: translate(-50%, -50%) scale(1.05); }
.seal:focus-visible { outline: 1px solid var(--ink); outline-offset: 8px; }
.seal::after { /* pulse ring to invite the tap */
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--wax);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* --- Opening states --- */
.envelope.is-open .seal { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-12deg); pointer-events: none; }
.envelope.is-open .env-flap { transform: rotateX(180deg); z-index: 1; }
/* swap faces at mid-turn (fallback for browsers with flaky backface-visibility) */
.flap-front, .flap-inner { transition: opacity 0s linear .4s; }
.flap-inner { opacity: 0; }
.envelope.is-open .flap-inner { opacity: 1; }
.envelope.is-open .flap-front { opacity: 0; }
.envelope.is-open { transform: translateY(12%); }
.envelope.is-open .env-letter { transform: translateY(-62%); }
.envelope.is-open + .intro__hint { animation: none; opacity: 0; transition: opacity .3s; }

/* =========================================================
   PAGE
   ========================================================= */
.page {
  width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(60, 40, 30, .08);
}

.section {
  padding: clamp(56px, 12vw, 88px) var(--gutter);
  text-align: center;
  position: relative;
}

.section-title {
  margin: 0 0 36px;
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 2.7rem);
  letter-spacing: .02em;
  line-height: 1;
}
.section-title .script {
  text-transform: none;
  font-size: 1.05em;
  margin-right: .06em;
  position: relative;
  top: .18em;
  color: var(--muted);
}

/* --- Hero (inspired by the save the date) --- */
.hero { padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 14px; }
.frame {
  border: 1px solid var(--line);
  padding: clamp(40px, 11vw, 64px) 0 clamp(36px, 9vw, 52px);
  text-align: center;
}
.hero .eyebrow { padding: 0 var(--gutter); }
.hero__title {
  margin: 26px 0 30px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .9;
}
.hero__line {
  font-family: var(--f-display);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(2.2rem, 10.4vw, 3.5rem);
  letter-spacing: .01em;
}
.hero__amp {
  font-size: clamp(3.6rem, 17vw, 5rem);
  color: var(--muted);
  margin: -.18em 0 -.32em;
  line-height: 1;
}
.hero__photo {
  margin: 0;
  aspect-ratio: 3 / 2.15;
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; }
.hero__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.hero__num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 11vw, 3.2rem);
  letter-spacing: .04em;
  line-height: 1;
}

/* --- Message --- */
.message { padding-top: 40px; padding-bottom: 24px; }
.sprig { width: 120px; height: 30px; color: var(--muted); margin: 0 auto 18px; display: block; }
.lead {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(1.15rem, 4.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.5;
}
.body { margin: 0 0 22px; font-size: 1.08rem; line-height: 1.6; }

/* --- Countdown --- */
.countdown { padding-bottom: 0; }
.countdown__kicker { margin: 0; font-size: clamp(2.6rem, 11vw, 3.2rem); line-height: 1; color: var(--muted); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 14px auto 18px;
  max-width: 400px;
}
.countdown__grid > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-num {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 10.5vw, 3rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-label { font-size: .58rem; color: var(--muted); letter-spacing: .2em; }
.countdown__after { margin: 0; letter-spacing: .26em; }
.countdown__plants {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 10px -6px 0;
  height: 150px;
}
.plant { color: #8D8580; }
.plant--l { width: 70px; height: 140px; }
.plant--r { width: 56px; height: 112px; transform: scaleX(-1); }

/* --- Cards --- */
.card {
  background: #FFFDFA;
  border: 1px solid #ECE5DE;
  box-shadow: var(--shadow-card);
  padding: 30px 24px 28px;
  position: relative;
}
.card__kicker { margin: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); }
.card__title {
  margin: 6px 0 10px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
}
.card__time {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .02em;
}
.card__time small { font-family: var(--f-caps); font-size: .7rem; letter-spacing: .2em; vertical-align: .55em; }
.card__addr { margin: 0 0 20px; font-size: 1.02rem; color: #4A4340; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-caps);
  font-size: .66rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #3a3634; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* --- Events stack (layered cards + polaroids) --- */
.stack { display: flex; flex-direction: column; align-items: center; }
.polaroid {
  margin: 0;
  background: #fff;
  padding: 8px 8px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(.98); }
.polaroid--a { width: 58%; aspect-ratio: 4 / 5.2; align-self: flex-start; margin-left: 2%; transform: rotate(-4deg); }
.polaroid--a img { object-position: 50% 45%; }
.polaroid--b { width: 64%; aspect-ratio: 5 / 4.2; align-self: flex-end; margin-right: 1%; transform: rotate(3.5deg); margin-top: 26px; }
.polaroid--b img { object-position: 42% 60%; }
.card--event { width: 88%; z-index: 2; margin-top: -64px; transform: rotate(1deg); }
.card--offset { transform: rotate(-1.2deg); }

/* --- Dress code --- */
.badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
}
.badge .script { font-size: 2.4rem; line-height: .8; }
.badge .caps { font-size: .74rem; letter-spacing: .4em; margin-right: -.4em; }
.badge--plaque {
  width: 170px; height: 104px;
  border-radius: 22px;
  outline: 1px solid rgba(251, 248, 243, .4);
  outline-offset: -7px;
  transform: rotate(-3deg);
}
.badge--circle {
  width: 150px; height: 150px;
  border-radius: 50%;
  outline: 1px solid rgba(251, 248, 243, .4);
  outline-offset: -8px;
}
.badge--circle .script { font-size: 2.6rem; }
.card--dress { margin: -30px auto 0; width: 86%; padding-top: 48px; transform: rotate(1.2deg); }
.card--dress .card__title { font-size: 1.6rem; margin-bottom: 18px; }
.dress__art { display: flex; justify-content: center; align-items: flex-end; gap: 22px; color: #5d5652; }
.bowtie { width: 74px; height: 46px; margin-bottom: 30px; }
.gown { width: 54px; height: 108px; }

/* --- Photo band --- */
.band { margin: 0; aspect-ratio: 4 / 4.6; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* --- Gifts --- */
.card--gift { margin: -38px auto 0; width: 92%; padding-top: 56px; }
.bank {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease), opacity .4s;
  opacity: 0;
}
.bank.is-open { grid-template-rows: 1fr; opacity: 1; }
.bank__inner { overflow: hidden; }
.bank__list {
  margin: 22px 0 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.bank__list div { display: flex; flex-direction: column; gap: 2px; }
.bank__list dt { color: var(--muted); font-size: .6rem; }
.bank__list dd { margin: 0; font-size: 1.15rem; }
.bank__list dd.mono { font-family: var(--f-display); font-size: 1.2rem; }

/* --- RSVP --- */
.rsvp__env {
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 40px;
}
.rsvp__env::before { /* inside of envelope behind the card */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 210px;
  background: var(--blush-3);
  border-radius: 4px 4px 0 0;
}
.card--rsvp {
  position: relative;
  z-index: 1;
  width: 88%;
  margin: 0 auto;
  text-align: left;
  padding: 28px 22px 100px;
}
.card--rsvp .card__title { text-align: center; margin: 0 0 22px; }
.rsvp__pocket {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 -2px 3px rgba(90, 60, 50, .1));
}
.rsvp__pocket .pk-b { fill: var(--blush); }
.rsvp__pocket .pk-edge { fill: none; stroke: var(--blush-edge); stroke-width: .3; stroke-opacity: .6; }

.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > .caps, .field legend { color: var(--muted); font-size: .62rem; padding: 0; margin-bottom: 8px; }
.field input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.field input[type="text"]:focus { border-bottom-color: var(--ink); }
.field input::placeholder { color: #B5ACA6; font-style: italic; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #E5DDD5;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color .2s, background .2s;
}
.choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.choice input::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.choice input:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.form-msg { min-height: 1.4em; margin: 0 0 12px; font-size: 1rem; text-align: center; color: #8A3B32; }
.form-msg.is-ok { color: var(--ink); }

.card--rsvp.is-sent .field,
.card--rsvp.is-sent .btn--wide { display: none; }
.card--rsvp.is-sent .form-msg { font-size: 1.2rem; font-style: italic; padding: 16px 0 60px; }

.link-again {
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 6px;
  font-family: var(--f-caps);
  font-style: normal;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.rsvp__note { max-width: 32ch; margin: 30px auto 0; line-height: 1.9; color: var(--muted); }

/* --- Closing --- */
.closing {
  text-align: center;
  padding: 30px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 70px);
}
.plant--closing { width: 64px; height: 128px; display: block; margin: 0 auto 10px; }
.closing__big { font-size: clamp(2.8rem, 12vw, 3.6rem); margin: 0 0 8px; line-height: 1.1; }
.closing .caps { margin: 0; color: var(--muted); }

/* --- Toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--f-caps);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
  z-index: 60;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .intro__hint, .seal::after { animation: none; }
  .env-flap, .env-letter, .intro { transition-duration: .01s; transition-delay: 0s; }
}

.env-letter__names {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(.95rem, 4.2vw, 1.15rem);
  letter-spacing: .04em;
}
.env-letter__names i { font-family: var(--f-script); font-style: normal; text-transform: none; font-size: 1.6em; color: var(--muted); }

/* Ampersands: elegant italic serif (script font's "&" is too faint) */
.amp {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--muted);
}
.intro__names .amp { font-size: clamp(2rem, 8.5vw, 2.6rem); margin: .05em 0 .08em; line-height: 1; }
.hero__amp.amp { font-size: clamp(2.2rem, 9.5vw, 2.9rem); margin: .02em 0 .06em; line-height: 1; }
.env-letter__names i.amp { font-family: var(--f-display); font-style: italic; font-size: 1em; }

/* =========================================================
   Names — same treatment as the save the date
   ("SAVE / the DATE": Italiana caps + overlapping script)
   ========================================================= */
.names-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Italiana", var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: .01em;
  color: var(--ink);
}
.names-title .nt-line { white-space: nowrap; }
.names-title .nt-row {
  position: relative;
  display: inline-block;
  padding-left: .78em;          /* room for the script to hang into */
}
.names-title .nt-amp {
  position: absolute;
  left: -.02em;
  bottom: -.2em;
  font-family: "Monsieur La Doulaise", var(--f-script);
  text-transform: none;
  font-size: 1.12em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  pointer-events: none;
}

.intro__names.names-title { font-size: clamp(2.5rem, 11.6vw, 3.4rem); }
.hero__title.names-title { font-size: clamp(2.6rem, 12.2vw, 3.8rem); margin: 26px 0 32px; }

/* small names line, like "ANA BÁRBARA & RODRIGO" under the photo */
.names-small {
  font-family: "Julius Sans One", var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--ink);
}
.env-letter__names.names-small { font-size: clamp(.72rem, 3.2vw, .85rem); letter-spacing: .12em; }
.closing .names-small { margin: 0; font-size: .74rem; }

/* Seal monogram sized from the seal itself so "AB&R" always fits */
.seal { --s: clamp(76px, 21vw, 90px); width: var(--s); }
.seal span {
  font-size: calc(var(--s) * .27);
  white-space: nowrap;
  letter-spacing: -.01em;
  padding: .12em 0 0 .06em;
}
.seal i { font-size: .8em; margin: 0 .02em; }
