/* ============================================================
   The invitation — white paper, wine ink, blush roses.
   ============================================================ */

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

/* The whole card reads a size up; rem-based spacing follows so the
   proportions hold. The dashboard keeps its own, denser scale. */
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--wine);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.6;
  /* Default (subpixel) smoothing: "antialiased" thins light text on paper. */
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, p, blockquote, figure { margin: 0; }
p, blockquote { text-wrap: pretty; }
.hero__text, .invitation__line, .romance__text, .rsvp__lead { text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--blush-35); color: var(--wine); }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.icon { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* keeps tracked caps optically centred */
  text-transform: uppercase;
  color: var(--wine);
}

/* Stems lean past the edges of their sections by design. */
.page { position: relative; overflow-x: hidden; overflow-x: clip; }

/* ---- Flora ------------------------------------------------------------
   Both engravings are single-colour artwork used as masks, so the same
   file prints in wine or blush without a second copy of the drawing. */

.stem,
.bloom {
  display: inline-block;
  background-color: var(--wine);
  -webkit-mask: var(--art) center / contain no-repeat;
  mask: var(--art) center / contain no-repeat;
}

.stem {
  --art: url("../assets/flora/rose-stem.svg");
  --h: 300px;
  --r: 0deg;
  --flip: 1;
  position: absolute;
  z-index: 0;
  width: calc(var(--h) * 0.301);
  height: var(--h);
  /* The stem's cut end is the pivot, so every placement below reads as
     "plant it here, lean it this way"; --flip mirrors the drawing. */
  transform-origin: 50% 100%;
  transform: rotate(var(--r)) scaleX(var(--flip));
  pointer-events: none;
}

.stem--blush { background-color: var(--blush); }

.bloom {
  --art: url("../assets/flora/rose-head.svg");
  --s: 26px;
  width: var(--s);
  height: var(--s);
  flex: none;
}

.bloom--xs { --s: 11px; background-color: var(--blush); }
.bloom--sm { --s: 18px; }
.bloom--md { --s: 46px; }

.petal {
  --art: url("../assets/flora/rose-head.svg");
  position: absolute;
  z-index: 0;
  width: var(--s, 40px);
  height: var(--s, 40px);
  background-color: var(--blush-35);
  -webkit-mask: var(--art) center / contain no-repeat;
  mask: var(--art) center / contain no-repeat;
  pointer-events: none;
}

/* ---- Rule: line · rose · line ----------------------------------------- */

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.rule__line {
  width: clamp(2.5rem, 12vw, 4.5rem);
  height: 1px;
  background: var(--blush);
}

/* ============================================================
   1 · Hero
   ============================================================ */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5rem 1.25rem 7rem;
  overflow: hidden;
  text-align: center;
}

/* A garland: two mirrored stems planted in the top corners lean in along
   the top edge, and two small blush sprigs keep the bottom corners. They
   stay in the margins so nothing ever crosses the names. */
.stem--hero-tl,
.stem--hero-tr,
.stem--hero-tl2,
.stem--hero-tr2 { top: calc(var(--h) * -1); }

.stem--hero-tl  { --h: clamp(150px, 36vw, 440px); --r: 112deg; left: calc(var(--h) * -0.15); }
.stem--hero-tr  { --h: clamp(150px, 36vw, 440px); --r: -112deg; --flip: -1; right: calc(var(--h) * -0.15); }
.stem--hero-tl2 { --h: clamp(110px, 26vw, 320px); --r: 138deg; left: calc(var(--h) * -0.15); }
.stem--hero-tr2 { --h: clamp(110px, 26vw, 320px); --r: -138deg; --flip: -1; right: calc(var(--h) * -0.15); }
.stem--hero-bl  { --h: clamp(100px, 24vw, 300px); --r: 58deg; left: calc(var(--h) * -0.15); bottom: -6px; }
.stem--hero-br  { --h: clamp(100px, 24vw, 300px); --r: -58deg; --flip: -1; right: calc(var(--h) * -0.15); bottom: -6px; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--measure);
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.1rem;
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 0.95;
}

