/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · genre: editorial · theme: Elegant-existing · macrostructure: Photographic · iteration knobs: tactile monogram opening, editorial manual filmstrip, distinct wedding-party portraits, Ft1 identity masthead (wordmark=display-2xl, tagline=roman-body, links=single-return) · tone: restrained luxury · anchor hue: antique brass · generated: nano-banana flash (gemini-3.1-flash-image), post-processed · contrast: pass (40–41) · nav: N/A · footer: Ft1 · slop: pass (all 58 gates; 42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  min-height: 100%;
  background: var(--surround);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--surround);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

body::after {
  position: fixed;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.035;
}

html.elegant-sealed,
html.elegant-sealed body {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  color: var(--paper);
  background: var(--forest);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ----------------------------------------------------------- opening ritual */

.elegant-opening[hidden] {
  display: none;
}

.elegant-opening {
  position: fixed;
  inset: 0;
  z-index: var(--z-opening);
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding:
    max(var(--space-sm), env(safe-area-inset-top))
    max(var(--space-sm), env(safe-area-inset-right))
    max(var(--space-sm), env(safe-area-inset-bottom))
    max(var(--space-sm), env(safe-area-inset-left));
  overflow: clip;
  color: var(--ink);
  background: var(--paper-3);
}

.elegant-opening__stationery {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      color-mix(in oklab, var(--paper) 18%, transparent),
      color-mix(in oklab, var(--forest) 14%, transparent)
    ),
    url("stationery.webp") center 52% / cover no-repeat;
  transform: scale(1.01);
}

.elegant-opening__envelope {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 1rem), 31rem);
  height: min(20rem, 46dvh);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-paper);
  transform: translate(-50%, -31%) rotate(-0.65deg);
  perspective: 50rem;
}

.elegant-opening__envelope::before,
.elegant-opening__envelope::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.elegant-opening__envelope::before {
  z-index: 2;
  height: 62%;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: center top;
}

.elegant-opening__envelope::after {
  background:
    linear-gradient(32deg, var(--paper-3) 49.8%, transparent 50.2%),
    linear-gradient(-32deg, var(--paper-3) 49.8%, transparent 50.2%);
}

.elegant-opening__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 22rem);
  min-height: min(32rem, calc(100dvh - 2rem));
  padding: clamp(1.75rem, 5.5dvh, 3rem) clamp(1.25rem, 6vw, 2.5rem) clamp(1.5rem, 4dvh, 2.25rem);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-paper);
}

.elegant-opening__card::before {
  position: absolute;
  inset: var(--space-2xs);
  content: "";
  pointer-events: none;
  border: 1px solid var(--rule-soft);
}

.elegant-opening__eyebrow {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0;
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: var(--leading-label);
  text-indent: 0.24em;
  text-transform: uppercase;
}

.elegant-opening__sprig {
  position: relative;
  z-index: 1;
  width: min(58%, 8.5rem);
  height: auto;
  margin: clamp(1.5rem, 5dvh, 2.75rem) 0 var(--space-sm);
  opacity: 0.76;
}

.elegant-opening__names {
  position: relative;
  z-index: 1;
  align-self: start;
  min-width: 0;
  max-width: 11ch;
  margin: 0 auto var(--space-xs);
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.187rem, 11vw, 3.273rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: var(--leading-stack);
  text-wrap: balance;
}

.elegant-opening__date {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.elegant-opening__actions {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--space-2xs);
  width: 100%;
  margin-top: auto;
  padding-top: var(--space-lg);
}

.elegant-opening__open,
.elegant-opening__skip {
  min-height: var(--control-min);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0;
}

.elegant-opening__open {
  display: grid;
  justify-items: center;
  gap: var(--space-2xs);
  width: fit-content;
  padding: var(--space-3xs) var(--space-sm);
  color: var(--brass-deep);
  background: transparent;
  border: 0;
}

.elegant-opening__open:focus-visible {
  outline: none;
}

