@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 {
  --rose: #aa7480;
  --rose-deep: #824957;
  --cream: #f7e9db;
  --paper: #f2dfd1;
  --ink: #263b2b;
  --burgundy: #651d31;
  --gold: #ad8866;
  --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: #653845; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  background: #653845;
  -webkit-font-smoothing: antialiased;
}
body.gate-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.invitation-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: min(100%, 480px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: max(30px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  color: var(--burgundy);
  text-align: center;
  background:
    linear-gradient(180deg, #f7e9db30 0%, #f7e9db08 54%, #651d3145 100%),
    url("assets/pink/hero-garden.webp") center/cover no-repeat;
  isolation: isolate;
  transition: opacity .9s ease, visibility .9s ease;
}
.invitation-gate::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, #fff1 43%, transparent 62%);
  transform: translateX(-110%);
  animation: gate-light 7s ease-in-out 1.2s infinite;
}
.invitation-gate__frame {
  position: absolute;
  inset: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  border: 1px solid #651d317a;
  border-radius: 230px 230px 24px 24px;
  box-shadow: inset 0 0 0 5px #f7e9db35, 0 0 45px #651d3133;
}
.invitation-gate__frame::before,
.invitation-gate__frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #651d31b0;
  background: var(--rose);
  transform: translateX(-50%) rotate(45deg);
}
.invitation-gate__frame::before { top: 13px; }
.invitation-gate__frame::after { bottom: 13px; }
.invitation-gate__content {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 42px 18px 30px;
  text-shadow: 0 1px 10px #f7e9dbb8;
  animation: gate-arrive 1.15s cubic-bezier(.2,.75,.25,1) both;
  transition: transform .9s ease;
}
.bismillah {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  height: 100px;
  margin: 0 auto 8px;
}
.bismillah::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #aa7836;
  -webkit-mask: url("assets/pink/bismillah-calligraphy.png") center / 125% auto no-repeat;
  mask: url("assets/pink/bismillah-calligraphy.png") center / 125% auto no-repeat;
}
.bismillah--gate {
  width: min(100%, 270px);
  height: 76px;
  margin-bottom: 6px;
}
.bismillah--gate::before {
  -webkit-mask-size: 90% auto;
  mask-size: 90% auto;
}
.bismillah span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bismillah-translation {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 0 auto;
  font-size: 14px;
  font-style: italic;
  line-height: 1.35;
}
.invitation-gate__names {
  margin: 16px 0 0;
  font: 400 clamp(49px, 15.2vw, 66px)/.84 var(--script);
  font-synthesis: none;
  letter-spacing: -.02em;
}
.invitation-gate__names span { display: block; }
.invitation-gate__names span:last-child { transform: translateX(-12px); }
.invitation-gate__names i {
  display: block;
  margin: 9px 0 17px;
  font-size: .4em;
  line-height: 1;
  font-weight: 400;
}
.invitation-gate__occasion {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.invitation-gate__button {
  position: relative;
  margin-top: 25px;
  min-width: 206px;
  min-height: 52px;
  padding: 14px 27px 13px;
  overflow: hidden;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  color: var(--cream);
  background: var(--burgundy);
  box-shadow: 0 12px 35px #651d3155, inset 0 0 0 1px #fff4;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.invitation-gate__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, #fff9 48%, transparent 69%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.invitation-gate__button span { position: relative; z-index: 1; }
.invitation-gate__button:hover,
.invitation-gate__button:focus-visible {
  transform: translateY(-2px);
  background: #824055;
  box-shadow: 0 15px 42px #651d3170, inset 0 0 0 1px #fff6;
}
.invitation-gate__button:hover::after,
.invitation-gate__button:focus-visible::after { transform: translateX(120%); }
.invitation-gate__button:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.invitation-gate__button:active { transform: translateY(1px) scale(.985); }
.invitation-gate__button:disabled { cursor: default; }
.invitation-gate__blessing {
  max-width: 300px;
  margin: 18px auto 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f7e9dbd9;
  font-size: 13px;
  letter-spacing: .23em;
}
.gate-opening .invitation-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate-opening .invitation-gate__content { transform: translateY(-12px) scale(.985); }
@keyframes gate-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gate-light {
  0%, 72%, 100% { transform: translateX(-110%); }
  88% { transform: translateX(110%); }
}
.invitation {
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--rose);
  box-shadow: 0 0 70px #42152288;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: max(20px, env(safe-area-inset-top)) 20px 36px;
  color: var(--burgundy);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, #f7e9db1c 0%, #f7e9db00 58%, #651d3124 100%),
    url("assets/pink/hero-garden.webp") center top/cover no-repeat;
}
.hero-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid #651d3130;
  border-radius: 999px;
  background: #f7e9dbe0;
  backdrop-filter: blur(6px);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: lowercase;
}
.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 26px; padding: 5px 13px; border-radius: 999px; background: #f7e9dbe8; 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 #651d315c); }
.envelope-wrap img { display: block; width: 100%; height: auto; }
.heart-copy {
  position: absolute;
  top: 26%; left: 50%; width: 68%;
  transform: translateX(-50%);
  color: var(--cream);
  text-shadow: 0 1px 3px #3f1220aa;
}
.heart-copy h1 { display: flex; flex-direction: column; align-items: center; font: 400 39px/1.05 var(--script); margin: 0; }
.heart-copy h1 span {
  display: block;
  white-space: nowrap;
  transform: translateX(-7px);
}
.heart-copy h1 i { display: block; font-size: 27px; font-weight: 400; line-height: 1; margin: 0; }
.hero-blessing { max-width: 330px; margin: 15px 0 0; padding: 7px 13px; border-radius: 999px; background: #f7e9dbe0; font-size: 12px; letter-spacing: .05em; }

section { position: relative; text-align: center; }
.cream-arch, .cream-pill { background: var(--cream); }
.rose-section { background: var(--rose); color: var(--cream); }
.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; }
.story-ornament { position: relative; z-index: 1; margin: 12px auto 14px; font-size: 44px; color: var(--gold); }
.story .bismillah-translation { margin-bottom: 25px; }
.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; }
.couple-details { position: relative; z-index: 1; margin: 27px auto 8px; }
.couple-details h3 { margin: 0; font: 400 31px/1.1 var(--serif); }
.couple-details p { margin: 3px 0; font-size: 14px; line-height: 1.35; }
.couple-details span { display: block; margin: 14px auto; font: italic 24px var(--serif); color: var(--gold); }
.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; }
.microcopy span, .venue h3 span { display: block; }
.botanical-bottom {
  position: relative;
  width: calc(100% + 74px);
  max-width: none;
  left: -37px;
  bottom: auto;
  margin: 28px 0 -104px;
  opacity: .8;
}