.hero__name { font-size: clamp(4.4rem, 3rem + 9vw, 8.5rem); }

.hero__amp {
  margin: -0.1em 0 -0.05em;
  font-size: clamp(2.4rem, 1.8rem + 4vw, 4rem);
  color: var(--blush);
}

.hero__rule { margin-top: 1.9rem; }

.hero__text {
  max-width: 25rem;
  margin-top: 1.6rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--wine);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero__cue-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--wine);
  transition: color 240ms ease;
}

.hero__cue:hover .hero__cue-text { color: var(--wine); }

.hero__cue-line {
  position: relative;
  width: 1px;
  height: 3.2rem;
  overflow: hidden;
  background: var(--blush-35);
}

.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform: translateY(-100%);
  animation: cue-drip 2.6s var(--ease-soft) 2.4s infinite;
}

@keyframes cue-drip {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---- Opening: stems grow from their cut ends, the names settle in. ---- */

.js .hero .stem { clip-path: inset(100% 0 0 0); }
.js .is-open .hero .stem {
  clip-path: inset(0 0 0 0);
  transition: clip-path 2.2s var(--ease-out);
  animation: sway 9s ease-in-out 2.4s infinite alternate;
}
.js .is-open .stem--hero-tl2,
.js .is-open .stem--hero-tr2 { transition-delay: 0.35s; }
.js .is-open .stem--hero-bl,
.js .is-open .stem--hero-br { transition-delay: 0.7s; }

@keyframes sway {
  from { transform: rotate(var(--r)) scaleX(var(--flip)); }
  to   { transform: rotate(calc(var(--r) + 1.6deg)) scaleX(var(--flip)); }
}

.js .hero__eyebrow,
.js .hero__name,
.js .hero__amp,
.js .hero__rule,
.js .hero__text,
.js .hero__cue {
  opacity: 0;
  transition:
    opacity 1.3s var(--ease-out),
    transform 1.3s var(--ease-out),
    filter 1.3s var(--ease-out);
}

.js .hero__name,
.js .hero__eyebrow,
.js .hero__text { transform: translateY(14px); filter: blur(6px); }
.js .hero__amp { transform: scale(0.6); }
.js .hero__rule { transform: scaleX(0.2); }
.js .hero__cue { transform: translate(-50%, 10px); }

.js .is-open .hero__eyebrow,
.js .is-open .hero__name,
.js .is-open .hero__amp,
.js .is-open .hero__rule,
.js .is-open .hero__text { opacity: 1; transform: none; filter: none; }
.js .is-open .hero__cue { opacity: 1; transform: translate(-50%, 0); }

.js .is-open .hero__eyebrow { transition-delay: 0.3s; }
.js .is-open .hero__name:first-child { transition-delay: 0.55s; }
.js .is-open .hero__amp { transition-delay: 0.9s; }
.js .is-open .hero__name:last-child { transition-delay: 1.05s; }
.js .is-open .hero__rule { transition-delay: 1.4s; }
.js .is-open .hero__text { transition-delay: 1.6s; }
.js .is-open .hero__cue { transition-delay: 2.2s; }

/* ============================================================
   The vine — a thread with a rose that ties one section to the next
   ============================================================ */

.vine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.5rem;
}

.vine::before,
.vine::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blush);
}

.vine__line {
  width: 1px;
  height: clamp(3.2rem, 2rem + 5vw, 5.5rem);
  background: var(--blush);
  transform-origin: 50% 0;
}

.vine__bloom { --s: 30px; }

.js .vine::before,
.js .vine::after { opacity: 0; transition: opacity 600ms ease; }
.js .vine__line { transform: scaleY(0); transition: transform 1s var(--ease-soft); }
.js .vine__bloom {
  opacity: 0;
  transform: scale(0.3) rotate(-60deg);
  transition: opacity 800ms ease, transform 1.1s var(--ease-out);
}

