/* ─────────────────────────────────────────────
   Albion & Diana — ftesa e dasmës
   ───────────────────────────────────────────── */

:root {
  --paper: #f8f3ec;
  --paper-deep: #efe5d8;
  --card: #fffefc;
  --ink: #2b2420;
  --ink-soft: #564a42;
  --ink-faint: #7a6c61;
  --copper: #a8642f;
  --copper-deep: #84491c;
  --copper-light: #e3b184;
  --peach: #f4dccb;
  --line: rgba(184, 116, 61, .28);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Alex Brush", "Snell Roundhand", cursive;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-ink: cubic-bezier(.45, .05, .35, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(110% 70% at 50% 0%, #fdfaf5 0%, rgba(253, 250, 245, 0) 62%),
    radial-gradient(70% 50% at 10% 100%, rgba(244, 220, 203, .45) 0%, rgba(244, 220, 203, 0) 70%),
    radial-gradient(70% 50% at 90% 60%, rgba(244, 220, 203, .3) 0%, rgba(244, 220, 203, 0) 70%);
  background-attachment: fixed;
}

body.is-locked { overflow: hidden; }

::selection { background: rgba(184, 116, 61, .22); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ───────────── Intro ───────────── */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5.5vh, 52px);
  padding: 24px 16px;
  overflow: hidden;
}

.intro.is-leaving { pointer-events: none; }

/* Faint roses in the corners of the page */
.page-floral {
  position: absolute;
  z-index: 0;
  width: clamp(150px, 26vw, 360px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: bloom 2.6s var(--ease-out) .2s forwards;
}

/* Mirrored into the opposite corners from the bouquet, so the scene balances on a diagonal */
.page-floral--tl { top: 0; right: 0; transform: scaleX(-1); --o: .38; }
.page-floral--br { bottom: 0; left: 0; transform: scaleX(-1); --o: .38; animation-delay: .5s; }
.intro__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 1.1s ease; }
.intro.is-leaving .intro__decor { opacity: 0; }

.intro__foot { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .6s ease, transform .6s ease; }

.intro__date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .21em;
  text-indent: .21em;
  text-transform: uppercase;
  color: var(--copper-deep);
  opacity: 0;
  animation: rise 1.4s var(--ease-out) 1s forwards;
}

.intro__date i { width: 26px; height: 1px; background: var(--copper-light); }

/* An arrangement the envelope rests on */
.envelope-wrap { position: relative; }

.bouquet {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 14px rgba(90, 56, 30, .1));
  opacity: 0;
  animation: bloom 2.2s var(--ease-out) .7s forwards;
}

.bouquet--back { z-index: 0; top: -27%; left: -17%; width: 54%; transform-origin: 30% 30%; rotate: -6deg; --o: 1; }
.bouquet--front { z-index: 2; right: -15%; bottom: -27%; width: 47%; transform-origin: 70% 70%; rotate: 3deg; --o: 1; animation-delay: 1s; }

