/* ==== zaibthegeek.com styles: gold on near-black, like a filmi poster that learned CSS ==== */

/* the fonts arrive first class; the system font waits in economy until they land */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: optional; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: optional; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: optional; }

:root {
  --ink: #0b0a09;
  --ink-2: #15130f;
  --line: #2a261f;
  --paper: #f4efe6;
  --mute: #b9b0a1;
  --gold: #e2b866;
  --gold-deep: #c0913a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
  --wrap: min(1180px, calc(100% - 32px));
}

/* box-sizing for everyone, including the margins that thought they were special */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 17px/1.6 var(--sans); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 8vw, 104px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
[lang="ur"] { font-family: var(--urdu); line-height: 2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- masthead: three links and a name, the minimalism is load-bearing ---- */
.masthead { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: var(--wrap); margin: 0 auto; padding: 22px 0; }
.wordmark { font: 28px/1 var(--serif); text-decoration: none; color: var(--paper); }
.topnav { display: flex; gap: 6px; }
.topnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--paper); background: rgba(11, 10, 9, .45); }
.topnav a[aria-current="page"] { background: var(--paper); color: var(--ink); font-weight: 600; }

/* breadcrumbs sit under the masthead, padded down so they never wear it as a hat */
.crumbs { width: var(--wrap); margin: 0 auto; padding: 104px 0 0; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--mute); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* ---- hero: the 1600px still does the talking, the gradient holds its coat ---- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, .25) 0%, rgba(11, 10, 9, .15) 40%, rgba(11, 10, 9, .92) 85%, var(--ink) 100%); }
.hero-copy { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding: 0 0 56px; }
.kicker { font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero-line { max-width: 34em; font-size: clamp(17px, 2vw, 20px); color: #e9e2d4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(244, 239, 230, .5); color: var(--paper); }

/* ---- stats: three numbers, grid with three equal seats so nobody sits alone ---- */
.stats { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 28px 18px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 400 clamp(40px, 6vw, 72px)/1 var(--serif); color: var(--gold); }
.stats span { font-size: 15px; color: var(--mute); }

/* ---- latest release: copy on the left, the player gets the good side of the room ---- */
.latest { width: var(--wrap); margin: 0 auto; padding: 88px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.latest h2 span { display: block; font-size: .6em; color: var(--mute); }
.text-link { color: var(--gold); font-weight: 600; text-underline-offset: 4px; }

/* the player is a photo pretending to be YouTube until someone actually presses play */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink-2); }
.player-btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.player-btn img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(11, 10, 9, .6); border: 1px solid rgba(244, 239, 230, .7); }
.play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--paper); }
.player-btn:hover .play { background: var(--gold); border-color: var(--gold); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- song grid: repeat(3) because six is the number that splits without drama ---- */
.songs, .more { width: var(--wrap); margin: 0 auto; padding: 0 0 88px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.song-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.song-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.song-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.song-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px 2px; }
.song-title { font: 30px/1.1 var(--serif); }
.song-ur { color: var(--mute); font-size: 18px; }
.song-mood { margin-top: auto; padding: 4px 18px 18px; color: var(--mute); font-size: 14px; text-transform: capitalize; }
.song-card a:hover .song-title { color: var(--gold); }

/* ---- about teaser: a portrait tall enough to need its own lift ---- */
.about-teaser { width: var(--wrap); margin: 0 auto; padding: 0 0 96px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.about-teaser img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---- follow row: five platforms, one line, the flex gods are kind today ---- */
.follow-band { width: var(--wrap); margin: 0 auto; padding: 56px 0 96px; text-align: center; border-top: 1px solid var(--line); }
.follow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.follow a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 15px; color: var(--paper); background: var(--ink-2); }
.follow svg { width: 22px; height: 22px; flex: none; }
.follow a:hover { border-color: var(--gold); color: var(--gold); }

/* ---- page heads for the inner pages, the ones without a cinema still behind them ---- */
.page-head, .song-head { width: var(--wrap); margin: 0 auto; padding: 28px 0 32px; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: #e2dbcc; max-width: 40em; }
.h1-ur { display: block; text-align: left; font-size: .45em; color: var(--mute); margin-top: 6px; }

/* ---- music index: an ordered list, numbered by date, sorted by nobody's opinion ---- */
.song-list { list-style: none; width: var(--wrap); margin: 0 auto; padding: 0 0 96px; display: grid; gap: 18px; }
.song-list a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; text-decoration: none; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.song-list img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.sl-title { display: block; font: clamp(30px, 3.6vw, 46px)/1.05 var(--serif); }
.sl-title span { font-size: .55em; color: var(--mute); margin-left: 8px; }
.sl-tag { display: block; margin: 8px 0; color: #e2dbcc; }
.sl-facts { font-size: 14px; color: var(--mute); }
.song-list a:hover .sl-title { color: var(--gold); }

/* ---- song page: an article, because Google likes reading as much as we do ---- */
.song { width: var(--wrap); margin: 0 auto; }
.song > .player { margin: 0 auto 28px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 56px; }
.facts div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--ink-2); }
.facts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 4px 0 0; font-size: 18px; }
.story, .lyrics, .listen { max-width: 780px; margin: 0 auto 56px; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.stills img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
/* nastaliq needs headroom, the ascenders are basically skyscrapers */
.lyrics-body { padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); font-size: clamp(20px, 2.6vw, 26px); line-height: 2.3; text-align: right; }
.lyrics-body p { margin: 0 0 1.1em; }
.credit { margin-top: 14px; font-size: 15px; color: var(--mute); }
.listen-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.listen-row a { min-height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--gold-deep); text-decoration: none; font-weight: 600; color: var(--gold); }
.listen-row a:hover { background: var(--gold); color: var(--ink); }

