@font-face {
  font-family: "Alsamt Diwani";
  src: url("assets/alsamt-diwani.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #f5d980;
  --soft-gold: #fff1b8;
  --white: #fffaf0;
  --shadow: rgba(0, 0, 0, 0.62);
  --deep: #090807;
  --font-diwani: "Alsamt Diwani", "Aref Ruqaa Ink", "Amiri", serif;
  --font-readable: "Amiri", "Aref Ruqaa Ink", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
}

body {
  direction: rtl;
  color: var(--white);
  font-family: var(--font-readable);
  -webkit-tap-highlight-color: transparent;
}

.invitation-shell {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    url("assets/wedding-poster.png") center / cover no-repeat,
    #090807;
}

.wedding-video,
.video-veil,
.start-hotspot,
.invitation-content {
  position: absolute;
}

.video-veil,
.invitation-content {
  inset: 0;
}

.wedding-video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.video-veil {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5) 78%);
}

.start-hotspot {
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(120px, 28vmin, 220px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}

.start-hotspot:focus {
  outline: none;
}

.start-hotspot.is-disabled {
  pointer-events: none;
  visibility: hidden;
}

.invitation-content {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: max(30px, env(safe-area-inset-top)) clamp(18px, 5vw, 48px) max(34px, env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}

.main-paragraph,
.event-details {
  grid-area: 1 / 1;
  width: min(100%, 720px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  filter: blur(5px);
}

.main-paragraph.is-visible,
.event-details.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.main-paragraph {
  margin: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0 transparent !important;
  background: none !important;
  mix-blend-mode: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Aref Ruqaa Ink", "Amiri", Tahoma, serif;
  font-size: clamp(1.28rem, 5.8vw, 2.7rem);
  font-weight: 700;
  line-height: 1.85;
  text-wrap: balance;
  text-shadow:
    0 0 1px rgba(255, 250, 240, 0.86),
    0 0 9px rgba(255, 241, 184, 0.34),
    0 4px 14px rgba(0, 0, 0, 0.82),
    0 10px 24px rgba(0, 0, 0, 0.64);
  transition:
    transform 1000ms ease,
    filter 1000ms ease;
}

.main-paragraph.is-visible {
  opacity: 1;
  visibility: visible;
}

.event-details {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--soft-gold);
  font-family: var(--font-readable);
  font-size: clamp(1.02rem, 4.4vw, 1.45rem);
  line-height: 1.55;
  text-shadow: 0 3px 13px var(--shadow), 0 0 12px rgba(245, 217, 128, 0.18);
  transition:
    opacity 1000ms ease,
    transform 1000ms ease,
    filter 1000ms ease;
}

.event-details div {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.event-details dt {
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
  font-weight: 700;
}

.event-details dt::after {
  content: ":";
}

.event-details dd {
  margin: 0;
  color: var(--soft-gold);
}

.event-details .map-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  justify-self: center;
}

.map-detail dt::after {
  content: "";
}

.map-detail dd {
  display: grid;
  gap: 6px;
}

.map-frame {
  width: 100%;
  height: clamp(118px, 18vh, 170px);
  border: 1px solid rgba(255, 241, 184, 0.36);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  pointer-events: auto;
}

.map-link {
  color: inherit;
  font-size: 0.88em;
  text-decoration: none;
  pointer-events: auto;
}

.map-link:focus {
  outline: 1px solid rgba(255, 241, 184, 0.72);
  outline-offset: 3px;
}

@media (max-height: 700px) {
  .invitation-content {
    gap: 14px;
  }

  .main-paragraph {
    font-size: clamp(1.18rem, 5.5vw, 2rem);
    line-height: 1.7;
  }

  .event-details {
    gap: 4px;
    font-size: clamp(0.95rem, 3.6vw, 1.18rem);
    line-height: 1.35;
  }

  .map-frame {
    height: 96px;
  }
}

@media (min-width: 760px) {
  .invitation-content {
    padding-inline: 8vw;
  }

  .event-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 660px;
  }

  .event-details div:first-child {
    grid-column: 1 / -1;
  }
}
