@font-face {
  font-family: "Cormorant Garamond";
  src: url('/assets/fonts/CormorantGaramond.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Italianno";
  src: url('/assets/fonts/Italianno-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --wine: #520018;
  --wine-dark: #3d0a16;
  --wine-soft: #6c2436;
  --paper: #eee9dc;
  --paper-light: #f6f1e7;
  --ink: #3a2928;
  --olive: #737453;
  --gold: #b38a44;
  --serif: "Cormorant Garamond", Didot, "Bodoni 72", "Times New Roman", serif;
  --script: "Italianno", "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  --sans: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--wine); }
body {
  margin: 0;
  min-width: 280px;
  background: var(--wine);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }

.invitation {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: clip;
  background-color: #e8e4da;
  background-image: linear-gradient(rgba(239, 236, 226, .18), rgba(239, 236, 226, .18)), url('/assets/generated/botanical-parchment.jpg');
  background-size: 430px auto;
  box-shadow: 0 0 80px rgba(23, 0, 7, .42);
}

.section { position: relative; isolation: isolate; }
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .21em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h2, h3 { font-weight: 400; }
.couple-names, .invitation-card h2, .venue-card h2, .adults-card h2, .invitation-dialog h2 {
  font-family: var(--script);
  font-weight: 400;
}

.hero {
  min-height: max(760px, 100svh);
  padding: max(54px, env(safe-area-inset-top)) 22px 44px;
  text-align: center;
}
.hero .eyebrow { margin-bottom: 2px; color: #6f5a55; }
.couple-names { margin: 0; font-size: clamp(43px, 13vw, 59px); line-height: .98; color: #382728; letter-spacing: -.05em; }
.couple-names span { color: var(--wine); font-size: .72em; }
.hero-date { margin: 12px 0 23px; font-family: var(--sans); font-size: 10px; letter-spacing: .36em; text-transform: uppercase; }
.hero-portrait { position: relative; width: min(92%, 365px); height: 510px; margin: 0 auto; }
.arch-frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  clip-path: polygon(0 30%, 7% 30%, 7% 25%, 21% 25%, 21% 18%, 50% 0, 79% 18%, 79% 25%, 93% 25%, 93% 30%, 100% 30%, 100% 100%, 0 100%);
  background: var(--wine);
  filter: drop-shadow(0 12px 15px rgba(40, 18, 16, .18));
}
.arch-frame::after {
  content: ""; position: absolute; inset: 4px;
  clip-path: inherit; border: 2px solid rgba(196, 154, 82, .45); pointer-events: none;
}
.arch-frame img { width: 100%; height: 78%; object-fit: cover; object-position: 49% 43%; filter: sepia(.14) saturate(.78) contrast(.97); }
.envelope-panel { position: absolute; inset: 65% 0 0; background: var(--wine); }
.envelope-panel::before, .envelope-panel::after { content: ""; position: absolute; top: 0; width: 56%; height: 70%; background: #5e1024; }
.envelope-panel::before { left: 0; clip-path: polygon(0 0, 100% 58%, 0 100%); }
.envelope-panel::after { right: 0; clip-path: polygon(100% 0, 0 58%, 100% 100%); }
.wax-seal { position: absolute; z-index: 6; width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(51, 22, 13, .24)); }
.wax-seal--hero { left: 50%; top: 61.5%; transform: translate(-50%, -50%); }
.hero-kicker { margin: 18px 0 8px; font-family: var(--script); font-size: 22px; color: var(--wine); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: #5d514d; text-decoration: none; font: 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 23px; background: var(--wine); animation: breathe 1.8s ease-in-out infinite; }

.paper-card {
  position: relative;
  z-index: 3;
  background: url('/assets/generated/deckled-paper.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 9px rgba(42, 29, 22, .13));
}
.flower { position: absolute; z-index: 5; pointer-events: none; }

.welcome-section { min-height: 620px; padding-top: 66px; }
.manuscript { position: absolute; z-index: 1; opacity: .72; filter: sepia(.1) drop-shadow(0 8px 8px rgba(42, 26, 16, .1)); }
.manuscript--welcome { width: 72%; top: 92px; right: -2%; transform: rotate(7deg); }
.invitation-card { width: 78%; min-height: 430px; margin-left: 7%; padding: 68px 44px 52px; text-align: center; }
.bismillah { font: 14px/1.3 var(--script); color: var(--wine); }
.intro-copy { font-size: 12px; line-height: 1.5; }
.invitation-card h2 { margin: 14px -10px 11px; color: var(--wine); font-size: 42px; line-height: .86; }
.invitation-card h2 span { display: block; font-size: .68em; line-height: .78; }
.invitation-card > p:not(.bismillah):not(.intro-copy):not(.fine-print) { font-size: 12px; line-height: 1.5; }
.fine-print { margin-bottom: 0; font-size: 10px; line-height: 1.7; text-transform: uppercase; letter-spacing: .09em; }
.olive-tag { position: absolute; z-index: 5; display: grid; place-items: center; width: 91px; aspect-ratio: 1; color: white; background: var(--olive); clip-path: polygon(50% 0,61% 8%,75% 5%,82% 17%,95% 22%,92% 37%,100% 50%,92% 63%,95% 78%,82% 83%,75% 95%,61% 92%,50% 100%,39% 92%,25% 95%,18% 83%,5% 78%,8% 63%,0 50%,8% 37%,5% 22%,18% 17%,25% 5%,39% 8%); filter: drop-shadow(0 6px 5px rgba(41, 33, 22, .2)); }
.olive-tag span { font: 9px/1.25 var(--serif); letter-spacing: .11em; text-align: center; text-transform: uppercase; }
.tag--welcome { right: 8%; bottom: 73px; }
.lantern { position: absolute; z-index: 4; pointer-events: none; }
.lantern--welcome { width: 66px; right: 9%; bottom: 8px; }

.calendar-section { min-height: 500px; padding: 42px 0 55px; }
.calendar-card { width: 72%; min-height: 396px; margin: 0 auto; padding: 60px 40px 50px; text-align: center; }
.calendar-card blockquote { margin: 0 0 18px; font: 12px/1.4 var(--script); }
.calendar-card cite { display: block; margin-top: 3px; font: 7px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.calendar-card h2 { margin: 0; color: var(--wine); font: 28px/1 var(--script); }
.month { margin: 7px 0 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px 4px; align-items: center; font: 9px/1 var(--sans); }
.calendar .dow { font-size: 8px; font-weight: 700; color: var(--wine); }
.calendar .marked { display: grid; place-items: center; width: 22px; height: 22px; margin: -6px auto; border-radius: 50%; background: var(--wine); color: white; }
.text-link { display: inline-block; margin-top: 20px; border-bottom: 1px solid currentColor; color: var(--wine); font: 9px/1.6 var(--sans); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.flower--calendar { width: 150px; right: -29px; bottom: -7px; transform: rotate(24deg); }

.venue-section { min-height: 690px; padding-top: 115px; }
.envelope { position: absolute; z-index: 1; }
.envelope--venue { width: 78%; top: 18px; right: -4%; transform: rotate(2deg); }
.flower--venue { width: 135px; right: 5%; top: 24px; transform: rotate(-18deg); }
.venue-card { width: 78%; min-height: 482px; margin-left: 8%; padding: 54px 42px 50px; text-align: center; }
.venue-card h2 { margin: 0 0 12px; font-size: 34px; line-height: .94; color: var(--wine); }
.venue-sketch { width: 116%; max-width: none; margin: 2px -8% 10px; opacity: .82; mix-blend-mode: multiply; }
.venue-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 11px 0; }
.venue-meta p { font-size: 10px; line-height: 1.4; }
.venue-card > p:last-of-type { font-size: 11px; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(82, 0, 24, .48); border-radius: 0; color: var(--wine); background: rgba(255,255,255,.12); font: 9px/1 var(--sans); letter-spacing: .11em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.wax-seal--venue { right: 7%; bottom: 104px; width: 67px; height: 67px; }

.countdown-section { min-height: 300px; padding: 30px 13px 55px; text-align: center; }
.countdown-section h2 { margin: 0 0 16px; font-size: 31px; letter-spacing: .1em; text-transform: uppercase; }
.countdown { display: grid; grid-template-columns: 1.2fr 8px 1fr 8px 1fr 8px 1fr; align-items: start; }
.countdown div { min-width: 0; }
.countdown strong { display: block; color: var(--wine); font: 29px/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 8px; font: 8px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.countdown b { font: 24px/1 var(--serif); color: var(--wine); }
.countdown-note { margin-top: 19px; font: 17px var(--script); color: var(--wine); }
.wax-seal--loose { position: relative; width: 62px; height: 62px; margin: 0 auto 20px; right: auto; top: auto; transform: none; }

.attire-section { min-height: 650px; padding-top: 70px; }
.wine-card { color: #f8efe4; background: var(--wine-dark); box-shadow: 0 12px 22px rgba(49, 16, 19, .2); }
.attire-copy { position: relative; z-index: 3; width: 68%; min-height: 300px; margin-left: 6%; padding: 48px 34px 40px; text-align: center; }
.attire-copy h2 { margin: 0 0 13px; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; }
.attire-copy p { font-size: 12px; line-height: 1.55; }
.outline-button--light { color: #fbf4e9; border-color: rgba(251,244,233,.5); }
.attire-swatch { position: absolute; z-index: 2; width: 53%; top: 238px; right: 4%; margin: 0; padding: 10px; background: var(--paper-light); box-shadow: 0 10px 18px rgba(54, 34, 23, .18); transform: rotate(2deg); }
.attire-swatch img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.attire-swatch figcaption { padding-top: 8px; font: 8px/1.3 var(--sans); letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.tag--attire { width: 100px; left: 13%; bottom: 53px; }
.lantern--attire { width: 76px; left: 16%; bottom: -25px; }

.quote-section { min-height: 240px; padding-top: 48px; }
.quote-section blockquote { position: relative; width: 78%; margin: 0 auto; padding: 35px 30px; font: 18px/1.35 var(--script); text-align: center; }
.wax-seal--quote { width: 60px; height: 60px; right: 0; bottom: 0; transform: translate(30%, 35%); }

.adults-section { min-height: 500px; padding-top: 63px; text-align: center; }
.adults-card { width: 75%; min-height: 328px; margin: 0 auto; padding: 66px 43px 52px; }
.adults-card h2 { margin: 0 0 12px; color: var(--wine); font-size: 39px; }
.adults-card p { font-size: 12px; line-height: 1.55; }
.adults-card .families { margin-top: 19px; font-family: var(--script); font-size: 17px; color: var(--wine); }
.flower--adults { width: 150px; left: -30px; bottom: 24px; transform: rotate(10deg); }
.back-to-top { display: inline-block; margin-top: 28px; color: var(--wine); font: 9px/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; }

.invitation-dialog {
  width: min(calc(100% - 30px), 390px);
  max-height: min(760px, calc(100svh - 30px));
  padding: 45px 34px 34px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-light) url('/assets/generated/botanical-parchment.jpg') center / 520px auto;
  box-shadow: 0 30px 70px rgba(30, 0, 9, .5);
  text-align: center;
}
.invitation-dialog::backdrop { background: rgba(44, 0, 13, .8); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; color: var(--wine); background: transparent; font: 29px/1 var(--serif); cursor: pointer; }
.invitation-dialog h2 { margin: 0 0 15px; color: var(--wine); font-size: 40px; line-height: 1; }
.invitation-dialog p { font-size: 12px; line-height: 1.55; }
.invitation-dialog img { margin: 18px 0; }
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.has-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes breathe { 0%,100% { transform: scaleY(.5); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }

@media (min-width: 431px) {
  body { padding: 38px 0; }
  .invitation { border: 1px solid rgba(239,217,180,.2); }
}
@media (max-width: 340px) {
  .hero { padding-inline: 15px; }
  .hero-portrait { height: 460px; }
  .countdown strong { font-size: 25px; }
  .paper-card { filter: drop-shadow(0 6px 7px rgba(42,29,22,.12)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid #c69b51; outline-offset: 3px; }

/* Updated invitation information, using the original stationery styling. */
.arabic-bismillah { margin-bottom: 5px; font: 18px/1.6 "Times New Roman", serif; color: var(--wine); }
.couple-details { margin: 20px -15px 15px; font-size: 12px; line-height: 1.45; }
.couple-details p { margin: 0; }
.couple-details small { display: block; font: 8px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.couple-details strong { display: block; margin-top: 5px; font-weight: 500; font-size: 15px; }
.couple-details em { display: block; font: 20px var(--script); color: var(--wine); }
.couple-details > span { display: block; margin: 7px 0; color: var(--wine); }
.calendar-legend { margin: 15px 0 0; font: 8px/1.5 var(--sans); color: var(--wine); }
.event-art { margin: 0; }
.event-art figcaption { margin: 3px 0 12px; font: italic 9px/1.4 var(--serif); }
.event-date { font-size: 12px; line-height: 1.6; }
.event-date strong { font-weight: 600; }
.hijri-date { font-size: 10px; }
.venue-card address { margin: 12px -10px 16px; font-size: 11px; line-height: 1.6; font-style: normal; }
.venue-email { display: block; margin-top: 14px; color: var(--wine); font: 9px/1.5 var(--sans); overflow-wrap: anywhere; }
.venue-card .text-link { display: block; width: fit-content; margin: 15px auto 0; }
.reception-lantern { width: 66px; left: -8px; top: calc(100% - 30px); bottom: auto; }
.closing-full-names { font-size: 12px; }
.adults-section { padding-bottom: 35px; }
/* Keep the original gold seal artwork; update only its monogram. */
span.wax-seal { display: grid; place-items: center; background: url('/assets/generated/nr-wax-seal.png') center / contain no-repeat; }
span.wax-seal b { display: grid; place-items: center; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #c99a56, #ae7738 75%); color: #eed39b; font: 400 25px/1 var(--serif); text-shadow: 0 1px 1px #684017; }

/* Reference hero: stacked names and an illustrated rounded-arch envelope. */
.hero { min-height: 0; padding: max(40px, env(safe-area-inset-top)) 22px 28px; }
.hero .eyebrow { margin-bottom: 10px; font-size: 10px; letter-spacing: .2em; }
.hero .couple-names { font-size: clamp(43px, 12vw, 52px); line-height: 1; letter-spacing: -.035em; }
.hero .couple-names > span { display: block; margin: 10px 0; font-size: .62em; line-height: 1; }
.hero .hero-date { margin: 28px 0 32px; font-size: 10px; letter-spacing: .36em; }
.hero .hero-portrait--reference { width: 90%; max-width: 348px; height: auto; margin: 0 auto; }
.hero-envelope-art { display: block; width: 100%; height: auto; }
.hero .hero-kicker { margin: 14px auto 12px; font-size: 23px; line-height: 1.3; }
@media (max-width: 340px) {
  .hero { padding-inline: 15px; }
  .hero .eyebrow { font-size: 9px; }
  .hero .couple-names { font-size: 44px; }
}
