@font-face {
  font-family: Cormorant;
  src: url("/assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("/assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: InvitationScript;
  src: url("/assets/fonts/script.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("https://raw.githubusercontent.com/google/fonts/main/ofl/pinyonscript/PinyonScript-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fffdf8;
  --paper-light: #ffffff;
  --paper-deep: #f7efdf;
  --ink: #382c1d;
  --muted: #63513a;
  --gold: #6f4c1e;
  --gold-dark: #593b17;
  --gold-light: #c7a56b;
  --line: #a78a5c45;
  --night: #3c2b14;
  --on-night: #fffaf0;
  --on-night-muted: #eee1c9;
  --on-night-gold: #efd29b;
  --action: #79551f;
  --action-hover: #5b3b13;
  --serif: Cormorant, Georgia, serif;
  --editorial: "Instrument Serif", Newsreader, Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  --script:
    "Pinyon Script", InvitationScript, "URW Chancery L", "Brush Script MT",
    cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.invitation-closed {
  overflow: hidden;
  height: 100svh;
}
body.invitation-closed #invitation {
  visibility: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E");
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  color: inherit;
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h2 {
  font: 500 clamp(43px, 4.6vw, 72px)/1.12 var(--serif);
  letter-spacing: -0.9px;
  font-optical-sizing: auto;
  font-variation-settings:
    "SOFT" 0,
    "WONK" 0;
}
h2 em {
  color: var(--gold);
  font-weight: 500;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.eyebrow {
  color: var(--gold);
  font: 600 13px/1.7 var(--sans);
  letter-spacing: 1.35px;
  text-transform: uppercase;
}
.ornament {
  display: block;
  width: 140px;
  height: 28px;
  color: var(--gold-light);
  stroke-width: 1;
}
.section-pad {
  padding: 88px 24px;
}
.section-heading {
  text-align: center;
  position: relative;
  z-index: 1;
}
.section-heading > .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.section-heading > p {
  margin-top: 19px;
  font-size: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 15px 26px;
  font: 600 14px/1.7 var(--sans);
  letter-spacing: 0.25px;
  transition:
    background-color 0.3s ease,
    transform 0.4s var(--ease),
    box-shadow 0.4s ease;
}
.button svg {
  width: 19px;
  height: 19px;
}
.button-gold {
  color: var(--paper-light);
  background: var(--action);
  border: 1px solid var(--action);
}
.button-gold:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #65431524;
}
.button:disabled {
  color: var(--paper-light);
  background: var(--action);
  transform: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 0;
  color: var(--gold-dark);
  background: none;
  border-bottom: 1px solid var(--line);
  font: 600 13px/1.7 var(--sans);
  transition:
    border-color 0.3s ease,
    transform 0.4s var(--ease);
}
.text-link svg {
  width: 17px;
  height: 17px;
}
.text-link:hover {
  border-color: currentColor;
  transform: translateY(-2px);
}
.small-rule {
  display: block;
  width: 35px;
  height: 1px;
  margin: 22px auto;
  background: var(--gold-light);
}
.reveal {
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}
.motion-ready .reveal:not(.revealed) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}
.couple-person:nth-child(3),
.venue-map,
.wish-form-wrap {
  transition-delay: 0.12s;
}
.noscript-note {
  padding: 20px;
  background: var(--paper-deep);
  text-align: center;
}

/* The envelope is built from paper layers so its opening stays crisp at any size. */
.entrance {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 65px 24px 95px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: radial-gradient(
    ellipse at 50% 40%,
    #ffffff 0%,
    #fffdf8 48%,
    #f4ead6 100%
  );
  transition:
    opacity 0.75s ease,
    visibility 0.75s;
}
.entrance::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(45deg, #ad885308 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, #ad885308 0 1px, transparent 1px 34px);
  mask-image: linear-gradient(
    90deg,
    black,
    transparent 30%,
    transparent 70%,
    black
  );
}
.entrance-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid #b4945c88;
  pointer-events: none;
}
.entrance-frame::before,
.entrance-frame::after {
  content: "✦";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 15px;
  color: var(--gold);
  background: var(--paper);
  font-size: 18px;
  line-height: 20px;
}
.entrance-frame::before {
  top: -11px;
}
.entrance-frame::after {
  bottom: -11px;
}
.entrance-heading {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  text-align: center;
}
.entrance-kicker {
  display: block;
  margin-inline: auto;
  font-size: 12px;
  letter-spacing: 1.25px;
  color: var(--gold);
}
.entrance h1 {
  margin: 15px 0 5px;
  color: var(--gold-dark);
  font: 400 clamp(65px, 10vw, 98px)/1.16 var(--script);
}
.entrance-subtitle {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  font: italic 21px/1.5 var(--editorial);
}
.entrance-sprig {
  position: absolute;
  width: 140px;
  height: 245px;
  color: var(--gold-light);
  stroke-width: 0.8;
  opacity: 0.4;
  pointer-events: none;
  transform-origin: 50% 100%;
}
.sprig-left {
  left: -35px;
  bottom: 9%;
  rotate: 18deg;
  animation: botanical-sway 9s ease-in-out infinite alternate;
}
.sprig-right {
  right: -35px;
  top: 8%;
  rotate: 198deg;
  animation: botanical-sway 10s -4s ease-in-out infinite alternate;
}
.envelope-scene {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(350px, 82vw);
  aspect-ratio: 1.55;
  margin: 50px 0 28px;
  animation: envelope-breathe 6s ease-in-out infinite;
}
.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  isolation: isolate;
}
.envelope-back {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 3px;
  border: 1px solid #bda16f;
  background: #d2b67f;
  box-shadow:
    0 20px 45px #60451c2a,
    0 5px 8px #60451c15;
}
.envelope-letter {
  position: absolute;
  z-index: 2;
  inset: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--gold-light);
  background: #fffcf5;
  box-shadow:
    0 0 0 5px #fffcf5,
    0 0 0 6px #c8a26488,
    0 10px 30px #60451c20;
}
.letter-rosette {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
  stroke-width: 0.8;
}
.letter-bismillah {
  color: var(--gold-dark);
  font:
    18px/1.5 Georgia,
    serif;
}
.letter-name {
  color: var(--gold-dark);
  font: 400 49px/1.08 var(--script);
}
.letter-caption {
  color: var(--ink);
  font: italic 21px/1.3 var(--serif);
}
.letter-date {
  margin-top: 3px;
  color: var(--gold);
  font: 600 12px/1.5 var(--sans);
  letter-spacing: 2px;
}
.envelope-front {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(145deg, #f3e5c6, #e2c99a 60%, #d2b67f);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.envelope-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      150deg,
      transparent 49.7%,
      #96713d70 50%,
      transparent 50.5%
    ),
    linear-gradient(210deg, transparent 49.7%, #96713d70 50%, transparent 50.5%);
  clip-path: polygon(0 100%, 50% 40%, 100% 100%);
}
.envelope-flap,
.envelope-flap-back {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 59%);
}
.envelope-flap {
  z-index: 4;
  background: linear-gradient(175deg, #f7ecd3, #dec18b);
}
.envelope-flap-back {
  z-index: 0;
  background: linear-gradient(0deg, #dec18b, #efdeb8);
  transform: scaleY(0);
}
.wax-seal {
  position: absolute;
  z-index: 5;
  top: 57%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #96703a;
  border-radius: 48% 52% 47% 53% / 51% 47% 53% 49%;
  background: radial-gradient(circle at 32% 22%, #efcf91, #bc904c 70%, #b28a49);
  box-shadow:
    0 5px 9px #51340d3d,
    inset 1px 2px 4px #f8e6be;
  transition: box-shadow 0.4s ease;
}
.wax-seal::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid #79532066;
  border-radius: 50%;
  animation: seal-ring 3.6s ease-in-out infinite;
}
.wax-seal:hover {
  box-shadow:
    0 8px 18px #51340d55,
    inset 1px 2px 4px #f8e6be;
}
.wax-seal > span {
  color: #251a09;
  font: italic 41px/1 var(--serif);
  text-shadow: 0 1px #f8e6be;
}
.wax-seal > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #785225;
  stroke-width: 1;
}
.entrance-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 38rem;
}
.seal-caption {
  width: 100%;
  text-align: center;
  color: var(--ink);
  font: 500 13px/1.8 var(--sans);
}
.sound-note {
  display: grid;
  grid-template-columns: 15px minmax(0, max-content) 15px;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  text-align: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font: 400 12px/1.8 var(--sans);
}
.sound-note svg {
  width: 15px;
  height: 15px;
}
.sound-note::after {
  content: "";
  width: 15px;
  height: 15px;
}
.entrance-date {
  position: absolute;
  bottom: 42px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
}
.entrance-date > span {
  padding: 0;
  white-space: nowrap;
}
.entrance.opening .envelope-scene {
  animation-play-state: paused;
}
.entrance.opening .wax-seal::after {
  animation: none;
  opacity: 0;
}
.entrance.leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Invitation typography and full-height hero. */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(105px, 13svh, 130px) 24px 85px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: #fffdf8;
}
.hero-art {
  position: absolute;
  inset: 35% -20% 0;
  z-index: -2;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% bottom;
  animation: palace-drift 24s ease-in-out infinite alternate;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fffdf8 0%, #fffdf8b3 18%, #fffdf800 52%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: 630px;
  background: #fffdf8f5;
  box-shadow: 0 0 35px 22px #fffdf8f5;
  animation: hero-appear 1.25s var(--ease) both;
  animation-play-state: paused;
}
.invitation-open .hero-content {
  animation-play-state: running;
}
.bismillah {
  margin-bottom: 13px;
  color: var(--gold-dark);
  font:
    26px/1.6 Georgia,
    serif;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.8px;
}
.hero h1 {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  color: var(--gold-dark);
}
.groom-name {
  grid-column: 1 / -1;
  padding: 4px 0 0;
  white-space: nowrap;
  font: 400 clamp(52px, 13vw, 92px)/1.17 var(--script);
}
.hero-amp {
  justify-self: end;
  padding-right: 12px;
  color: var(--gold);
  font: italic 26px/1.2 var(--serif);
}
.bride-name {
  justify-self: start;
  padding-bottom: 5px;
  font: 400 clamp(42px, 10vw, 65px)/1.18 var(--script);
}
.hero-description {
  margin: 13px 0;
  color: var(--ink);
  font: 500 19px/1.5 var(--serif);
}
.hero-content > .ornament {
  margin: 0 auto 12px;
}
.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold-dark);
}
.hero-date > span:not(.date-number) {
  min-width: 70px;
  font: 500 17px/1.35 var(--serif);
}
.hero-date > span:first-child {
  text-align: right;
}
.hero-date > span:last-child {
  text-align: left;
}
.hero-date b {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
}
.date-number {
  padding: 0 19px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font: 500 46px/1 var(--serif);
}
.hero-location {
  margin-top: 12px;
  color: var(--gold-dark);
  font: 600 12px/1.7 var(--sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hero-location > span {
  margin: 0 7px;
}
.scroll-prompt {
  position: absolute;
  bottom: 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 5px 12px;
  color: var(--gold-dark);
  background: var(--paper-light);
  font-size: 12px;
  letter-spacing: 0.7px;
}
.scroll-prompt svg {
  width: 17px;
  height: 17px;
  animation: scroll-hint 3s ease-in-out infinite;
}
.hero-ornaments {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-lantern {
  position: absolute;
  top: 50px;
  color: var(--gold);
  width: 60px;
  height: 180px;
  transform-origin: 50% 0;
  animation: lantern-sway 8s ease-in-out infinite alternate;
  opacity: 0.6;
}
.lantern-one {
  right: -10px;
}
.lantern-two {
  display: none;
}

.gold-motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gold-motes i {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 4px;
  height: 8px;
  border-radius: 70% 0 70% 0;
  background: var(--gold-light);
  opacity: 0;
  animation: petal-drift 16s linear infinite;
}
.gold-motes i:nth-child(2) {
  left: 78%;
  top: 0;
  width: 6px;
  height: 10px;
  animation-delay: -5s;
  animation-duration: 19s;
}
.gold-motes i:nth-child(3) {
  left: 90%;
  top: 25%;
  animation-delay: -11s;
  animation-duration: 22s;
}
.gold-motes i:nth-child(4) {
  left: 25%;
  top: 7%;
  animation-delay: -8s;
  animation-duration: 18s;
}
.gold-motes i:nth-child(5) {
  left: 68%;
  top: 34%;
  width: 3px;
  height: 5px;
  animation-delay: -13s;
  animation-duration: 20s;
}
.gold-motes i:nth-child(6) {
  left: 4%;
  top: 40%;
  animation-delay: -3s;
  animation-duration: 23s;
}
.entrance-motes {
  z-index: -1;
}

.countdown-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--gold-light);
  border-bottom: 3px solid var(--gold-light);
}
.countdown-section::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #c8a26440;
  pointer-events: none;
}
.countdown-section .eyebrow,
.countdown-section h2 em {
  color: var(--gold);
}
.countdown-section h2 {
  color: var(--ink);
}
.countdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 38px auto 25px;
}
.countdown > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  min-width: 48px;
}
.count-number {
  color: var(--gold-dark);
  font: 400 clamp(46px, 12vw, 80px)/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.countdown .eyebrow {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.count-divider {
  margin-top: -30px;
  color: var(--on-night-gold);
  font: 30px/1 var(--serif);
}
.countdown-caption {
  position: relative;
  color: var(--muted);
  font: italic 19px/1.6 var(--serif);
}
.countdown-section > .text-link {
  position: relative;
  margin-top: 22px;
  color: var(--gold-dark);
  border-color: #c8a26477;
}
.countdown-section .text-link:focus-visible {
  outline-color: var(--gold);
}
.countdown-rosette {
  position: absolute;
  width: 220px;
  height: 220px;
  color: var(--gold-light);
  opacity: 0.13;
  stroke-width: 0.6;
  animation: rosette-turn 100s linear infinite;
}
.rosette-left {
  left: -130px;
  top: 35px;
}
.rosette-right {
  right: -130px;
  bottom: 35px;
  animation-direction: reverse;
}

/* A portrait without revealing the couple's faces. */
.couple-section {
  overflow: hidden;
}
.couple-composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 38px 20px;
  max-width: 1100px;
  margin: 48px auto 0;
}
.couple-portrait {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 78%;
  max-width: 330px;
  justify-self: center;
  padding: 10px;
}
.portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 0.77;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 0 0;
  background: var(--paper-light);
}
.couple-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-light);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.portrait-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50% 50% 0 0;
  transition: transform 1.5s var(--ease);
}
.couple-portrait:hover .portrait-frame img {
  transform: scale(1.035);
}
.portrait-halo {
  position: absolute;
  z-index: -1;
  inset: -20px -40px 28px;
  border: 1px solid #c8a2645c;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e4cc9740, transparent 70%);
  rotate: -18deg;
}
.portrait-halo::before {
  content: "";
  position: absolute;
  inset: -14px 15px;
  border: 1px dashed #c8a26460;
  border-radius: 50%;
  animation: rosette-turn 100s linear infinite;
}
.portrait-sprig {
  position: absolute;
  z-index: 2;
  bottom: -12px;
  width: 95px;
  height: 170px;
  color: var(--gold);
  stroke-width: 0.8;
  transform-origin: bottom;
}
.portrait-sprig-left {
  left: -48px;
  rotate: -22deg;
  animation: botanical-sway 10s ease-in-out infinite alternate;
}
.portrait-sprig-right {
  right: -48px;
  rotate: 22deg;
  scale: -1 1;
  animation: botanical-sway 11s -3s ease-in-out infinite alternate;
}
.portrait-seal {
  position: absolute;
  z-index: 3;
  bottom: -15px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
  color: var(--gold-dark);
  background: var(--paper-light);
  border: 1px solid var(--gold);
  border-radius: 50%;
  outline: 5px solid var(--paper);
  font: italic 29px/1 var(--serif);
}
.portrait-seal > span {
  margin: 0 0 -15px 3px;
  font-size: 12px;
}
.couple-person {
  text-align: center;
}
.couple-person h3 {
  margin-top: 12px;
  color: var(--gold-dark);
  font: 500 clamp(29px, 7.5vw, 43px)/1.2 var(--serif);
}
.couple-person > p {
  font: 500 17px/1.65 var(--serif);
}
.couple-verse {
  margin: 55px auto 0;
  text-align: center;
}
.couple-verse > .ornament {
  margin: 0 auto 18px;
}
.couple-verse > p {
  color: var(--gold-dark);
  font: italic 23px/1.55 var(--serif);
}
.couple-verse > .eyebrow {
  display: block;
  margin-top: 13px;
  font-size: 12px;
}