.envelope-shadow {
  position: absolute;
  z-index: 0;
  left: 6%;
  right: 6%;
  bottom: -8%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90, 56, 30, .26), rgba(90, 56, 30, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.envelope-tilt { position: relative; z-index: 1; }

.intro__to {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 4.2rem;
  justify-content: flex-end;
  text-align: center;
  opacity: 0;
  animation: rise 1.4s var(--ease-out) .4s forwards;
  transition: opacity .6s ease, transform .6s ease;
}

.intro__eyebrow {
  font-size: .84rem;
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.intro__name {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1.2;
  color: var(--copper-deep);
}

.intro__name:empty { display: none; }

.intro__hint {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .25em;
  text-indent: .25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: opacity .6s ease, transform .6s ease;
}

.intro__hint span { display: inline-block; opacity: 0; animation: rise 1.4s var(--ease-out) 1.3s forwards, breathe 3s ease-in-out 2.8s infinite; }

.intro.is-open .intro__to,
.intro.is-open .intro__foot { opacity: 0 !important; transform: translateY(8px); }

.envelope-wrap {
  animation: enter 1.8s var(--ease-out) backwards;
  will-change: transform;
}

/* While the letter rises, the envelope eases down a little so the whole letter stays in view */
.intro.is-open .envelope-wrap {
  transform: translateY(15%);
  transition: transform 1.3s cubic-bezier(.3, .7, .25, 1) 1.1s;
}

/* Then it sinks away gently while the letter grows into the invitation */
.intro.is-leaving .envelope-wrap {
  transform: translateY(70vh) rotate(3deg);
  opacity: 0;
  transition: transform 1.3s cubic-bezier(.5, 0, .75, .25), opacity .9s ease .25s;
}

/* Gentle pointer tilt before opening */
.envelope-tilt {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease-out);
}

/* The letter, lifted out of the envelope and grown into the card */
.morph {
  position: fixed;
  z-index: 20;
  border-radius: 2px;
  background: linear-gradient(180deg, #fffefb, var(--card));
  box-shadow:
    inset 0 0 0 1px rgba(184, 116, 61, .08),
    0 60px 100px -60px rgba(90, 56, 30, .45),
    0 20px 44px -28px rgba(90, 56, 30, .2);
  pointer-events: none;
  will-change: left, top, width, height;
  /* Lettering sizes are set in cqi by the script, so they grow with the letter */
  container-type: inline-size;
}

.envelope {
  position: relative;
  width: min(86vw, 470px);
  aspect-ratio: 1.45 / 1;
  perspective: 1600px;
  cursor: pointer;
  animation: float 6s ease-in-out 1.8s infinite;
  -webkit-tap-highlight-color: transparent;
}

.envelope.is-open { animation-play-state: paused; cursor: default; }

.envelope__back {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 3px;
  background: linear-gradient(160deg, #f1e7da, #e6d7c4);
  box-shadow: 0 46px 80px -34px rgba(90, 56, 30, .45), 0 14px 28px -14px rgba(90, 56, 30, .22);
  overflow: hidden;
}

/* Peach liner with tiny copper dots */
.envelope__back::before,
.flap__face--back {
  background-color: #f2d6c3;
  background-image:
    radial-gradient(rgba(184, 116, 61, .38) 1px, transparent 1.6px),
    radial-gradient(rgba(184, 116, 61, .22) 1px, transparent 1.6px),
    linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(120, 70, 40, .05));
  background-size: 14px 14px, 14px 14px, 100% 100%;
  background-position: 0 0, 7px 7px, 0 0;
}

.envelope__back::before {
  content: "";
  position: absolute;
  inset: 5% 5% 30%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.envelope__letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 5%;
  height: 90%;
  z-index: 2;
  border-radius: 2px;
  background: linear-gradient(180deg, #fffefb, #fcf8f1);
  box-shadow: 0 1px 2px rgba(90, 56, 30, .1), 0 10px 30px -14px rgba(90, 56, 30, .3);
  transition: transform 1.3s cubic-bezier(.3, .7, .25, 1) 1.1s, box-shadow 1.3s ease 1.1s;
}

/* The letter slides most of the way out, so its lettering can be read before it becomes the card */
.envelope.is-open .envelope__letter {
  transform: translateY(-74%);
  box-shadow: 0 1px 2px rgba(90, 56, 30, .1), 0 28px 44px -18px rgba(90, 56, 30, .38);
}

.letter__inner {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 116, 61, .3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 9%;
  gap: 3px;
}

.letter__kicker, .letter__date {
  font-size: .76rem;
  letter-spacing: .25em;
  text-indent: .25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.letter__mono {
  font-family: var(--script);
  font-size: clamp(1.9rem, 7.6vw, 2.7rem);
  line-height: 1.15;
  color: var(--copper);
  white-space: nowrap;
}

.letter__mono i, .footer__mono i, .seal__text em { font-style: normal; font-size: .7em; margin: 0 .08em; }

.letter__rule { width: 34px; height: 1px; background: var(--copper-light); margin: 3px 0 4px; }

.envelope__pocket { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.pocket { position: absolute; inset: 0; filter: drop-shadow(0 -2px 3px rgba(90, 56, 30, .1)); }
.pocket::before { content: ""; position: absolute; inset: 0; }

.pocket--left::before { clip-path: polygon(0 0, 52% 55%, 0 100%); background: linear-gradient(100deg, #f7f0e6, #efe5d7); }
.pocket--right::before { clip-path: polygon(100% 0, 48% 55%, 100% 100%); background: linear-gradient(260deg, #f7f0e6, #efe5d7); }
.pocket--bottom { filter: drop-shadow(0 -3px 4px rgba(90, 56, 30, .12)); }
.pocket--bottom::before { clip-path: polygon(0 100%, 50% 47%, 100% 100%); background: linear-gradient(0deg, #fbf6ef, #f2e9dc); }

/* Vellum band wrapped around the envelope, held by the seal */
.envelope__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 59%;
  height: 19%;
  z-index: 5;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 250, 244, .45));
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  border-top: 1px solid rgba(184, 116, 61, .16);
  border-bottom: 1px solid rgba(184, 116, 61, .16);
  box-shadow: 0 2px 4px -2px rgba(90, 56, 30, .12);
  pointer-events: none;
  transition: opacity .5s ease .1s, transform .7s var(--ease-out) .1s;
}

.envelope.is-open .envelope__band { opacity: 0; transform: translateY(-20%) scaleY(.5); }

.flap-shadow {
  position: absolute;
  left: 0; right: 0; top: 2%;
  height: 60%;
  z-index: 3;
  filter: blur(5px);
  opacity: .45;
  pointer-events: none;
  transition: opacity .4s ease .3s;
}

.flap-shadow span { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: rgba(90, 56, 30, .3); }

.envelope.is-open .flap-shadow { opacity: 0; }

.envelope__flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 60%;
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.55, .05, .3, 1) .35s, z-index 0s .9s;
}

.flap__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 52.5% 96%, 50% 100%, 47.5% 96%);
}

.flap__face--front { background: linear-gradient(180deg, #faf4ec 0%, #f2e9dc 70%, #eadfce 100%); }
.flap__face--back { transform: rotateX(180deg); }

.envelope.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }

/* Copper wax seal */
.seal {
  position: absolute;
  left: 50%;
  top: 59%;
  z-index: 6;
  width: clamp(62px, 17vw, 80px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease-out), opacity .5s ease, filter .5s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Two halves with a jagged crack, so the seal breaks rather than vanishes */
.seal__half {
  position: absolute;
  inset: 0;
  transition: transform .75s cubic-bezier(.3, .6, .4, 1) .12s, opacity .6s ease .3s;
}

.seal__half--l { clip-path: polygon(0 0, 53% 0, 47% 20%, 55% 41%, 46% 60%, 54% 79%, 49% 100%, 0 100%); }
.seal__half--r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 49% 100%, 54% 79%, 46% 60%, 55% 41%, 47% 20%); }

.envelope.is-open .seal__half--l { transform: translate(-16%, 22%) rotate(-24deg); opacity: 0; }
.envelope.is-open .seal__half--r { transform: translate(16%, 26%) rotate(20deg); opacity: 0; }

.seal__wax {
  position: absolute;
  inset: 0;
  border-radius: 47% 53% 51% 49% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 34% 30%, #dba175 0%, #bb7743 36%, #9a5a2c 72%, #7e4720 100%);
  box-shadow:
    inset -3px -4px 8px rgba(60, 25, 5, .3),
    inset 3px 3px 6px rgba(255, 220, 190, .35),
    0 6px 14px -4px rgba(90, 45, 15, .5),
    0 2px 3px rgba(90, 45, 15, .3);
}

.seal__ring {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(255, 228, 200, .3);
  box-shadow: inset 0 1px 2px rgba(60, 25, 5, .3), 0 1px 0 rgba(255, 220, 190, .2);
}

.seal__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--script);
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  color: rgba(255, 238, 220, .9);
  text-shadow: 0 -1px 0 rgba(60, 25, 5, .35), 0 1px 0 rgba(255, 220, 190, .2);
  white-space: nowrap;
}

.seal:hover { transform: translate(-50%, -50%) scale(1.06); }
.seal:active { transform: translate(-50%, -50%) scale(.96); }
.seal:focus-visible { outline: none; }
.seal:focus-visible .seal__wax { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--copper); }

.seal::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(184, 116, 61, .5);
  opacity: 0;
  animation: halo 2.8s var(--ease-out) 2.4s infinite;
}

