@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/newsreader-latin-standard-normal-4b499f36.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader Variable'; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/assets/newsreader-latin-standard-italic-d2235591.woff2") format("woff2"); }
@font-face { font-family: 'Instrument Sans Variable'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/instrument-sans-latin-wght-normal-570a9648.woff2") format("woff2"); }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; src: url("/assets/amiri-arabic-400-normal-156eb7a1.woff2") format("woff2"); }
@font-face { font-family: 'Noto Nastaliq Urdu'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; src: url("/assets/noto-nastaliq-urdu-arabic-500-normal-4b42386f.woff2") format("woff2"); }

:root {
  --night: #0b1511;
  --pine: #14332a;
  --paper: #f4f6f1;
  --ink: #14241d;
  --gold: #e3b94b;
  --gold-deep: #6f520b;
  --on-night: #eef1ea;
  --muted-night: #a9b8ae;
  --muted-pine: #c4d1c8;
  --muted-paper: #4a5b52;
  --body-paper: #3c4c44;
  --rule-night: #5c7a6c;
  --rule-paper: #b8c4bb;
  --serif: 'Newsreader Variable', Georgia, serif;
  --sans: 'Instrument Sans Variable', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.tone-light { background: var(--paper); color: var(--ink); }
.tone-dark { background: var(--night); color: var(--on-night); }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; }
a:hover { color: var(--gold); }
.on-paper a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-paper :focus-visible { outline-color: var(--gold-deep); }
button { cursor: pointer; font: inherit; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.wrap-article { max-width: 760px; }
.split { display: flex; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 420px; min-width: 0; }
.sans { font-family: var(--sans); }

.masthead { background: var(--night); color: var(--on-night); }
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 20px; }
.brand { font-size: 22px; text-decoration: none; padding-block: 10px; }
.site-nav { display: flex; flex-wrap: wrap; margin-inline: -12px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.site-nav a { padding: 12px; text-decoration: none; }
.site-nav a[aria-current] { color: var(--gold); }

.page-title { font-size: clamp(56px, 7.4vw, 104px); line-height: 1; letter-spacing: -0.02em; }
.masthead-copy { padding-block: 56px 80px; }
.lede { margin-top: 20px; max-width: 640px; font-size: 24px; line-height: 1.4; font-weight: 300; }
.eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.on-paper .eyebrow { color: var(--gold-deep); }
.note { font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--muted-night); }
.on-paper .note, .caption { color: var(--muted-paper); }
.caption { margin-top: 10px; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.tone-dark .caption, .band-night .caption { color: var(--muted-night); }
.link { display: inline-block; padding-block: 12px; font-family: var(--sans); font-size: 16px; color: var(--gold); }
.on-paper .link { color: var(--gold-deep); }

.band-night { background: var(--night); color: var(--on-night); }
.band-pine { background: var(--pine); color: var(--on-night); }
.band-paper { background: var(--paper); color: var(--ink); }

/* Home */
.hero { padding-block: 48px 96px; gap: 48px 64px; }
.hero-name { font-size: clamp(60px, 8.4vw, 118px); line-height: 0.98; letter-spacing: -0.02em; }
.hero-rank { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; font-size: 24px; }
.urdu-word { font-family: 'Noto Nastaliq Urdu', serif; font-weight: 500; font-size: 34px; line-height: 2.1; color: var(--gold); }
.hero-quote { margin-top: 40px; max-width: 520px; font-size: 27px; line-height: 1.35; font-style: italic; font-weight: 300; }
.hero-photo { flex: 1 1 480px; min-width: 0; }
.hero-photo img { width: 100%; max-width: 700px; margin-left: auto; }
.hand { padding-block: 96px; gap: 48px 72px; }
.hand h2 { margin-top: 24px; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.16; }
.hand .link { margin-top: 20px; }
.hand-photo { flex: 1 1 480px; min-width: 0; }
.hand-photo img { width: 100%; }
.father { padding-block: 112px; display: flex; flex-wrap: wrap; gap: 48px 88px; }
.father figure { flex: 0 1 300px; }
.father figure img { width: 100%; }
.father-text { flex: 1 1 520px; min-width: 0; max-width: 760px; }
.father-text h2 { margin-top: 24px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.04; font-style: italic; }
.father-text p + p, .father-text h2 + p { margin-top: 28px; }
.father-links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.life { padding-bottom: 112px; }
.life-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; border-top: 1px solid var(--ink); padding-top: 24px; margin-bottom: 40px; }
.life-head h2 { font-size: 40px; line-height: 1.15; }
.life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px 24px; }
.life-grid img { width: 100%; height: 230px; object-fit: cover; object-position: top; }
.life-grid h3 { margin: 16px 0 6px; font-size: 26px; line-height: 1.2; }
.life-grid p { font-size: 18px; line-height: 1.45; }
.poem { padding-block: 112px; gap: 56px 96px; }
.poem-text { margin-top: 28px; font-size: 25px; line-height: 1.5; font-weight: 300; }
.poem-text p + p { margin-top: 1.5em; }
.poem .note { margin-top: 28px; }
.poem-photo { flex: 1 1 440px; min-width: 0; }
.poem-photo img { width: 100%; }
.explore { padding-block: 96px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; }
.explore a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 32px; padding-block: 26px; border-top: 1px solid var(--rule-night); text-decoration: none; }
.explore a:last-child { border-bottom: 1px solid var(--rule-night); }
.explore small { font-family: var(--sans); font-size: 17px; line-height: 1.4; color: var(--muted-pine); }
.verse { max-width: 1240px; margin-inline: auto; padding: 96px 24px 0; text-align: center; color: var(--on-night); }
.verse-ar { font-family: Amiri, serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.8; }
.verse-en { margin: 16px auto 0; max-width: 620px; font-style: italic; font-weight: 300; }
.verse .note { margin-top: 8px; }