.celebration-section {
  position: relative;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.event-card {
  position: relative;
  isolation: isolate;
  max-width: 1000px;
  margin: 46px auto 0;
  padding: 38px 24px 25px;
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--gold);
  outline: 1px solid #ad885370;
  outline-offset: 7px;
  box-shadow: 0 12px 40px #6543150a;
  text-align: center;
}
.event-card::before,
.event-card::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 45px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}
.event-card::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.event-card::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}
.event-card-top {
  position: relative;
}
.event-rosette {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
  color: var(--gold);
  stroke-width: 0.9;
}
.event-card-top > .eyebrow {
  display: block;
  font-size: 12px;
}
.event-card h3 {
  margin: 13px 0;
  color: var(--gold-dark);
  font: 400 clamp(48px, 8vw, 65px)/1.25 var(--script);
}
.event-card-top > p {
  font: italic 20px/1.5 var(--serif);
}
.event-sprig {
  position: absolute;
  z-index: -1;
  right: -30px;
  top: -10px;
  width: 140px;
  height: 220px;
  color: var(--gold-light);
  opacity: 0.15;
  transform: rotate(195deg);
}
.event-details {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 29px;
}
.event-details > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.event-details svg {
  width: 25px;
  height: 25px;
  margin-bottom: 12px;
  color: var(--gold);
}
.event-details .eyebrow {
  font-size: 12px;
  letter-spacing: 1.1px;
}
.event-details p {
  margin-top: 10px;
  color: var(--gold-dark);
  font: 500 25px/1.3 var(--serif);
}
.event-details > div > span:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.event-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: italic 18px/1.5 var(--serif);
}
.event-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.celebration-note {
  margin: 40px 0 -7px;
  color: var(--gold-dark);
  font:
    24px/2 Georgia,
    serif;
  text-align: center;
}