.venue { padding: 88px 24px 75px; min-height: 480px; }
.light { color: var(--cream); }
.light-text { color: var(--cream); opacity: .9; }
.venue h3 { margin: 5px 0 3px; font-size: 22px; 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; }
.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(--cream); color: var(--burgundy); }
.dark-pill { background: var(--burgundy); color: var(--cream); }
.amenities { margin: 16px 0 0; font-size: 13px; letter-spacing: .04em; opacity: .86; }
.venue-link { margin-top: 24px; }

.timeline-wrap { padding: 22px 16px 42px; }
.timeline, .actions {
  position: relative;
  color: var(--ink);
  border-radius: 220px;
  overflow: hidden;
}
.timeline { min-height: 700px; padding: 165px 36px 175px; }
.timeline-arch { width: 96%; top: 14px; left: 2%; opacity: .88; }
.timeline-insha { margin: 5px 0 0; font-size: 13px; letter-spacing: .12em; }
.timeline-intro {
  width: min(100%, 310px); box-sizing: border-box; margin: 14px auto 38px; padding: 10px 13px;
  border: 1px solid #b88a62; border-radius: 14px; background: #fff9f1b8;
  font-size: 15px; line-height: 1.55;
}
.timeline-item { margin: 0 auto; position: relative; z-index: 1; }
.timeline-icon {
  display: block; width: 112px; height: 100px; margin: 0 auto 7px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.icon-gathering { background-image: url("assets/pink/gathering-guests.png"); }
.icon-feast { background-image: url("assets/pink/icon-dinner.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%; opacity: .82; }

.action-wrap { padding: 20px 16px 34px; }
.actions { min-height: 650px; padding: 180px 38px 175px; }
.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; }
.rsvp-numbers { display: grid; justify-content: center; gap: 16px; margin-top: 22px; }
.rsvp-contact { display: grid; justify-items: center; gap: 4px; }
.rsvp-contact > span { color: var(--green); font-size: 15px; }
.rsvp-numbers a { color: var(--burgundy); font-size: 20px; text-decoration: none; }
.rsvp-numbers a:hover, .rsvp-numbers a:focus-visible { text-decoration: underline; }
.action-wreath { width: 112%; left: -6%; bottom: -20px; opacity: .85; }

.closing {
  min-height: 510px;
  display: grid;
  place-items: end center;
  padding: 70px 36px max(54px, env(safe-area-inset-bottom));
  color: var(--cream);
  text-align: center;
  background:
    linear-gradient(180deg, #651d3133, #651d31e8),
    url("assets/pink/hero-garden.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; }

@media (max-width: 355px) {
  .invitation-gate { padding-inline: 22px; }
  .invitation-gate__content { padding-inline: 8px; }
  .invitation-gate__names { font-size: 55px; }
  .hero-nav { font-size: 11px; }
  .envelope-wrap { width: min(94vw, 340px); }
  .heart-copy h1 { font-size: 35px; }
  .story { padding-inline: 27px; }
  .botanical-bottom { width: calc(100% + 54px); left: -27px; }
  .script { font-size: 36px; }
  .timeline-wrap, .action-wrap { padding-inline: 9px; }
  .timeline { padding-inline: 29px; }
}
@media (max-height: 650px) {
  .invitation-gate__content { padding-block: 20px 16px; }
  .invitation-gate__names { font-size: clamp(50px, 15vw, 66px); }
  .invitation-gate__occasion { margin-top: 10px; }
  .invitation-gate__date { margin: 8px 0 16px; }
  .invitation-gate__blessing { margin-top: 12px; }
}
@media (min-width: 481px) {
  body { padding: 30px 0; }
  .invitation { border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