.site-foot { background: var(--night); color: var(--muted-night); text-align: center; }
.foot-line { padding: 40px 24px; font-family: var(--sans); font-size: 15px; }
.verse + .foot-line { padding-top: 64px; padding-bottom: 72px; }

/* Biography */
.bio-mast { padding-block: 56px 88px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.bio-mast img { width: 180px; }
.bio-mast .note { margin-top: 24px; font-size: 17px; }
.bio { max-width: 1040px; margin-inline: auto; padding: 88px 24px 112px; font-size: 21px; line-height: 1.65; }
.chapter { max-width: 700px; }
.chapter + .chapter, .chapter.with-prints + .chapter { margin-top: 80px; }
.chapter.with-prints { max-width: none; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 700px; }
.chapter h2 { margin-bottom: 20px; font-size: 40px; line-height: 1.15; }
.chapter p + p { margin-top: 22px; }
.prints { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 16px; }
.prints figcaption { margin-top: 8px; max-width: 200px; font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--muted-paper); }
.bio blockquote { margin: 88px 0; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; font-style: italic; color: var(--pine); }
.closing { max-width: 1040px; margin-inline: auto; padding: 96px 24px; }
.closing-line { max-width: 860px; font-size: clamp(32px, 4vw, 52px); line-height: 1.18; font-weight: 300; }
.closing p + p { margin-top: 32px; max-width: 700px; }
.closing .note { margin-top: 24px; color: var(--muted-pine); }

