@font-face {
  font-family: "Nastaliq";
  src: url("fonts/NotoNastaliqUrdu.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --mute: #666;
  --line: #e6e6e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
button:focus, img:focus { outline: none; }
img { -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Times New Roman", Times, Georgia, serif;
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .55; }

.wrap {
  width: min(920px, 92vw);
  margin: 0 auto;
  flex: 1;
}

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 1.4rem;
  padding: 3.2rem 1.4rem 2rem;
}
.home-slide {
  display: block;
  width: min(720px, 92vw);
  margin-top: .6rem;
}
.home-slide img {
  width: 100%;
  height: min(58vh, 520px);
  object-fit: cover;
  display: block;
  background: #eee;
  transition: opacity .35s ease;
}
.home-slide img.fade { opacity: 0; }
.slide-hint { color: var(--mute); font-size: .8rem; }
.home h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: .04em;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .15rem;
  font-size: 1.05rem;
}
.menu a { padding: 0 .45rem; }
.sep { color: #bbb; pointer-events: none; }

.top {
  padding: 1.6rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.25rem; }
.top nav { display: flex; flex-wrap: wrap; gap: .2rem; font-size: .95rem; }
.top nav a { padding: 0 .4rem; }
.top nav a.on { text-decoration: underline; text-underline-offset: 4px; }

main { padding: 2.2rem 0 4rem; }
h1 { font-weight: 400; font-size: 1.5rem; margin-bottom: 1.4rem; }
h2 { font-weight: 400; font-size: 1.35rem; margin-bottom: 1rem; }

.list { list-style: none; position: relative; z-index: 2; }
.list li { margin: 0 0 1.05rem; font-size: 1.12rem; }
.list a span { color: var(--mute); }

.hover-preview {
  position: fixed;
  right: 7vw;
  top: 52%;
  transform: translateY(-50%);
  width: min(36vw, 360px);
  max-height: 62vh;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  filter: blur(10px);
  transition: opacity .55s ease, filter .55s ease;
  z-index: 1;
}
.hover-preview.on {
  opacity: .95;
  filter: blur(0);
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  animation: dissolve 1.2s ease forwards;
}
@keyframes dissolve {
  to { opacity: 1; filter: blur(0); }
}

@media (hover: none), (pointer: coarse) {
  .hover-preview { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; filter: none; }
  .hover-preview { transition: none; }
}

.statement {
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #333;
}
.statement p + p { margin-top: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.grid.framed img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  background: #f3f3f3;
}

.article { max-width: 40rem; line-height: 1.75; }
.article p + p { margin-top: 1rem; }
.meta { color: var(--mute); font-size: .95rem; margin: -.6rem 0 1.4rem; }

.page-text { max-width: 38rem; line-height: 1.7; }
.page-text p + p { margin-top: 1rem; }

.mail-line { margin: -.4rem 0 1.8rem; }
.form {
  max-width: 420px;
  display: grid;
  gap: 1.05rem;
  text-align: left;
}
.form label {
  display: grid;
  gap: .35rem;
  font-size: .92rem;
  color: #444;
}
.form input, .form textarea {
  border: 0;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: .45rem 0;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-bottom-color: #111;
}
.form button {
  justify-self: start;
  margin-top: .3rem;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: .55rem 1.4rem;
  font: inherit;
  cursor: pointer;
  letter-spacing: .04em;
}
.form button:hover { opacity: .75; }
.form button:disabled { opacity: .4; cursor: wait; }
.form-ok { color: #2a6a3a; font-size: .95rem; }
.form-err { color: #8a2a2a; font-size: .95rem; }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  color: rgba(20,20,20,.42);
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,.55);
  color: rgba(20,20,20,.7);
  opacity: 1;
}
.lb-prev svg, .lb-next svg { display: block; }

footer {
  text-align: center;
  color: #999;
  font-size: .8rem;
  padding: 0 0 2rem;
}

.lb {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.98);
  display: none;
  z-index: 40;
}
.lb.on { display: block; }
.lb-close {
  position: absolute;
  top: .6rem;
  right: .8rem;
  z-index: 2;
  border: 0;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  color: rgba(0,0,0,.4);
}
.lb-stage {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}
.lb-stage img {
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}
.lb-count {
  position: absolute;
  bottom: .7rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .8rem;
  color: #777;
}

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; }
  .lb-stage { padding: 0; }
  .lb-prev, .lb-next { width: 38px; height: 38px; }
}