.envelope.is-open .seal { pointer-events: none; animation: press .22s ease-out; }
.envelope.is-open .seal::after { animation: none; }

/* ───────────── Invitation card ───────────── */

.invite {
  position: relative;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.6s var(--ease-io), visibility 0s 1.6s;
}

.invite.is-shown { opacity: 1; visibility: visible; transition: opacity 1.6s var(--ease-io); }
.invite.is-instant { transition: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) 16px clamp(84px, 12vh, 112px);
  overflow-x: clip;
}

.card-stage { position: relative; width: min(600px, 100%); }

/* Roses peeking out from behind the card */
.stage-floral {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 2s var(--ease-out) .9s, transform 2.6s var(--ease-out) .9s;
}

.stage-floral--tr { top: -6%; right: -27%; width: 46%; transform: scaleX(-1) rotate(4deg) scale(.86); }
.stage-floral--bl { bottom: -5%; left: -26%; width: 44%; transform: scaleX(-1) rotate(-3deg) scale(.86); transition-delay: 1.3s; }

.invite.is-shown .stage-floral { opacity: .92; }
.invite.is-shown .stage-floral--tr { transform: scaleX(-1) rotate(4deg); }
.invite.is-shown .stage-floral--bl { transform: scaleX(-1) rotate(-3deg); }

