:root {
  --olive: #4b5922;
  --olive-dark: #28340d;
  --sage: #8f9a78;
  --sage-soft: #dfe4d2;
  --paper: #fbf7f3;
  --paper-unified: #fbf7f3;
  --paper-deep: #f1ebe4;
  --ink: #31400f;
  --muted: #85896d;
  --blush: #b97068;
  --gold: #c7a15a;
  --line: rgba(62, 76, 23, 0.24);
  --shadow: 0 22px 60px rgba(33, 42, 11, 0.22);
  --font-body: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  --font-heading: "Noto Kufi Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  --font-names: "Aref Ruqaa Ink", "Amiri", "Noto Naskh Arabic", serif;
  --font-ceremony: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

html.auto-scrolling {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-unified);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 1200ms ease, transform 1200ms ease;
}

body.invite-open .site-shell {
  opacity: 1;
  transform: none;
}

.falling-petals {
  position: fixed;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
}

.falling-flower {
  position: absolute;
  top: -2rem;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  opacity: var(--opacity);
  filter: drop-shadow(0 0.25rem 0.35rem rgba(62, 76, 23, 0.08));
  transform: rotate(var(--rotation));
  animation: flowerCascade var(--duration) linear var(--delay) infinite;
}

.falling-flower i,
.falling-flower b {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
}

.falling-flower i {
  width: 46%;
  height: 68%;
  border-radius: 58% 58% 48% 48%;
  background:
    radial-gradient(circle at 48% 22%, rgba(255, 255, 255, 0.98), rgba(253, 248, 231, 0.92) 46%, rgba(218, 202, 162, 0.62));
  transform-origin: 50% 88%;
}

.falling-flower i:nth-child(1) {
  transform: translate(-50%, -88%) rotate(0deg);
}

.falling-flower i:nth-child(2) {
  transform: translate(-50%, -88%) rotate(72deg);
}

.falling-flower i:nth-child(3) {
  transform: translate(-50%, -88%) rotate(144deg);
}

.falling-flower i:nth-child(4) {
  transform: translate(-50%, -88%) rotate(216deg);
}

.falling-flower i:nth-child(5) {
  transform: translate(-50%, -88%) rotate(288deg);
}

.falling-flower b {
  width: 24%;
  height: 24%;
  border-radius: 999px;
  background: radial-gradient(circle, #d7ad61 0%, #c09a55 52%, rgba(119, 93, 34, 0.35) 100%);
  transform: translate(-50%, -50%);
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem 1.35rem;
  background:
    radial-gradient(circle at 50% 52%, rgba(210, 218, 181, 0.24), transparent 20rem),
    linear-gradient(145deg, #2f3c12, #4a5a1f 58%, #303b11);
  transition: opacity 650ms ease, visibility 650ms ease, transform 650ms ease;
}

.cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.25rem);
}

