@font-face {
  font-family: "Great Vibes";
  src: url("assets/great-vibes.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-display.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-display-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6efe4;
  --light-paper: #fbf6ee;
  --ink: #2d2923;
  --muted: #65564c;
  --wine: #75253b;
  --wine-dark: #4e2330;
  --line: #d7c6ae;
  --gold: #a27547;
  --serif: "Playfair Display", Georgia, serif;
  --names: "Great Vibes", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body:has(.envelope-cover[open]) { overflow: hidden; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 0 auto auto 0;
  padding: .7rem 1rem;
  background: var(--light-paper);
  transform: translateY(-130%);
}

.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.monogram { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.monogram img { width: 36px; height: 36px; object-fit: contain; }
.text-link:hover { text-decoration: underline; }

/* The opening envelope is made from independently moving layers of paper. */
.envelope-cover {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 1.25rem;
  overflow: hidden;
  border: 0;
  background: #dfd5ad url("assets/garden-illustration.jpg") center 64% / cover no-repeat;
  color: #fff1d8;
  text-align: center;
}

.envelope-cover[open] { display: grid; align-items: center; justify-items: center; }
.envelope-cover::backdrop { background: transparent; }
.envelope-cover.is-revealing { animation: lift-veil .7s ease both; }
@keyframes lift-veil { to { opacity: 0; } }
.cover-inner { position: relative; width: min(78vw, 110svh, 63rem); }

.envelope {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.48;
  perspective: 1300px;
  filter: drop-shadow(0 1.25rem 1.5rem #3d23376b);
}

.envelope-liner, .envelope-letter, .envelope-pocket, .envelope-flap {
  position: absolute;
  inset: 0;
}

.envelope-liner { z-index: 0; background: #4b192c; border-radius: .35rem; }

.envelope-letter {
  z-index: 2;
  inset: 8% 6% 10%;
  padding-top: 4%;
  background: #faf0db;
  color: var(--wine);
  border: double clamp(.22rem, .65vw, .6rem) #b68d52;
  font: italic clamp(1.25rem, 4vw, 3.4rem)/1.1 var(--serif);
  box-shadow: 0 -.2rem 1.35rem #2610194d;
  transition: transform .78s cubic-bezier(.18, .64, .34, 1);
}

.envelope-letter img { width: 15%; height: auto; margin: 0 auto 2%; }
.envelope-letter span { display: block; }

.envelope-pocket {
  z-index: 3;
  overflow: hidden;
  clip-path: polygon(0 0, 49% 53%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 .35rem .35rem;
  background: linear-gradient(150deg, #591c33 18%, #792d43 62%, #4d1729);
}

.envelope-flap {
  z-index: 4;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 15%, 52% 61%, 48% 61%, 0 15%);
  border-radius: .35rem .35rem 0 0;
  transform-origin: top;
  background: linear-gradient(162deg, #824158, #641e37 72%);
  transition: transform .76s .13s cubic-bezier(.32, .12, .3, 1), z-index 0s .57s;
}

.envelope-flap::before,
.envelope-flap::after,
.envelope-pocket::before,
.envelope-pocket::after {
  position: absolute;
  background: url("assets/envelope-engraving.webp") center / contain no-repeat;
  content: "";
}

.envelope-flap::before {
  width: 71%;
  aspect-ratio: 1.3;
  left: 0;
  top: 1%;
  transform: rotate(12deg);
  opacity: .92;
}

.envelope-flap::after {
  width: 53%;
  aspect-ratio: 1.4;
  right: -3%;
  top: -4%;
  transform: scaleX(-1) rotate(-12deg);
  opacity: .73;
}

.envelope-pocket::before {
  width: 76%;
  aspect-ratio: 1.29;
  right: -2%;
  bottom: -5%;
  transform: rotate(182deg);
  opacity: .94;
}

.envelope-pocket::after {
  width: 48%;
  aspect-ratio: 1.15;
  left: -6%;
  bottom: 1%;
  transform: rotate(60deg);
  opacity: .76;
}

.seal {
  z-index: 5;
  position: absolute;
  left: 50%;
  top: 57%;
  display: grid;
  place-items: center;
  width: clamp(4.2rem, 15vw, 8.1rem);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #d0af80;
  border-radius: 44% 53% 47% 49% / 51% 42% 55% 46%;
  background: radial-gradient(circle at 35% 28%, #ffffed, #ecd7aa 80%);
  box-shadow: inset 0 0 0 .23rem #f6e8c5, inset 0 0 0 .39rem #d5b78b, 0 .45rem .9rem #35101db3;
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: transform .35s ease, opacity .32s ease;
}

.seal img { width: 68%; height: auto; }
.seal:hover { transform: translate(-50%, -50%) rotate(0) scale(1.06); }
.seal:focus-visible { outline: 2px solid #fff7e9; outline-offset: 5px; }
.is-opening .seal { opacity: 0; transform: translate(-42%, -124%) rotate(19deg) scale(1.15); pointer-events: none; }
.is-opening .envelope-flap { z-index: 1; transform: rotateX(167deg); }
.is-lifting .envelope-letter { transform: translateY(-49%); }

.cover-hint {
  position: absolute;
  right: 0;
  bottom: -1.3rem;
  left: 0;
  width: max-content;
  max-width: 100%;
  padding: .47rem .95rem;
  margin-inline: auto;
  border: 1px solid #cfad76;
  border-radius: 100vw;
  background: #44202bf2;
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .09em;
  opacity: 1;
  transition: opacity .25s;
}

.is-opening .cover-hint { opacity: 0; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background-color: #fbf0df;
  background-image:
    radial-gradient(ellipse at 35% 15%, #f8e7cd70, transparent 65%),
    radial-gradient(ellipse at 73% 61%, #fff9ed, transparent 78%),
    radial-gradient(ellipse at center, #fdf4e4 35%, #f2e2cc 100%);
}

.hero-illustration {
  position: relative;
  width: min(86%, 55rem);
  margin-inline: auto;
  height: clamp(13rem, 30vw, 23rem);
  overflow: hidden;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(black 64%, transparent 100%);
}

.hero-illustration img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }

.hero-copy {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: -1.3rem;
  padding: 0 max(var(--gutter), 12vw) clamp(2rem, 5vh, 3.5rem);
}

.hero::before, .hero::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: -2rem;
  bottom: .4rem;
  width: clamp(2.1rem, 10vw, 8rem);
  background: url("assets/marigold-border.webp") center top / auto min(88%, 36rem) no-repeat,
    url("assets/print-floral.webp") bottom left / 135% auto no-repeat;
  opacity: .95;
  content: "";
}

.hero::before { left: 1.15%; transform: rotate(-3deg); transform-origin: top; }
.hero::after { right: 1.15%; transform: scaleX(-1) rotate(-3deg); transform-origin: top; }
.hero-content { z-index: 2; }
.envelope-cover:is(.is-revealing, :not([open])) ~ main .hero-content { animation: rise .8s ease both; }
.hero-blessing-art { width: clamp(3.45rem, 6.7vw, 4.45rem); height: auto; aspect-ratio: 4 / 5; object-fit: contain; margin-inline: auto; }
#couple:focus { outline: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ornament { display: inline-block; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .19em; line-height: 1.45; text-transform: uppercase; color: var(--wine); }
.hero-blessing { margin: .65rem 0 .65rem; color: var(--wine); font: italic clamp(.96rem, 2vw, 1.14rem)/1.35 var(--serif); }

.couple-names { margin-block: .75rem .2rem; color: var(--wine); }
.couple-name { font: normal clamp(3.1rem, 7.65vw, 6.45rem)/1.02 var(--names); }
.couple-name-ayushi { font-size: clamp(3.7rem, 8.95vw, 7.5rem); }
.ayushi-initial { font: italic .9em/.85 var(--serif); letter-spacing: -.06em; }
.name-connector { color: #8f4d3b; font: normal clamp(1.7rem, 3.8vw, 3.1rem)/1 var(--names); margin-block: .42em .2em; }
.parent-names { color: #544036; margin: .25rem auto 0; font: italic clamp(.8rem, 1.6vw, 1rem)/1.45 var(--serif); max-width: 29em; }
.hero-message { max-width: 26rem; margin-inline: auto; padding: .66rem .9rem; border: 1px solid #e7d7c2; border-radius: .75rem; background: #fff9efd6; color: #4c382e; font: italic clamp(.94rem, 1.7vw, 1.1rem)/1.58 var(--serif); }

.petals { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.petals i { position: absolute; top: -1.2rem; left: var(--x); width: .64rem; height: .38rem; border-radius: 20% 65% 30% 75%; background: #a7435e; opacity: 0; }
.petals i:nth-child(even) { background: #c47173; }
.petals.is-falling i { animation: petal-fall 5.4s var(--delay) cubic-bezier(.34, .37, .67, .67) both; }
@keyframes petal-fall {
  10% { opacity: .8; }
  78% { opacity: .7; }
  to { transform: translate(var(--drift), 80svh) rotate(380deg); opacity: 0; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 46px;
  padding: .65rem 1.1rem;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--light-paper);
  font-size: .82rem;
  font-weight: 650;
  transition: background .2s ease, border-color .2s ease;
}

.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.button:disabled { cursor: default; opacity: .65; }
.button:focus-visible { outline-color: var(--wine-dark); }

.section-pad { padding: clamp(3.8rem, 9vw, 7.5rem) var(--gutter); }
.section-inner { width: min(100%, 70rem); margin-inline: auto; }
.section-heading h2, .letter h2 { color: var(--wine); font-style: italic; font-size: clamp(2.3rem, 5.5vw, 4.6rem); letter-spacing: -.055em; margin-block: .45rem 1rem; }
.section-heading > p:last-of-type, .letter > p:not(.eyebrow) { color: var(--muted); }
.floral-rule { display: flex; justify-content: center; align-items: center; gap: .65rem; color: var(--gold); font-size: 1.05rem; }
.floral-rule::before, .floral-rule::after { content: ""; width: 3rem; height: 1px; background: #c6a77a; }
.date-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1rem; }
.invitation { display: grid; place-items: center; text-align: center; padding-block: clamp(1.8rem, 5vw, 3.2rem); background: var(--light-paper); }
.invitation .letter { padding-block: 0; }
.letter { width: min(100%, 39rem); padding: clamp(.75rem, 3vw, 2rem) 0; }
.text-link { font-size: .86rem; font-weight: 700; color: var(--wine); text-underline-offset: .24em; }
.text-link span { margin-left: .3rem; }
.letter .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .48rem; }
.date-reveal {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  width: min(100%, 23rem);
  min-height: 6.5rem;
  margin: .85rem auto 0;
  padding: .5rem;
  overflow: hidden;
  border: 1px solid #c9a777;
  border-radius: .85rem;
  background: #fffaf1;
  box-shadow: 0 .65rem 1.4rem #57402a14;
}

.date-reveal:focus-within { outline: 2px solid var(--wine); outline-offset: 4px; }
.letter .date-label { color: #526344; font: 600 .68rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .3rem; }
.wedding-date time { display: block; color: var(--wine); font: normal clamp(2rem, 7vw, 2.8rem)/1.1 var(--names); }
.date-cover, .date-scratch { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.date-cover { background: linear-gradient(130deg, #bd934d, #f6e4af 35%, #c39a53 60%, #f7e7b6 83%, #bd934d); color: #4d3027; font: 1rem var(--serif); }
.date-scratch { cursor: crosshair; touch-action: none; }
.is-revealed .wedding-date { animation: rise .42s ease both; }

.wedding-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 23rem); gap: clamp(.3rem, 1.75vw, .72rem); margin: .98rem auto 0; }
.wedding-countdown div { display: grid; justify-items: stretch; }
.wedding-countdown dd { grid-row: 1; margin: 0; padding: .43rem 0; border: 1px solid #d9bb8e; border-radius: .65rem; color: var(--wine); background: #fffaf1; font: clamp(1.25rem, 4.6vw, 2rem)/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.wedding-countdown dt { color: #526344; margin-top: .28rem; font-size: clamp(.57rem, 1.7vw, .67rem); letter-spacing: .045em; text-transform: uppercase; }

.celebrations { padding-block-start: clamp(2.5rem, 6vw, 4.25rem); background: radial-gradient(ellipse at 50% 25%, #f1f2e9, #e4e9db); }
.celebrations .section-heading { text-align: center; margin-bottom: 1.6rem; }
.celebrations .section-heading h2 { font: normal clamp(2.65rem, 7vw, 4.25rem)/1.1 var(--names); letter-spacing: 0; }

.leaflet-stack {
  display: grid;
  gap: clamp(1.6rem, 6vw, 3rem);
  width: min(100%, 25rem);
  margin-inline: auto;
}

.leaflet {
  --stationery-tint: #fff3d9;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0d6c5;
  border-radius: 1.15rem;
  background: var(--stationery-tint);
  text-align: center;
  box-shadow: 0 1rem 2.2rem #563b2b15;
}

.leaflet-wedding { --stationery-tint: #fffdf8; }

.leaflet-copy {
  position: relative;
  isolation: isolate;
  padding: clamp(1.55rem, 5vw, 2.75rem) clamp(.9rem, 6vw, 3.1rem) clamp(1.35rem, 4vw, 2rem);
}

.leaflet-copy::before, .leaflet-copy::after {
  position: absolute;
  z-index: -1;
  top: -.8rem;
  width: min(28%, 7.2rem);
  aspect-ratio: 1;
  background: url("assets/print-floral.webp") center / contain no-repeat;
  opacity: .6;
  pointer-events: none;
  content: "";
}

.leaflet-copy::before { left: -.7rem; }
.leaflet-copy::after { right: -.7rem; transform: scaleX(-1); }
.leaflet-haldi .leaflet-copy {
  background: radial-gradient(ellipse at 40% 10%, #fff9df, transparent 75%);
  padding: clamp(2.3rem, 8vw, 3.2rem) clamp(2rem, 10%, 3.1rem) 1.25rem;
}

.leaflet-haldi .leaflet-copy::before, .leaflet-haldi .leaflet-copy::after {
  top: -1rem;
  width: 17%;
  height: 100%;
  aspect-ratio: auto;
  background: url("assets/marigold-border.webp") center top / contain no-repeat;
  opacity: .86;
}

.leaflet-mark { width: clamp(2.65rem, 9vw, 3.3rem); height: auto; margin: 0 auto .68rem; }

.leaflet h3 {
  color: var(--wine);
  font: normal clamp(2.65rem, 8vw, 4rem)/1.04 var(--names);
  margin-block: 0 .52rem;
}

.leaflet-haldi h3 { font-size: clamp(2.2rem, 7.8vw, 3.15rem); }

.leaflet-copy > p {
  max-width: 24rem;
  color: #56473f;
  margin-inline: auto;
  font: .97rem/1.6 var(--serif);
}

.leaflet-art { width: 100%; height: auto; }
.leaflet-haldi .leaflet-art { mix-blend-mode: multiply; mask-image: linear-gradient(transparent, black 11%); }
.leaflet-actions { padding: .95rem 1rem 1.22rem; border-top: 1px solid #dbc9ad; }
.leaflet-directions { border-radius: 1.5rem; }
.leaflet-wedding .leaflet-copy {
  padding: clamp(3rem, 12vw, 4.55rem) .95rem .72rem;
}

.leaflet-wedding .leaflet-copy::before {
  inset: 0 0 auto;
  width: 100%;
  height: 10rem;
  aspect-ratio: auto;
  background: url("assets/wedding-floral-canopy.webp") center top / 100% auto no-repeat;
  opacity: 1;
}

.leaflet-wedding .leaflet-copy::after { content: none; }
.leaflet-wedding .leaflet-mark { width: 2.15rem; margin-bottom: .42rem; }
.leaflet-wedding h3 { margin-bottom: .35rem; font-size: clamp(2.15rem, 6.7vw, 2.85rem); }
.leaflet-wedding .wedding-invitation-note { max-width: 16.5rem; font-size: .84rem; line-height: 1.45; }
.leaflet-copy > .leaflet-date { width: fit-content; margin: .67rem auto; color: var(--wine); }
.leaflet-date time {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .48rem;
  font-size: clamp(.77rem, 2.65vw, .9rem);
}
.leaflet-date time span:first-child { text-align: right; }
.leaflet-date time span:last-child { text-align: left; }
.leaflet-date strong {
  border-inline: 1px solid #bc9682;
  padding: 0 .53rem;
  font-size: 2.12rem;
  font-weight: 400;
  line-height: 1.05;
}

.wedding-timeline {
  margin: 0 auto .6rem;
  color: #56473f;
  font: .83rem/1.5 var(--serif);
}

.wedding-timeline div { display: flex; justify-content: center; align-items: baseline; gap: .42rem; }
.wedding-timeline dt { color: var(--wine); font-weight: 700; white-space: nowrap; }
.wedding-timeline dd { margin: 0; }
.leaflet-copy > .leaflet-venue { font-size: .87rem; line-height: 1.4; }
.leaflet-copy > .haldi-time { color: var(--wine); margin-bottom: .5rem; font-size: .87rem; font-weight: 700; }
.leaflet-venue span { display: block; color: var(--wine); font-weight: 700; }

.leaflet-wedding .leaflet-art {
  aspect-ratio: 1.16;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(transparent, black 12%);
}

.leaflet-directions { width: 100%; }

.welcome-note { display: grid; justify-items: center; text-align: center; background: #e9ecdf; }
.rsvp-section { background: #faf3e8; color: var(--ink); }
.rsvp-layout { width: min(100%, 33rem); }
.rsvp-section .section-heading { text-align: center; margin-bottom: 1.65rem; }
.rsvp-section .section-heading h2, .families .section-heading h2, .welcome-note h2 {
  font: normal clamp(3.15rem, 8vw, 5.05rem)/1.06 var(--names);
  letter-spacing: 0;
}
.rsvp-section .preview-note { margin: .75rem auto 0; font-size: .82rem; }
.rsvp-form {
  display: grid;
  gap: .6rem;
  border: 1px solid #dfcdb6;
  border-radius: 1.1rem;
  padding: clamp(1.1rem, 4.5vw, 2.2rem);
  background: #fffaf3;
  box-shadow: 0 .85rem 2rem #63412a0b;
}
.rsvp-form h3 { color: var(--wine); text-align: center; padding-bottom: .9rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); font: 600 .82rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.rsvp-form label, .rsvp-form legend { color: var(--wine); font-size: .84rem; font-weight: 650; }
.rsvp-form label span, .rsvp-form legend span { font-weight: 400; color: var(--muted); }
.rsvp-form input:not([type=radio], [type=checkbox]), .rsvp-form select, .rsvp-form textarea { width: 100%; min-height: 46px; padding: .6rem .75rem; border: 1px solid #d6c0a5; border-radius: .62rem; background: #fffdf9; color: var(--ink); }
.rsvp-form textarea { resize: vertical; min-height: 5rem; }
.rsvp-form fieldset { min-width: 0; padding: 0; margin: .55rem 0 .35rem; border: 0; }
.rsvp-form legend { padding: 0; margin-bottom: .48rem; }
.attendance-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.attendance-options label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .44rem .4rem; border: 1px solid #d6c0a5; border-radius: 100vw; background: #fffdf9; cursor: pointer; }
.attendance-options label:has(:checked) { background: var(--wine); border-color: var(--wine); color: #fffaf3; }
.attendance-options label:has(:focus-visible) { outline: 2px solid var(--wine); outline-offset: 3px; }
.attendance-options input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.guest-count-field { display: grid; gap: .55rem; margin-block: .25rem; }
.event-options { display: grid; gap: .5rem; }
.event-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-height: 56px; padding: .55rem .75rem; border: 1px solid #dfcdb6; border-radius: .62rem; background: #fffdf9; cursor: pointer; }
.event-choice:has(:checked) { border-color: var(--wine); background: #f9ebeb; }
.event-choice-copy { display: grid; gap: .08rem; }
.event-choice strong { color: var(--wine); font-size: .89rem; }
.event-choice time { font-size: .76rem; }
.event-choice input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--wine); }
.rsvp-form .button { justify-self: center; margin-top: .54rem; min-width: min(100%, 11rem); border-radius: 1.5rem; }
.form-status { font-size: .85rem; text-align: center; }
.form-status:empty { display: none; }

.families { background: #eaeddf; text-align: center; }
.family-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; width: min(100%, 44rem); margin: 1.65rem auto 0; color: var(--wine-dark); }
.family-note { background: #faf3e7; border: 1px solid #d7c4a6; border-radius: .8rem; padding: clamp(1.1rem, 4vw, 2rem) .8rem; }
.family-note h3 { color: #526344; font: 600 .76rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .12em; }
.family-note .floral-rule { margin: .6rem 0 .84rem; }
.family-note .floral-rule::before, .family-note .floral-rule::after { width: 1.45rem; }
.family-note p { font: clamp(1.06rem, 2.2vw, 1.36rem)/1.42 var(--serif); }
.family-note p + p { margin-top: .18rem; }
.site-footer { padding: clamp(2rem, 8vw, 4.5rem) var(--gutter); background: #462837; color: #f6e9d4; border-top: 1px solid #513a41; display: grid; justify-items: center; gap: .5rem; text-align: center; }
.site-footer .monogram { border-radius: 50%; background: #f6e9d4; margin-bottom: .5rem; }
.site-footer > p:not(.closing-names) { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; }
.closing-names { font: normal clamp(2.35rem, 7.8vw, 4.6rem)/1.15 var(--names); }
.site-footer time { font: italic .96rem var(--serif); }
.site-footer nav { display: flex; gap: clamp(.8rem, 5vw, 1.7rem); flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.site-footer nav a { font-size: .8rem; min-height: 44px; display: flex; align-items: center; }
.site-footer nav a:hover { text-decoration: underline; }

.reveal-pending { opacity: 0; transform: translateY(15px); }
.reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal:focus-within, :target .reveal { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .envelope-cover { background: #ddc2a0 url("assets/ceremony-backdrop.jpg") center 55% / cover no-repeat; }
  .cover-inner { width: min(90vw, 88svh); transform: translateY(-3.7svh); }
  .envelope { aspect-ratio: .87; }
  .hero-illustration { height: clamp(10.75rem, 51vw, 18rem); }
  .couple-name { font-size: clamp(3.45rem, 13.9vw, 5.8rem); }
  .couple-name-ayushi { font-size: clamp(4rem, 16vw, 6.7rem); }
  .parent-names { max-width: 19em; }
  .hero::before, .hero::after { top: -1.15rem; width: clamp(2.6rem, 13vw, 4.2rem); background-size: auto 51%, 135% auto; }
  .family-names { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

@media print {
  @page { margin: 16mm; }
  body { background: white; color: #292121; }
  body:has(.envelope-cover[open]) { overflow: visible; }
  .envelope-cover, .envelope-cover::backdrop, .skip-link, .petals,
  .date-cover, .date-scratch, .wedding-countdown, .hero::before, .hero::after, .hero-illustration, .music-button,
  .leaflet-art, .leaflet-mark, .leaflet-actions, .leaflet-copy::before, .leaflet-copy::after, .welcome-note,
  .rsvp-section, .text-link, .site-footer { display: none !important; }
  .hero, .hero-copy, .invitation, .celebrations, .families { display: block; min-height: auto; background: white; text-align: center; padding: .8rem 0; }
  .hero-blessing-art { width: 36pt; }
  .couple-name { font-size: 28pt; }
  .couple-name-ayushi { font-size: 31pt; }
  .name-connector { font-size: 15pt; }
  .date-reveal { min-height: 0; margin-top: .4rem; box-shadow: none; }
  .letter { margin-inline: auto; padding: .9rem; }
  .section-heading h2, .letter h2, .celebrations .section-heading h2 { font-size: 23pt; margin: .25rem 0 .5rem; }
  .letter .date-label { font-size: 9pt; }
  .celebrations .section-heading { margin-bottom: .55rem; }
  .leaflet-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .leaflet { box-shadow: none; background: white; }
  .leaflet-copy, .leaflet-wedding .leaflet-copy, .leaflet-haldi .leaflet-copy { padding: .45rem; }
  .leaflet h3, .leaflet-wedding h3, .leaflet-haldi h3 { font-size: 13pt; }
  .leaflet p, .leaflet .eyebrow, .wedding-timeline { font-size: 8pt; }
  .leaflet-copy > .leaflet-date { margin-block: .3rem; }
  .leaflet-date time, .leaflet-date strong { font-size: inherit; }
  .family-names { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .45rem; }
  .reveal-pending { opacity: 1; transform: none; }
  .hero, .invitation, .celebrations, .families { break-inside: avoid; }
}

.music-button {
  position: fixed;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #f5dfc0;
  border-radius: 50%;
  background: #543245f2;
  color: #ffefdc;
  font-size: 1.15rem;
}

.music-button:hover, .music-button[aria-pressed=true] { background: var(--wine); }
.music-button:focus-visible { outline-color: var(--wine); }
