@font-face {
  font-family: Amiri;
  src: url('assets/amiri-arabic.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}
:root {
  --ivory: #f8f5ed;
  --green: #193e33;
  --gold: #a28b50;
  --muted: #726f61;
  --line: #dbd3bd;
  --serif: Amiri, 'Geeza Pro', 'Traditional Arabic', serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--green);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 6px;
}
button:disabled {
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font: 400 clamp(36px, 5vw, 49px)/1.7 var(--serif);
  margin: 10px 0 38px;
}
.masthead {
  height: 88px;
  max-width: 1320px;
  margin: auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--line);
}
.masthead a {
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead .monogram {
  font: 30px var(--serif);
  gap: 8px;
}
.monogram span {
  color: var(--gold);
  font-size: 19px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 810px;
  min-height: calc(100svh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 86px 20px 105px;
  overflow: hidden;
  text-align: center;
}
.arch {
  position: absolute;
  z-index: -1;
  top: 35px;
  bottom: 48px;
  width: min(610px, 80%);
  border: 1px solid var(--line);
  border-radius: 48% 48% 0 0;
}
.arch:after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid #ded6c380;
  border-radius: inherit;
}
.botanical {
  position: absolute;
  z-index: -1;
  width: clamp(190px, 28vw, 360px);
  height: auto;
  bottom: 8%;
  opacity: 0.85;
}
.botanical-right {
  right: calc(50% - 565px);
  transform: rotate(-20deg);
}
.botanical-left {
  left: calc(50% - 565px);
  transform: scaleX(-1) rotate(-20deg);
}
.bismillah {
  font: 25px var(--serif);
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--gold);
  font-size: 23px;
  margin: 21px auto;
}
.ornament:before,
.ornament:after {
  content: '';
  width: 55px;
  height: 1px;
  background: var(--line);
}
.intro {
  font: 24px/1.7 var(--serif);
}
.inviting {
  font-size: 14px;
  line-height: 2;
  margin-top: 20px;
  color: var(--muted);
}
h1 {
  font: 400 clamp(76px, 9vw, 115px)/1.45 var(--serif);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 8px 0;
}
h1 i {
  font:
    italic 40px Georgia,
    serif;
  color: var(--gold);
}
.hero-date {
  font-size: 14px;
}
.hero-date span {
  padding: 0 13px;
  color: var(--gold);
}
.place-small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.scroll-cue {
  position: absolute;
  bottom: 15px;
  font-size: 11px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  line-height: 1.5;
}
.scroll-cue span {
  font-size: 22px;
  animation: drift 2s ease-in-out infinite;
}
.hero-caption {
  position: absolute;
  left: 5%;
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--muted);
}
.section-pad {
  padding: 85px 24px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  color: #756232;
}
.verse-section {
  background: #eef0e8;
  border-top: 1px solid #e0e3d7;
  border-bottom: 1px solid #e0e3d7;
}
.verse {
  font: 28px/2.1 var(--serif);
  max-width: 790px;
  margin: 0 auto;
}
.verse-source {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.family-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  max-width: 920px;
  margin: auto;
  align-items: center;
}
.family-grid h3 {
  font: 58px/1.7 var(--serif);
  margin-bottom: 8px;
}
.family-grid p {
  font: 21px/2 var(--serif);
}
.family-heart {
  color: var(--gold);
  font-size: 32px;
}
.family-note {
  margin-top: 42px;
  font-size: 13px;
  color: var(--muted);
}
.details {
  background: #f0ece2;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}
.detail-card {
  border: 1px solid #d6ccb4;
  padding: 32px 18px;
  background: #f9f6ef;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
}
.detail-icon {
  display: block;
  width: 32px;
  height: 32px;
  font-size: 32px;
  line-height: 32px;
  color: var(--gold);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  margin-bottom: 16px;
}
.detail-card h3 {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 12px;
}
.detail-main {
  font: 24px/1.7 var(--serif);
  margin-bottom: 6px;
}
.muted {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
.map-button {
  font-size: 12px;
  border-bottom: 1px solid var(--gold);
  padding: 12px 0 4px;
  margin-top: auto;
}
.location-card[href]:hover {
  border-color: var(--gold);
  background: white;
}
.location-card[aria-disabled] {
  opacity: 0.85;
}
.countdown {
  display: flex;
  direction: rtl;
  align-items: flex-start;
  justify-content: center;
  gap: 25px;
  margin: 0 auto 25px;
  font-family: Georgia, serif;
}
.countdown div {
  min-width: 70px;
}
.countdown b {
  font-size: 53px;
  font-weight: 400;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  font:
    12px Tahoma,
    sans-serif;
  color: var(--muted);
  margin-top: 12px;
}
.countdown i {
  font-size: 30px;
  color: var(--gold);
  font-style: normal;
  padding-top: 9px;
}
.closing {
  background: var(--green);
  color: var(--ivory);
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
}
.closing h2 {
  font-size: 37px;
  margin-bottom: 20px;
}
.closing p {
  font-size: 13px;
}
.closing .ornament:after,
.closing .ornament:before {
  background: #a28b5050;
}
.share-button {
  background: transparent;
  border: 1px solid #a8996b;
  color: #f8f5ed;
  padding: 12px 30px;
  min-height: 48px;
  margin-top: 30px;
}
.share-button:hover {
  background: #ffffff0c;
}
.share-button span {
  margin-right: 24px;
}
.closing #share-status {
  min-height: 28px;
  margin: 8px 0;
}
.closing .footer-names {
  font: 32px var(--serif);
  margin-top: 24px;
}
.footer-names span {
  font-size: 19px;
  color: #c4b789;
  padding: 0 12px;
}
.closing img {
  display: block;
  width: min(500px, 100%);
  height: auto;
  opacity: 0.45;
  margin: 20px auto 0;
}
.music-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 5;
  display: flex;
  gap: 5px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 3px;
  box-shadow: 0 4px 20px #193e3310;
}
.music-controls[hidden] {
  display: none;
}
.music-controls button {
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.music-controls button[aria-pressed='true'] {
  background: var(--green);
  color: var(--ivory);
}
.opening {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: opening-close 0.6s ease 1.8s forwards;
}
.opening svg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 300;
  animation: heart-draw 1.8s ease both;
}
.opening p {
  font-size: 12px;
  color: var(--muted);
}
.opening .opening-names {
  font: 35px var(--serif);
  margin: 20px 0 10px;
  color: var(--green);
}
.skip-link {
  position: fixed;
  top: -100px;
  background: var(--ivory);
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 10px;
}
.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;
}
#share-url {
  width: min(450px, 100%);
  padding: 10px;
  direction: ltr;
}
.reveal {
  animation: reveal-in 0.8s ease both;
}
.reveal.pending {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s,
    transform 0.8s;
}
@keyframes heart-draw {
  from {
    stroke-dashoffset: 300;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes opening-close {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes drift {
  50% {
    transform: translateY(5px);
  }
}
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 850px;
  }
}
@media (max-width: 700px) {
  .masthead {
    height: 70px;
    padding: 0 6%;
    font-size: 11px;
  }
  .masthead > span {
    display: none;
  }
  .hero {
    min-height: 760px;
    min-height: calc(100svh - 70px);
    padding: 75px 15px 95px;
  }
  .arch {
    top: 25px;
    bottom: 55px;
    width: 88%;
  }
  .botanical {
    width: 225px;
    bottom: 8%;
    opacity: 0.65;
  }
  .botanical-right {
    right: -130px;
  }
  .botanical-left {
    left: -130px;
  }
  .hero-caption {
    display: none;
  }
  .hero-content {
    width: 100%;
  }
  .bismillah {
    font-size: 23px;
  }
  .intro {
    font-size: 22px;
  }
  h1 {
    font-size: 80px;
    gap: 18px;
    margin: 15px 0;
  }
  .inviting {
    font-size: 13px;
  }
  h1 i {
    font-size: 30px;
  }
  .hero-date {
    font-size: 12px;
  }
  .section-pad {
    padding: 62px 23px;
  }
  .verse {
    font-size: 25px;
    line-height: 2;
  }
  .eyebrow {
    font-size: 11px;
  }
  .family-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .family-grid h3 {
    font-size: 51px;
  }
  .family-grid p {
    font-size: 21px;
  }
  .family-heart {
    font-size: 25px;
  }
  .family-note {
    margin-top: 28px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
    gap: 14px;
  }
  .detail-card {
    padding: 25px 18px;
  }
  .detail-main {
    font-size: 25px;
  }
  .countdown {
    gap: 10px;
  }
  .countdown div {
    min-width: 49px;
  }
  .countdown b {
    font-size: 39px;
  }
  .countdown i {
    font-size: 24px;
    padding-top: 4px;
  }
  .closing {
    padding-bottom: 0;
  }
  .closing h2 {
    font-size: 31px;
  }
  .music-controls {
    bottom: 12px;
    left: 12px;
  }
  .music-controls button {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .opening {
    display: none;
  }
  .reveal.pending {
    opacity: 1;
    transform: none;
  }
}

[hidden] {
  display: none !important;
}