.js .vine.is-in::before { opacity: 1; }
.js .vine.is-in .vine__line:first-child { transform: scaleY(1); }
.js .vine.is-in .vine__bloom { opacity: 1; transform: none; transition-delay: 0.75s; }
.js .vine.is-in .vine__line:last-child { transform: scaleY(1); transition-delay: 1.25s; }
.js .vine.is-in::after { opacity: 1; transition-delay: 2.1s; }

/* ============================================================
   Sections
   ============================================================ */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2rem, 40rem);
  margin-inline: auto;
  padding-block: 2.5rem;
  text-align: center;
}

.section > * { position: relative; z-index: 1; }
.section > .stem,
.section > .petal { position: absolute; z-index: 0; }

.section__title {
  margin-top: 0.6rem;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.js .reveal.section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

.js .reveal.section.is-in { opacity: 1; transform: none; }

/* ---- 2 · Invitation card --------------------------------------------- */

.invitation { padding-block: 1.5rem; }

.frame {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  padding: clamp(2.6rem, 2rem + 4vw, 4rem) clamp(1.3rem, 0.8rem + 3vw, 3rem);
  border: 1px solid var(--wine-40);
  outline: 1px solid var(--blush-60);
  outline-offset: -9px;
  background: var(--white);
}

.frame > *:not(.stem):not(.arch__crown):not(.arch__garden) { position: relative; z-index: 1; }

/* ---- The arch: a Lebanese window with a bell-flower garden ------------
   Distinct from the roses everywhere else: Paul Bürck's Art Nouveau
   bell-flowers, in two tones, grow along the sill; a denser cluster sits
   on the keystone. Both are masks, like the roses, so they print in the
   card's own inks. */

.frame--arch {
  /* An oversized radius is scaled down to a true semicircle by the browser,
     whatever the card's width; the outline follows the same curve. */
  border-radius: 40rem 40rem 3px 3px;
  padding-top: clamp(5.5rem, 3.5rem + 9vw, 8.5rem);
  padding-bottom: calc(var(--garden-h) + 2.6rem);
  --garden-h: clamp(78px, 20vw, 118px);
}

.arch__crown,
.bell {
  display: block;
  -webkit-mask: var(--art) center bottom / contain no-repeat;
  mask: var(--art) center bottom / contain no-repeat;
}

.arch__crown,
.arch__garden { position: absolute; z-index: 0; pointer-events: none; }

.arch__crown {
  --art: url("../assets/flora/bellflower-cluster.svg");
  --c: clamp(80px, 19vw, 112px);
  left: 50%;
  top: calc(var(--c) * -1 + 6px);
  width: calc(var(--c) * 0.76);
  height: var(--c);
  margin-left: calc(var(--c) * -0.38);
  background-color: var(--wine);
}

/* A composed bouquet on the sill: tallest in the middle, in wine; blush
   plants either side, mirrored so each pair leans in towards the centre. */
.arch__garden {
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0px, 1.5vw, 14px);
}

.bell {
  --art: url("../assets/flora/bellflower.svg");
  --s: 1;
  --flip: 1;
  width: calc(var(--garden-h) * 0.81 * var(--s));
  height: calc(var(--garden-h) * var(--s));
  background-color: var(--blush);
  transform-origin: 50% 100%;
  transform: scaleX(var(--flip));
}

.bell--1, .bell--5 { --s: 0.62; }
.bell--2, .bell--4 { --s: 0.82; }
.bell--3 { background-color: var(--wine); }
.bell--4, .bell--5 { --flip: -1; }

@media (max-width: 520px) {
  .bell--1, .bell--5 { display: none; }
}

/* The garden grows up from the sill, centre first, then a breeze. */
.js .invitation .bell,
.js .invitation .arch__crown { clip-path: inset(100% 0 0 0); }

.js .invitation.is-in .bell,
.js .invitation.is-in .arch__crown {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s var(--ease-out);
}

