:root {
  --wine:#631617;
  --ivory:#fefdf7;
  --ink:#631617;
  --gold:#b89a61;
  --rose:#bc9590;
  --body:#59483f
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-snap-type:none;
  overflow-x:clip
}
body {
  margin:0;
  background:var(--ivory);
  color:var(--body);
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:clamp(21px,4.8vw,27px);
  overflow-x:clip
}
button,input,textarea {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation
}
button {
  cursor:pointer
}
a {
  color:inherit
}
button:disabled {
  cursor:wait;
  opacity:.6
}
[hidden] {
  display:none!important
}
section {
  position:relative;
  padding:60px 26px;
  text-align:center;
  scroll-margin-top:20px
}
.inner {
  max-width:700px;
  margin:0 auto;
  position:relative
}
.wide {
  max-width:1000px
}
p {
  line-height:1.5;
  margin:18px 0
}
h1,h2,h3 {
  font-weight:400;
  color:var(--wine)
}
h1,.script {
  font-family:'Great Vibes','Brush Script MT',cursive
}
h1 {
  font-size:clamp(49px,10vw,100px);
  line-height:1.2;
  margin:30px 0
}
h1 span {
  display:block
}
h1 small {
  display:block;
  font-size:.4em;
  margin:14px 0
}
.script {
  font-size:clamp(48px,9vw,80px);
  line-height:1.25;
  margin:24px 0
}
.eyebrow,.mini {
  font-family:Georgia,serif;
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:11px;
  line-height:1.8;
  color:var(--wine)
}
.mini {
  font-size:10px;
  letter-spacing:.16em
}
.small {
  font-size:16px;
  line-height:1.5
}
.intro {
  font-size:clamp(21px,4.9vw,28px)
}
.intro em {
  color:var(--wine)
}
.rule {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  width:155px;
  margin:26px auto;
  color:var(--gold);
  font-size:10px
}
.rule::before,.rule::after {
  content:'';
  height:1px;
  flex:1;
  background:var(--gold);
  opacity:.55
}
.arabic {
  font-family:'Amiri',serif;
  color:var(--wine)
}
.verse {
  font-size:clamp(32px,7.2vw,54px);
  line-height:1.95;
  margin:22px 0
}
.translation {
  max-width:450px;
  margin:10px auto;
  font-size:clamp(22px,5vw,29px)
}
.hero {
  padding-top:70px;
  padding-bottom:24px;
  isolation:isolate
}
.hero .inner {
  max-width:850px;
  z-index:1
}
.hero,.hero * {
  -webkit-user-select:none;
  user-select:none
}
.hero-flower {
  position:absolute;
  right:0;
  top:0;
  width:clamp(140px,36vw,220px);
  pointer-events:none;
  transform:translate3d(0,var(--hero-drift,0px),0)
}
.hero-flower img {
  display:block;
  width:100%;
  height:auto
}
.bismillah-art {
  width:min(68vw,340px);
  height:clamp(55px,14vw,90px);
  margin:0 auto 18px;
  background:var(--wine);
  -webkit-mask:url('Bismillah.svg') center/contain no-repeat;
  mask:url('Bismillah.svg') center/contain no-repeat
}
#blessing {
  padding:28px 28px 56px
}
#blessing .inner.scroll-blessing {
  opacity:var(--ayah-opacity,.32);
  transition:opacity 900ms ease-out
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  padding:11px 25px;
  border:1px solid var(--wine);
  border-radius:999px;
  background:var(--wine);
  color:var(--ivory);
  font-size:clamp(19px,4.5vw,23px);
  text-decoration:none;
  line-height:1.25;
  transition:transform 180ms,background 180ms;
  max-width:100%
}
.button:active {
  transform:translateY(2px)
}
.button.outline {
  background:transparent;
  color:var(--wine)
}
.button.light {
  background:var(--ivory);
  color:var(--wine);
  border-color:var(--ivory)
}
.arrow {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  flex-shrink:0
}
.text-button {
  border:0;
  background:none;
  color:var(--wine);
  padding:10px 12px;
  font-size:17px;
  text-underline-offset:5px;
  text-decoration:underline
}
.calendar-trigger {
  font-size:16px
}
.event-heading {
  margin:0 auto 18px;
  line-height:1
}
.event-title {
  display:block;
  width:min(90%,440px);
  height:auto;
  max-height:190px;
  object-fit:contain;
  margin:auto
}
.event-date {
  display:block;
  width:min(85%,330px);
  height:auto;
  max-height:175px;
  object-fit:contain;
  margin:12px auto
}
.event-time {
  margin:16px 0 6px;
  font-size:clamp(22px,5vw,32px)
}
.event-inner>.mini {
  margin:4px 0
}
.venue-detail {
  margin:22px 0 36px
}
.venue-icon {
  display:block;
  width:100px;
  height:90px;
  object-fit:contain;
  margin:0 auto 10px
}
.venue-detail .eyebrow {
  margin:8px 0
}
.venue-detail h3 {
  font-size:clamp(28px,6.3vw,45px);
  line-height:1.15;
  margin:12px 0 24px
}
address {
  font-style:normal;
  line-height:1.5
}
.asset-fallback {
  font-size:clamp(38px,8vw,70px);
  color:inherit
}
.event-heading .asset-fallback {
  font-family:'Great Vibes',cursive
}
#celebrations {
  position:relative;
  isolation:isolate
}
#nikah {
  padding:20px 26px 92px 86px
}
.event-inner {
  max-width:580px
}
.walimah {
  position:relative;
  background:radial-gradient(ellipse at 50% 40%,#7a2223,var(--wine) 75%);
  color:var(--ivory);
  border-radius:50% 50% 48% 48% / 4% 4% 3% 3%;
  padding-top:118px;
  padding-bottom:70px;
  box-shadow:inset 0 7px 0 #fefdf730,inset 0 10px 0 #b9918138
}
.walimah h2,.walimah h3,.walimah .mini,.walimah .text-button {
  color:var(--ivory)
}
.ivory-art {
  filter:brightness(0) invert(98%) sepia(9%) saturate(303%) hue-rotate(337deg) brightness(105%) contrast(99%)
}
.residence-name {
  font-size:clamp(50px,10vw,85px);
  margin:12px 0 20px
}
.final-bouquet {
  position:absolute;
  top:0;
  left:0;
  width:clamp(180px,45vw,300px);
  transform:translate(-15%,-45%);
  z-index:4;
  pointer-events:none;
  opacity:var(--bouquet-opacity,1)
}
.final-bouquet img {
  width:100%;
  height:auto;
  display:block
}
#floral-garland {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;
  overflow:visible
}
.garland-piece {
  position:absolute;
  top:0;
  left:0;
  width:80px;
  height:100px;
  object-fit:contain;
  will-change:transform;
  transform-origin:50% 75%;
  opacity:0
}
#wishes {
  padding-top:65px;
  padding-bottom:55px
}
.note-cards {
  display:flex;
  overflow-x:auto;
  gap:20px;
  padding:20px 5px 28px;
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain
}
.note-card {
  flex:0 0 min(85%,340px);
  padding:25px;
  border:1px solid #dbc6b4;
  border-radius:34px 5px 34px 5px;
  background:#fffefb;
  text-align:left;
  max-height:360px;
  overflow:auto;
  scroll-snap-align:center
}
.note-card p {
  font-size:22px;
  overflow-wrap:anywhere
}
.note-card footer {
  color:var(--wine);
  font-size:18px
}
.quote-mark {
  font-size:55px;
  line-height:.8;
  color:var(--rose)
}
.empty-note {
  font-size:21px;
  max-width:440px;
  margin:40px auto
}
.card-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px
}
.card-nav button {
  width:42px;
  height:42px;
  border:1px solid var(--rose);
  border-radius:50%;
  background:none;
  color:var(--wine)
}
#countdown {
  background:var(--wine);
  color:var(--ivory);
  padding:60px 22px 38px
}
#countdown h2,#countdown .mini,#countdown .eyebrow {
  color:inherit
}
.countdown {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  max-width:500px;
  margin:32px auto
}
.countdown>div+div {
  border-left:1px solid #fefdf740
}
.countdown strong {
  display:block;
  position:relative;
  height:1.25em;
  line-height:1.25;
  overflow:hidden;
  font-weight:400;
  font-size:clamp(38px,9vw,66px);
  font-variant-numeric:tabular-nums
}
.countdown>div>span {
  font-size:14px
}
.count-value {
  display:block;
  font:inherit
}
.count-outgoing {
  position:absolute;
  inset:0;
  animation:roll-out 600ms ease both
}
.count-incoming {
  animation:roll-in 600ms ease both
}
@keyframes roll-in {
  from {
    transform:translateY(100%);
    opacity:.25
  }
  to {
    transform:translateY(0);
    opacity:1
  }
}
@keyframes roll-out {
  to {
    transform:translateY(-100%);
    opacity:0
  }
}
.closing {
  font-size:clamp(40px,8vw,65px)
}
.back-top {
  display:inline-block;
  font-size:14px;
  margin-top:24px;
  text-underline-offset:4px
}
dialog {
  padding:0;
  border:1px solid #bd9b80;
  border-radius:24px;
  background:var(--ivory);
  color:var(--body);
  width:min(92vw,460px);
  max-width:calc(100vw - 24px)
}
dialog[open] {
  position:fixed;
  inset:auto;
  top:calc(var(--visible-top,0px) + 12px);
  left:50%;
  transform:translateX(-50%);
  margin:0;
  max-height:calc(var(--visible-height,100dvh) - 24px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scroll-padding:20px
}
dialog::backdrop {
  background:#23060988;
  backdrop-filter:blur(3px)
}
.dialog-content {
  padding:28px 24px max(28px,env(safe-area-inset-bottom));
  position:relative
}
.dialog-content h2 {
  font-size:43px;
  margin:12px 28px 26px;
  text-align:center
}
.close {
  position:absolute;
  right:8px;
  top:6px;
  width:44px;
  height:44px;
  border:0;
  background:none;
  color:var(--wine);
  font-size:30px
}
form {
  display:grid;
  gap:18px
}
label {
  display:grid;
  gap:7px;
  font-size:18px
}
input,textarea {
  width:100%;
  padding:12px;
  border:1px solid #c7ada1;
  border-radius:8px;
  background:#fff;
  color:var(--body);
  font-size:16px;
  scroll-margin-block:20px
}
textarea {
  min-height:90px;
  height:clamp(90px,20dvh,160px);
  resize:vertical
}
fieldset {
  border:0;
  padding:0;
  margin:0
}
legend {
  font-size:18px;
  margin-bottom:12px
}
.choice-row {
  display:flex;
  gap:12px
}
.choice {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px;
  border:1px solid var(--rose);
  border-radius:9px;
  flex:1;
  font-size:16px
}
.choice input {
  width:auto;
  accent-color:var(--wine)
}
.choice:has(input:checked) {
  background:#6316170d;
  border-color:var(--wine)
}
#feedback {
  font-size:18px
}
.calendar-options {
  display:grid;
  gap:12px;
  margin:24px 0
}
#calendar-details {
  text-align:center;
  font-size:20px;
  white-space:pre-line
}
:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:5px
}
@media(min-width:800px) {
  section {
    padding:70px 50px
  }
  .hero {
    padding-top:90px
  }
  #nikah {
    padding-left:160px;
    padding-right:100px
  }
  .venue-detail {
    margin:30px 0 40px
  }
  .venue-icon {
    width:120px;
    height:105px
  }
  .walimah {
    padding-top:135px
  }
  .garland-piece {
    width:130px;
    height:155px
  }
}
@media(max-width:360px) {
  #nikah {
    padding-left:68px;
    padding-right:18px
  }
  .button {
    padding:11px 17px
  }
  .verse {
    font-size:31px
  }
  .choice-row {
    gap:7px
  }
  .choice {
    padding:10px 7px
  }
  h1 {
    font-size:46px
  }
}