.elegant-opening__open:focus-visible .elegant-opening__seal {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.elegant-opening__seal {
  display: grid;
  place-items: center;
  width: 4.75rem;
  aspect-ratio: 1;
  color: var(--forest);
  background: radial-gradient(circle at 38% 30%, var(--brass-light), var(--brass) 68%, var(--brass-deep));
  border: 1px solid color-mix(in oklab, var(--brass-deep) 62%, transparent);
  border-radius: 50%;
  box-shadow: var(--shadow-seal);
  font-family: var(--font-display);
  font-size: var(--text-title-sm);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  text-indent: -0.08em;
  text-transform: none;
  transition:
    box-shadow var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.elegant-opening__skip {
  padding: var(--space-xs);
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.elegant-opening__skip:active {
  transform: translateY(1px);
}

.elegant-opening__open:active .elegant-opening__seal {
  box-shadow: var(--shadow-seal-pressed);
  transform: scale(0.96);
}

.elegant-opening__open:disabled,
.elegant-opening__skip:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.elegant-opening.is-opening {
  animation: elegant-opening-exit 1000ms var(--ease-in) both;
}

.elegant-opening.is-opening .elegant-opening__envelope::before {
  transform: rotateX(82deg);
  transition: transform var(--dur-medium) var(--ease-in-out);
}

.elegant-opening.is-opening .elegant-opening__seal {
  transform: scale(0.88);
  transition: transform var(--dur-micro) var(--ease-in);
}

.elegant-opening.is-opening .elegant-opening__card {
  opacity: 0;
  transform: translateY(-1.5rem) scale(0.985);
  transition:
    opacity var(--dur-slow) var(--ease-in) 180ms,
    transform var(--dur-slow) var(--ease-in-out) 180ms;
}

.elegant-opening.is-opening .elegant-opening__stationery {
  transform: scale(1.04);
  transition: transform 1000ms var(--ease-in-out);
}

@keyframes elegant-opening-exit {
  0%,
  58% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .elegant-opening__open:hover .elegant-opening__seal {
    box-shadow: var(--shadow-seal-hover);
  }

  .elegant-opening__skip:hover {
    color: var(--ink);
  }
}

/* ---------------------------------------------------------------- scaffold */

.invite-frame {
  container: invite-frame / inline-size;
  width: 100%;
}

/* The invitation is one sheet of paper on a dark table, so it stops at a
   width a card would be printed at instead of running to the window edge.
   The sheet carries the container as well: every cqi in this stylesheet then
   measures the paper, which is also what the catalogue's device frames and
   the host's preview hand it. */
.invite {
  container: invite-frame / inline-size;
  width: 100%;
  max-width: var(--sheet);
  margin: 0 auto;
  background: var(--paper);
  font-size: var(--text-body);
  box-shadow:
    0 0 0 1px oklch(0 0 0 / 0.16),
    0 1.5rem 4rem oklch(0 0 0 / 0.32);
}

.invite:focus {
  outline: none;
}

.invite__countdown,
.invite__story,
.invite__details,
.invite__rsvp {
  padding-inline: var(--gutter);
}

.invite__countdown {
  padding-block: clamp(2.5rem, 7cqi, 4.5rem);
  background: var(--paper-2);
}

.invite__story {
  position: relative;
  padding-block: clamp(4rem, 10cqi, 8rem);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--rule-soft);
}

.invite__story-ornament {
  width: min(44cqi, 10rem);
  height: auto;
  margin: 0 auto clamp(2rem, 5cqi, 3.5rem);
  opacity: 0.74;
}

.invite__details {
  padding-block: clamp(3.75rem, 9cqi, 7rem);
}

.invite__details--events {
  color: var(--ink);
  background: var(--paper-2);
}

.invite__details--couple,
.invite__details--gallery {
  border-top: 1px solid var(--rule-soft);
}

.invite__details--party {
  color: var(--ink);
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
}

.invite__details--gallery,
.invite__details--guests {
  color: var(--ink);
  background: var(--paper);
}

.invite__details--guests {
  padding-block: clamp(4rem, 10cqi, 7.5rem);
  border-top: 1px solid var(--rule-soft);
}

/* A section a couple skipped must not ship as a bare heading. */
.invite__details--couple:not(:has(.couple__partner)),
.invite__story:not(:has(.story__introduction, .story__milestone)),
.invite__countdown:not(:has(.countdown__remaining)),
.invite__details--gallery:not(:has(.gallery__item)),
.invite__details--party:not(:has(.wedding-party__person)),
.invite__details--events:not(:has(.event-schedule__event)),
.invite__details--guests:not(:has(.guest-information *)) {
  display: none;
}

/* ------------------------------------------------------------ section head */

.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 auto clamp(2rem, 5cqi, 3.5rem);
  text-align: left;
}

.section-head::after {
  flex: 1 1 auto;
  min-width: 2rem;
  content: "";
  border-top: 1px solid var(--rule);
}

.section-head__mark {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
  transform: rotate(45deg);
}

.section-label {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: var(--leading-display);
  text-wrap: balance;
}

.section-head--night {
  margin-bottom: clamp(2rem, 5cqi, 3rem);
}

.section-head--night::after {
  border-color: color-mix(in oklab, var(--brass-light) 35%, transparent);
}

.section-head--night .section-label {
  color: var(--brass-light);
}

.hero__names,
.section-label,
.countdown__remaining,
.couple__name,
.story__milestone-title,
.event-schedule__title,
.event-schedule__venue,
.wedding-party__name,
.guest-information__question,
.guest-information__travel-title,
.guest-information__gift-title,
.rsvp-widget__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------- hero */

.invite__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--paper);
}