.venue-section {
  display: grid;
  gap: 42px;
  max-width: 1280px;
  margin: 0 auto;
}
.venue-copy {
  text-align: center;
}
.venue-copy > .eyebrow {
  display: block;
  margin-bottom: 17px;
}
.venue-copy > .ornament {
  margin: 24px auto;
}
.venue-copy h3 {
  color: var(--gold-dark);
  font: 500 34px/1.2 var(--serif);
}
.venue-copy > p {
  margin: 14px 0 26px;
  font-size: 15px;
  line-height: 1.9;
}
.venue-copy > .button {
  min-width: 210px;
}
.copy-address {
  display: flex;
  margin: 9px auto 0;
  border: 0;
}
.copy-address svg {
  width: 15px;
  height: 15px;
}
.venue-map {
  align-self: center;
}
.map-frame {
  height: 335px;
  padding: 7px;
  border: 1px solid var(--gold);
  background: var(--paper-deep);
  box-shadow: 12px 12px 0 #ad885313;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #e8e4d6;
  filter: grayscale(0.35) sepia(0.15);
}
.map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
}
.map-caption svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.map-caption > .eyebrow {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.wishes-section {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 37px;
  overflow: hidden;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wishes-copy {
  text-align: center;
}
.wishes-copy > .eyebrow {
  display: block;
  margin-bottom: 20px;
}
.wishes-copy h2 {
  font-size: clamp(46px, 4.6vw, 65px);
  line-height: 1.1;
}
.wishes-copy > p {
  margin-top: 24px;
  font: 500 19px/1.7 var(--serif);
}
.wishes-dua {
  display: none;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.wishes-dua > svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.wishes-dua > p {
  color: var(--gold-dark);
  font: italic 21px/1.4 var(--serif);
}
.wishes-sprig {
  position: absolute;
  z-index: -1;
  left: -35px;
  bottom: -35px;
  width: 160px;
  height: 260px;
  color: var(--gold);
  opacity: 0.13;
  rotate: 35deg;
  animation: botanical-sway 12s ease-in-out infinite alternate;
}
.wish-form-wrap {
  width: 100%;
  max-width: 500px;
  min-height: 420px;
  margin: auto;
}
.wish-form {
  display: flex;
  flex-direction: column;
}
.wish-form label {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.wish-form label > span {
  margin-left: 4px;
  color: var(--gold);
  font-size: 12px;
}
.wish-form input,
.wish-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid #8c784f;
  border-radius: 0;
  -webkit-appearance: none;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.wish-form input::placeholder,
.wish-form textarea::placeholder {
  color: var(--muted);
  font-size: 14px;
  opacity: 1;
}
.wish-form input:hover,
.wish-form textarea:hover {
  border-color: var(--gold-dark);
}
.wish-form input:focus,
.wish-form textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px #79532010;
}
.wish-form input {
  margin-bottom: 25px;
}
.wish-form textarea {
  min-height: 140px;
  max-height: 360px;
}
.form-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#character-count {
  white-space: nowrap;
  margin-left: auto;
}
.wish-form .button {
  width: 100%;
  margin-top: 24px;
}
.form-status {
  margin-top: 12px;
  color: #853d25;
  font-size: 14px;
  line-height: 1.6;
}
.form-status:empty {
  display: none;
}
.form-privacy {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wish-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 32px 20px;
  background: var(--paper-light);
  border: 1px solid var(--gold-light);
  text-align: center;
  animation: hero-appear 0.7s var(--ease) both;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.success-icon svg {
  width: 26px;
}
.wish-success .eyebrow {
  font-size: 12px;
}
.wish-success h3 {
  margin: 14px 0;
  color: var(--gold-dark);
  font: 500 45px/1.2 var(--serif);
}
.wish-success > p {
  font: 500 19px/1.6 var(--serif);
}
.wish-success > .text-link {
  margin-top: 19px;
}

.closing-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 67px;
  padding-bottom: 62px;
  background: var(--paper-light);
  text-align: center;
}
.closing-section > .ornament {
  margin-bottom: 25px;
}
.closing-section > p {
  max-width: 600px;
  color: var(--ink);
  font: 500 clamp(28px, 5vw, 39px)/1.35 var(--serif);
}
.closing-section > p > em {
  color: var(--gold);
}
.closing-section > .eyebrow {
  margin-top: 19px;
  font-size: 12px;
  letter-spacing: 1px;
}
.closing-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: var(--gold-dark);
  font: 400 46px/1.2 var(--script);
}
.closing-signature > span {
  font: italic 23px/1 var(--serif);
}
.closing-date {
  margin-top: 17px !important;
  letter-spacing: 3px !important;
}
.music-toggle {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  min-width: 46px;
  padding: 11px 15px;
  color: var(--gold-dark);
  background: var(--paper-light);
  border: 1px solid var(--gold-light);
  border-radius: 25px;
  box-shadow: 0 5px 20px #30291f20;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s ease;
}
.music-toggle:hover {
  transform: translateY(-3px);
  background: var(--paper-deep);
}
.music-toggle:focus-visible {
  outline-offset: 3px;
}
.music-label {
  font-size: 12px;
}
.music-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.music-bars i {
  width: 2px;
  height: 12px;
  background: var(--gold);
  animation: music-dance 1s ease-in-out infinite alternate;
}
.music-bars i:nth-child(2) {
  height: 7px;
  animation-delay: -0.6s;
}
.music-bars i:nth-child(3) {
  height: 15px;
  animation-delay: -0.3s;
}
.music-bars i:nth-child(4) {
  height: 9px;
  animation-delay: -0.8s;
}
.music-toggle[aria-pressed="false"] .music-bars i {
  animation-play-state: paused;
  height: 3px;
}
.toast {
  position: fixed;
  z-index: 40;
  bottom: 85px;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 14px 22px;
  transform: translate(-50%, 10px);
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--gold-light);
  box-shadow: 0 5px 24px #30291f22;
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
  text-align: center;
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes hero-appear {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@keyframes music-dance {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes envelope-breathe {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(-1deg);
  }
}
@keyframes seal-ring {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}
@keyframes botanical-sway {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(3deg);
  }
}
@keyframes lantern-sway {
  from {
    transform: rotate(-3deg);
  }
  to {
    transform: rotate(3deg);
  }
}
@keyframes palace-drift {
  from {
    transform: scale(1.01) translateX(0);
  }
  to {
    transform: scale(1.04) translateX(-0.5%);
  }
}
@keyframes rosette-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes petal-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0);
  }
  15% {
    opacity: 0.55;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translate3d(35px, 50vh, 0) rotate(130deg);
  }
}