@media (max-width: 700px) {
  .stage-floral--tr { top: -40px; right: -14%; width: 40%; }
  .stage-floral--bl { bottom: -36px; left: -14%; width: 40%; }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  background: var(--card);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(184, 116, 61, .08),
    0 60px 100px -60px rgba(90, 56, 30, .45),
    0 20px 44px -28px rgba(90, 56, 30, .2);
}

.floral {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 2s var(--ease-out), transform 2.4s var(--ease-out), filter 2s var(--ease-out);
}

.floral--tl { top: 0; left: 0; width: 41%; transform-origin: 0 0; transform: scale(.9) rotate(-3deg); }
.floral--br { right: 0; bottom: 0; width: 38.5%; transform-origin: 100% 100%; transform: scale(.9) rotate(3deg); transition-delay: .5s; }

.invite.is-shown .floral { opacity: 1; filter: none; transform: none; }

.card__body {
  position: relative;
  z-index: 1;
  padding: 27% 6% 26%;
  text-align: center;
}

/* The quill: each line is revealed left → right behind a soft, feathered edge */
.write {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: .1em .35em;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 0 38%, transparent 62% 100%);
  mask-image: linear-gradient(90deg, #000 0 38%, transparent 62% 100%);
  -webkit-mask-size: 265% 100%;
  mask-size: 265% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.write.is-in { animation: write var(--dur, 1.2s) var(--ease-ink) forwards; }

.fade { opacity: 0; transform: translateY(10px); filter: blur(3px); }
.fade.is-in { animation: fadeUp var(--dur, .9s) var(--ease-out) forwards; }

.copper {
  background-image: linear-gradient(100deg, #7a421b 0%, #a8642f 24%, #c98a55 40%, #95572a 56%, #b9783f 74%, #7a421b 100%);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.copper.is-in {
  animation:
    write var(--dur, 1.2s) var(--ease-ink) forwards,
    shimmer 9s ease-in-out calc(var(--dur, 1.2s) + .6s) infinite;
}

.heading {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.15rem, 4.6cqi, 1.8rem);
  line-height: 1.32;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}

.heading__line { padding-block: .02em; }

.names {
  margin: .5em auto 0;
  font-family: var(--script);
  font-size: clamp(3rem, 12.6cqi, 5.4rem);
  line-height: 1.15;
  padding: .06em .3em .12em;
}

.names__amp { font-size: .82em; }

.rings {
  display: block;
  width: min(46%, 270px);
  height: auto;
  margin: -.2rem auto 0;
}

.facts {
  display: grid;
  grid-template-columns: .9fr auto .8fr auto 1.45fr;
  align-items: start;
  gap: 0 clamp(8px, 2.4cqi, 18px);
  margin: clamp(22px, 7cqi, 44px) 0 clamp(20px, 6cqi, 38px);
}

.fact { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; }
.fact dd { margin: 0; font-size: clamp(1.05rem, 4.1cqi, 1.6rem); line-height: 1.25; font-weight: 500; color: var(--ink); }
.fact--place dd { font-size: clamp(.92rem, 3cqi, 1.18rem); line-height: 1.3; font-weight: 500; }

.fact__icon {
  width: clamp(28px, 7.4cqi, 44px);
  height: auto;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact__icon .dots circle { fill: var(--copper); stroke: none; }

.fact__rule { width: 1px; height: 100%; min-height: 64px; background: linear-gradient(transparent, rgba(184, 116, 61, .65) 18%, rgba(184, 116, 61, .65) 82%, transparent); }

.fact__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
}

.fact__map {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper-deep);
  border-bottom: 1px solid rgba(184, 116, 61, .4);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}