/* ---- about page: words left, portrait right, both refusing to share a column ---- */
.about { width: var(--wrap); margin: 0 auto; padding: 0 0 96px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.about h1 { margin-top: 24px; }
.about h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.4em; }
.about-photo { margin: 24px 0 0; position: sticky; top: 24px; }
.about-photo img { border-radius: 16px; aspect-ratio: 9 / 14; object-fit: cover; width: 100%; }
.about .follow { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 32px; }

/* ---- links page: built for thumbs, because the thumb is the only finger Instagram trusts ---- */
.links { width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 80px; text-align: center; }
.links-face { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; margin: 8px auto 12px; border: 2px solid var(--gold); }
.links h1 { font-size: 48px; }
.links .follow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.link-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.link-list a { min-height: 74px; display: flex; flex-direction: column; justify-content: center; padding: 12px 22px; border-radius: 16px; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); text-align: left; }
.link-list li:first-child a { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.ll-t { font-weight: 600; font-size: 18px; }
.ll-s { font-size: 14px; opacity: .75; }

/* ---- prose pages: privacy, sitemap, and the 404 that hopes you never see it ---- */
.prose { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 96px; }
.prose h1 { font-size: clamp(40px, 6vw, 72px); }
.prose li { margin: 6px 0; }
.notfound { padding-top: 140px; }

/* ---- footer: where every link goes to retire ---- */
.foot { border-top: 1px solid var(--line); background: #080706; }
.foot-inner { width: var(--wrap); margin: 0 auto; padding: 56px 0 40px; }
.foot-name { font: 40px/1 var(--serif); margin-bottom: 8px; }
.foot-line { color: var(--mute); }
.follow-foot { margin: 22px 0 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--paper); text-decoration: none; }
.foot-small { margin-top: 18px; font-size: 14px; color: var(--mute); }

/* ---- tablets: the awkward teenage years of every layout ---- */
@media (max-width: 960px) {
  .latest, .about-teaser, .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photo { position: static; max-width: 420px; }
  .about-teaser picture { max-width: 380px; }
}

/* ---- phones: everything stacks, like plates after an Eid dinner ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead { padding: 14px 0; }
  .wordmark { font-size: 24px; }
  .topnav a { padding: 0 11px; font-size: 14px; }
  .hero { min-height: 88vh; }
  .hero-img { object-position: 62% 30%; }
  .hero-copy { padding-bottom: 36px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stats div { padding: 20px 6px; }
  .stats span { font-size: 13px; display: block; line-height: 1.35; }
  .latest { padding: 56px 0; }
  .song-grid { grid-template-columns: minmax(0, 1fr); }
  .song-list a { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .follow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .follow a { flex-direction: column; gap: 4px; min-height: 68px; font-size: 12px; line-height: 1.2; text-align: center; padding: 6px 2px; }
  .listen-row { grid-template-columns: minmax(0, 1fr); }
  .stills { grid-template-columns: minmax(0, 1fr); }
  .lyrics-body { padding: 20px 18px; }
  .crumbs { padding-top: 84px; }
}

/* sections below the fold skip the paint queue until someone scrolls their way */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