.hero-photo {
  position: relative;
  order: 2;
  height: clamp(15rem, 48cqi, 29rem);
  overflow: hidden;
  background: url("stationery.webp") center 42% / cover no-repeat,
    var(--paper-3);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--paper) 48%, transparent),
    transparent 36%,
    var(--paper) 100%
  );
}

.hero-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: clamp(1.75rem, 6cqi, 4rem) var(--gutter) clamp(2.75rem, 8cqi, 6rem);
  text-align: center;
}

.hero-plate::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 1px;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    var(--brass) 18%,
    var(--brass) 82%,
    transparent
  );
  opacity: 0.6;
}

.hero-plate__folio {
  position: relative;
  z-index: 2;
  align-self: stretch;
  margin: 0 0 var(--space-xl);
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: var(--leading-label);
  text-align: right;
  text-transform: uppercase;
}

.hero-plate__crest {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(31rem, 88%);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none;
}

.invite__hero:has(.hero__cover-photo) .hero-photo,
.hero-plate:has(.hero__cover-photo) .hero-plate__crest {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-width: 0;
}

.hero__eyebrow {
  order: 1;
  align-self: center;
  width: min(100%, 28rem);
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: var(--leading-label);
  text-align: left;
  text-transform: uppercase;
}

.hero__cover-photo {
  order: 0;
  display: block;
  width: min(100%, 16rem);
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-xs);
  padding: var(--space-2xs);
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 50% 50% 0.25rem 0.25rem / 24% 24% 0.25rem 0.25rem;
  box-shadow: var(--shadow-whisper);
}

.hero__names {
  order: 2;
  margin: clamp(0.5rem, 2cqi, 1.25rem) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: var(--leading-stack);
  text-wrap: balance;
}

.hero__partner {
  display: block;
}

.hero__separator {
  display: block;
  margin: 0.08em 0;
  color: var(--brass);
  font-size: 0.38em;
  line-height: 1.5;
}

.hero__date {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 25rem;
  margin: var(--space-sm) 0 0;
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--leading-label);
  text-align: center;
  text-transform: uppercase;
}

.hero__date::before,
.hero__date::after {
  flex: 0 1 3rem;
  min-width: 0;
  height: 1px;
  content: "";
  background: var(--rule);
}