.fact__map svg { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 1.4; }
.fact__link:hover .fact__map { color: var(--copper); border-color: var(--copper); }
.fact__link:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }

.message { margin: 0 auto clamp(14px, 4cqi, 26px); }
.message p { margin: .35rem 0 0; font-size: clamp(1.02rem, 3.2cqi, 1.3rem); line-height: 1.5; color: var(--ink); }
.message strong { font-weight: 500; color: var(--copper); }

.heart { width: 18px; height: 18px; fill: var(--copper); display: block; margin: 0 auto; }

.regards { margin: clamp(10px, 3cqi, 18px) 0 0; font-size: clamp(1.02rem, 3.2cqi, 1.3rem); }

.signature {
  margin-top: .05em;
  font-family: var(--script);
  font-size: clamp(2rem, 7cqi, 2.9rem);
  line-height: 1.25;
}

@media (max-width: 480px) {
  .floral--tl { width: 38%; }
  .floral--br { width: 34%; }
  .card__body { padding: 132px 18px 150px; }
  .facts { grid-template-columns: 1fr auto 1fr; row-gap: 22px; }
  .facts > .fact__rule:nth-of-type(2) { display: none; }
  .fact--place { grid-column: 1 / -1; }
  .fact--place dd { font-size: 1.05rem; }
}

.cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 32px);
  transform: translate(-50%, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--copper-deep);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-indent: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s var(--ease-out);
}

.cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(184, 116, 61, .2); }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--copper); animation: cue 2.4s var(--ease-io) infinite; }

.hero.is-complete .cue { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ───────────── Sections ───────────── */

.section {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 110px) 16px clamp(64px, 10vw, 110px);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.section__title {
  margin: .3rem 0 clamp(28px, 5vw, 44px);
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 3.9rem);
  line-height: 1.2;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  padding: 1.15em 2.3em;
  font: 600 .76rem/1 var(--serif);
  letter-spacing: .19em;
  text-indent: .19em;
  text-transform: uppercase;
  color: var(--copper-deep);
  background: transparent;
  border: 1px solid rgba(184, 116, 61, .55);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s, box-shadow .5s var(--ease-out), transform .5s var(--ease-out), opacity .3s;
}