/* Articles */
.article-index { padding-block: 88px 120px; display: flex; flex-direction: column; gap: 80px; }
.article-group { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.article-group h2 { flex: 1 1 240px; font-size: 34px; line-height: 1.15; }
.article-list { flex: 999 1 640px; min-width: 0; }
.article-list a { display: block; padding-block: 24px; border-top: 1px solid var(--rule-paper); text-decoration: none; }
.article-list a:first-child { border-top-color: var(--ink); }
.article-list h3 { font-size: 32px; line-height: 1.2; }
.article-list p { margin-top: 8px; color: var(--body-paper); line-height: 1.55; }
.article-head { padding-block: 56px 80px; }
.article-head h1 { margin-top: 12px; font-size: clamp(52px, 7vw, 92px); line-height: 1; letter-spacing: -0.02em; }
.article-head .sub { margin-top: 24px; font-size: 22px; line-height: 1.4; font-weight: 300; }
.article-head .note { margin-top: 16px; }
.article-body { max-width: 680px; margin-inline: auto; padding: 80px 24px 112px; font-size: 22px; line-height: 1.65; overflow-wrap: break-word; }
.article-body p + p { margin-top: 24px; }
.article-body blockquote { margin-block: 48px; font-size: 28px; line-height: 1.35; font-style: italic; font-weight: 300; color: var(--pine); }
.scans { display: flex; flex-direction: column; gap: 32px; }
.next-article { display: block; max-width: 680px; margin-inline: auto; padding: 56px 24px; text-decoration: none; }
.next-article span { display: block; margin-top: 8px; font-size: 40px; line-height: 1.15; }

/* Diary */
.diary { padding-block: 56px 112px; }
.diary-page { margin-top: 64px; }
.diary-page img { width: 100%; max-width: 1040px; margin-inline: auto; }
.diary-controls, .diary-thumbs, .diary-close { max-width: 1040px; margin-inline: auto; }
.diary-controls { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 16px; }
.btn { min-height: 44px; padding: 0 22px; background: transparent; color: var(--on-night); border: 1px solid var(--rule-night); }
.btn-gold { background: var(--gold); color: var(--night); border-color: var(--gold); font-weight: 600; }
.diary-thumbs { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.diary-thumbs a { display: block; border: 2px solid transparent; }
.diary-thumbs a[aria-current] { border-color: var(--gold); }
.diary-thumbs img { width: 100%; height: 72px; object-fit: cover; }
.diary-close { margin-top: 104px; border-top: 1px solid var(--rule-night); padding-top: 40px; }
.diary-close p:first-child { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.12; }
.diary-close .note { margin-top: 20px; }

/* Photos */
.tabs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--sans); font-size: 16px; font-weight: 500; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--gold); text-decoration: none; }
.tabs a[aria-current] { background: var(--gold); color: var(--night); }
.photos { padding-block: 64px 112px; }
.masonry { columns: 3 300px; column-gap: 24px; }
.masonry figure { break-inside: avoid; margin-bottom: 28px; }
.masonry img { width: 100%; }
.masonry figcaption { margin-top: 8px; font-size: 18px; line-height: 1.35; font-style: italic; color: var(--body-paper); }
.featured { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto 64px; }
.featured img { width: 100%; }
.featured figcaption { margin-top: 8px; font-size: 18px; font-style: italic; color: var(--body-paper); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.photo-grid img { width: 100%; }

/* Videos */
.videos { padding-block: 56px 112px; }
.player { margin-top: 48px; width: 100%; max-height: 620px; aspect-ratio: 16 / 9; background: var(--pine); }
.player-title { margin-top: 20px; font-size: 36px; line-height: 1.2; }
.film-list { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 0 40px; }
.film-list a { display: flex; align-items: center; gap: 20px; padding-block: 14px; border-top: 1px solid var(--rule-night); text-decoration: none; font-size: 23px; line-height: 1.25; }
.film-list a[aria-current] { color: var(--gold); }
.film-list img { width: 120px; height: 80px; flex: none; object-fit: cover; }

/* Thoughts */
.thoughts { padding-block: 80px 112px; display: flex; flex-wrap: wrap; gap: 64px 96px; align-items: flex-start; font-size: 21px; line-height: 1.55; }
.thought-form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-family: var(--sans); font-size: 16px; }
.thought-form label { display: block; margin-bottom: 6px; font-weight: 500; }
.thought-form input, .thought-form textarea { width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #5f7066; color: var(--ink); }
.thought-form input { min-height: 48px; font: inherit; }
.thought-form textarea { font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.thought-form button { align-self: flex-start; min-height: 48px; padding: 0 28px; background: var(--pine); color: #fff; border: none; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.status { padding: 14px 16px; background: var(--pine); color: var(--on-night); line-height: 1.45; }
.status-error { background: #7a1f1f; color: #fff; }
.thought-list { flex: 999 1 560px; min-width: 0; }
.thought { padding-block: 28px; border-top: 1px solid var(--rule-paper); }
.thought:first-child { border-top-color: var(--ink); }
.thought-text { white-space: pre-line; overflow-wrap: anywhere; }
.thought-text.script-arabic { font-family: 'Noto Nastaliq Urdu', var(--serif); font-weight: 500; font-size: 20px; line-height: 2.3; }
.thought .caption { margin-top: 10px; }

/* Admin */
.admin { padding-block: 56px 112px; font-size: 19px; }
.admin h2 { margin: 48px 0 8px; font-size: 32px; }
.admin-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.admin-actions button { min-height: 44px; padding: 0 20px; font-family: var(--sans); font-size: 15px; background: #fff; border: 1px solid #5f7066; color: var(--ink); }
.admin-actions .approve { background: var(--pine); color: #fff; border-color: var(--pine); }

.not-found { padding-block: 96px; }