.hero__welcome {
  order: 4;
  max-width: 45ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.hero__actions {
  order: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  width: min(100%, 28rem);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--control-min);
  padding: var(--space-2xs) var(--space-3xs);
  overflow: hidden;
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: clamp(0.5625rem, 2.5cqi, var(--text-micro));
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.hero__action + .hero__action {
  border-inline-start: 1px solid var(--rule);
}

.hero__action:active {
  color: var(--ink);
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .hero__action:hover {
    background: var(--paper-2);
  }
}

/* ------------------------------------------------------------------ couple */

.couple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(2.5rem, 6cqi, 4.5rem) clamp(2rem, 5cqi, 4rem);
  margin: 0 auto;
}

.couple__partner {
  min-width: 0;
  text-align: center;
}

.couple__portrait {
  display: block;
  width: min(100%, 17rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto var(--space-md);
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 50% 50% 0.125rem 0.125rem / 30% 30% 0.125rem 0.125rem;
}

.couple__name {
  margin: 0 0 var(--space-3xs);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title-lg);
  font-weight: 400;
  line-height: var(--leading-title);
}

.couple__label {
  margin: 0;
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.couple__bio {
  max-width: 45ch;
  margin: var(--space-md) auto 0;
  padding-top: var(--space-md);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
  border-top: 1px solid var(--rule-soft);
}

.couple__bio > :first-child {
  margin-top: 0;
}

.couple__bio > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------- countdown */

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
  margin: 0 auto;
  padding: clamp(1.5rem, 4cqi, 2.25rem) 0;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--rule);
}

.plate .section-label {
  color: var(--brass-deep);
  font-size: var(--text-label);
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.countdown__remaining {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: var(--leading-display);
  text-wrap: balance;
}

.countdown__remaining--source {
  display: none;
}

.elegant-countdown {
  min-width: 0;
}

.elegant-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  min-width: 0;
}

.elegant-countdown__unit {
  display: grid;
  justify-items: center;
  gap: var(--space-3xs);
  min-width: 0;
  padding-inline: clamp(0.25rem, 1.5cqi, 1rem);
  text-align: center;
}

.elegant-countdown__unit + .elegant-countdown__unit {
  border-inline-start: 1px solid var(--rule);
}

.elegant-countdown__value {
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9375rem, 8cqi, 3.85rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.9;
  white-space: nowrap;
}

.elegant-countdown__value.is-changing {
  animation: elegant-countdown-tick var(--dur-medium) var(--ease-out) both;
}

@keyframes elegant-countdown-tick {
  0% {
    opacity: 0.48;
    transform: translateY(0.16em);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.elegant-countdown__label {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: clamp(0.5rem, 1.6cqi, var(--text-micro));
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: var(--leading-label);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.elegant-countdown__status {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: var(--leading-display);
  text-wrap: balance;
}

@container invite-frame (min-width: 48rem) {
  .plate {
    grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-xl);
  }

  .countdown__remaining,
  .elegant-countdown__status {
    text-align: right;
  }
}

/* ------------------------------------------------------------------- story */

.story {
  display: grid;
  gap: clamp(2.75rem, 7cqi, 5rem);
  margin: 0 auto;
}

.story__introduction {
  max-width: 43rem;
  margin: 0 auto;
  color: var(--ink);
  font-size: var(--text-lede);
  line-height: var(--leading-lede);
}

.story__introduction > :first-child,
.rsvp-widget > :first-child {
  margin-top: 0;
}

.story__introduction > :last-child,
.rsvp-widget > :last-child {
  margin-bottom: 0;
}

.story__introduction > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-size: 2.618em;
  line-height: 0.78;
}

.story__introduction a {
  color: var(--brass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.story__milestones {
  --rail: 0.125rem;
  --node: 0.5rem;
  position: relative;
  display: grid;
  gap: clamp(2rem, 5cqi, 3rem);
  margin: 0 auto;
  padding-inline-start: 1.25rem;
}

.story__milestones::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: var(--rail);
  width: 1px;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    var(--rule) 12%,
    var(--rule) 88%,
    transparent
  );
}

.story__milestone {
  position: relative;
  min-width: 0;
  padding-top: var(--space-md);
  text-align: left;
  border-top: 1px solid var(--rule);
}

.story__milestone::before {
  position: absolute;
  top: calc(var(--space-md) + 0.34rem);
  left: calc(var(--rail) - 1.25rem - var(--node) / 2);
  width: var(--node);
  height: var(--node);
  content: "";
  background: var(--brass);
  transform: rotate(45deg);
}

.story__milestone-date {
  display: block;
  margin-bottom: var(--space-3xs);
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.story__milestone-title {
  margin: 0 0 var(--space-2xs);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 400;
  line-height: var(--leading-title);
}

.story__milestone-description {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.story__milestone-description > :first-child {
  margin-top: 0;
}

.story__milestone-description > :last-child {
  margin-bottom: 0;
}

.story__milestone-photo {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  margin: 0 0 var(--space-md);
  object-fit: cover;
  border: 1px solid var(--rule);
}

/* Every second milestone swings to the outside edge — photo and words
   together, so the sway is a composition rather than a hole in the page. */
.story__milestone:nth-child(even) {
  text-align: right;
}

.story__milestone:nth-child(even) .story__milestone-photo {
  width: min(82%, 16rem);
  aspect-ratio: 4 / 5;
  margin-inline-start: auto;
}

.story__milestone:nth-child(even) .story__milestone-description {
  margin-inline-start: auto;
}

/* --------------------------------------------------------------- interlude */

.invite__interlude {
  position: relative;
  overflow: hidden;
  background: var(--forest);
}

.invite__interlude-image {
  display: block;
  width: 100%;
  height: clamp(12rem, 28cqi, 23rem);
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.82) contrast(1.03);
}

.invite__interlude::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--paper-2) 0%,
    color-mix(in oklab, var(--paper-2) 12%, transparent) 16%,
    transparent 45%,
    color-mix(in oklab, var(--paper) 22%, transparent) 86%,
    var(--paper) 100%
  );
}