.js .invitation.is-in .bell { animation: breeze 6.5s ease-in-out 2.6s infinite alternate; }
.js .invitation.is-in .bell--3 { transition-delay: 0.3s; }
.js .invitation.is-in .bell--2,
.js .invitation.is-in .bell--4 { transition-delay: 0.6s; animation-duration: 7.5s; }
.js .invitation.is-in .bell--1,
.js .invitation.is-in .bell--5 { transition-delay: 0.9s; animation-duration: 8.5s; }
.js .invitation.is-in .arch__crown { transition-delay: 1.3s; }

@keyframes breeze {
  from { transform: scaleX(var(--flip)) skewX(-1.6deg); }
  to   { transform: scaleX(var(--flip)) skewX(1.6deg); }
}

.invitation__greeting {
  margin-bottom: 1.6rem;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.4rem);
  line-height: 1.2;
}

.invitation__greeting[hidden] { display: none; }

.parents {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.7rem, 3vw, 1.6rem);
}

.parent { display: flex; flex-direction: column; gap: 0.2rem; }

.parent__title {
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  color: var(--wine);
}

.parent__name {
  font-size: clamp(0.98rem, 0.82rem + 0.8vw, 1.16rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.parents__divider {
  width: 1px;
  height: 3.4rem;
  background: var(--blush);
}

.invitation__line {
  margin-top: 1.7rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.7;
  color: var(--wine);
}

.couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.6rem;
  font-weight: 400;
}

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

.couple__first {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 2.4rem + 5vw, 5.2rem);
  line-height: 1.05;
}

.couple__last {
  margin-top: -0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--wine);
}

.couple__and {
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blush);
}

/* ---- The card in Arabic ------------------------------------------------
   Arabic letters join, so letter-spacing and capitals would break the
   words apart; the card resets them and uses real Arabic faces. The
   couple's names alone are in nastaliq calligraphy. */

.frame--ar { font-family: var(--font-arabic); }

.frame--ar .invitation__greeting { font-family: var(--font-arabic-script); font-weight: 400; font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.2rem); line-height: 1.6; }
.frame--ar .invitation__greeting-title { margin-inline-end: 0.35em; }

.frame--ar .parent__title,
.frame--ar .invitation__line { font-style: normal; }

.frame--ar .parent__title { font-size: 1.05rem; font-weight: 500; }

.frame--ar .parent__name {
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
  font-weight: 600;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.4rem);
  line-height: 1.6;
}

.frame--ar .invitation__line { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.38rem); font-weight: 500; line-height: 1.9; }

.frame--ar .couple__first,
.frame--ar .couple__and { font-family: var(--font-arabic-names); font-weight: 400; }
.frame--ar .couple__first { font-size: clamp(2.9rem, 2.2rem + 4vw, 4.2rem); line-height: 1.6; }
.frame--ar .couple__and { font-size: 2rem; line-height: 1.2; }

/* ---- 3 · Countdown ---------------------------------------------------- */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 1.3rem);
  margin-top: 2rem;
}

.countdown[hidden] { display: none; }

.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(4.5rem, 3.2rem + 5vw, 6.2rem);
  aspect-ratio: 1;
  border: 1px solid var(--blush);
  border-radius: 50%;
}

