:root {
  --ink: #0e1a3a;
  --ink2: #16244d;
  --night: #060b1e;
  --gold: #e2b04a;
  --gold2: #f2d27a;
  --paper: #fbf6ea;
  --text: #1d2440;
  --muted: #5b6380;
  --ur: "Noto Nastaliq Urdu", serif;
  --en: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ur);
  color: var(--text);
  background: var(--paper);
  line-height: 2.1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[dir="ltr"], .roman, .roman-always, small, .sub { font-family: var(--en); line-height: 1.7; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(14, 26, 58, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(226, 176, 74, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold2); }
.brand img { border-radius: 50%; border: 1px solid var(--gold); }
.brand b { display: block; font-size: 1.15rem; line-height: 1.9; }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.25em; color: var(--gold); line-height: 1; margin-top: 4px; }
.top nav { display: flex; gap: clamp(10px, 3vw, 26px); }
.top nav a { color: #e9e3cf; text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--gold2); }

/* hero */
.hero {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 16px clamp(36px, 6vw, 60px);
  color: #f6edd2;
  background:
    radial-gradient(ellipse at 50% 30%, #1b2c5e 0%, var(--ink) 55%, var(--night) 100%);
  border-bottom: 3px double var(--gold);
}
.hero-logo { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 10px 40px rgba(0, 0, 0, 0.5); }
.hero h1 {
  margin: 18px 0 0; font-size: clamp(2rem, 6vw, 3.3rem); font-weight: 700;
  background: linear-gradient(180deg, #fff1b8, #f2c14e 50%, #b8862b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--gold2); letter-spacing: 0.06em; margin: 4px 0 18px; }

/* socials */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(226, 176, 74, 0.6);
  color: var(--gold2); text-decoration: none;
  font-family: var(--en); font-size: 0.85rem; line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}
.soc svg { width: 17px; height: 17px; }
.soc:hover { background: var(--gold); color: var(--ink); }

/* today */
.today {
  max-width: 760px; margin: -26px auto 0; position: relative;
  background: #fffdf6; border: 1px solid #e8d7a8; border-radius: 18px;
  padding: 26px 22px 30px; text-align: center;
  box-shadow: 0 14px 40px rgba(14, 26, 58, 0.15);
}
.today h2 { margin: 0; font-size: 1rem; color: var(--gold); letter-spacing: 0.05em; }
.today .ur { font-size: clamp(1.35rem, 3.6vw, 1.9rem); line-height: 2.5; margin: 6px 0; color: var(--ink); }
.today .by { color: var(--muted); margin: 0; }
.today .meaning { color: var(--text); font-size: 0.98rem; background: #f7efd9; border-radius: 12px; padding: 8px 14px; }

/* blocks & cards */
.block { max-width: 1120px; margin: 0 auto; padding: 36px clamp(14px, 4vw, 30px) 10px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid #ead9ad; margin-bottom: 18px; }
.head h1, .head h2 { margin: 0; color: var(--ink); font-size: 1.5rem; }
.head a, .head span { color: #9a7428; text-decoration: none; font-size: 0.95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  position: relative; display: block; text-decoration: none;
  background: linear-gradient(180deg, var(--ink2), var(--ink));
  color: #f3ead0; border-radius: 16px; padding: 18px 18px 14px;
  border: 1px solid rgba(226, 176, 74, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14, 26, 58, 0.35); }
.card .tag { position: absolute; top: 12px; left: 14px; font-size: 0.75rem; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 0 10px; line-height: 1.9; }
.card h3 { margin: 6px 0 4px; padding-left: 52px; font-size: 1.12rem; color: var(--gold2); line-height: 2; }
.card .verse { margin: 0; font-size: 0.95rem; opacity: 0.9; line-height: 2.3; }
.card .by { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--gold); }

.poets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.poet { display: flex; flex-direction: column; align-items: center; text-decoration: none; background: #fffdf6; border: 1px solid #e8d7a8; border-radius: 14px; padding: 14px; text-align: center; }
.poet b { font-size: 1.15rem; color: var(--ink); }
.poet small { color: var(--muted); }
.poet i { font-style: normal; font-size: 0.8rem; color: #9a7428; }
.poet:hover { border-color: var(--gold); }

/* piece page */
.piece { max-width: 820px; margin: 0 auto; padding: 26px clamp(14px, 4vw, 26px) 10px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0; }
.crumbs a { color: #9a7428; text-decoration: none; }
.piece h1 { margin: 8px 0 0; font-size: clamp(1.6rem, 4.6vw, 2.4rem); color: var(--ink); line-height: 2; }
.piece .sub { color: var(--muted); margin: 0; text-align: right; }
.meta { color: var(--muted); font-size: 0.92rem; }
.meta a { color: #9a7428; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 16px 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.tools button, .share {
  font-family: var(--ur); font-size: 0.85rem; line-height: 1.9; cursor: pointer;
  border: 1px solid #d9c38a; background: #fffdf6; color: var(--ink);
  border-radius: 999px; padding: 2px 14px; text-decoration: none;
}
.share.wa { background: #25d366; color: #fff; border-color: #25d366; }
.tools button:hover, .share:hover { border-color: var(--ink); }
.sher {
  position: relative; background: #fffdf6; border: 1px solid #ecdcb2; border-radius: 16px;
  padding: 18px 20px 14px; margin-bottom: 16px;
}
.sher .num { position: absolute; top: 12px; left: 14px; font-family: var(--en); font-size: 0.8rem; color: #b18a3a; }
.sher .ur { font-size: clamp(1.25rem, 3.4vw, 1.65rem); line-height: 2.5; margin: 0; text-align: center; color: var(--ink); }
.roman { display: none; text-align: center; color: var(--muted); font-size: 0.95rem; margin: 4px 0; }
.show-roman .roman { display: block; }
.meaning { margin-top: 10px; background: #f7efd9; border-radius: 12px; padding: 10px 14px; font-size: 1rem; line-height: 2.6; }
.meaning b { color: #8a6420; font-weight: 600; margin-left: 4px; }
.meaning .roman b { margin-left: 0; margin-right: 4px; }
.meaning .roman { text-align: left; }
.credit { color: var(--muted); font-size: 0.9rem; text-align: center; }
.credit a { color: #9a7428; }

.poet-head { max-width: 820px; margin: 0 auto; padding: 32px 18px 0; text-align: center; }
.poet-head h1 { color: var(--ink); margin: 0; font-size: 2.2rem; }
.poet-head .sub { color: var(--muted); }
.roman-always { color: var(--muted); }
.poet-head .socials .soc { color: var(--ink); border-color: #d9c38a; }
.btn { display: inline-block; margin-top: 8px; background: var(--ink); color: var(--gold2); text-decoration: none; border-radius: 999px; padding: 4px 22px; }
.btn:hover { background: var(--ink2); }

/* footer */
.foot { margin-top: 50px; padding: 30px 16px; text-align: center; background: var(--ink); color: #d9cfb3; border-top: 3px double var(--gold); }
.foot p { margin: 10px 0 0; font-size: 0.92rem; }
.foot .small { font-size: 0.8rem; opacity: 0.75; }

@media (max-width: 560px) {
  .top nav a { font-size: 0.85rem; }
  .brand small { display: none; }
  .soc span { display: none; }
  .soc { padding: 8px; }
  .today { margin: -20px 10px 0; padding: 20px 14px 24px; }
  .today .ur, .sher .ur { font-size: 1.12rem; }
  .sher { padding: 16px 12px 12px; }
}