/* ------------------------------------------------------------------ events */

.event-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(2.5rem, 6cqi, 5rem);
  margin: 0 auto;
  counter-reset: event;
}

.event-schedule__event {
  position: relative;
  min-width: 0;
  padding: var(--space-lg) 0 0;
  text-align: left;
  border-top: 1px solid var(--brass);
  counter-increment: event;
}

.event-schedule__event::before {
  display: block;
  margin-bottom: var(--space-lg);
  color: var(--brass-deep);
  content: counter(event, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.event-schedule__title {
  max-width: 16ch;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 400;
  line-height: var(--leading-title);
  text-wrap: balance;
}

.event-schedule__time,
.event-schedule__time-separator {
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  letter-spacing: 0.1em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.event-schedule__time {
  white-space: nowrap;
}

.event-schedule__location {
  display: grid;
  gap: var(--space-3xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}

.event-schedule__venue {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title-sm);
  font-weight: 400;
  line-height: var(--leading-title);
}

.event-schedule__address {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.event-schedule__directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: var(--control-min);
  margin-top: var(--space-sm);
  padding-block: var(--space-xs);
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 58%, transparent);
  transition: border-color var(--dur-short) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .event-schedule__directions:hover {
    border-bottom-color: var(--brass-deep);
  }
}

.event-schedule__directions:active {
  color: var(--ink);
}

.event-schedule__dress-code {
  margin: var(--space-lg) 0 0;
  color: var(--ink);
  font-size: var(--text-sm);
}

.event-schedule__dress-code span {
  display: block;
  margin-bottom: var(--space-3xs);
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-schedule__description {
  max-width: var(--measure);
  margin: var(--space-md) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.event-schedule__description > :first-child {
  margin-top: 0;
}

.event-schedule__description > :last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------- wedding party */

/* The same composition as "Meet the Couple", one rung down: portraits on a
   shared baseline with the caption centred under each. The party used to
   alternate across the full sheet, which reserved a column of blank paper
   beside every one-line bio and left the two portrait sections reading as
   two unrelated ideas. */
.wedding-party {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: clamp(2.5rem, 6cqi, 3.5rem) clamp(1.5rem, 4cqi, 2.5rem);
  margin: 0 auto;
}

.wedding-party__person {
  min-width: 0;
  text-align: center;
}

.wedding-party__photo {
  display: block;
  width: min(100%, 15rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto var(--space-md);
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 50% 50% 0.125rem 0.125rem / 22% 22% 0.125rem 0.125rem;
}

.wedding-party__name {
  margin: 0 0 var(--space-3xs);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: var(--leading-title);
}

/* Role over side, both centred: they used to sit in two grid columns that
   drifted apart whenever one of them was a word longer than the other. */
.wedding-party__role,
.wedding-party__group {
  margin: 0;
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.wedding-party__role {
  color: var(--brass-deep);
  letter-spacing: 0.16em;
}

.wedding-party__group {
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.wedding-party__bio {
  max-width: 34ch;
  margin: var(--space-md) auto 0;
  padding-top: var(--space-md);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
  border-top: 1px solid var(--rule-soft);
}

/* ----------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-auto-columns: min(78cqi, 20rem);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: var(--space-xs);
  max-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) var(--space-sm);
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--brass) var(--paper-2);
  scrollbar-width: thin;
}

.gallery:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.gallery__item {
  align-self: start;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule-soft);
  filter: saturate(0.9);
}

.gallery__item:nth-child(1) .gallery__image {
  aspect-ratio: 4 / 5;
}

.gallery__item:nth-child(2) {
  margin-top: var(--space-lg);
}

.gallery__item:nth-child(3) .gallery__image {
  aspect-ratio: 4 / 5;
}

.gallery__item:nth-child(4) {
  margin-top: var(--space-sm);
}

.gallery__caption {
  max-width: 45ch;
  margin-top: var(--space-2xs);
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  line-height: var(--leading-label);
}

@container invite-frame (min-width: 48rem) {
  .gallery {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.75rem, 2cqi, 1.5rem);
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(4) {
    grid-column: span 7;
  }

  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3) {
    grid-column: span 5;
  }

  .gallery__item:nth-child(1) .gallery__image,
  .gallery__item:nth-child(4) .gallery__image {
    aspect-ratio: 8 / 5;
  }

  .gallery__item:nth-child(2) {
    margin-top: var(--space-3xl);
  }

  .gallery__item:nth-child(3) {
    margin-top: calc(var(--space-xl) * -1);
  }

  .gallery__item:nth-child(3) .gallery__image {
    aspect-ratio: 4 / 5;
  }

  .gallery__item:nth-child(4) {
    margin-top: 0;
  }
}

/* -------------------------------------------------------- guest information */

.guest-information {
  display: grid;
  gap: clamp(3rem, 7cqi, 5rem);
  margin: 0 auto;
}

.guest-information__faqs,
.guest-information__travel,
.guest-information__gifts {
  min-width: 0;
}

.guest-information__faqs::before,
.guest-information__travel::before,
.guest-information__gifts::before {
  display: block;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-2xs);
  color: var(--brass-deep);
  content: "";
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}

.guest-information__faqs::before {
  content: "Questions";
}

.guest-information__travel::before {
  content: "Travel & stay";
}

.guest-information__gifts::before {
  content: "Gifts";
}

.guest-information__faq {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.guest-information__faq:first-of-type {
  padding-top: 0;
}

.guest-information__question {
  margin: 0 0 var(--space-2xs);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title-sm);
  font-weight: 400;
  line-height: var(--leading-title);
  text-wrap: balance;
}

.guest-information__answer {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.guest-information__answer > :first-child,
.guest-information__answer > :last-child {
  margin-block: 0;
}

.guest-information__travel-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.guest-information__travel-item:first-of-type {
  padding-top: 0;
}

.guest-information__travel-title,
.guest-information__gift-title {
  margin: 0 0 var(--space-3xs);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-title-sm);
  font-weight: 400;
  line-height: var(--leading-title);
}

.guest-information__travel-description,
.guest-information__gift-description {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.guest-information__travel-link,
.guest-information__gift-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-min);
  margin-top: var(--space-2xs);
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 55%, transparent);
  transition: border-color var(--dur-short) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .guest-information__travel-link:hover,
  .guest-information__gift-link:hover {
    border-bottom-color: var(--brass-deep);
  }
}

/* Gifts read as small sealed correspondence, not another hairline-divided
   row — the same brass wax-seal recipe that opens the invitation (see
   .elegant-opening__seal), shrunk to a marginal token beside each card. */
.guest-information__gifts {
  display: grid;
  gap: var(--space-sm);
}

.guest-information__gift {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-sm);
  row-gap: 0.2rem;
  padding: var(--space-md);
  background: var(--paper-2);
  border-radius: 0.25rem;
  box-shadow: var(--shadow-whisper);
}

.guest-information__gift::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 1.75rem;
  aspect-ratio: 1;
  margin-top: 0.2rem;
  background: radial-gradient(circle at 38% 30%, var(--brass-light), var(--brass) 68%, var(--brass-deep));
  border: 1px solid color-mix(in oklab, var(--brass-deep) 62%, transparent);
  border-radius: 50%;
}

.guest-information__gift-title,
.guest-information__gift-description,
.guest-information__gift-link {
  grid-column: 2;
}

.guest-information__gift-title {
  margin: 0;
}

.guest-information__gift-link {
  margin-top: 0.2rem;
}

/* -------------------------------------------------------------------- rsvp */

.invite__rsvp {
  --focus: var(--brass-light);
  position: relative;
  padding-block: clamp(4rem, 10cqi, 7.5rem) clamp(3.5rem, 8cqi, 5.5rem);
  color: var(--forest-ink);
  background:
    radial-gradient(110% 90% at 100% 0%, var(--forest-raised) 0%, transparent 58%),
    var(--forest);
}

.rsvp-widget {
  display: grid;
  gap: var(--space-xl);
  margin: 0 auto;
  text-align: left;
}

.rsvp-widget__title {
  margin: 0;
  color: var(--forest-ink);
  font-family: var(--font-display);
  font-size: var(--text-display-m);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: var(--leading-display);
}

.rsvp-widget turbo-frame {
  display: block;
  min-width: 0;
}

.rsvp-widget turbo-frame.is-confirmed {
  display: grid;
  align-content: center;
  gap: var(--space-lg);
  min-height: 16rem;
}

.rsvp-widget turbo-frame.is-confirmed:not(:has(.demo-invitation-chrome)) {
  padding: clamp(1.5rem, 5cqi, 2.5rem);
  border: 1px solid color-mix(in oklab, var(--brass-light) 36%, transparent);
}

.rsvp-confirmation__message {
  min-width: 0;
  max-width: 19ch;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--forest-ink);
  font-family: var(--font-display);
  font-size: var(--text-display-m);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: var(--leading-display);
  text-wrap: balance;
}

.rsvp-confirmation__message::before {
  display: block;
  width: 1.5rem;
  height: 0.75rem;
  margin-bottom: var(--space-lg);
  content: "";
  border-bottom: 2px solid var(--brass-light);
  border-left: 2px solid var(--brass-light);
  transform: rotate(-45deg);
  transform-origin: center;
}

.rsvp-confirmation__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-lg);
}

