@font-face {
  font-family: "Vazirmatn Local";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Nastaliq Local";
  src: url("../fonts/NotoNastaliqUrdu.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Allura Local";
  src: url("../fonts/Allura.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.fa-page {
  --sans: "Vazirmatn Local", Tahoma, sans-serif;
  font-family: var(--sans);
}

.fa-page .gate-names,
.fa-page .hero-title,
.fa-page .intro h2,
.fa-page .details h2,
.fa-page .media-placeholder span,
.fa-page .media-caption p {
  font-family: "Noto Nastaliq Local", serif;
  font-weight: 500;
}

.fa-page .gate-names {
  font-size: clamp(54px, 18vw, 94px);
  line-height: 1.35;
  padding-block: .12em;
}

.fa-page .gate-names i,
.fa-page .hero-title i {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.fa-page .hero-date {
  margin-top: 68px;
}

.fa-page .count-grid strong,
.fa-page .count-grid span {
  font-family: "Vazirmatn Local", Tahoma, sans-serif;
}

.fa-page .count-grid strong {
  font-weight: 400;
}

.fa-page .gate-date,
.fa-page .hero-date,
.fa-page .hero-date time,
.fa-page .count-grid,
.fa-page .count-grid *,
.fa-page .date-block,
.fa-page .date-block *,
.fa-page .section-number,
.fa-page footer small {
  font-family: "Vazirmatn Local", Tahoma, sans-serif;
  font-variant-numeric: tabular-nums;
}

.fa-page .hero-title {
  font-size: clamp(76px, 23vw, 132px);
  line-height: 1.12;
  padding-block: .08em;
}

.fa-page .hero-title i {
  line-height: .55;
  margin-block: .03em .1em;
}

.fa-page .intro h2,
.fa-page .details h2 {
  font-size: clamp(48px, 14vw, 74px);
  line-height: 1.7;
  margin-block: -.25em .25em;
}

.fa-page .media-caption p {
  line-height: 1.8;
  margin-block: -.45em;
}

.media-placeholder[hidden] {
  display: none !important;
}

.en-page .gate-names,
.en-page .hero-title,
.en-page .intro h2,
.en-page .details h2,
.en-page .media-placeholder span,
.en-page .media-caption p {
  font-family: "Allura Local", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.en-page .gate-names {
  font-size: clamp(72px, 23vw, 130px);
  line-height: .78;
}

.en-page .gate-names i,
.en-page .hero-title i {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.en-page .hero-title {
  font-size: clamp(74px, 20vw, 150px);
  line-height: .7;
}

.en-page .hero-title span:first-child,
.en-page .hero-title span:last-child {
  transform: none;
}

.en-page .intro h2,
.en-page .details h2 {
  font-size: clamp(62px, 17vw, 88px);
  line-height: .9;
}

.en-page .media-caption p {
  font-size: 36px;
  line-height: .85;
}

[data-couple-photo] {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .7s ease, transform 1.2s cubic-bezier(.22,1,.36,1);
}

[data-couple-photo].is-ready {
  opacity: 1;
  transform: scale(1);
}

.fa-page .media-frame,
.en-page .media-frame {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 2 / 3;
}

.fa-page .media-frame img,
.en-page .media-frame img {
  object-fit: contain;
  object-position: center;
  background: #111d18;
}

[data-media-slot] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.media-like-heart {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  color: #ff3040;
  font-family: Arial, sans-serif;
  font-size: clamp(88px, 24vw, 150px);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.18) rotate(-10deg);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.34)) drop-shadow(0 0 2px rgba(255,255,255,.8));
  will-change: transform, opacity;
}

.media-like-heart.is-bursting {
  animation: mediaLikeBurst .95s cubic-bezier(.2,.85,.25,1) both;
}

@keyframes mediaLikeBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.18) rotate(-10deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(4deg); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(.92) rotate(0); }
  58% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
  78% { opacity: 1; transform: translate(-50%, -52%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -68%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .media-like-heart.is-bursting {
    animation-duration: .35s;
  }
}

.detail-card {
  display: grid;
  grid-template-columns: 83px minmax(0, 1fr);
  align-items: stretch;
}

.location-visual {
  grid-column: 1 / -1;
  display: block;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.location-visual img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.location-visual > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.location-visual > span b {
  color: var(--accent);
  font-size: 16px;
}

.location-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(18,31,25,.14);
}

.en-page .location-visual {
  border-color: rgba(255,255,255,.2);
}

.en-page .location-visual > span {
  border-color: rgba(255,255,255,.2);
}

@media (min-width: 760px) {
  .detail-card {
    grid-template-columns: 140px minmax(220px, 1fr) minmax(210px, 280px);
  }

  .location-visual {
    grid-column: auto;
    margin-top: 0;
  }

  .location-visual img {
    height: 130px;
  }
}

.petal {
  background: linear-gradient(145deg, var(--petal-a, #e4c9b4), var(--petal-b, rgba(255,255,255,.18)));
  opacity: var(--petal-opacity, .5);
  filter: saturate(.88) drop-shadow(0 2px 3px rgba(36,20,19,.08));
  animation-name: coloredPetalFall;
}

@keyframes coloredPetalFall {
  0% {
    transform: translate3d(0,-10vh,0) rotate(0);
    opacity: 0;
  }
  12% {
    opacity: var(--petal-opacity, .5);
  }
  82% {
    opacity: var(--petal-opacity, .5);
  }
  100% {
    transform: translate3d(var(--drift),115vh,0) rotate(540deg);
    opacity: 0;
  }
}

@media (min-width: 760px) {
  .fa-page .gate-names { line-height: 1.25; }
  .fa-page .hero-title { font-size: 142px; }
  .en-page .hero-title { font-size: 150px; }
}

/* Richer sections below the portrait */
.countdown {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 22%, rgba(206,157,124,.14), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(96,133,113,.13), transparent 32%),
    linear-gradient(180deg, #f6f1eb, var(--paper));
}

.countdown::before,
.countdown::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(156,118,93,.12);
  border-radius: 50%;
}

.countdown::before { top: -135px; inset-inline-start: -100px; }
.countdown::after { bottom: -155px; inset-inline-end: -95px; box-shadow: 0 0 0 24px rgba(156,118,93,.035), 0 0 0 48px rgba(156,118,93,.025); }

.count-grid {
  gap: 8px;
  border: 0;
}

.count-grid > div,
.count-grid > div:last-child {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(156,118,93,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 12px 35px rgba(42,48,40,.06), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.count-grid > div::after {
  content: "";
  position: absolute;
  inset: auto -20% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c99b79, transparent);
}

.count-grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(42,48,40,.1);
}

.details {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fa-page .details {
  background:
    radial-gradient(circle at 90% 10%, rgba(185,139,107,.17), transparent 28%),
    linear-gradient(145deg, #eee6dd, #e5dbd0);
}

.details::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  aspect-ratio: 1;
  inset-inline-end: -230px;
  bottom: -210px;
  border: 1px solid rgba(201,155,121,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(201,155,121,.04), 0 0 0 78px rgba(201,155,121,.025);
}

.detail-card {
  border-radius: 24px;
  background: rgba(255,255,255,.3);
  box-shadow: 0 24px 65px rgba(35,43,36,.1), inset 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(125%);
}

.en-page .detail-card {
  background: rgba(255,255,255,.055);
  box-shadow: 0 24px 70px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.12);
}

.location-visual {
  border-radius: 17px;
}

footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: max(86px, calc(70px + env(safe-area-inset-bottom)));
}

footer::before {
  content: "S & S";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: -18px;
  color: rgba(211,165,131,.055);
  font: 400 150px/1 "Allura Local", cursive;
  white-space: nowrap;
}

footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 250px;
  left: 50%;
  bottom: -210px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(202,154,119,.15);
  filter: blur(45px);
}

footer small,
.fa-page footer small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(211,165,131,.34);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .16em;
  background: rgba(255,255,255,.035);
}

@media (min-width: 760px) {
  .count-grid { gap: 14px; }
  .count-grid > div { padding-block: 32px; }
  footer small, .fa-page footer small { font-size: 14px; }
}

.map-chooser {
  width: min(92vw, 470px);
  margin: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 24px;
  color: #f7efe8;
  background: rgba(15,31,24,.9);
  box-shadow: 0 30px 90px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(140%);
}

.map-chooser::backdrop {
  background: rgba(6,13,10,.62);
  backdrop-filter: blur(5px);
}

.map-chooser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.map-chooser-head small {
  display: block;
  color: #d1a17d;
  font-size: 10px;
  margin-bottom: 5px;
}

.map-chooser-head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
}

.map-chooser-head button {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.map-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.map-app-grid a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.055);
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}

.map-app-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(209,161,125,.6);
  background: rgba(255,255,255,.1);
}

.map-app-grid a i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #17231e;
  background: linear-gradient(145deg,#efd5c0,#c99570);
  font-style: normal;
  font-weight: 500;
}

.map-app-grid a span { font-size: 12px; }
.map-app-grid a b { color: #d1a17d; font-size: 14px; }
.map-chooser > p { margin: 16px 2px 0; color: rgba(255,255,255,.5); font-size: 9px; line-height: 1.8; text-align: center; }

@media (max-width: 370px) {
  .map-app-grid { grid-template-columns: 1fr; }
}
