@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes Local";
  src: url("assets/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --olive: #575c40;
  --olive-deep: #444a35;
  --ivory: #f2ecdf;
  --paper: #ece4d6;
  --ink: #5e604f;
  --gold: #b39b68;
  --serif: "Cormorant Garamond Local", "Iowan Old Style", Georgia, serif;
  --script: "Great Vibes Local", "Snell Roundhand", "Apple Chancery", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #25271f; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  background: #25271f;
  -webkit-font-smoothing: antialiased;
}
body.intro-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.invitation-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: min(100%, 480px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #eee7d9;
  isolation: isolate;
  box-shadow: 0 0 70px #1118;
  transition: opacity .82s ease, visibility .82s ease, filter .82s ease, transform 1.05s cubic-bezier(.2,.72,.2,1);
}
.invitation-intro__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee7d9;
  transform: scale(1.002);
  transition: transform 4.1s cubic-bezier(.15,.7,.2,1), filter .8s ease;
}
.invitation-intro__glow {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fff8ed00 0 22%, #fff8ed00 44%, #fff8ed00 70%);
  transition: background .85s ease;
}
.invitation-intro__trigger {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0 24px max(38px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--olive-deep);
  background: linear-gradient(180deg, transparent 70%, #514c3c18 100%);
  cursor: pointer;
}
.invitation-intro__trigger:focus-visible {
  outline: 2px solid var(--olive-deep);
  outline-offset: -8px;
}
.invitation-intro__prompt {
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px #fff;
  animation: intro-prompt 2.2s ease-in-out infinite;
  transition: opacity .35s ease, transform .35s ease;
}
.invitation-intro__seal {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #4f543bbb;
  border-radius: 50%;
  font: 500 11px/1 var(--serif);
  letter-spacing: .08em;
  background: #e7e1d1c7;
  box-shadow: 0 8px 24px #4d503825, inset 0 0 0 3px #f6f0e866;
}
.intro-playing .invitation-intro__video { transform: scale(1.025); }
.intro-playing .invitation-intro__trigger { cursor: default; pointer-events: none; }
.intro-playing .invitation-intro__prompt { opacity: 0; transform: translateY(8px); }
.intro-finishing .invitation-intro__glow {
  background: radial-gradient(circle at 50% 45%, #fff8edfb 0 16%, #f5eddeeb 45%, #e8dfceb8 72%);
}
.intro-finishing .invitation-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
  transform: scale(1.045);
}
@keyframes intro-prompt {
  0%, 100% { transform: translateY(0); opacity: .76; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.invitation {
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--olive);
  box-shadow: 0 0 70px #1118;
}
.intro-finishing .invitation {
  animation: invitation-reveal .95s cubic-bezier(.18,.75,.18,1) both;
}
@keyframes invitation-reveal {
  from { opacity: .25; transform: scale(1.025); filter: blur(7px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.hero {
  position: relative;
  min-height: 720px;
  padding: max(20px, env(safe-area-inset-top)) 20px 36px;
  color: var(--ivory);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, #182017b8 0%, #26302261 48%, #56604b26 100%),
    url("assets/hero-garden.webp") center top/cover no-repeat;
}
.hero-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: lowercase;
  opacity: .88;
}
.hero-nav a { color: inherit; text-decoration: none; min-width: 32px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 0; }
.invocation { margin: 23px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.envelope-wrap { position: relative; width: min(94vw, 388px); margin-top: 2px; filter: drop-shadow(0 18px 25px #16190f8f); }
.envelope-wrap img { display: block; width: 100%; height: auto; }
.heart-copy {
  position: absolute;
  top: 21%; left: 50%; width: 63%;
  transform: translateX(-50%);
  color: var(--ivory);
  text-shadow: 0 1px 3px #28301d66;
}
.heart-copy h1 { font: 400 39px/.9 var(--script); margin: 0; }
.heart-copy h1 i { display: block; font-size: 27px; font-weight: 400; margin: 1px 0; }
.hero-blessing { margin: 15px 0 0; font-size: 12px; letter-spacing: .05em; opacity: .82; }

section { position: relative; text-align: center; }
.ivory-arch, .ivory-pill { background: var(--ivory); }
.olive-section { background: var(--olive); color: var(--ivory); }
.story {
  z-index: 2;
  min-height: 920px;
  padding: 78px 37px 104px;
  border-radius: 0 0 50% 50% / 0 0 9% 9%;
  overflow: hidden;
}
.botanical { position: absolute; display: block; height: auto; pointer-events: none; }
.botanical-top { width: 98%; top: 4px; left: 1%; opacity: .88; }
.portrait-frame {
  position: relative; z-index: 1;
  width: 120px; height: 173px;
  margin: 6px auto 23px;
  border: 5px double #d4cabb;
  border-radius: 50%;
  padding: 4px;
  background: #eee6d8;
  box-shadow: 0 0 0 1px #8b8a7338;
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: sepia(.2) contrast(.94); }
.script { font: 400 40px/1.08 var(--script); margin: 0; }
.body-copy { max-width: 350px; margin: 18px auto 8px; font-size: 16px; line-height: 1.55; }
.flourish { font: 19px/1 var(--serif); margin: 14px auto; transform: rotate(0.01deg); opacity: .7; }
.blessing-verse { font-size: 13px; line-height: 1.5; font-style: italic; margin: 0 auto; }
.save-date { margin-top: 27px; font-size: 43px; }
.date-line { font-size: 13px; letter-spacing: .12em; margin: 13px 0 7px; }
.microcopy { font-size: 13px; margin: 0; }
.botanical-bottom { width: 101%; left: -.5%; bottom: -17px; mix-blend-mode: multiply; opacity: .8; }

.venue { padding: 88px 24px 48px; min-height: 700px; }
.light { color: var(--ivory); }
.light-text { color: var(--ivory); opacity: .86; }
.venue h3 { margin: 5px 0 3px; font-size: 15px; letter-spacing: .08em; font-weight: 400; }
.venue-details { display: grid; gap: 18px; margin: 18px auto 4px; }
.venue-details p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .9; }
.venue-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.mosque-art { width: 112%; margin: 7px -6% -14px; height: auto; opacity: .96; }
.pill {
  display: inline-flex;
  min-width: 148px;
  min-height: 44px;
  padding: 11px 20px 10px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  cursor: pointer;
}
.light-pill { background: var(--ivory); color: var(--olive-deep); }
.dark-pill { background: var(--olive); color: var(--ivory); }
.amenities { margin: 16px 0 0; font-size: 13px; letter-spacing: .04em; opacity: .86; }

.timeline-wrap { padding: 22px 16px 42px; }
.timeline, .actions {
  position: relative;
  color: var(--ink);
  border-radius: 220px;
  overflow: hidden;
}
.timeline { min-height: 960px; padding: 165px 36px 185px; }
.timeline-arch { width: 96%; top: 14px; left: 2%; opacity: .88; }
.timeline-intro { max-width: 310px; margin: 14px auto 38px; font-size: 15px; line-height: 1.55; }
.timeline-item { margin: 0 auto; position: relative; z-index: 1; }
.timeline-icon {
  display: block; width: 82px; height: 82px; margin: 0 auto 7px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  mix-blend-mode: multiply;
}
.icon-nikah { background-image: url("assets/generated/icon-nikah-v2.webp"); }
.icon-walima { background-image: url("assets/generated/icon-walima-v2.webp"); }
.timeline-item time { font-size: 20px; display: block; margin-top: 2px; }
.timeline-item h3 { font-size: 13px; font-weight: 400; letter-spacing: .08em; margin: 5px 0; }
.timeline-item p { font-size: 14px; line-height: 1.45; margin: 0; }
.timeline .flourish { margin: 21px auto; }
.timeline-wreath { width: 110%; bottom: -13px; left: -5%; mix-blend-mode: multiply; opacity: .82; }

.action-wrap { padding: 20px 16px 34px; }
.actions { min-height: 720px; padding: 190px 38px 195px; }
.action-arch { width: 96%; left: 2%; top: 13px; opacity: .86; }
.actions article { position: relative; z-index: 1; }
.actions article h2 { font-size: 39px; }
.actions article p { font-size: 15px; line-height: 1.55; margin: 16px auto; max-width: 320px; }
.action-wreath { width: 112%; left: -6%; bottom: -20px; opacity: .85; mix-blend-mode: multiply; }

.closing {
  min-height: 510px;
  display: grid;
  place-items: end center;
  padding: 70px 36px max(54px, env(safe-area-inset-bottom));
  color: var(--ivory);
  text-align: center;
  background:
    linear-gradient(180deg, #11140d2e, #161b13e3),
    url("assets/generated/malabar-evening-v2.webp") center/cover no-repeat;
}
.closing-copy p { font-size: 14px; line-height: 1.55; max-width: 350px; }
.closing-copy h2 { margin: 24px 0 6px; font-size: 39px; }
.closing-copy h3 { font: 400 23px var(--serif); margin: 0 0 20px; letter-spacing: .06em; }
.closing-copy span { font-size: 11px; letter-spacing: .13em; opacity: .8; }

.rsvp-dialog { width: min(calc(100% - 28px), 430px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--ivory); box-shadow: 0 28px 80px #0008; }
.rsvp-dialog::backdrop { background: #1d2117c9; backdrop-filter: blur(5px); }
.rsvp-card { position: relative; padding: 40px 28px 32px; display: grid; gap: 16px; }
.rsvp-card .eyebrow { text-align: center; margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rsvp-card h2 { text-align: center; }
.rsvp-card label { display: grid; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.rsvp-card input, .rsvp-card select, .rsvp-card textarea { width: 100%; border: 0; border-bottom: 1px solid #77776088; border-radius: 0; padding: 10px 2px; color: var(--ink); background: transparent; outline: none; font-size: 16px; text-transform: none; letter-spacing: 0; }
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus { border-bottom-color: var(--olive); }
.close-dialog { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: var(--ink); font-size: 26px; cursor: pointer; }
.submit-rsvp { justify-self: center; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 20; width: min(calc(100% - 32px), 400px); transform: translate(-50%, 120px); padding: 14px 18px; border-radius: 999px; background: var(--ivory); color: var(--olive-deep); text-align: center; font-size: 14px; box-shadow: 0 12px 45px #0007; transition: transform .45s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 355px) {
  .hero-nav { font-size: 11px; }
  .envelope-wrap { width: min(94vw, 340px); }
  .heart-copy h1 { font-size: 35px; }
  .story { padding-inline: 27px; }
  .script { font-size: 36px; }
  .timeline-wrap, .action-wrap { padding-inline: 9px; }
  .timeline { padding-inline: 29px; }
}
@media (min-width: 481px) {
  body { padding: 30px 0; }
  .invitation { border-radius: 4px; }
  .invitation-intro { top: 30px; bottom: 30px; height: calc(100vh - 60px); height: calc(100svh - 60px); border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