.rsvp-confirmation__action {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-min);
  color: var(--brass-light);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in oklab, var(--brass-light) 48%, transparent);
  transition:
    border-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out);
}

.rsvp-widget turbo-frame.is-confirmed .rsvp-confirmation__message,
.rsvp-widget turbo-frame.is-confirmed .rsvp-confirmation__actions {
  animation: elegant-confirmation-reveal var(--dur-medium) var(--ease-out) both;
}

.invite__rsvp.is-confirmed .rsvp-widget__title {
  color: var(--brass-light);
}

@keyframes elegant-confirmation-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .rsvp-confirmation__action:hover {
    border-bottom-color: var(--brass-light);
  }
}

.rsvp-confirmation__action:active {
  color: var(--forest-ink);
}

.rsvp-widget__form {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xs);
  text-align: left;
}

.rsvp-widget__field {
  display: grid;
  gap: var(--space-2xs);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-widget__label {
  color: var(--brass-light);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.rsvp-widget__input {
  width: 100%;
  min-height: var(--control-min);
  padding: var(--space-xs) var(--space-3xs);
  color: var(--forest-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--brass-light) 45%, transparent);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  transition: border-color var(--dur-short) var(--ease-out);
}

.rsvp-widget__input::placeholder {
  color: var(--forest-quiet);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .rsvp-widget__input:hover {
    border-bottom-color: color-mix(in oklab, var(--brass-light) 72%, transparent);
  }
}

.rsvp-widget__input:focus {
  border-bottom-color: var(--brass-light);
  outline: none;
}

.rsvp-widget__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.rsvp-widget__input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

textarea.rsvp-widget__input {
  resize: vertical;
  line-height: 1.7;
}

.rsvp-widget__choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-3xs);
}

.rsvp-widget__choice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: var(--control-min);
  padding: var(--space-2xs) var(--space-sm);
  color: var(--forest-ink);
  font-family: var(--font-label);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--brass-light) 36%, transparent);
  transition:
    color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .rsvp-widget__choice:hover {
    border-color: color-mix(in oklab, var(--brass-light) 72%, transparent);
  }
}

.rsvp-widget__choice:has(:checked) {
  color: var(--forest);
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.rsvp-widget__choice:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.rsvp-widget__choice:has(:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.rsvp-widget__choice input {
  margin: 0;
  accent-color: var(--forest);
}

.rsvp-widget__submit {
  justify-self: start;
  min-height: var(--control-min);
  margin-top: var(--space-2xs);
  padding: var(--space-xs) var(--space-xl);
  color: var(--forest);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-indent: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: var(--brass-light);
  border: 1px solid var(--brass-light);
  border-radius: 0;
  transition:
    background-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .rsvp-widget__submit:hover {
    background: var(--brass);
  }
}

.rsvp-widget__submit:active {
  transform: translateY(1px);
}

.rsvp-widget__submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.invite__footer {
  position: relative;
  padding:
    clamp(var(--space-lg), 5cqi, var(--space-xl))
    var(--gutter)
    max(clamp(var(--space-2xl), 9cqi, var(--space-3xl)), env(safe-area-inset-bottom));
  color: var(--ink);
  text-align: center;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.invite__footer-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--control-min);
  margin: 0 auto clamp(var(--space-xl), 7cqi, var(--space-2xl));
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 48%, transparent);
  transition:
    border-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .invite__footer-return:hover {
    color: var(--ink);
    border-bottom-color: var(--brass-deep);
  }
}

.invite__footer-return:active {
  color: var(--brass-deep);
  border-bottom-color: var(--brass);
}

.invite__footer-mast {
  display: grid;
  gap: var(--space-xl);
  width: 100%;
  margin: 0 auto;
}

.invite__footer-identity {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.invite__footer-monogram {
  display: grid;
  place-items: center;
  width: clamp(4.25rem, 12cqi, 5.25rem);
  aspect-ratio: 1;
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
  text-indent: -0.06em;
  border: 1px solid var(--brass);
  border-radius: 50%;
  outline: 1px solid color-mix(in oklab, var(--brass) 42%, transparent);
  outline-offset: -0.4rem;
}

.invite__footer-signature {
  display: grid;
  justify-items: center;
  gap: var(--space-3xs);
  min-width: 0;
}

.invite__footer-kicker,
.invite__footer-names,
.invite__footer-date,
.invite__footer-message {
  margin: 0;
}

.invite__footer-kicker {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.invite__footer-names {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: var(--leading-stack);
  text-wrap: balance;
}

.invite__footer-date {
  color: var(--brass-deep);
  font-family: var(--font-label);
  font-size: var(--text-micro);
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.invite__footer-message {
  max-width: 45ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-wrap: balance;
}

@container invite-frame (min-width: 40rem) {
  .rsvp-widget {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    column-gap: clamp(3rem, 8cqi, 8rem);
  }

  .rsvp-widget turbo-frame {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ------------------------------------------------------------------ states */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