@media (min-width: 600px) {
  .entrance-frame {
    inset: 30px;
  }
  .entrance h1 {
    font-size: 93px;
  }
  .entrance-subtitle {
    max-width: none;
    font-size: 23px;
  }
  .envelope-scene {
    width: 400px;
    margin-top: 55px;
    margin-bottom: 35px;
  }
  .wax-seal {
    width: 82px;
    height: 82px;
  }
  .wax-seal > span {
    font-size: 46px;
  }
  .letter-name {
    font-size: 60px;
  }
  .letter-rosette {
    width: 28px;
    height: 28px;
  }
  .entrance-sprig {
    width: 210px;
    height: 350px;
  }
  .sprig-left {
    left: -45px;
  }
  .sprig-right {
    right: -45px;
  }
  .entrance-date {
    bottom: 49px;
  }
  .section-pad {
    padding: 100px 40px;
  }
  .hero {
    padding-top: 126px;
  }
  .groom-name {
    font-size: 90px;
  }
  .bride-name {
    font-size: 65px;
  }
  .hero-description {
    margin-top: 20px;
    font-size: 22px;
  }
  .hero-content > .ornament {
    margin-top: 18px;
  }
  .date-number {
    font-size: 54px;
  }
  .hero-art {
    inset: 20% -5% 0;
  }
  .lantern-one {
    right: 12px;
    width: 75px;
    height: 220px;
  }
  .countdown {
    gap: 25px;
    margin-top: 42px;
  }
  .countdown .eyebrow {
    letter-spacing: 1.5px;
  }
  .countdown-caption {
    font-size: 22px;
  }
  .countdown-rosette {
    width: 330px;
    height: 330px;
  }
  .rosette-left {
    left: -180px;
  }
  .rosette-right {
    right: -180px;
  }
  .event-card {
    padding: 45px 30px 29px;
  }
  .event-details {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 38px;
    padding-bottom: 30px;
  }
  .event-details > div {
    padding: 0 10px;
    border-top: 0;
  }
  .event-details > div + div {
    border-left: 1px solid var(--line);
  }
  .event-details p {
    font-size: 24px;
  }
  .event-details > div > span:last-child {
    font-size: 12px;
  }
  .event-card h3 {
    font-size: 62px;
  }
  .event-card-top > p {
    font-size: 23px;
  }
  .event-bottom {
    font-size: 20px;
  }
  .celebration-note {
    font-size: 26px;
  }
  .map-frame {
    height: 400px;
  }
  .wishes-section {
    padding-left: 12%;
    padding-right: 12%;
  }
  .closing-section {
    padding: 80px 30px;
  }
  .closing-signature {
    font-size: 52px;
  }
  .closing-signature > span {
    font-size: 26px;
  }
  .music-toggle {
    right: 25px;
    bottom: 25px;
  }
}

@media (min-width: 1000px) {
  .hero {
    align-items: center;
    justify-content: flex-start;
    padding: 123px 6% 90px;
  }
  .hero-content {
    width: 49%;
    max-width: 650px;
    margin-top: 0;
  }
  .hero-content .bismillah {
    margin-bottom: 14px;
    font-size: 27px;
  }
  .hero-eyebrow {
    max-width: 420px;
    margin: 0 auto;
    letter-spacing: 1.1px;
  }
  .groom-name {
    font-size: clamp(75px, 6.7vw, 110px);
  }
  .bride-name {
    font-size: clamp(57px, 5vw, 80px);
  }
  .hero-amp {
    padding-right: 16px;
    font-size: 33px;
  }
  .hero-description {
    margin: 14px 0;
    font-size: 21px;
  }
  .hero-content > .ornament {
    height: 24px;
    margin: 8px auto 12px;
  }
  .hero-date > span:not(.date-number) {
    min-width: 80px;
    font-size: 19px;
  }
  .hero-date b {
    font-size: 15px;
  }
  .date-number {
    padding: 0 23px;
    font-size: 57px;
  }
  .hero-location {
    margin-top: 16px;
    font-size: 13px;
  }
  .hero-art {
    inset: 0 0 0 35%;
  }
  .hero-art img {
    object-position: 63% center;
  }
  .hero-art::after {
    background:
      linear-gradient(90deg, #fffdf8, #fffdf8ad 14%, #fffdf800 50%),
      linear-gradient(0deg, #fffdf855, transparent 35%);
  }
  .hero-lantern {
    top: 69px;
    opacity: 0.8;
  }
  .lantern-one {
    right: 8%;
    width: 95px;
    height: 270px;
  }
  .lantern-two {
    display: block;
    right: 19%;
    top: 75px;
    width: 65px;
    height: 190px;
    animation-delay: -4s;
  }
  .scroll-prompt {
    left: 29%;
    transform: translateX(-50%);
    bottom: 24px;
  }
  .section-pad {
    padding: 110px 6%;
  }
  .countdown-section {
    padding-top: 83px;
    padding-bottom: 82px;
  }
  .countdown-section::before {
    inset: 17px;
  }
  .countdown {
    margin-top: 39px;
  }
  .count-number {
    font-size: 82px;
  }
  .countdown-caption {
    font-size: 23px;
  }
  .couple-composition {
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 42px;
    margin-top: 55px;
  }
  .couple-portrait {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 350px;
  }
  .groom-person {
    grid-column: 1;
    grid-row: 1;
  }
  .bride-person {
    grid-column: 3;
    grid-row: 1;
  }
  .couple-person h3 {
    font-size: 41px;
  }
  .couple-person > p {
    font-size: 21px;
  }
  .couple-verse {
    margin-top: 57px;
  }
  .couple-verse > p {
    font-size: 27px;
  }
  .event-card {
    padding: 40px 52px 28px;
  }
  .event-details {
    padding-bottom: 34px;
  }
  .event-details p {
    font-size: 28px;
  }
  .event-details > div > span:last-child {
    font-size: 14px;
  }
  .event-card h3 {
    font-size: 68px;
  }
  .event-bottom {
    gap: 16px;
    font-size: 21px;
  }
  .event-rosette {
    width: 48px;
    height: 48px;
  }
  .venue-section {
    grid-template-columns: 0.9fr 1.25fr;
    gap: 65px;
  }
  .venue-copy {
    text-align: left;
  }
  .venue-copy > .ornament {
    margin: 25px 0;
  }
  .venue-copy h3 {
    font-size: 36px;
  }
  .venue-copy > p {
    margin-bottom: 28px;
  }
  .venue-copy > .copy-address {
    margin-left: 0;
    margin-top: 13px;
  }
  .map-frame {
    height: 420px;
  }
  .wishes-section {
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    padding: 98px max(6%, calc((100vw - 1140px) / 2));
  }
  .wishes-copy {
    text-align: left;
    align-self: center;
  }
  .wishes-copy > p {
    font-size: 22px;
  }
  .wishes-dua {
    display: flex;
  }
  .wish-form-wrap {
    max-width: 490px;
    min-height: 430px;
  }
  .wishes-sprig {
    left: 30%;
    width: 180px;
    height: 300px;
  }
  .closing-section {
    padding: 73px 24px 66px;
  }
  .closing-section > p {
    font-size: 40px;
  }
}

@media (min-width: 1600px) {
  .hero {
    padding-left: 9%;
  }
  .hero-content {
    width: 47%;
  }
  .groom-name {
    font-size: 114px;
  }
  .bride-name {
    font-size: 85px;
  }
}

@media (max-width: 374px) {
  .section-pad {
    padding-left: 20px;
    padding-right: 20px;
  }
  .entrance-kicker {
    max-width: 270px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-eyebrow {
    letter-spacing: 0.2px;
  }
  .groom-name {
    font-size: 15vw;
  }
  .bride-name {
    font-size: 12vw;
  }
  .hero-description {
    font-size: 18px;
  }
  .couple-person h3 {
    font-size: 30px;
  }
  .couple-person > p {
    font-size: 16px;
  }
  .countdown {
    gap: 5px;
  }
  .countdown .eyebrow {
    font-size: 12px;
    letter-spacing: 0;
  }
  .count-divider {
    font-size: 24px;
  }
  .event-bottom {
    font-size: 17px;
  }
  .map-caption > .eyebrow {
    margin-left: 24px;
  }
  .entrance-date {
    letter-spacing: 0.2px;
    flex-direction: column;
    gap: 1px;
  }
  .entrance-date-separator {
    display: none;
  }
  .letter-name {
    font-size: 39px;
  }
  .letter-bismillah {
    font-size: 17px;
  }
  .letter-caption {
    font-size: 18px;
  }
  .letter-rosette {
    width: 16px;
    height: 16px;
  }
}

@media (max-height: 740px) and (max-width: 999px) {
  .hero {
    padding-top: 94px;
    padding-bottom: 70px;
  }
  .hero-content .bismillah {
    margin-bottom: 8px;
    font-size: 23px;
  }
  .groom-name {
    font-size: clamp(45px, 12vw, 64px);
  }
  .bride-name {
    font-size: clamp(38px, 10vw, 50px);
  }
  .hero-amp {
    font-size: 24px;
  }
  .hero-description {
    margin: 10px 0;
    font-size: 18px;
  }
  .hero-content > .ornament {
    height: 23px;
    margin-top: 0;
    margin-bottom: 9px;
  }
  .date-number {
    font-size: 41px;
  }
  .hero-date > span:not(.date-number) {
    font-size: 17px;
  }
  .hero-location {
    margin-top: 9px;
  }
  .scroll-prompt {
    bottom: 13px;
  }
  .entrance {
    padding: 42px 22px 80px;
  }
  .entrance h1 {
    font-size: 60px;
    margin-top: 10px;
  }
  .entrance-subtitle {
    font-size: 19px;
  }
  .envelope-scene {
    width: min(285px, 80vw);
    margin-top: 36px;
    margin-bottom: 24px;
  }
  .wax-seal {
    width: 65px;
    height: 65px;
  }
  .wax-seal > span {
    font-size: 35px;
  }
  .letter-name {
    font-size: 41px;
  }
  .letter-bismillah {
    font-size: 17px;
  }
  .letter-caption {
    font-size: 19px;
  }
  .letter-rosette {
    width: 18px;
    height: 18px;
  }
  .letter-date {
    font-size: 12px;
  }
  .envelope-letter {
    inset: 6px 14px;
    gap: 1px;
    padding: 6px;
  }
  .entrance-date {
    bottom: 35px;
  }
}

@media (max-height: 650px) and (max-width: 999px) {
  .entrance {
    padding: 36px 22px 74px;
  }
  .entrance h1 {
    font-size: 53px;
    margin-top: 8px;
  }
  .entrance-subtitle {
    font-size: 18px;
  }
  .envelope-scene {
    width: min(260px, 80vw);
    margin-top: 30px;
    margin-bottom: 22px;
  }
  .entrance-frame {
    inset: 15px;
  }
  .entrance-date {
    bottom: 29px;
    font-size: 12px;
  }
  .sound-note {
    margin-top: 7px;
  }
  .hero {
    padding-top: 86px;
    padding-bottom: 62px;
  }
  .hero h1 {
    margin-top: 9px;
  }
  .hero-description {
    margin: 8px 0;
    font-size: 17px;
    line-height: 1.4;
  }
  .hero-content .bismillah {
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.5;
  }
  .hero-content > .ornament {
    display: none;
  }
  .groom-name {
    font-size: clamp(45px, 12vw, 59px);
    line-height: 1.08;
  }
  .bride-name {
    font-size: 39px;
    line-height: 1.1;
  }
  .date-number {
    font-size: 38px;
  }
}

@media (min-width: 600px) and (max-height: 850px) {
  .hero {
    padding-top: 105px;
    padding-bottom: 78px;
  }
  .hero-content .bismillah {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .groom-name {
    font-size: clamp(65px, 6vw, 85px);
  }
  .bride-name {
    font-size: 50px;
  }
  .hero-amp {
    font-size: 28px;
  }
  .hero-description {
    margin: 12px 0;
    font-size: 19px;
  }
  .hero-content > .ornament {
    height: 23px;
    margin: 0 auto 10px;
  }
  .date-number {
    font-size: 48px;
  }
  .hero-location {
    font-size: 12px;
    margin-top: 10px;
  }
}

@media (min-width: 600px) and (max-height: 700px), (max-height: 520px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 90px;
  }
}

@media (max-height: 520px) {
  .entrance {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 40px;
  }
  .entrance-date {
    position: static;
    margin-top: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready .reveal:not(.revealed) {
    opacity: 1;
    transform: none;
  }
  .hero-content {
    opacity: 1;
    transform: none;
  }
  .gold-motes {
    display: none;
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after,
.invitation-closed #invitation *,
.invitation-closed #invitation *::before {
  animation-play-state: paused !important;
}
.ambient-paused .hero-art img,
.ambient-paused .hero-lantern,
.ambient-paused .gold-motes i,
.ambient-paused .countdown-rosette,
.ambient-paused .portrait-halo::before,
.ambient-paused .portrait-sprig,
.ambient-paused .wishes-sprig {
  animation-play-state: paused;
}

/* Typography, alignment, and the illuminated invitation details. */
@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("/assets/fonts/nastaleeq-urdu.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --nastaleeq: "Noto Nastaliq Urdu", serif;
}
[lang="ur"] {
  font-family: var(--nastaleeq);
  font-style: normal;
  font-weight: 400;
  line-height: 2.5;
  letter-spacing: normal;
  text-transform: none;
}
h2,
.section-heading > p,
.hero-description,
.entrance-subtitle {
  text-wrap: balance;
}
.section-heading > .eyebrow {
  max-width: 40ch;
  margin-inline: auto;
}
.section-heading > .urdu-subtitle {
  margin: 20px auto 0;
  padding-block: 0.2em;
  font-family: var(--nastaleeq);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 2.5;
  color: var(--gold-dark);
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-pair {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}
.hero-pair .hero-amp {
  padding: 0;
}
.hero-pair .bride-name {
  padding-bottom: 0;
}
.hero-description {
  max-width: 34ch;
  margin-inline: auto;
}
.hero-date {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  width: min(290px, 100%);
  margin-inline: auto;
}
.hero-date > span:not(.date-number) {
  min-width: 0;
}
.hero-date > span:first-child {
  justify-self: end;
}
.hero-date > span:last-child {
  justify-self: start;
}
.couple-person {
  display: grid;
  grid-template-rows: auto minmax(76px, auto) 34px auto;
  align-content: start;
  align-self: start;
  justify-items: center;
}
.couple-person h3 {
  align-self: center;
  margin: 0;
  text-wrap: balance;
}
.couple-person > .small-rule {
  margin: 0;
  align-self: center;
}
.couple-person > p {
  max-width: 25ch;
  margin-inline: auto;
  text-wrap: balance;
}
.event-details > div {
  display: grid;
  grid-template-rows: 30px 22px auto auto;
  gap: 8px;
  justify-items: center;
  align-content: start;
}
.event-details svg {
  margin: 0;
}
.event-details p {
  margin: 0;
  max-width: 21ch;
  text-wrap: balance;
}
.event-details > div > span:last-child {
  margin: 0;
}
.map-caption {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.map-caption > svg {
  margin-top: 2px;
}
.map-caption > .eyebrow {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.wishes-copy > p {
  max-width: 38ch;
  margin-inline: auto;
  text-wrap: pretty;
}
.wish-form input,
.wish-form textarea {
  font-family: var(--sans), var(--nastaleeq);
  line-height: 2.1;
}
.wish-success > p,
.form-status,
.toast {
  overflow-wrap: anywhere;
}
.celebration-note {
  max-width: 30ch;
  margin-inline: auto;
  padding: 0.25em 0.3em;
  line-height: 2.5;
  text-wrap: balance;
}
.closing-signature {
  align-items: baseline;
}

.entrance {
  transition:
    transform 1.1s var(--ease),
    opacity 1.1s ease,
    visibility 0s 1.1s;
}
.entrance.opening {
  will-change: transform;
}
.entrance.leaving {
  transform: translate3d(0, -105%, 0);
  opacity: 0;
  visibility: hidden;
}
.invitation-open .hero-art {
  animation: palace-unveil 1.8s var(--ease) both;
}
.hero-arch {
  position: absolute;
  right: -14%;
  top: 37%;
  width: 70%;
  height: 70%;
  color: var(--gold);
  opacity: 0.45;
  stroke-width: 1;
}
.arch-trace {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.invitation-open .arch-trace {
  animation: arch-draw 3s 0.5s var(--ease) both;
}
.dove-flight {
  position: absolute;
  right: -75px;
  top: 61%;
  width: 72px;
  height: 52px;
  color: var(--gold);
  opacity: 0;
  animation: dove-journey 26s 1s linear infinite;
}
.dove-flight > svg {
  width: 100%;
  height: 100%;
  stroke-width: 0.9;
  transform-origin: center;
  animation: dove-glide 2.5s ease-in-out infinite alternate;
}
.dove-flight-two {
  top: 67%;
  width: 48px;
  height: 36px;
  animation-delay: 2s;
}
.star-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold-light);
  opacity: 0.4;
  stroke-width: 0.7;
  pointer-events: none;
}
.star-map circle {
  fill: currentColor;
  stroke: none;
  animation: star-breathe 4s ease-in-out infinite alternate;
}
.star-map circle:nth-child(even) {
  animation-delay: -2s;
}
.constellation-thread {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.countdown-section:has(.revealed) .constellation-thread {
  animation: arch-draw 4s ease both;
}
.portrait-jasmine {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: var(--gold);
  pointer-events: none;
  animation: jasmine-turn 18s ease-in-out infinite alternate;
}
.jasmine-one {
  top: 8%;
  left: -15px;
}
.jasmine-two {
  bottom: 20%;
  right: -29px;
  width: 49px;
  height: 49px;
  animation-delay: -7s;
}
.jasmine-three {
  bottom: 2%;
  left: -24px;
  width: 30px;
  height: 30px;
  animation-delay: -11s;
}
.wish-success {
  position: relative;
  overflow: hidden;
}
.wish-sparkles {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.wish-sparkles i {
  --spark-x: -65px;
  --spark-y: -28px;
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: wish-bloom 1.4s 0.2s var(--ease) both;
}
.wish-sparkles i:nth-child(2) {
  --spark-x: -35px;
  --spark-y: -57px;
}
.wish-sparkles i:nth-child(3) {
  --spark-x: 0px;
  --spark-y: -66px;
}
.wish-sparkles i:nth-child(4) {
  --spark-x: 35px;
  --spark-y: -57px;
}
.wish-sparkles i:nth-child(5) {
  --spark-x: 65px;
  --spark-y: -28px;
}
.wish-sparkles i:nth-child(6) {
  --spark-x: 80px;
  --spark-y: 10px;
}
.wish-sparkles i:nth-child(7) {
  --spark-x: -80px;
  --spark-y: 10px;
}
.wish-sparkles i:nth-child(8) {
  --spark-x: 5px;
  --spark-y: -82px;
}

@keyframes palace-unveil {
  from {
    opacity: 0.4;
    transform: translate3d(25px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes arch-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes dove-journey {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) rotate(-10deg);
  }
  5% {
    opacity: 0.6;
  }
  24% {
    opacity: 0.6;
  }
  30%,
  100% {
    opacity: 0;
    transform: translate3d(-75vw, -100px, 0) rotate(7deg);
  }
}
@keyframes dove-glide {
  from {
    transform: rotate(-4deg) translateY(0);
  }
  to {
    transform: rotate(4deg) translateY(-6px);
  }
}
@keyframes jasmine-turn {
  from {
    transform: rotate(-12deg) scale(0.95);
  }
  to {
    transform: rotate(35deg) scale(1.05);
  }
}
@keyframes star-breathe {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@keyframes wish-bloom {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) rotate(130deg)
      scale(0.7);
  }
}

@media (min-width: 600px) {
  .event-details > div {
    grid-template-rows: 30px 22px minmax(3.9em, auto) auto;
  }
  .event-details p {
    display: grid;
    align-items: center;
    align-self: stretch;
  }
  @supports (grid-template-rows: subgrid) {
    .event-details {
      grid-template-rows: 30px 22px auto auto;
      gap: 10px 0;
    }
    .event-details > div {
      grid-row: 1 / 5;
      grid-template-rows: subgrid;
    }
    .event-details > div:nth-child(1) {
      grid-column: 1;
    }
    .event-details > div:nth-child(2) {
      grid-column: 2;
    }
    .event-details > div:nth-child(3) {
      grid-column: 3;
    }
  }
}
@media (min-width: 1000px) {
  .hero-arch {
    right: 6%;
    top: 13%;
    width: 42%;
    height: 83%;
    opacity: 0.65;
  }
  .dove-flight-one {
    top: 44%;
    width: 92px;
    height: 64px;
  }
  .dove-flight-two {
    top: 51%;
    width: 60px;
    height: 45px;
  }
  .couple-person {
    align-self: center;
    grid-template-rows: auto 82px 38px auto;
  }
  .venue-section {
    align-items: start;
  }
  .venue-map {
    align-self: start;
  }
  .wishes-copy {
    align-self: start;
    padding-top: 3px;
  }
  .wishes-copy > p {
    margin-inline: 0;
  }
  .wish-form-wrap {
    margin-top: 0;
  }
}
@media (max-width: 374px) {
  .couple-person {
    grid-template-rows: auto 85px 30px auto;
  }
}
.ambient-paused .dove-flight,
.ambient-paused .dove-flight > svg,
.ambient-paused .portrait-jasmine,
.ambient-paused .star-map circle {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .dove-flight {
    display: none;
  }
  .entrance.leaving {
    transform: none;
  }
}

.closing-section {
  isolation: isolate;
  overflow: hidden;
}
.closing-garland {
  position: absolute;
  z-index: -1;
  bottom: -10px;
  width: clamp(70px, 20vw, 260px);
  height: auto;
  pointer-events: none;
  transform-origin: bottom;
  animation: botanical-sway 12s ease-in-out infinite alternate;
}
.garland-left {
  left: -18px;
}
.garland-right {
  right: -18px;
  scale: -1 1;
  animation-delay: -6s;
}
.closing-signature {
  position: relative;
  background: var(--paper-light);
  box-shadow: 0 0 18px 10px var(--paper-light);
}
.ambient-paused .closing-garland {
  animation-play-state: paused;
}

/* White, ivory, and gold give the invitation a consistent material palette. */
:root {
  --scene-progress: 0;
}
h2 em,
.countdown-caption,
.couple-verse > p,
.event-card-top > p,
.event-bottom,
.closing-signature > span,
.hero-amp {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
}
.wax-seal > span,
.portrait-seal {
  font-family: var(--editorial);
  font-style: italic;
}
.section-heading > p:not([lang]),
.couple-person > p,
.wishes-copy > p,
.wish-success > p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}
.hero-description {
  font: 400 clamp(16px, 1.2vw, 18px)/1.7 var(--sans);
  max-width: 36ch;
}
.couple-person h3 {
  color: var(--ink);
  font-size: clamp(28px, 3.3vw, 39px);
  font-weight: 400;
  letter-spacing: -0.7px;
}
.event-details p {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
  letter-spacing: -0.45px;
}
.venue-copy h3 {
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.6px;
}
.closing-section > p {
  font-weight: 400;
  letter-spacing: -0.8px;
}
.entrance .eyebrow {
  font-size: 12px;
}
.entrance h1 {
  text-shadow: 0 2px 18px #efd29b16;
}
.entrance-frame {
  box-shadow:
    inset 0 0 0 5px var(--paper),
    inset 0 0 0 6px #efd29b25;
}
.entrance::before {
  opacity: 0.65;
  background-image:
    repeating-linear-gradient(45deg, #efd29b0c 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, #efd29b0c 0 1px, transparent 1px 34px);
}
.envelope-back {
  box-shadow:
    0 25px 65px #79551f24,
    0 8px 18px #79551f18;
}
.envelope-front {
  border: 1px solid #c7a56b99;
}
.envelope-front::after {
  opacity: 0.7;
  background:
    linear-gradient(
      150deg,
      transparent 49.7%,
      #e9cf9766 50%,
      transparent 50.5%
    ),
    linear-gradient(210deg, transparent 49.7%, #e9cf9766 50%, transparent 50.5%);
}
.envelope-front::before {
  content: "";
  position: absolute;
  inset: -10% -55%;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 35%,
    #efd29b0a 43%,
    #efd29b29 48%,
    #ffffff13 50%,
    transparent 58%
  );
  transform: translateX(-45%);
  animation: paper-foil 9s 1.5s ease-in-out infinite;
}
.entrance.opening .envelope-front::before {
  animation-play-state: paused;
}
.envelope-letter {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 5px var(--paper-light),
    0 0 0 6px #c7a56b99,
    0 18px 40px #00000030;
}
.letter-caption {
  font-family: var(--editorial);
}
.wax-seal > span {
  position: relative;
  z-index: 1;
}
.wax-seal::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 25%,
    #fff8e745 45%,
    transparent 65%
  );
  background-size: 250% 100%;
  animation: seal-foil 8s ease-in-out infinite;
}
.wax-seal:focus-visible {
  outline-color: var(--gold-dark);
  outline-offset: 10px;
}
.hero-art img {
  translate: 0 calc(var(--scene-progress) * -15px);
}
.hero-location {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  color: var(--action);
  background: #fbf4e6;
  border: 1px solid #79551f24;
  border-radius: 2px;
}
.hero-date {
  color: var(--ink);
}
.date-number {
  color: var(--gold-dark);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.invitation-open .groom-name {
  animation: type-arrive 1.3s 0.3s var(--ease) both;
}
.invitation-open .hero-pair {
  animation: type-arrive 1.3s 0.5s var(--ease) both;
}
.section-heading.revealed h2 {
  animation: type-arrive 0.9s 0.06s var(--ease) both;
}
.couple-person.revealed h3 {
  animation: type-arrive 1s 0.06s var(--ease) both;
}
.countdown-section {
  background: radial-gradient(
    ellipse at 50% 0,
    #ffffff 0%,
    var(--paper-deep) 85%
  );
  border-width: 1px;
}
.countdown {
  gap: 10px;
}
.countdown > div {
  position: relative;
  gap: 12px;
  min-width: 0;
  padding: 23px 4px 20px;
  border: 1px solid #c7a56b80;
  border-radius: 4px;
  background: var(--paper-light);
  box-shadow:
    inset 0 1px 0 #fffaf00a,
    0 7px 20px #0000000d;
}
.countdown > div::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 35%;
  width: 30%;
  height: 1px;
  background: var(--gold-light);
}
.count-divider {
  display: none;
}
.count-number {
  font-weight: 400;
  letter-spacing: -2px;
}
.countdown .eyebrow {
  font-size: 12px;
  letter-spacing: 0.7px;
}
.countdown-caption {
  max-width: 40ch;
  margin-inline: auto;
}
.couple-section {
  background: var(--paper-light);
}
.portrait-frame {
  background: var(--paper);
  border-color: var(--action);
  box-shadow: 0 15px 40px #79551f0d;
}
.portrait-seal {
  color: var(--paper-light);
  background: var(--action);
  border-color: var(--gold-light);
  outline-color: var(--paper-light);
}
.portrait-seal > span {
  color: var(--paper-light);
}
.couple-portrait:hover {
  transform: translate3d(0, -4px, 0);
}
.event-card {
  border-color: var(--gold-light);
  outline-color: #c7a56b50;
  background: var(--paper-light);
  box-shadow: 0 20px 65px #79551f0b;
  transition:
    transform 0.7s var(--ease),
    opacity 0.85s var(--ease),
    box-shadow 0.7s ease;
}
.event-card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 25px 70px #79551f14;
}
.event-rosette {
  width: 56px;
  height: 56px;
  padding: 9px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--on-night-gold);
  background: var(--action);
}
.event-card h3 {
  color: var(--action);
}
.event-details svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  color: var(--action);
  background: #fbf4e6;
  border: 1px solid #79551f26;
  border-radius: 50%;
  transition: transform 0.5s var(--ease);
}
.event-details > div:hover svg {
  transform: translateY(-3px);
}
.event-card.revealed .event-details > div {
  animation: type-arrive 0.8s var(--ease) both;
}
.event-card.revealed .event-details > div:nth-child(2) {
  animation-delay: 0.1s;
}
.event-card.revealed .event-details > div:nth-child(3) {
  animation-delay: 0.2s;
}
.event-card > .foil-light {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--foil-x, 50%) var(--foil-y, 25%),
    #efd29b29,
    transparent 70%
  );
}
.venue-copy > p {
  color: var(--muted);
  font-size: 16px;
}
.map-frame {
  border-color: var(--gold-light);
  box-shadow: 12px 12px 0 #79551f08;
}
.map-caption {
  font-size: 13px;
}
.wishes-section {
  background: #fbf6ec;
}
.wishes-copy .eyebrow {
  color: var(--action);
}
.wish-form label {
  font-weight: 600;
}
.wish-form input,
.wish-form textarea {
  border-color: #a58b61;
  background: var(--paper-light);
  transition:
    border-color 0.3s,
    box-shadow 0.4s var(--ease);
}
.wish-form input::placeholder,
.wish-form textarea::placeholder {
  font-size: 15px;
}
.wish-form input:focus,
.wish-form textarea:focus {
  border-color: var(--action);
  box-shadow: 0 0 0 4px #79551f0b;
}
.wish-success {
  border-color: var(--gold-light);
  box-shadow: 0 16px 45px #79551f0a;
}
.success-icon {
  color: var(--action);
  border-color: var(--action);
  background: #fbf4e6;
}
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2px;
  letter-spacing: 0.45px;
}
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40%;
  background: linear-gradient(
    110deg,
    transparent 30%,
    #ffffff15 45%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.85s var(--ease);
  pointer-events: none;
}
.button:hover::before,
.button:focus-visible::before {
  transform: translateX(100%);
}
.button-gold {
  box-shadow: inset 0 1px 0 #ffffff12;
}
.button-gold:hover {
  box-shadow: 0 12px 28px #79551f24;
}
.music-toggle {
  box-shadow: 0 7px 24px #3c2b1420;
}
@keyframes paper-foil {
  0%,
  20% {
    transform: translateX(-45%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60%,
  100% {
    transform: translateX(45%);
    opacity: 0;
  }
}
@keyframes seal-foil {
  0%,
  20% {
    background-position: 130% 0;
  }
  70%,
  100% {
    background-position: -80% 0;
  }
}
@keyframes type-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@media (min-width: 600px) {
  .countdown {
    gap: 18px;
  }
  .countdown > div {
    padding: 27px 10px 22px;
  }
  .count-number {
    font-size: 70px;
  }
}
@media (min-width: 1000px) {
  .section-heading > p:not([lang]),
  .couple-person > p,
  .wishes-copy > p,
  .wish-success > p {
    font-size: 16px;
  }
  .countdown {
    max-width: 690px;
  }
  .count-number {
    font-size: 78px;
  }
  .venue-section {
    gap: 80px;
  }
  .wishes-copy h2 {
    font-size: 57px;
  }
  .wishes-section {
    gap: 9%;
  }
}
@media (max-height: 740px) {
  .hero-location {
    padding: 4px 12px;
  }
}
@media (max-height: 650px) {
  .hero-location {
    padding: 3px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img {
    translate: none;
  }
}

.couple-person h3,
.event-details p,
.venue-copy h3,
.count-number,
.hero-date {
  font-optical-sizing: auto;
  font-variation-settings:
    "SOFT" 0,
    "WONK" 0;
}
.wax-seal::after {
  border-color: #efd29b80;
}
.button:active {
  transform: translateY(0) scale(0.99);
}
.music-toggle:focus-visible {
  outline: 2px solid var(--paper-light);
  box-shadow: 0 0 0 5px var(--action);
}

/* Formal calligraphy and fine serif lettering give the invitation a stationery finish. */
.section-heading > .eyebrow,
.entrance .entrance-kicker,
.couple-person > .eyebrow {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.5;
}
.entrance h1 {
  font-size: clamp(46px, 12.5vw, 86px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.groom-name {
  font-size: clamp(41px, 11.8vw, 56px);
  line-height: 1.22;
  letter-spacing: 0;
}
.bride-name {
  font-size: clamp(34px, 9vw, 43px);
  line-height: 1.22;
  letter-spacing: 0;
}
.couple-person h3 {
  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 500;
  letter-spacing: -0.35px;
}
.event-details p {
  font-weight: 500;
  letter-spacing: 0;
}
.venue-copy h3 {
  font-weight: 500;
  letter-spacing: -0.25px;
}
.event-card h3 {
  font-size: clamp(45px, 7vw, 66px);
  letter-spacing: 0;
}
.count-number {
  font-weight: 500;
  letter-spacing: -1px;
}
.closing-signature {
  font-size: 43px;
  letter-spacing: 0;
}
@media (min-width: 600px) {
  .groom-name {
    font-size: clamp(65px, 10.5vw, 84px);
  }
  .bride-name {
    font-size: 58px;
  }
  .closing-signature {
    font-size: 52px;
  }
}
@media (min-width: 1000px) {
  .groom-name {
    font-size: clamp(67px, 6.5vw, 100px);
  }
  .bride-name {
    font-size: clamp(50px, 4.7vw, 70px);
  }
}
@media (max-height: 650px) and (max-width: 599px) {
  .entrance h1 {
    font-size: 46px;
  }
  .groom-name {
    font-size: 41px;
  }
  .bride-name {
    font-size: 34px;
  }
}

/* The experience is composed as a continuous, gold-edged invitation suite. */
body.invitation-open {
  background: #f5efe3;
}
.invitation-suite {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--gold-light);
  background: var(--paper);
  box-shadow: 0 18px 65px #79551f12;
}
.invitation-suite::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.invitation-front {
  height: 100svh;
  min-height: 100svh;
  justify-content: center;
  align-items: center;
  padding: 86px 30px 76px;
}
.invitation-front::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 17px;
  border: 1px solid #c7a56b66;
  pointer-events: none;
}
.invitation-front .hero-content {
  z-index: 1;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 0;
  background: #fffdf8f5;
  box-shadow: 0 0 35px 18px #fffdf8f5;
}
.invitation-front .hero-art {
  inset: 0;
}
.invitation-front .hero-art img {
  opacity: 0.4;
  object-position: center bottom;
}
.invitation-front .hero-art::after {
  background: linear-gradient(180deg, #fffdf8bd, #fffdf829 70%, #fffdf814);
}
.invitation-front .hero-arch {
  top: 9%;
  right: 8%;
  width: 84%;
  height: 88%;
  opacity: 0.22;
}
.family-crest {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  color: var(--gold);
}
.family-crest > svg {
  position: absolute;
  width: 100%;
  height: 100%;
  stroke-width: 0.7;
}
.family-crest > span {
  padding-top: 1px;
  color: var(--gold-dark);
  font: italic 20px/1 var(--editorial);
}
.invitation-front .bismillah {
  margin-bottom: 15px;
}
.invitation-front .hero-eyebrow {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.8px;
}
.invitation-front h1 {
  margin: 15px 0 13px;
}
.invitation-front .hero-description {
  max-width: 34ch;
  margin: 12px auto 14px;
  font: 500 21px/1.45 var(--serif);
}
.invitation-front .hero-date {
  margin: 12px auto 0;
}
.invitation-front .hero-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 17px auto 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.45px;
  text-transform: none;
}
.invitation-front .hero-location > span {
  margin: 0;
}
.hero-address {
  margin-top: 4px;
  color: var(--muted);
  font: 400 12px/1.7 var(--sans);
  letter-spacing: 0.3px;
}
.invitation-front .scroll-prompt {
  left: 50%;
  bottom: 21px;
  transform: translateX(-50%);
  padding: 0 10px;
  width: max-content;
  max-width: calc(100% - 64px);
  min-height: 38px;
  background: none;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 1.1px;
}
.invitation-front .lantern-one {
  display: block;
  left: 5%;
  right: auto;
  top: 0;
  width: 42px;
  height: 130px;
  opacity: 0.4;
}
.invitation-front .lantern-two {
  display: block;
  right: 5%;
  top: 0;
  width: 42px;
  height: 130px;
  opacity: 0.4;
}
.invitation-fold {
  position: relative;
  display: grid;
  place-items: center;
  height: 42px;
  margin: 0 26px;
}
.invitation-fold::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}
.invitation-fold > svg {
  position: relative;
  width: 130px;
  height: 28px;
  padding-inline: 12px;
  background: var(--paper);
}
.invitation-suite .invitation-panel {
  position: relative;
  width: auto;
  max-width: none;
  margin: 0 24px;
  padding: 66px 20px;
  border: 0;
  background: none;
  box-shadow: none;
}
.invitation-panel:not(.closing-section)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  border-bottom: 1px solid var(--line);
}
.invitation-suite .section-heading {
  max-width: 600px;
  margin-inline: auto;
}
.invitation-suite .countdown-section::before {
  display: none;
}
.invitation-suite .countdown {
  max-width: 620px;
  margin: 30px auto 20px;
  gap: 8px;
}
.invitation-suite .countdown > div {
  padding: 12px 2px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.invitation-suite .countdown > div + div {
  border-left: 1px solid var(--line);
}
.invitation-suite .countdown > div::after {
  display: none;
}
.invitation-suite .countdown-caption {
  padding-inline: 3px;
}
.invitation-suite .couple-composition {
  grid-template-columns: 1fr 1fr;
  max-width: 680px;
  gap: 36px 20px;
}
.invitation-suite .couple-portrait {
  grid-column: 1 / -1;
  grid-row: 1;
  width: min(78%, 330px);
}
.invitation-suite .groom-person {
  grid-column: 1;
  grid-row: 2;
}
.invitation-suite .bride-person {
  grid-column: 2;
  grid-row: 2;
}
.invitation-suite .couple-person {
  align-self: start;
}
.invitation-suite .event-card {
  max-width: 740px;
  margin-top: 30px;
  padding: 32px 14px 22px;
  border: 1px solid var(--gold-light);
  outline: 0;
  background: none;
  box-shadow: none;
}
.invitation-suite .event-card:hover {
  transform: none;
  box-shadow: none;
}
.invitation-suite .event-card::before,
.invitation-suite .event-card::after {
  width: 24px;
  height: 24px;
}
.invitation-suite .event-card-top > p {
  max-width: 27ch;
  margin-inline: auto;
}
.invitation-suite .venue-section,
.invitation-suite .wishes-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  text-align: center;
}
.invitation-suite .venue-copy,
.invitation-suite .wishes-copy {
  width: 100%;
  padding: 0;
  text-align: center;
}
.invitation-suite .venue-copy > .ornament {
  margin: 22px auto;
}
.invitation-suite .venue-copy > p,
.invitation-suite .wishes-copy > p {
  margin-inline: auto;
}
.invitation-suite .copy-address {
  margin: 8px auto 0;
}
.invitation-suite .venue-map {
  width: 100%;
  max-width: 640px;
  align-self: center;
}
.invitation-suite .map-frame {
  height: 320px;
  box-shadow: none;
}
.invitation-suite .map-caption {
  text-align: left;
}
.invitation-suite .wish-form-wrap {
  width: 100%;
  max-width: 480px;
  min-height: 0;
  margin: 0 auto;
}
.invitation-suite .wishes-dua {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.invitation-suite .wish-form {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.invitation-suite .wish-form .button {
  align-self: center;
  min-width: 210px;
  width: auto;
}
.invitation-suite .wishes-copy h2 {
  font-size: clamp(43px, 4.6vw, 64px);
}
.invitation-suite .wish-success {
  background: var(--paper-light);
}
.invitation-suite .closing-section {
  margin: 0;
  padding: 72px 32px 82px;
}
.invitation-suite .closing-section > p:first-of-type {
  font-size: clamp(27px, 3.3vw, 38px);
}
.invitation-suite .closing-signature {
  margin: 30px auto 0;
  background: var(--paper);
  box-shadow: 0 0 18px 10px var(--paper);
}
.invitation-urdu {
  margin: 24px auto 0;
  padding-block: 0.2em;
  color: var(--gold-dark);
  font-size: 21px;
}
.family-signoff {
  margin-top: 26px;
  color: var(--muted);
  font: italic 21px/1.6 var(--editorial);
}
.family-signoff > span {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
}
.music-toggle {
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
}
.music-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 760px) {
  .invitation-suite {
    width: min(980px, calc(100% - 64px));
    margin: 32px auto;
  }
  .invitation-front {
    height: calc(100svh - 64px);
    min-height: calc(100svh - 64px);
    padding: 92px 60px 82px;
  }
  .invitation-suite .invitation-panel {
    margin-inline: 46px;
    padding: 76px 34px;
  }
  .invitation-suite .closing-section {
    margin: 0;
    padding: 86px 70px 98px;
  }
  .invitation-front .groom-name {
    font-size: clamp(74px, 7.5vw, 100px);
  }
  .invitation-front .bride-name {
    font-size: 64px;
  }
  .invitation-front .hero-description {
    font-size: 23px;
  }
  .family-crest {
    top: 25px;
    width: 46px;
    height: 46px;
  }
  .invitation-front .lantern-one,
  .invitation-front .lantern-two {
    width: 57px;
    height: 170px;
  }
  .invitation-suite .map-frame {
    height: 360px;
  }
}
@media (max-width: 374px) {
  .invitation-suite .invitation-panel {
    margin-inline: 20px;
    padding: 58px 14px;
  }
  .invitation-suite .closing-section {
    margin: 0;
    padding-inline: 26px;
  }
  .invitation-front {
    padding-inline: 24px;
  }
  .invitation-front .hero-eyebrow {
    font-size: 13px;
    letter-spacing: 1.1px;
  }
  .family-crest {
    width: 35px;
    height: 35px;
  }
  .family-crest > span {
    font-size: 18px;
  }
}
@media (max-height: 740px) {
  .invitation-front {
    padding-top: 78px;
    padding-bottom: 62px;
  }
  .invitation-front .hero-description {
    font-size: 19px;
    margin: 10px auto;
  }
  .invitation-front h1 {
    margin: 12px 0 10px;
  }
  .invitation-front .hero-date {
    margin-top: 9px;
  }
  .invitation-front .hero-location {
    margin-top: 12px;
  }
  .family-crest {
    top: 19px;
    width: 36px;
    height: 36px;
  }
  .invitation-front .scroll-prompt {
    bottom: 15px;
  }
}
@media (max-height: 650px) {
  .invitation-front {
    padding-top: 69px;
    padding-bottom: 58px;
  }
  .invitation-front .hero-description {
    font-size: 18px;
    line-height: 1.4;
  }
  .invitation-front .bismillah {
    margin-bottom: 7px;
    font-size: 21px;
  }
  .invitation-front .hero-eyebrow {
    font-size: 13px;
  }
  .invitation-front h1 {
    margin-top: 9px;
  }
  .invitation-front .hero-location {
    margin-top: 9px;
  }
  .hero-address {
    font-size: 12px;
  }
  .family-crest {
    top: 17px;
    width: 32px;
    height: 32px;
  }
  .family-crest > span {
    font-size: 17px;
  }
}
@media (max-height: 520px) {
  .invitation-front {
    height: auto;
    min-height: 100svh;
  }
}

@media (min-width: 760px) and (max-height: 850px) {
  .invitation-front {
    padding-top: 78px;
    padding-bottom: 68px;
  }
  .invitation-front .groom-name {
    font-size: clamp(68px, 6.8vw, 84px);
  }
  .invitation-front .bride-name {
    font-size: 54px;
  }
  .invitation-front .hero-description {
    font-size: 21px;
    margin: 10px auto;
  }
  .family-crest {
    top: 20px;
    width: 34px;
    height: 34px;
  }
}
@media (max-height: 650px) {
  .invitation-front .hero-description {
    margin: 7px auto;
    line-height: 1.35;
  }
  .invitation-front h1 {
    margin-top: 7px;
    margin-bottom: 8px;
  }
  .invitation-front .hero-date {
    margin-top: 6px;
  }
  .hero-address {
    margin-top: 2px;
    line-height: 1.5;
  }
}
@media (min-width: 760px) and (max-height: 700px) {
  .invitation-front {
    height: auto;
    min-height: calc(100svh - 64px);
    padding: 80px 44px 76px;
  }
}