.cover-card {
  position: relative;
  width: min(26.5rem, 100%);
  min-height: 36.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  padding: 4.2rem 2rem 3.6rem;
  text-align: center;
  background: rgba(255, 250, 246, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.55rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cover-flower {
  position: absolute;
  width: 13rem;
  opacity: 0.34;
  pointer-events: none;
  filter: saturate(0.9);
}

.cover-flower-top {
  top: -2.1rem;
  left: -2.3rem;
}

.cover-flower-bottom {
  right: -2.5rem;
  bottom: -2.7rem;
  transform: rotate(180deg);
}

.cover-names {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  font-family: var(--font-names);
  font-size: clamp(2.2rem, 9vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.cover-names small {
  font-family: var(--font-body);
  color: var(--olive);
  font-size: 1.5rem;
  font-weight: 600;
}

.ornament {
  width: 9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.ornament span {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.cover-date {
  margin: 0;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.35;
}

.cover-date span,
.cover-copy span,
.lead span,
.announcement span {
  color: var(--muted);
  font-size: 0.95em;
}

.cover-copy {
  margin: 0.45rem 0 0.25rem;
  color: #72785f;
  font-size: 1.18rem;
}

.primary-button,
.map-link,
.calendar-link {
  position: relative;
  isolation: isolate;
  min-height: 3.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 2.45rem;
  color: var(--olive);
  background: rgba(255, 252, 248, 0.54);
  border: 1px solid rgba(75, 89, 34, 0.62);
  border-radius: 0.38rem;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.44),
    inset 0 0 0 4px rgba(75, 89, 34, 0.2),
    0 0.55rem 1.2rem rgba(62, 76, 23, 0.08);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  overflow: visible;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.primary-button:hover,
.map-link:hover,
.calendar-link:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 89, 34, 0.82);
  background: rgba(255, 252, 248, 0.72);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    inset 0 0 0 4px rgba(75, 89, 34, 0.26),
    0 0.7rem 1.35rem rgba(62, 76, 23, 0.12);
}

.primary-button::before,
.map-link::before,
.calendar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at calc(100% - 1.12rem) 0.74rem, #d9ab55 0 0.11rem, transparent 0.12rem),
    radial-gradient(circle at calc(100% - 1.12rem) 0.52rem, rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at calc(100% - 1.12rem) 0.96rem, rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at calc(100% - 1.34rem) 0.74rem, rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at calc(100% - 0.9rem) 0.74rem, rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at calc(100% - 1.78rem) 1.18rem, #d9ab55 0 0.09rem, transparent 0.1rem),
    radial-gradient(circle at calc(100% - 1.78rem) 1rem, rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at calc(100% - 1.78rem) 1.36rem, rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at calc(100% - 1.96rem) 1.18rem, rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at calc(100% - 1.6rem) 1.18rem, rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at calc(100% - 0.62rem) 1.45rem, #d9ab55 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at calc(100% - 0.62rem) 1.29rem, rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 0.62rem) 1.61rem, rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 0.78rem) 1.45rem, rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 0.46rem) 1.45rem, rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(ellipse at calc(100% - 2.18rem) 0.72rem, rgba(143, 154, 120, 0.42) 0 0.31rem, transparent 0.32rem),
    radial-gradient(ellipse at calc(100% - 0.86rem) 2rem, rgba(143, 154, 120, 0.35) 0 0.25rem, transparent 0.26rem),
    radial-gradient(circle at 1.12rem calc(100% - 0.74rem), #d9ab55 0 0.11rem, transparent 0.12rem),
    radial-gradient(circle at 1.12rem calc(100% - 0.52rem), rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at 1.12rem calc(100% - 0.96rem), rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at 1.34rem calc(100% - 0.74rem), rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at 0.9rem calc(100% - 0.74rem), rgba(255, 255, 245, 0.94) 0 0.19rem, transparent 0.2rem),
    radial-gradient(circle at 1.78rem calc(100% - 1.18rem), #d9ab55 0 0.09rem, transparent 0.1rem),
    radial-gradient(circle at 1.78rem calc(100% - 1rem), rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at 1.78rem calc(100% - 1.36rem), rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at 1.96rem calc(100% - 1.18rem), rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at 1.6rem calc(100% - 1.18rem), rgba(255, 255, 245, 0.88) 0 0.15rem, transparent 0.16rem),
    radial-gradient(circle at 0.62rem calc(100% - 1.45rem), #d9ab55 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at 0.62rem calc(100% - 1.29rem), rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 0.62rem calc(100% - 1.61rem), rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 0.78rem calc(100% - 1.45rem), rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 0.46rem calc(100% - 1.45rem), rgba(255, 255, 245, 0.86) 0 0.13rem, transparent 0.14rem),
    radial-gradient(ellipse at 2.18rem calc(100% - 0.72rem), rgba(143, 154, 120, 0.42) 0 0.31rem, transparent 0.32rem),
    radial-gradient(ellipse at 0.86rem calc(100% - 2rem), rgba(143, 154, 120, 0.35) 0 0.25rem, transparent 0.26rem);
  opacity: 0.62;
  pointer-events: none;
}

.primary-button::after,
.map-link::after,
.calendar-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.42rem;
  z-index: 1;
  width: min(8.6rem, calc(100% - 3rem));
  height: calc(100% + 0.84rem);
  background:
    linear-gradient(90deg, transparent 0, rgba(75, 89, 34, 0.58) 22%, rgba(75, 89, 34, 0.58) 78%, transparent 100%) center top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0, rgba(75, 89, 34, 0.58) 22%, rgba(75, 89, 34, 0.58) 78%, transparent 100%) center bottom / 100% 1px no-repeat;
  opacity: 0.7;
  transform: translateX(-50%);
  pointer-events: none;
}

.primary-button span,
.map-link span,
.calendar-link span {
  position: relative;
  z-index: 1;
}

.primary-button:active,
.map-link:active,
.calendar-link:active {
  transform: translateY(0);
}

.petal {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 60% 40% 55% 45%;
  background: var(--blush);
  box-shadow:
    0.42rem 0.02rem 0 -0.1rem #cc8c7d,
    -0.34rem 0.08rem 0 -0.12rem #9e5e5b,
    0.05rem 0.4rem 0 -0.1rem #b97068;
  opacity: 0.78;
  animation: petalFall 8s ease-in-out infinite;
}

.petal-a {
  top: 8%;
  left: 23%;
}

.petal-b {
  top: 46%;
  right: 7%;
  animation-delay: 1.5s;
}

.petal-c {
  bottom: 5%;
  left: 43%;
  animation-delay: 3s;
}

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.35rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
}

.hero {
  min-height: 96svh;
  justify-content: center;
  gap: 0;
  background: transparent;
}

.intro {
  min-height: 82svh;
  background: transparent;
}

.intro-card {
  position: relative;
  z-index: 1;
  width: min(37rem, 100%);
  padding: clamp(1.7rem, 6vw, 3rem) clamp(1.25rem, 5vw, 2.6rem);
  text-align: center;
}

.basmala {
  margin: 0;
  color: var(--olive);
  font-family: var(--font-ceremony);
  font-size: clamp(1.45rem, 6vw, 2.1rem);
  font-weight: 700;
}

.basmala-calligraphy {
  display: block;
  width: min(5.8rem, 20vw);
  margin: 0 auto 0.75rem;
  opacity: 1;
  filter: none;
}

.intro-card.reveal.is-visible .basmala-calligraphy {
  animation: basmalaReveal 1.15s ease 80ms both;
}

.intro-ornament {
  width: min(13rem, 66vw);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem auto 1.2rem;
  color: var(--muted);
}

.intro-ornament span {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.intro-ornament b {
  color: var(--olive);
  font-size: 1.1rem;
  font-weight: 400;
}

.quran-verse {
  margin: 0 auto;
  max-width: 31rem;
  min-height: 15rem;
  display: grid;
  place-items: center;
  color: var(--olive);
  font-family: var(--font-ceremony);
  font-size: clamp(1.35rem, 5.2vw, 1.9rem);
  font-weight: 700;
  line-height: 2.15;
  transition: opacity 520ms ease, filter 520ms ease;
}

.quran-verse.is-changing {
  opacity: 0;
  filter: blur(0.25rem);
}

.quran-verse.intro-invitation-text {
  max-width: 28rem;
  min-height: 15rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 5.4vw, 2rem);
  font-weight: 500;
  line-height: 2;
  white-space: pre-line;
}

.surah-name {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  transition: opacity 520ms ease;
}

.surah-name.is-hidden {
  opacity: 0;
}

.intro-flower {
  position: absolute;
  pointer-events: none;
  width: min(19rem, 62vw);
  opacity: 0.32;
}

.intro-flower-top {
  top: -4rem;
  right: -6rem;
  transform: rotate(180deg);
}

.intro-flower-bottom {
  left: -6.5rem;
  bottom: -4.8rem;
  opacity: 0.42;
}

.section-flower {
  position: absolute;
  width: min(22rem, 58vw);
  pointer-events: none;
  opacity: 0.78;
  filter: saturate(0.95);
}

.arch {
  position: relative;
  width: min(26.5rem, 86vw);
  min-height: 38.8rem;
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 4.4rem 2rem 10.7rem;
}

.arch-frame {
  position: absolute;
  inset: -0.25rem 0 -0.2rem;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.arch-line {
  fill: none;
  stroke: var(--olive);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.arch-line-main {
  stroke-width: 2.1;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.arch-line-soft {
  stroke-width: 1.7;
  opacity: 0.58;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.hero.is-visible .arch-line-main {
  animation: drawArch 2.8s ease forwards;
}

.hero.is-visible .arch-line-soft {
  animation: drawArch 3.1s ease 180ms forwards;
}

.eyebrow {
  margin: 0;
  color: #79815f;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  display: grid;
  gap: 1.5rem;
  font-family: var(--font-names);
  color: var(--olive);
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.hero h1 em,
.couple-full b {
  font-family: var(--font-body);
  color: var(--olive);
  font-style: italic;
  font-size: 0.72em;
}

.hero-bouquet {
  position: absolute;
  right: 50%;
  bottom: -0.95rem;
  z-index: 3;
  width: min(24rem, 90vw);
  transform: translateX(50%);
  pointer-events: none;
  filter: drop-shadow(0 0.9rem 1.1rem rgba(62, 76, 23, 0.1));
  opacity: 0;
}

body.invite-open .hero-bouquet {
  animation: bouquetRise 1.5s ease 900ms forwards, bouquetFloat 5.5s ease-in-out 2.4s infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(0.45rem);
  transition: opacity 1150ms ease, transform 1150ms ease, filter 1150ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal.is-visible h2,
.reveal.is-visible .lead,
.reveal.is-visible .subheading {
  animation: titleLift 900ms ease both;
}

.reveal.is-visible .parents-grid article,
.reveal.is-visible .program article,
.reveal.is-visible .rsvp-form,
.reveal.is-visible .wish-form,
.reveal.is-visible .map-frame,
.reveal.is-visible .calendar {
  animation: softScaleIn 900ms ease both;
}

.reveal.is-visible .parents-grid article:nth-child(2),
.reveal.is-visible .program article:nth-child(2) {
  animation-delay: 120ms;
}

h2 {
  margin: 0 0 1.55rem;
  color: var(--olive);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

h2 span {
  font-size: 0.9em;
}

.parents-grid {
  width: min(42rem, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.blessing-calligraphy {
  width: min(28rem, 92vw);
  margin: 0 auto 1.65rem;
  display: block;
  mix-blend-mode: normal;
  filter: none;
  opacity: 0;
  transform: translateY(1rem) scale(0.96);
}

.hero-blessing {
  position: relative;
  z-index: 4;
  width: min(27rem, 88vw);
  margin: 0.45rem auto 0;
  flex: 0 0 auto;
}

.hero-blessing.reveal.is-visible {
  animation: calligraphyReveal 950ms ease 120ms forwards;
}

.reveal.is-visible .blessing-calligraphy {
  animation: calligraphyReveal 1.2s ease 120ms forwards;
}

.parents-grid article {
  padding: 1rem 0.7rem;
}

.parents-grid h3,
.parents-grid p,
.program small,
.program span,
.program b {
  margin: 0;
}

.parents-grid h3 {
  color: var(--olive);
  font-family: var(--font-ceremony);
  font-size: clamp(1.55rem, 5.4vw, 2rem);
  font-weight: 700;
}

.parents-grid p {
  margin-top: 0.45rem;
  font-family: var(--font-ceremony);
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  font-weight: 400;
  color: #424e25;
}

.announcement {
  max-width: 31rem;
  margin: 0 auto 3rem;
  font-size: 1.13rem;
}

.couple-full {
  display: grid;
  gap: 1.4rem;
}

.couple-full p {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.couple-full p span {
  font-family: var(--font-ceremony);
  color: var(--olive);
  font-size: clamp(2.6rem, 10vw, 4.15rem);
  font-weight: 700;
  line-height: 1.15;
}

.couple-full small {
  font-family: var(--font-heading);
  color: var(--muted);
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.ceremony,
.venue {
  background: transparent;
}

.ceremony {
  margin-top: -2rem;
  padding-top: clamp(2.2rem, 5vw, 4rem);
}

.reception,
.guestbook {
  background: transparent;
}

.section-flower.ceremony-left {
  left: -8rem;
  bottom: 10%;
}

.section-flower.ceremony-top {
  top: -5.2rem;
  right: -7.2rem;
  transform: rotate(180deg);
  opacity: 0.42;
}

.section-flower.reception-right {
  top: -5.5rem;
  right: -8rem;
  transform: rotate(180deg);
  opacity: 0.42;
}

.section-flower.reception-left {
  left: -8rem;
  bottom: 11%;
  opacity: 0.5;
}

.section-flower.bottom {
  right: -7.5rem;
  bottom: -8rem;
  transform: rotate(180deg);
  opacity: 0.48;
}

.section-flower.rsvp-flower {
  left: -7rem;
  bottom: -4.2rem;
  opacity: 0.48;
}

.lead {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: 0.05rem;
}

.time {
  margin: 1.6rem 0 1.1rem;
  font-size: 1.5rem;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.7rem;
}

.date-row strong {
  padding: 0 1.55rem;
  border-inline: 2px solid var(--olive);
  font-size: 2.4rem;
  line-height: 1.1;
  font-weight: 500;
}

.date-row div {
  display: grid;
}

.date-row small,
.date-row span {
  color: #6f755b;
  font-size: 0.85rem;
}

.year {
  margin: 1.25rem 0 2.35rem;
  font-size: 1.35rem;
}

.program {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 9rem));
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.program article {
  display: grid;
  gap: 0.1rem;
}

.program small {
  color: #777b61;
}

.program b {
  color: var(--olive);
  font-size: 1.25rem;
  font-weight: 500;
}

.subheading {
  margin: 0.3rem 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.countdown {
  margin: 0;
  color: #5d6845;
}

.calendar {
  position: relative;
  width: min(20rem, 100%);
  margin-top: 2.1rem;
  padding: 1rem 1rem 1.2rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
}

.calendar-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.calendar-frame rect {
  fill: none;
  stroke: rgba(75, 89, 34, 0.34);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1340;
  stroke-dashoffset: 1340;
}

.calendar.is-visible .calendar-frame rect {
  animation: drawCalendarFrame 2.15s ease forwards;
}

.calendar h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.32rem;
  direction: ltr;
}

.weekdays {
  position: relative;
  padding-bottom: 0.6rem;
  color: #6d7259;
  font-size: 0.78rem;
}

.weekdays::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left center;
}

.calendar.is-visible .weekdays::after {
  animation: lineDraw 1s ease 620ms forwards;
}

.days {
  padding-top: 0.7rem;
}

.days span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #39431d;
  font-size: 0.92rem;
}

.days .target {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.days .target::before {
  content: "♥";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  color: var(--olive);
  font-size: 2.15rem;
  line-height: 1;
  transform: translateY(0.05rem);
  text-shadow: 0 0.3rem 0.8rem rgba(62, 76, 23, 0.2);
  animation: heartPulse 1.75s ease-in-out infinite;
}

.calendar-link {
  margin: 1.9rem 0 0.7rem;
}

.venue h2 {
  margin-bottom: 0.8rem;
}

.coords {
  margin: 0 0 1.1rem;
  direction: rtl;
  color: #543d0c;
}

.venue-vip {
  display: inline-block;
  margin-inline-start: 0.35rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.chalet-number {
  display: block;
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.82em;
  line-height: 1.4;
}

.map-frame {
  width: min(37rem, 100%);
  height: clamp(18rem, 48vw, 23rem);
  margin: 0.85rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(62, 76, 23, 0.15);
  border-radius: 1.05rem;
  box-shadow: 0 1rem 2.5rem rgba(62, 76, 23, 0.1);
  background: var(--sage-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rsvp h2,
.guestbook h2 {
  margin-bottom: 1.5rem;
}

.rsvp-form,
.wish-form {
  position: relative;
  width: min(38rem, 100%);
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 5vw, 2rem);
  border: 1px solid rgba(62, 76, 23, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.75rem 1.7rem rgba(62, 76, 23, 0.12);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(62, 76, 23, 0.34);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  outline: 0;
}

input {
  min-height: 3.45rem;
  padding: 0 1rem;
}

textarea {
  min-height: 8.2rem;
  resize: vertical;
  padding: 1rem;
}

input:focus,
textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(62, 76, 23, 0.1);
}

.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.attendance-options label {
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(62, 76, 23, 0.24);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.48);
  font-family: var(--font-heading);
}

.attendance-options input {
  width: 1rem;
  min-height: auto;
  accent-color: var(--olive);
}

.rsvp-status,
.wish-status {
  width: min(38rem, 100%);
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.magic-button {
  position: relative;
  isolation: isolate;
  width: 3.55rem;
  height: 3.55rem;
  overflow: visible;
  border: 1px solid rgba(75, 89, 34, 0.62);
  border-radius: 0.38rem;
  color: var(--olive);
  background: rgba(255, 252, 248, 0.54);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.44),
    inset 0 0 0 4px rgba(75, 89, 34, 0.2),
    0 0.45rem 1rem rgba(62, 76, 23, 0.08);
  font-size: 1.3rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.magic-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at calc(100% - 0.72rem) 0.62rem, #d9ab55 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at calc(100% - 0.72rem) 0.46rem, rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 0.72rem) 0.78rem, rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 0.88rem) 0.62rem, rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 0.56rem) 0.62rem, rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at calc(100% - 1.18rem) 1rem, #d9ab55 0 0.07rem, transparent 0.08rem),
    radial-gradient(circle at calc(100% - 1.18rem) 0.86rem, rgba(255, 255, 245, 0.86) 0 0.11rem, transparent 0.12rem),
    radial-gradient(circle at calc(100% - 1.18rem) 1.14rem, rgba(255, 255, 245, 0.86) 0 0.11rem, transparent 0.12rem),
    radial-gradient(circle at 0.72rem calc(100% - 0.62rem), #d9ab55 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at 0.72rem calc(100% - 0.46rem), rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 0.72rem calc(100% - 0.78rem), rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 0.88rem calc(100% - 0.62rem), rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 0.56rem calc(100% - 0.62rem), rgba(255, 255, 245, 0.92) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 1.18rem calc(100% - 1rem), #d9ab55 0 0.07rem, transparent 0.08rem),
    radial-gradient(circle at 1.18rem calc(100% - 0.86rem), rgba(255, 255, 245, 0.86) 0 0.11rem, transparent 0.12rem),
    radial-gradient(circle at 1.18rem calc(100% - 1.14rem), rgba(255, 255, 245, 0.86) 0 0.11rem, transparent 0.12rem);
  opacity: 0.54;
  pointer-events: none;
}

.magic-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.35rem;
  z-index: 1;
  width: 1.9rem;
  height: calc(100% + 0.7rem);
  background:
    linear-gradient(90deg, transparent, rgba(75, 89, 34, 0.58) 28%, rgba(75, 89, 34, 0.58) 72%, transparent) center top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(75, 89, 34, 0.58) 28%, rgba(75, 89, 34, 0.58) 72%, transparent) center bottom / 100% 1px no-repeat;
  opacity: 0.7;
  transform: translateX(-50%);
  pointer-events: none;
}

.magic-button:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 89, 34, 0.82);
  background: rgba(255, 252, 248, 0.72);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    inset 0 0 0 4px rgba(75, 89, 34, 0.26),
    0 0.6rem 1.15rem rgba(62, 76, 23, 0.12);
}

.wishes {
  width: min(38rem, 100%);
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.wish {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(62, 76, 23, 0.13);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.62);
  text-align: start;
}

.wish strong,
.wish p {
  margin: 0;
}

.wish strong {
  font-family: var(--font-heading);
  color: var(--olive);
}

.empty-wishes {
  color: var(--muted);
}

.gift-note {
  margin: 2rem 0 0;
  color: #5e6844;
}

.sound-toggle {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 10;
  width: 2.45rem;
  height: 2.9rem;
  display: inline-grid;
  grid-template-columns: repeat(4, 0.28rem);
  align-items: end;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sound-toggle::before {
  content: none;
}

.sound-toggle span {
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--olive);
  box-shadow: 0 0.25rem 0.55rem rgba(62, 76, 23, 0.2);
  animation: equalizer 900ms ease-in-out infinite;
}

.sound-toggle span:nth-child(2) {
  height: 1.45rem;
  animation-delay: 120ms;
}

.sound-toggle span:nth-child(3) {
  height: 0.65rem;
  animation-delay: 240ms;
}

.sound-toggle span:nth-child(4) {
  height: 1.1rem;
  animation-delay: 360ms;
}

.sound-toggle.is-muted span {
  animation-play-state: paused;
  opacity: 0.55;
}

.admin-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 8%, rgba(223, 228, 210, 0.72), transparent 18rem),
    linear-gradient(180deg, #fffaf6 0%, #f5eee7 100%);
}

.admin-shell {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.admin-login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 2rem);
}

.admin-login-card {
  width: min(26rem, 100%);
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 5vw, 2.1rem);
  border: 1px solid rgba(75, 89, 34, 0.18);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.75rem 1.7rem rgba(62, 76, 23, 0.1);
  text-align: center;
}

.admin-login-card h1 {
  margin: 0;
  color: var(--olive);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 6vw, 2rem);
}

.admin-login-card label {
  color: var(--muted);
  font-family: var(--font-heading);
  text-align: start;
}

.admin-login-error {
  margin: 0;
  color: #8a2f25;
  font-family: var(--font-heading);
}

.admin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  margin: 0.45rem 0 0.35rem;
  color: var(--olive);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 700;
}

.admin-header p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.admin-source,
.admin-logout {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.92rem;
}

.admin-logout {
  margin-inline-start: 0.8rem;
  color: var(--olive);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-stats article,
.admin-panel {
  border: 1px solid rgba(62, 76, 23, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.75rem 1.7rem rgba(62, 76, 23, 0.1);
}

.admin-stats article {
  display: grid;
  gap: 0.25rem;
  place-items: center;
  min-height: 7rem;
  padding: 1rem;
}

.admin-stats span {
  color: var(--olive);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.admin-stats small {
  color: var(--muted);
  font-family: var(--font-heading);
}

.admin-panel {
  padding: clamp(1rem, 4vw, 1.5rem);
  margin-top: 1.2rem;
}

.admin-section-title {
  margin: 0 0 1rem;
  color: var(--olive);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 700;
  text-align: start;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.secondary-button {
  color: var(--olive);
  background: var(--paper-deep);
}

.secondary-button:hover {
  color: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 38rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(62, 76, 23, 0.12);
  text-align: start;
}

.admin-table th {
  color: var(--olive);
  font-family: var(--font-heading);
  font-weight: 700;
}

.admin-table td {
  color: #46502d;
}

.empty-admin {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

@keyframes petalFall {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0.35rem, 1.2rem, 0) rotate(18deg);
  }
}

@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(0.62);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes flowerCascade {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(var(--rotation)) scale(0.88);
    opacity: 0;
  }
  12% {
    opacity: var(--opacity);
  }
  50% {
    transform: translate3d(calc(var(--drift) * 0.45), 52vh, 0) rotate(calc(var(--rotation) + 180deg)) scale(1);
    opacity: var(--opacity);
  }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(calc(var(--rotation) + 390deg)) scale(0.94);
    opacity: 0;
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: translateY(0.05rem) scale(1);
    text-shadow: 0 0.3rem 0.8rem rgba(62, 76, 23, 0.18);
  }
  35% {
    transform: translateY(0.05rem) scale(1.12);
    text-shadow: 0 0.45rem 1rem rgba(62, 76, 23, 0.28);
  }
  55% {
    transform: translateY(0.05rem) scale(0.98);
    text-shadow: 0 0.24rem 0.7rem rgba(62, 76, 23, 0.18);
  }
}

@keyframes calligraphyReveal {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.96);
    filter: blur(0.18rem);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes basmalaReveal {
  from {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.94);
    filter: blur(0.12rem);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes drawArch {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCalendarFrame {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lineDraw {
  to {
    transform: scaleX(1);
  }
}

@keyframes bouquetRise {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(1.2rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
  }
}

@keyframes bouquetFloat {
  0%,
  100% {
    transform: translateX(50%) translateY(0);
  }
  50% {
    transform: translateX(50%) translateY(-0.35rem);
  }
}

@keyframes titleLift {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softScaleIn {
  from {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .cover {
    padding: 1.15rem;
  }

  .cover-card {
    min-height: 34.8rem;
    padding-inline: 1.1rem;
  }

  .parents-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 2.3rem;
  }

  .date-row {
    gap: 1rem;
  }

  .date-row strong {
    padding-inline: 1rem;
  }

  .program {
    gap: 0.85rem;
  }

  .arch {
    width: min(24rem, 88vw);
    min-height: 35.7rem;
    padding: 4.2rem 1.75rem 9.15rem;
  }

  .hero-bouquet {
    bottom: -0.55rem;
    width: min(23rem, 96vw);
  }

  .primary-button,
  .map-link,
  .calendar-link {
    width: min(22rem, 100%);
    padding-inline: 2rem;
  }

  .attendance-options {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .magic-button {
    width: 100%;
  }
}

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