.btn:hover { background: var(--copper); border-color: var(--copper); color: #fffdf8; box-shadow: 0 16px 32px -16px rgba(149, 90, 43, .7); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn--solid { width: 100%; background: var(--copper); border-color: var(--copper); color: #fffdf8; }
.btn--solid:hover { background: var(--copper-deep); border-color: var(--copper-deep); }

.btn--small { padding: .95em 1.5em; font-size: .76rem; letter-spacing: .22em; text-indent: 0; gap: .6em; }
.btn--small svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.day-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 1.1rem; }

/* Floating RSVP button, shown until the form is on screen */
.rsvp-pill {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font: 600 .7rem/1 var(--serif);
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fffdf8;
  text-decoration: none;
  background: linear-gradient(135deg, #c98a52, var(--copper) 45%, var(--copper-deep));
  border-radius: 999px;
  box-shadow: 0 18px 34px -14px rgba(120, 66, 25, .65), inset 0 1px 0 rgba(255, 230, 205, .35);
  opacity: 0;
  transform: translate(-50%, 160%);
  transition: transform .8s var(--ease-out), opacity .5s ease;
}

.rsvp-pill.is-visible { opacity: 1; transform: translate(-50%, 0); }
.rsvp-pill:hover { box-shadow: 0 22px 40px -14px rgba(120, 66, 25, .75), inset 0 1px 0 rgba(255, 230, 205, .35); }
.rsvp-pill:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }
.rsvp-pill svg { width: 14px; height: 14px; fill: currentColor; animation: beat 2.4s ease-in-out infinite; }

/* RSVP */
.rsvp__card {
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 52px) clamp(22px, 5vw, 50px);
  text-align: left;
  background: var(--card);
  border-radius: 3px;
  box-shadow: 0 50px 90px -60px rgba(90, 56, 30, .5), 0 16px 36px -26px rgba(90, 56, 30, .25);
}

.rsvp__card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(184, 116, 61, .2); pointer-events: none; }

.rsvp__family { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 18px; }
.rsvp__family-label { font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; color: var(--ink-faint); }
.rsvp__family-name { font-family: var(--script); font-size: clamp(2.2rem, 8vw, 2.9rem); line-height: 1.25; color: var(--copper-deep); }
.rsvp__allowance { margin-top: 2px; font-style: italic; font-size: 1.08rem; color: var(--ink-soft); }

.rsvp__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 30px;
  padding: 14px 18px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink-soft);
  background: rgba(244, 220, 203, .35);
  border: 1px solid rgba(184, 116, 61, .16);
  border-radius: 10px;
}

.rsvp__note svg { flex: none; width: 16px; height: 16px; margin-top: .25em; fill: var(--copper); }

.field { position: relative; margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }

.field__label {
  display: block;
  margin-bottom: .6rem;
  padding: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field__label em { font-style: normal; letter-spacing: .1em; text-transform: none; font-weight: 500; }

.field__hint { display: block; margin-top: .5rem; font-size: .95rem; font-style: italic; color: var(--ink-faint); }

.input {
  width: 100%;
  padding: .35em 0 .45em;
  font: 500 1.2rem/1.4 var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(43, 36, 32, .16);
  border-radius: 0;
  outline: none;
  transition: border-color .4s ease;
}

.input::placeholder { color: #c4b7ab; font-style: italic; font-weight: 400; }
.input:focus { border-bottom-color: var(--copper); }
.input.is-invalid { border-bottom-color: #b3625f; }
textarea.input { resize: vertical; min-height: 80px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .choices { grid-template-columns: 1fr; } }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.choice span {
  display: block;
  padding: .85em .8em;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  border: 1px solid rgba(184, 116, 61, .35);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .45s var(--ease-out), color .45s, border-color .45s;
}

.choice span:hover { border-color: var(--copper); }
.choice input:checked + span { background: var(--copper); border-color: var(--copper); color: #fffdf8; }
.choice input:focus-visible + span { outline: 2px solid var(--copper-light); outline-offset: 3px; }

.attending-only { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease-out), opacity .4s ease; }
.attending-only > * { min-height: 0; }
.attending-only.is-collapsed { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.attending-only__inner { overflow: hidden; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(184, 116, 61, .35);
  border-radius: 999px;
}

.stepper__btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  font: 400 1.4rem/1 var(--serif);
  color: var(--copper-deep);
  background: rgba(244, 220, 203, .5);
  cursor: pointer;
  transition: background-color .3s, color .3s, opacity .3s;
}

.stepper__btn:hover:not(:disabled) { background: var(--copper); color: #fff; }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__btn:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 2px; }

.stepper__value { min-width: 48px; text-align: center; font-size: 1.6rem; font-weight: 500; font-variant-numeric: lining-nums; }

.names-list { display: grid; gap: 10px; }

.name-row { display: grid; grid-template-columns: 28px 1fr; align-items: end; gap: 8px; animation: fadeUp .5s var(--ease-out) both; }
.name-row__num { padding-bottom: .55em; font-size: .9rem; color: var(--copper); font-variant-numeric: lining-nums; }

.form__error { margin: -8px 0 16px; padding: 10px 14px; font-size: 1rem; color: #8f3d3a; background: rgba(179, 98, 95, .08); border-radius: 8px; }

.form__deadline { margin: 14px 0 0; text-align: center; font-size: .95rem; font-style: italic; color: var(--ink-faint); }

.rsvp__summary, .rsvp__thanks, .rsvp__invalid { text-align: center; }
.rsvp__summary { padding: 4px 0 8px; }

.summary__title, .thanks__title {
  margin: 0 auto .3rem;
  font-family: var(--script);
  font-size: clamp(2.3rem, 8vw, 3.2rem);
  line-height: 1.3;
  color: var(--copper-deep);
}

.summary__text, .thanks__text { margin: 0 0 1rem; font-size: 1.15rem; color: var(--ink-soft); }

.summary__names { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.summary__names li { padding: .3em .9em; font-size: 1.02rem; border: 1px solid rgba(184, 116, 61, .3); border-radius: 999px; background: rgba(244, 220, 203, .25); }

.thanks__text { opacity: 0; transform: translateY(8px); transition: opacity 1s ease 1.1s, transform 1s var(--ease-out) 1.1s; }
.rsvp__thanks.is-in .thanks__text { opacity: 1; transform: none; }
.rsvp__thanks .link-btn, .rsvp__thanks .day-actions { opacity: 0; transition: opacity 1s ease 1.6s; }
.rsvp__thanks.is-in .day-actions { opacity: 1; }
.rsvp__thanks.is-in .link-btn { opacity: 1; }

.rsvp__invalid, .rsvp__general { margin: 10px 0; text-align: center; font-size: 1.15rem; font-style: italic; line-height: 1.5; color: var(--ink-soft); }
.rsvp__general { margin: 0; }

.footer { position: relative; padding: 24px 16px 72px; text-align: center; }
.footer__rings { width: 150px; height: auto; opacity: .9; }
.footer__mono { margin: 0; font-family: var(--script); font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1.2; color: var(--copper); }
.footer__date { margin: .2rem 0 1.6rem; font-size: .82rem; letter-spacing: .25em; text-indent: .25em; color: var(--ink-faint); }

.link-btn {
  padding: 6px 4px;
  font: italic 1.05rem var(--serif);
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(184, 116, 61, .5);
  text-underline-offset: 5px;
  transition: color .3s;
}

.link-btn:hover { color: var(--copper-deep); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────────── Keyframes ───────────── */

@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes fadeUp { to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes enter { from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-.4deg); } }
@keyframes halo { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes bloom { from { opacity: 0; scale: .9; filter: blur(4px); } to { opacity: var(--o, 1); scale: 1; filter: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } }
@keyframes press { 0% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(.9); } 100% { transform: translate(-50%, -50%) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .write { -webkit-mask-image: none; mask-image: none; }
  .fade { opacity: 1; transform: none; filter: none; }
}

/* ───────────── Music toggle ───────────── */

.music {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 16;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--copper-deep);
  background: rgba(255, 254, 252, .86);
  border: 1px solid rgba(168, 100, 47, .3);
  border-radius: 50%;
  box-shadow: 0 10px 24px -14px rgba(90, 56, 30, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  animation: rise .8s var(--ease-out) both;
  transition: background-color .3s, transform .3s var(--ease-out);
}

.music:hover { transform: scale(1.06); }
.music:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }

.music__bars { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.music__bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.music__bars i:nth-child(2) { animation-delay: -.35s; }
.music__bars i:nth-child(3) { animation-delay: -.7s; }
.music__bars i:nth-child(4) { animation-delay: -.15s; }
.music__off { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.music.is-playing .music__bars { display: flex; }
.music.is-playing .music__off { display: none; }

@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.footer__credit { margin: 1.4rem 0 0; font-size: .86rem; font-style: italic; color: var(--ink-faint); }

/* ───────────── Countdown ───────────── */

.countdown { padding-bottom: clamp(24px, 5vw, 48px); }
.countdown .section__title { margin-bottom: clamp(22px, 4vw, 34px); }

.countdown__grid {
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(10px, 3vw, 26px);
  padding: clamp(20px, 4vw, 30px) clamp(18px, 5vw, 44px);
  background: var(--card);
  border-radius: 3px;
  box-shadow: 0 40px 80px -56px rgba(90, 56, 30, .45), 0 14px 30px -24px rgba(90, 56, 30, .22);
  position: relative;
}

.countdown__grid::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(168, 100, 47, .2); pointer-events: none; }

.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(54px, 15vw, 96px); }

.countdown__num {
  font-weight: 500;
  font-size: clamp(2.3rem, 9vw, 4.2rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}

.countdown__label {
  margin-top: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.countdown__sep { align-self: center; width: 1px; height: clamp(34px, 7vw, 56px); margin-bottom: 1.4rem; background: linear-gradient(transparent, rgba(168, 100, 47, .5), transparent); }

.countdown__date { margin: 1.1rem 0 0; font-size: 1.12rem; font-style: italic; color: var(--ink-soft); }

.countdown__today { margin: 0; font-family: var(--script); font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1.2; color: var(--copper-deep); }
.countdown.is-today .countdown__grid { display: none; }

@media (max-width: 380px) {
  .countdown__sep { display: none; }
  .countdown__grid { gap: 6px; padding-inline: 14px; }
}

/* After the wedding: link to the thank-you page */
.ty-banner {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 17;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 14px 24px;
  font: 600 .86rem/1.2 var(--serif);
  letter-spacing: .08em;
  color: #fffdf8;
  text-decoration: none;
  background: linear-gradient(135deg, #c98a52, var(--copper) 45%, var(--copper-deep));
  border-radius: 999px;
  box-shadow: 0 18px 34px -14px rgba(120, 66, 25, .65), inset 0 1px 0 rgba(255, 230, 205, .35);
  transform: translateX(-50%);
  animation: tyIn 1s var(--ease-out) .6s both;
}

@keyframes tyIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

.ty-banner svg { flex: none; width: 15px; height: 15px; fill: currentColor; animation: beat 2.4s ease-in-out infinite; }
.ty-banner:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }
