:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #2f2225;
  --muted: #665558;
  --burgundy: #4b001f;
  --gold: #947651;
  --rose: #e7aabc;
  --line: #dccbbd;
  --serif: Baskerville, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-inline-size: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  padding: .55rem .9rem;
  background: white;
  clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }

.site-header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 3.5rem, 86rem);
  margin-inline: auto;
  padding-block: 1rem;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.wordmark {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  gap: .07em;
  flex: 0 0 auto;
  width: 3.05rem;
  height: 3.05rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 1.35rem/1 var(--serif);
  text-decoration: none;
}
.wordmark span { align-self: center; font-size: .64em; font-style: italic; }
.site-header nav a, .back-link, .eyebrow, .hero-date, .map-link, .rsvp-submit {
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.site-header nav a, .back-link { text-decoration: none; }
.site-header nav a span, .back-link span { margin-inline-start: .25em; }
.site-header nav a:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .35em; }
.site-header .rsvp-nav { border: 1px solid var(--burgundy); padding: .68rem .9rem; color: var(--burgundy); }
.site-header .rsvp-nav:hover { background: #efe4dd; text-decoration: none; }

:where(.hero, .invitation, .wedding-colours, .rsvp) {
  position: relative;
  isolation: isolate;
}
.floating-accents {
  --glint: #f2d1a6;
  --petal: #e7aabc;
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.floating-accents-paper { --glint: #99704a; --petal: #b36980; }
.floating-accents span {
  position: absolute;
  width: var(--accent-size, .8rem);
  aspect-ratio: 1;
  background: var(--glint);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  opacity: .64;
  transform: rotate(var(--accent-angle, 0deg));
}
.floating-accents span:nth-child(even) {
  aspect-ratio: .7;
  border-radius: 72% 28% 65% 35%;
  background: var(--petal);
  clip-path: none;
}
.floating-accents span:nth-child(1) { top: 15%; left: 6%; --accent-size: 1.15rem; --accent-angle: 12deg; }
.floating-accents span:nth-child(2) { top: 25%; right: 8%; --accent-size: .54rem; --accent-angle: 36deg; --accent-delay: .22s; }
.floating-accents span:nth-child(3) { bottom: 20%; right: 5%; --accent-size: .86rem; --accent-angle: 24deg; --accent-delay: .36s; }
.floating-accents span:nth-child(4) { bottom: 18%; left: 11%; --accent-size: .49rem; --accent-angle: -24deg; --accent-delay: .48s; }
.floating-accents.is-visible span { animation: accent-drift 4.15s ease-in-out var(--accent-delay, 0s) both; }
@keyframes accent-drift {
  0%, 100% { opacity: .64; transform: rotate(var(--accent-angle)); }
  41% { opacity: 1; transform: translate(.7rem, -1.45rem) rotate(calc(var(--accent-angle) + 30deg)); }
  74% { opacity: .46; transform: translate(-.35rem, .3rem) rotate(calc(var(--accent-angle) - 17deg)); }
}

.hero {
  overflow: hidden;
  background-color: #410817;
  background-image:
    radial-gradient(ellipse at 34% 47%, #24051370, transparent 70%),
    url("assets/velvet-hero.jpg");
  background-size: cover;
  background-position: center;
  color: var(--paper);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6.5vw, 7rem);
  max-width: 81rem;
  min-height: min(45rem, 89svh);
  margin-inline: auto;
  padding: 3.5rem clamp(1.75rem, 7.5vw, 6.75rem);
}
.hero-copy {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  padding-inline-start: clamp(0rem, calc((100vw - 43rem) / 9), 4.8rem);
  text-shadow: 0 2px 1.2rem #260511;
}
.hero h1 {
  font: 400 clamp(2.5rem, 7.4vw, 7rem)/.93 var(--serif);
  font-size: clamp(2.5rem, 28cqi, 8.4rem);
  letter-spacing: -.06em;
}
.hero-name { display: block; white-space: nowrap; }
.hero-name > span { display: inline-block; animation: name-arrive .95s cubic-bezier(.17,.67,.2,1) .06s both; }
.hero-name:nth-child(2) { margin-inline-start: .17em; }
.hero-name:nth-child(2) > span { animation-delay: .23s; }
.hero h1 i { color: #e7aabc; font-size: .71em; font-weight: 400; }
.hero-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  color: #fae6e5;
  animation: hero-rise .75s ease .42s both;
}
.date-divider { width: .25rem; height: .25rem; border-radius: 50%; background: #e7aabc; }
.hero-keepsake {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 1.04;
  justify-self: end;
  scroll-margin-top: 2rem;
}
.hero-portrait {
  position: absolute;
  top: 2%;
  right: 6%;
  width: 51%;
  margin: 0;
  padding: clamp(.42rem, 1vw, .75rem);
  border: 2px ridge #cfa768;
  background: linear-gradient(138deg, #7c4e2d 1%, #d6b16f 18%, #f2d6a2 31%, #a27545 48%, #6e4228 70%, #e4ba77 89%, #8b5b33);
  box-shadow: 0 .8rem 2rem #17030ab3, inset 0 0 0 2px #63391e, inset 0 0 0 4px #d0ab70;
  transform: rotate(7deg);
  animation: portrait-arrive 1.15s cubic-bezier(.17,.67,.2,1) both;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #f2d6a2a6;
  pointer-events: none;
}
.hero-photo { overflow: hidden; aspect-ratio: 1 / 1.12; border: 1px solid #4e2a19; background: #522332; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  animation: portrait-settle 1.9s cubic-bezier(.17,.67,.2,1) both;
}
@keyframes name-arrive {
  from { opacity: 0; transform: translateY(.28em); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes portrait-arrive {
  from { opacity: 0; transform: translateY(1.25rem) rotate(3deg); }
  to { opacity: 1; transform: rotate(7deg); }
}
@keyframes portrait-settle { from { transform: scale(1.13); } to { transform: scale(1); } }

.invitation {
  background:
    radial-gradient(ellipse at 50% 30%, #fffdf5 10%, transparent 72%),
    #f4eadf;
}
.invitation-inner {
  width: min(100% - 3.5rem, 52rem);
  margin-inline: auto;
  padding-block: clamp(3.75rem, 8vw, 6.5rem);
  text-align: center;
}

.stationery {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(85%, 27rem);
  text-align: center;
  animation: hero-rise .95s cubic-bezier(.17,.67,.2,1) .24s both;
}
.envelope-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.56;
  max-width: 35rem;
  margin-inline: auto;
  perspective: 70rem;
}
.envelope-base, .envelope-front, .envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
}
.envelope-base {
  background: linear-gradient(144deg, #dcd0b8, #f3e9d4 54%, #d9cbb3);
  box-shadow: 0 1.7rem 2.7rem -.9rem #493f2949, 0 .15rem .5rem #493f2938;
}
.envelope-front {
  z-index: 2;
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
  background:
    conic-gradient(from 0deg at 50% 56%, transparent 0 120deg, #c3b69c 120.4deg, #efe6d4 121deg 238deg, #c3b69c 239deg, transparent 239.5deg),
    linear-gradient(105deg, #e4dac3, #f2ead9 49%, #e1d6c0);
}
.envelope-flap {
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 52% 62%, 50% 63%, 48% 62%);
  background: linear-gradient(165deg, #fbf5e7, #e6dbc4 78%, #c9b99c);
  transform-origin: top;
  transition: transform .65s cubic-bezier(.3,.7,.2,1);
}
.seal {
  --wax: radial-gradient(circle at 35% 26%, #a2485c, #800020 58%, #4b001f);
  --fracture-left: polygon(0 0, 56% 0, 48% 21%, 58% 39%, 46% 58%, 54% 78%, 48% 100%, 0 100%);
  --fracture-right: polygon(56% 0, 100% 0, 100% 100%, 48% 100%, 54% 78%, 46% 58%, 58% 39%, 48% 21%);
  position: absolute;
  z-index: 4;
  top: 57%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(3.4rem, 7vw, 4.8rem);
  aspect-ratio: 1;
  padding: .38rem;
  color: #f3ecdb;
  background: var(--wax);
  border: 1px solid #722f37;
  border-radius: 47% 52% 47% 54% / 53% 49% 51% 48%;
  box-shadow: inset 0 0 0 4px #c080903b, 0 .36rem .5rem #332b2355;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(-8deg);
  transition: transform .35s, top .55s, left .55s;
}
.seal::before, .seal::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #722f37;
  border-radius: inherit;
  background: var(--wax);
  box-shadow: inset 0 0 0 4px #c080903b;
  opacity: 0;
  pointer-events: none;
}
.seal::before { clip-path: var(--fracture-left); }
.seal::after { clip-path: var(--fracture-right); }
.seal span {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #f0c6ce92;
  border-radius: 50%;
  font: 400 clamp(1.1rem, 2.5vw, 1.9rem)/1 var(--serif);
  transform: rotate(8deg);
}
.seal i { font-size: .71em; }
.seal:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.06); }
.seal:focus-visible { outline-color: var(--burgundy); }
.envelope-caption { margin-top: 1.25rem; color: #fff0df; text-shadow: 0 1px 6px #240513; }
.invitation-card {
  position: absolute;
  z-index: 2;
  inset: 7% 7% auto;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(.12rem, 1vw, .75rem);
  height: 89%;
  padding: .5rem;
  background: #faf6eb;
  color: var(--ink);
  outline: 1px solid var(--line);
  outline-offset: -8px;
  box-shadow: 0 .55rem 1.5rem #493f2930;
}
.invitation-card .eyebrow { font-size: clamp(.48rem, 1vw, .62rem); }
.invitation-card img { width: clamp(1.4rem, 3vw, 2.35rem); height: auto; }
.invitation-names { font: 400 clamp(1.65rem, 4.2vw, 3.45rem)/1 var(--serif); white-space: nowrap; }
.invitation-names i { font-size: .7em; }
.invitation-date {
  width: 100%;
  padding-top: .3em;
  border-top: 1px dashed var(--line);
  font: clamp(.66rem, 1.45vw, .95rem)/1.4 var(--serif);
}
.is-open .envelope-flap { z-index: 0; transform: rotateX(176deg) scaleY(.55); }
.is-open .invitation-card {
  z-index: 3;
  transform: translateY(-23%) rotate(-3deg);
  animation: reveal .75s cubic-bezier(.22,.72,.3,1) both;
}
.is-open .seal { top: 82%; left: 84%; transform: translate(-50%, -50%) rotate(8deg) scale(.83); }
.is-breaking .seal, .is-open .seal { background: none; border-color: transparent; box-shadow: none; filter: drop-shadow(0 .16rem .18rem #332b2366); }
.is-breaking .seal { cursor: wait; }
.is-breaking .seal::before, .is-breaking .seal::after, .is-open .seal::before, .is-open .seal::after { opacity: 1; }
.is-breaking .seal::before { animation: wax-left .42s ease-out both; }
.is-breaking .seal::after { animation: wax-right .42s ease-out both; }
.is-breaking .seal span { animation: wax-imprint .42s ease-out both; }
.is-open .seal::before { transform: translate(-12%, 2%) rotate(-9deg); }
.is-open .seal::after { transform: translate(12%, -2%) rotate(9deg); }
.is-open .seal span { opacity: 0; }
@keyframes wax-left { to { transform: translate(-12%, 2%) rotate(-9deg); } }
@keyframes wax-right { to { transform: translate(12%, -2%) rotate(9deg); } }
@keyframes wax-imprint { 0%, 22% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes reveal {
  from { opacity: 0; transform: translateY(8%) rotate(0deg); }
  to { opacity: 1; transform: translateY(-23%) rotate(-3deg); }
}

.invitation h2, .schedule h2, .wedding-colours h2, .rsvp h2 { font: 400 clamp(3.2rem, 7vw, 6rem)/.95 var(--serif); letter-spacing: -.045em; }
.invitation-copy {
  padding: clamp(2.15rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid #c6aa89;
  outline: 1px solid var(--line);
  outline-offset: -8px;
  background: #fffbf3;
  box-shadow: 0 .8rem 2.2rem #4b001f12;
}
.invitation h2 { margin-block: .7rem 1rem; color: var(--burgundy); font-size: clamp(2.4rem, 5.7vw, 4.9rem); }
.invitation-mark { margin: 0 auto 1.15rem; }
.invitation-copy > p:not(.eyebrow, .signature) { max-width: 31rem; margin-inline: auto; color: var(--muted); }
.signature { margin-top: 1.55rem; font: 400 italic 1.75rem/1 var(--serif); color: var(--burgundy); }

.story {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: radial-gradient(ellipse at 16% 16%, #693149, transparent 65%), #35101e;
  color: var(--paper);
}
.story-inner {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(2rem, 5.5vw, 5rem);
  width: min(100% - 3.5rem, 67rem);
  margin-inline: auto;
}
.story-intro { position: sticky; top: 2rem; }
.story h2 {
  font: 400 clamp(3rem, 7vw, 6rem)/.94 var(--serif);
  letter-spacing: -.045em;
}
.story-frame {
  min-width: 0;
  max-width: 21rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(.32rem, 1.15vw, .82rem);
  border: 1px solid #b79163;
  background: linear-gradient(145deg, #f0d8ad, #a77f50 52%, #dfbf8d);
  box-shadow: 0 .75rem 1.8rem #1908138a;
  transform: rotate(-2deg);
}
.story-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid #815e3f;
  object-fit: cover;
  object-position: center 24%;
}
.story-book {
  min-width: 0;
  padding: clamp(1.35rem, 4.1vw, 3.25rem);
  border: 1px solid #c9ad8d;
  outline: 1px solid #dfcfb7;
  outline-offset: -7px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 .8rem 2.2rem #19081358;
}
.story-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin-bottom: clamp(1.15rem, 3vw, 2.15rem);
  border-bottom: 1px solid var(--line);
}
.story-switcher button {
  min-height: 2.75rem;
  padding: .4rem .8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 650 .78rem/1.2 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.story-switcher button[aria-selected="true"] {
  border-bottom-color: var(--burgundy);
  background: #f2e4dc;
  color: var(--burgundy);
}
.story-switcher button:hover { color: var(--burgundy); }
.story-panel h3 {
  margin-bottom: .95rem;
  color: var(--burgundy);
  font: 400 clamp(1.75rem, 3.3vw, 2.8rem)/1.13 var(--serif);
}
.story-panel p { font: 400 clamp(1.05rem, 1.7vw, 1.22rem)/1.65 var(--serif); }
.story-panel p + p { margin-top: .9em; }
.story-panel + .story-panel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.story-panel[role="tabpanel"] { margin-top: 0; padding-top: 0; border: 0; animation: detail-arrive .42s ease both; }

.countdown { padding: clamp(2.5rem, 5vw, 4.1rem) 0; background: #34101f; color: var(--paper); }
.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  width: min(100% - 3.5rem, 65rem);
  margin-inline: auto;
}
.countdown h2 { font: 400 clamp(2.1rem, 4vw, 3.55rem)/1 var(--serif); letter-spacing: -.035em; }
.countdown-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 32rem); margin: 0; }
.countdown-clock div { display: grid; gap: .4rem; justify-items: center; padding: .2rem clamp(.35rem, 2vw, 1.35rem); border-inline-start: 1px solid #e7aabc59; }
.countdown-clock dt { color: #f0c6ce; font-size: .61rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.countdown-clock dd { grid-row: 1; margin: 0; font: 400 clamp(2rem, 5vw, 4.1rem)/.92 var(--serif); font-variant-numeric: tabular-nums; }

.schedule {
  width: min(100% - 3.5rem, 65rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 1rem;
}
.schedule-heading { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.75rem); }
.schedule-heading h2 { margin-block: .75rem; }
.schedule-heading p { color: var(--muted); }
.day { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3rem); }
.event {
  display: grid;
  grid-template-columns: clamp(6.5rem, 28%, 9.25rem) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #c7ae8f;
  border-radius: 3px;
  background: #fffaf2;
  box-shadow: 0 .65rem 1.5rem #46241812;
}
.event-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .5rem;
  padding: 1.25rem .35rem;
  border-inline-end: 1px dashed #a98968;
  background: linear-gradient(140deg, #efdfc7, #f7eedc);
  color: var(--burgundy);
  text-align: center;
}
.event-stub::before, .event-stub::after {
  content: "";
  position: absolute;
  inset-inline-end: -.6rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid #c7ae8f;
  border-radius: 50%;
  background: var(--paper);
  pointer-events: none;
}
.event-stub::before { top: -.6rem; }
.event-stub::after { bottom: -.6rem; }
.event-date { font-size: .69rem; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.event-time { font: 400 clamp(2rem, 3.1vw, 3.1rem)/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  min-width: 0;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  color: var(--burgundy);
}
.event h3 { margin-bottom: .28rem; font: 400 clamp(1.85rem, 3.1vw, 2.6rem)/1.13 var(--serif); }
.event-details p { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.event-details .metro { display: flex; align-items: center; gap: .35rem; margin-block: .45rem .8rem; }
.metro span { flex: 0 0 1rem; border: 1px solid var(--gold); border-radius: 50%; text-align: center; font-size: .58rem; }
.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: fit-content;
  min-height: 2.75rem;
  padding-inline: .75rem;
  border: 1px solid #c7ae8f;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.map-link:hover { background: #efe8d7; border-color: var(--gold); }
.event .map-link { margin-top: auto; }

.wedding-colours {
  padding-block: clamp(2.75rem, 7vw, 5rem);
  border-block: 1px solid var(--line);
  background: #efe4dd;
  color: var(--burgundy);
}
.wedding-colours-inner {
  width: min(100% - 3.5rem, 65rem);
  margin-inline: auto;
  text-align: center;
}
.wedding-colours h2 { font-size: clamp(2.65rem, 5vw, 4.45rem); }
.wedding-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.5rem);
  max-width: 52rem;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}
.wedding-swatch { font: 400 clamp(1.12rem, 2.15vw, 1.42rem)/1.15 var(--serif); }
.wedding-swatch::before {
  content: "";
  display: block;
  aspect-ratio: 1;
  margin-bottom: .7rem;
  border: 1px solid #bfa077;
  border-radius: 50%;
  background: var(--swatch);
  forced-color-adjust: none;
}
/* The colours are sampled from the couple's wedding palette graphic. */
.wedding-swatch-rich-burgundy { --swatch: #5f0014; }
.wedding-swatch-deep-burgundy { --swatch: #3d000f; }
.wedding-swatch-burgundy { --swatch: #660b1f; }
.wedding-swatch-dusty-rose { --swatch: #c7818c; }
.wedding-swatch-red-wine { --swatch: #6b1a23; }
.wedding-swatch-vintage-mauve { --swatch: #976174; }
.wedding-swatches.is-visible .wedding-swatch { animation: detail-arrive .62s ease both; }
.wedding-swatches.is-visible .wedding-swatch:nth-child(2) { animation-delay: .06s; }
.wedding-swatches.is-visible .wedding-swatch:nth-child(3) { animation-delay: .12s; }
.wedding-swatches.is-visible .wedding-swatch:nth-child(4) { animation-delay: .18s; }
.wedding-swatches.is-visible .wedding-swatch:nth-child(5) { animation-delay: .24s; }
.wedding-swatches.is-visible .wedding-swatch:nth-child(6) { animation-delay: .3s; }
@keyframes detail-arrive {
  from { opacity: .6; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

.rsvp {
  padding-block: clamp(3.75rem, 8.5vw, 8rem);
  background: linear-gradient(105deg, #230610a8, #23061070), url("assets/velvet-hero.jpg") center 58% / cover, #35101e;
  color: var(--paper);
}
.rsvp-inner {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.36fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 6.5rem);
  width: min(100% - 3.5rem, 71rem);
  margin-inline: auto;
}
.rsvp-copy { text-shadow: 0 2px 1.3rem #17050a; }
.rsvp-monogram {
  display: inline-grid;
  grid-auto-flow: column;
  place-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #d6b58e;
  border-radius: 50%;
  outline: 1px solid #d6b58e70;
  outline-offset: -4px;
  color: #f0d9b9;
  font: 400 1.3rem/1 var(--serif);
}
.rsvp-monogram i { align-self: center; font-size: .68em; }
.rsvp h2 { margin-block: 1.25rem 1.35rem; font-size: clamp(3.9rem, 8vw, 7.5rem); }
.rsvp h2 i { display: block; color: var(--rose); font-size: .56em; letter-spacing: -.025em; }
.rsvp-date {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  padding-top: .95rem;
  border-top: 1px solid #d6b58e80;
  color: #f4d7ba;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rsvp-copy > p:last-child { max-width: 19rem; margin-top: .8rem; color: #f5e8e2; }
.rsvp-form {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
  padding: clamp(1.35rem, 3.6vw, 3rem);
  border: 1px solid #c6aa89;
  outline: 1px solid #bca18980;
  outline-offset: -8px;
  background: radial-gradient(ellipse at top right, #faecdf, transparent 60%), #fffbf3;
  box-shadow: 0 1.1rem 3rem #16020880;
  color: var(--ink);
  font-size: .9rem;
}
.rsvp-contact, .rsvp-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rsvp-field { display: block; min-width: 0; color: var(--burgundy); font-weight: 650; }
.rsvp-form input:not([type="radio"]), .rsvp-form textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: .4rem;
  padding: .6rem .75rem;
  border: 1px solid #ab9387;
  border-radius: .15rem;
  background: #fffdf9;
  color: var(--ink);
  font: 1rem/1.45 var(--sans);
}
.rsvp-form input::placeholder { color: var(--muted); opacity: .86; }
.rsvp-form input:focus-visible, .rsvp-form textarea:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.rsvp-form textarea { resize: vertical; }
.rsvp-event-card {
  min-width: 0;
  padding: clamp(.7rem, 1.9vw, 1.15rem);
  border: 1px solid #d7bda8;
  background: #f6eadf;
}
.rsvp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rsvp-form legend { padding: 0; color: var(--burgundy); font: 400 clamp(1.2rem, 2.4vw, 1.72rem)/1.16 var(--serif); }
.rsvp-form legend time {
  display: block;
  margin-bottom: .33rem;
  color: var(--muted);
  font: 650 .72rem/1.3 var(--sans);
  letter-spacing: .12em;
}
.optional { color: var(--muted); font-weight: 400; white-space: nowrap; }
.rsvp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .85rem; }
.rsvp-choices label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-height: 2.75rem;
  padding-inline: .25rem;
  border: 1px solid #b89889;
  border-radius: .15rem;
  background: #fffaf2;
  color: var(--burgundy);
  font-weight: 650;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.rsvp-choices label:hover { background: #f1ddd1; }
.rsvp-choices label:has(input:checked) { border-color: var(--burgundy); background: var(--burgundy); color: var(--paper); }
.rsvp-choices label:has(input:focus-visible) { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.rsvp-choices input { flex: 0 0 auto; width: .85rem; height: .85rem; margin: 0; accent-color: var(--burgundy); }
.rsvp-choices input:checked { accent-color: var(--rose); }
.rsvp-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rsvp-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.35rem;
  padding-inline: 1.15rem;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--paper);
  cursor: pointer;
  transition: background .16s;
}
.rsvp-submit span { font-size: 1rem; transition: transform .2s ease; }
.rsvp-submit:hover { background: #722f37; }
.rsvp-submit:is(:hover, :focus-visible):not(:disabled) span { transform: translate(.2rem, -.2rem); }
.rsvp-submit:focus-visible { outline-color: var(--burgundy); }
.rsvp-submit:disabled { opacity: .7; cursor: wait; }
.rsvp-status:not(:empty) {
  margin-top: .65rem;
  padding: .7rem .8rem;
  border-inline-start: 2px solid var(--gold);
  background: #f6eadf;
  color: var(--burgundy);
  font-weight: 650;
}
.rsvp-status[data-state="error"] { border-color: #8b242d; color: #8b242d; }

footer { border-top: 1px solid var(--line); color: var(--muted); }
footer p { font: 1rem/1.35 var(--serif); text-align: center; }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.65,.25,1);
}
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 740px) {
  .hero {
    background-image: linear-gradient(112deg, #24051378, #24051320 85%), url("assets/velvet-hero.jpg");
    background-position: center, 10% center;
  }
  .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0 auto;
    width: min(10rem, 36vw);
    height: 9rem;
    background: url("assets/velvet-hero.jpg") right bottom / auto 26rem;
    mask-image: radial-gradient(ellipse at 63% 64%, #000 27%, transparent 76%);
    pointer-events: none;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; min-height: auto; padding-block: 3rem 3.3rem; }
  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: end;
    gap: clamp(.5rem, 2.5vw, 1.5rem);
    padding-inline-start: 0;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 14.5vw, 6rem);
    font-size: clamp(2.6rem, 16.5cqi, 6rem);
  }
  .hero-name:nth-child(2) { margin-inline-start: .1em; }
  .hero-date {
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    margin: 0 0 .08rem;
    padding-inline-start: clamp(.55rem, 2.8vw, 1.3rem);
    border-inline-start: 1px solid #e7aabc70;
    font-size: clamp(.6rem, 2.15vw, .74rem);
    letter-spacing: .08em;
    text-align: end;
    white-space: nowrap;
  }
  .hero-date time {
    font: 400 clamp(1rem, 3.8vw, 1.5rem)/1.03 var(--serif);
    letter-spacing: 0;
    text-transform: none;
  }
  .hero-year { display: block; }
  .hero .date-divider { display: none; }
  .floating-accents span:nth-child(1) { top: 5%; left: 8%; }
  .floating-accents span:nth-child(2) { top: 7%; right: 9%; }
  .floating-accents span:nth-child(3) { bottom: 12%; right: 6%; }
  .floating-accents span:nth-child(4) { bottom: 7%; left: 9%; }
  .hero-keepsake { justify-self: center; width: min(100% - .25rem, 29rem); }
  .hero-portrait { right: 4%; }
  .stationery { width: 88%; }
  .is-open .envelope-flap { transform: rotateX(176deg) scaleY(.34); }
  .envelope-caption { margin-top: 1.05rem; }
  .story-inner { grid-template-columns: 1fr; }
  .story-intro {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(5.75rem, 25vw, 10rem);
    align-items: center;
    gap: 1.25rem;
  }
  .story-frame { margin-top: 0; transform: rotate(3deg); }
  .countdown-inner { flex-direction: column; align-items: flex-start; }
  .countdown-clock { align-self: center; }
  .countdown-clock div:first-child { border-inline-start: 0; }
  .day { grid-template-columns: minmax(0, 1fr); }
  .rsvp-inner { grid-template-columns: 1fr; }
  .rsvp-copy { width: fit-content; }
}
@media (max-width: 560px) {
  .site-header, footer, .schedule, .invitation-inner, .story-inner, .countdown-inner, .wedding-colours-inner, .rsvp-inner { width: calc(100% - 2.5rem); }
  .site-header { gap: .65rem; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: .4rem clamp(.35rem, 2vw, .7rem); }
  .site-header nav a { font-size: .61rem; letter-spacing: .1em; }
  .site-header .rsvp-nav { padding-inline: .63rem; }
  .hero-inner { padding-inline: 1.25rem; }
  .event { grid-template-columns: clamp(5.25rem, 31%, 7rem) minmax(0, 1fr); }
  .event-time { font-size: clamp(1.85rem, 6vw, 2.6rem); }
  .event-details { padding-inline: .85rem; }
  .rsvp-contact, .rsvp-events { grid-template-columns: 1fr; }
  .wedding-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem .8rem; }
  footer { flex-wrap: wrap; }
  footer p { flex: 1 1 13rem; text-align: left; }
  footer .back-link { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