.countdown__num {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.countdown__label {
  margin-top: 0.3rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}

.countdown__done {
  margin-top: 1.6rem;
  font-size: 1.3rem;
  font-style: italic;
}

/* ---- 4 · Romance ------------------------------------------------------ */

.romance { padding-block: 3rem 1rem; }

.petal--a { --s: 54px; left: 2%; top: 18%; transform: rotate(-18deg); }
.petal--b { --s: 34px; right: 8%; top: 8%; transform: rotate(24deg); }

.line-rose {
  width: 92px;
  height: auto;
  overflow: visible;
}

.line-rose path {
  fill: none;
  stroke: var(--wine);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .line-rose path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .romance.is-in .line-rose path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 3.6s var(--ease-soft) 0.3s;
}

.romance__quote {
  max-width: 30rem;
  margin-top: 1.8rem;
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

.romance__text {
  max-width: 28rem;
  margin-top: 1.8rem;
  line-height: 1.75;
  color: var(--wine);
}

/* ---- 5 · Venue -------------------------------------------------------- */

/* ---- Crest: two sprigs reaching out from a medallion or a bloom ------- */

.crest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.crest .stem {
  --h: clamp(92px, 24vw, 128px);
  --gap: 2.9rem; /* half the medallion, plus air */
  top: calc(50% - var(--h));
}
.crest .stem--crest-l { --r: -74deg; left: calc(50% - var(--gap) - var(--h) * 0.15); }
.crest .stem--crest-r { --r: 74deg; --flip: -1; left: calc(50% + var(--gap) - var(--h) * 0.15); }
.crest--bloom .stem { --gap: 1.9rem; }

.js .reveal .crest .stem { clip-path: inset(100% 0 0 0); }
.js .reveal.is-in .crest .stem { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease-out) 0.4s; }

/* Side stems need real margins, so they only appear on wide screens. */
.stem--side { display: none; }

@media (min-width: 900px) {
  .stem--side { display: inline-block; }
  .stem--venue { --h: 260px; --r: 58deg; left: -200px; top: 30%; opacity: 0.7; }
}

.medallion {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid var(--blush);
  border-radius: 50%;
  outline: 1px solid var(--blush-35);
  outline-offset: 5px;
}

.medallion .icon { width: 2rem; height: 2rem; }

.venue__name {
  margin-top: 0.7rem;
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.venue__area {
  margin-top: 0.4rem;
  font-style: italic;
  color: var(--wine);
}

/* ---- 6 · Date and time ------------------------------------------------ */

.when__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 4vw, 1.8rem);
  margin-top: 1.4rem;
}

.when__side {
  min-width: 6.4rem;
  padding-block: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  border-block: 1px solid var(--blush);
}

.when__day {
  font-size: clamp(4.6rem, 3.4rem + 5vw, 6.4rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.when__year {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
}

.when__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.8rem;
  margin-top: 1.6rem;
}

.when__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
  color: var(--wine);
}

.when__item .icon { width: 1.35em; height: 1.35em; color: var(--wine); }

/* ---- Buttons ---------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wine);
  background: var(--white);
  border: 1px solid var(--wine-40);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms var(--ease-out);
}

.btn .icon { width: 1.25em; height: 1.25em; }

.btn:hover { border-color: var(--wine); background: var(--blush-08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid { color: var(--white); background: var(--wine); border-color: var(--wine); }
.btn--solid:hover { background: var(--wine); box-shadow: 0 14px 28px -16px var(--wine-65); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn--wide { width: 100%; }

.link-btn {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  font-style: italic;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--blush);
  cursor: pointer;
}

.link-btn:hover { border-bottom-color: var(--wine); }

/* ---- Footer ----------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

.footer__names {
  margin-top: 1.2rem;
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1.1;
}

.footer__date { margin-top: 0.5rem; }

.footer__forever {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer__forever span:last-child { margin-right: -0.34em; } /* balance the tracking */

.footer__infinity {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--blush);
}

/* ---- Small screens ---------------------------------------------------- */

@media (max-width: 420px) {
  .parents { grid-template-columns: 1fr; gap: 0.9rem; }
  .parents__divider { width: 3rem; height: 1px; justify-self: center; }
  .countdown__sep { display: none; }
  .countdown { gap: 0.3rem; }
  .countdown__cell { width: 4.3rem; }
  .countdown__label { letter-spacing: 0.08em; text-indent: 0.08em; }
  .when__side { min-width: 4.9rem; font-size: 0.78rem; letter-spacing: 0.2em; }
  .actions .btn { flex: 1 1 100%; }
}

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