/* =====================================================================
 * KitabiHub — editorial design system
 * Aged-manuscript palette, Cormorant + Amiri + Inter typography pairing.
 * ===================================================================== */

:root {
  /* Palette — aged manuscript paper, walnut ink, gold leaf */
  --paper:        #f3e8cf;
  --paper-2:      #ede0c0;
  --cream:        #faf3df;
  --cream-2:      #f5ecd2;
  --ink:          #1d130a;
  --ink-soft:     #4a3622;
  --ink-mute:     #6e5638;
  --umber:        #3a2515;
  --umber-2:      #5a3820;
  --amber:        #a85f1e;
  --amber-2:      #c97a2b;
  --amber-soft:   #d99a4d;
  --gold:         #b58a3a;
  --gold-soft:    #d8b76a;
  --crimson:      #7a1e1e;
  --crimson-soft: #a73a2c;
  --line:         #d0bd8c;
  --line-soft:    #e1d3a8;
  --shadow:       0 1px 0 rgba(58,37,21,0.06), 0 22px 48px -28px rgba(58,37,21,0.32);

  --serif:    'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display:  'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --arabic:   'Amiri', 'Scheherazade New', 'Times New Roman', serif;
  --body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(181,138,58,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 90%, rgba(122,30,30,0.06), transparent 70%),
    repeating-linear-gradient(0deg, rgba(58,37,21,0.012) 0 2px, transparent 2px 4px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--umber-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--crimson); }
::selection { background: var(--gold-soft); color: var(--ink); }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }
h4 { font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
p { margin: 0 0 1.05em; }
em { font-family: var(--display); font-style: italic; }
strong { font-weight: 600; color: var(--ink); }
.serif { font-family: var(--serif); }
.arabic { font-family: var(--arabic); direction: rtl; unicode-bidi: isolate; }

/* Eyebrow & decorative dividers */
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); font-weight: 600;
}
.divider-orn {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0; color: var(--gold); font-family: var(--display);
}
.divider-orn::before, .divider-orn::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}
.divider-orn span { font-size: 18px; letter-spacing: .35em; color: var(--gold); }
.divider-arabic { text-align: center; font-family: var(--arabic); font-size: 24px; color: var(--gold); margin: 26px 0; letter-spacing: .25em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(58,37,21,0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--umber) 0%, var(--amber) 110%);
  color: var(--cream);
  font-family: var(--arabic); font-size: 28px; font-weight: 700;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 14px -6px rgba(58,37,21,0.5);
}
.brand-name {
  font-family: var(--display); font-size: 24px; letter-spacing: .01em;
  font-weight: 600;
}
.brand-name::after {
  content: ""; display: block; width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  margin-top: 2px;
}
.primary-nav { display: flex; gap: 26px; align-items: center; }
.primary-nav a {
  font-family: var(--body); color: var(--ink-soft); font-size: 14.5px;
  font-weight: 500; letter-spacing: .01em;
  position: relative; padding: 6px 0;
}
.primary-nav a:hover { color: var(--crimson); }
.primary-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--crimson);
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 14px; padding: 14px 18px; }
  .primary-nav { width: 100%; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
  .primary-nav a { font-size: 13.5px; }
}

/* AdSense slot */
.adslot {
  border: 1px dashed var(--line); border-radius: 6px;
  padding: 16px; text-align: center;
  font-family: var(--body); font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mute); background: rgba(255,255,255,0.25);
  margin: 22px 0;
}

/* =====================================================================
 * Magazine homepage
 * ===================================================================== */

.mag-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1000px 460px at 78% 110%, rgba(181,138,58,0.30), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.mag-hero::before {
  content: "بسم الله";
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--arabic); color: var(--gold); opacity: .35;
  font-size: 28px; letter-spacing: .2em; pointer-events: none;
}
.mag-hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 60px; align-items: center;
  padding: 82px 28px 64px;
}
@media (max-width: 920px) {
  .mag-hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 18px 36px; }
}
.mag-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.025em;
  margin: 14px 0 22px;
}
.mag-hero h1 em {
  font-style: italic; color: var(--crimson); font-family: var(--display);
}
.mag-hero h1 .ar {
  display: block; font-family: var(--arabic);
  color: var(--amber); font-size: .55em; font-weight: 400;
  margin-top: 8px; letter-spacing: .04em; direction: rtl;
}
.mag-hero .lead {
  font-family: var(--serif); font-size: 22px; line-height: 1.55;
  color: var(--ink-soft); max-width: 580px;
  font-weight: 400;
}
.mag-hero .lead .dropcap {
  float: left; font-family: var(--display); font-weight: 700;
  font-size: 64px; line-height: .85; padding: 6px 12px 0 0;
  color: var(--crimson);
}
.mag-hero-meta {
  display: flex; gap: 22px; margin-top: 26px;
  font-family: var(--body); font-size: 12.5px; color: var(--ink-mute);
  letter-spacing: .14em; text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.mag-hero-meta strong { color: var(--amber); font-weight: 600; }

.hero-art {
  position: relative;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.hero-art img { aspect-ratio: 4/5; object-fit: cover; }
.hero-art::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(181,138,58,0.4);
  pointer-events: none;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 500; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--crimson); border-color: var(--crimson); color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* Section headings */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
  padding-bottom: 18px; border-bottom: 2px solid var(--ink);
  position: relative;
}
.section-head::before {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 80px; height: 2px; background: var(--crimson);
}
.section-head h2 {
  font-family: var(--display); margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
}
.section-head .ar {
  display: block; font-family: var(--arabic); color: var(--amber);
  font-size: 20px; margin-bottom: 4px; direction: rtl;
}
.section-head p { color: var(--ink-soft); margin: 6px 0 0; font-family: var(--serif); font-size: 17px; }
.more {
  font-family: var(--body); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--crimson); white-space: nowrap;
  font-weight: 600;
}

/* Magazine feature row — large featured + sidebar list */
.feature-row {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 920px) { .feature-row { grid-template-columns: 1fr; gap: 32px; } }
.feature-card {
  border-top: 4px solid var(--ink);
  padding-top: 22px;
}
.feature-card .eyebrow { color: var(--crimson); }
.feature-card h3 {
  font-family: var(--display); font-size: clamp(28px, 3vw, 38px);
  font-weight: 600; line-height: 1.1; margin: 8px 0 16px;
  letter-spacing: -0.015em;
}
.feature-card h3 a { color: var(--ink); }
.feature-card h3 a:hover { color: var(--crimson); }
.feature-card .by { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-bottom: 18px; font-size: 17px; }
.feature-card .excerpt { font-family: var(--serif); font-size: 17.5px; color: var(--ink-soft); line-height: 1.6; }
.feature-card-cover {
  position: relative; margin-bottom: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--paper-2), var(--cream));
}
.feature-card-cover img { aspect-ratio: 16/9; object-fit: cover; }

.sidebar-list { display: flex; flex-direction: column; gap: 22px; }
.sidebar-item {
  display: flex; gap: 16px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.sidebar-item:last-child { border-bottom: 0; }
.sidebar-item-num {
  font-family: var(--display); font-size: 36px; font-weight: 600;
  color: var(--gold-soft); line-height: 1; min-width: 36px;
}
.sidebar-item h4 {
  font-family: var(--display); font-size: 18px; font-weight: 600;
  text-transform: none; letter-spacing: -0.01em;
  color: var(--ink); margin: 2px 0 6px; line-height: 1.25;
}
.sidebar-item h4 a { color: var(--ink); }
.sidebar-item h4 a:hover { color: var(--crimson); }
.sidebar-item .by { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 14.5px; }

/* Book grid — magazine-style cards */
.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px 24px;
}
.book-card {
  display: flex; flex-direction: column; gap: 12px;
  color: var(--ink); transition: transform .15s;
}
.book-card:hover { transform: translateY(-3px); color: var(--ink); }
.book-cover {
  position: relative;
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--cream) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.book-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(58,37,21,.18) 0%, transparent 6%, transparent 94%, rgba(58,37,21,.12) 100%);
  pointer-events: none;
}
.book-cover img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.book-card:hover .book-cover { box-shadow: 0 1px 0 rgba(58,37,21,0.06), 0 28px 56px -22px rgba(58,37,21,0.45); }
.book-meta { padding: 0 2px; }
.book-title {
  font-family: var(--display); font-size: 17px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.book-author { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-soft); }

/* Category cards — magazine palette */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cat-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 22px 20px;
  background: var(--cream);
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  min-height: 110px;
  font-family: var(--display); font-size: 19px; color: var(--ink);
  transition: all .15s;
  letter-spacing: -0.005em;
}
.cat-card:hover {
  border-left-color: var(--crimson); color: var(--crimson);
  background: #fff8e7;
}
.cat-card .count {
  font-family: var(--body); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 12px;
  font-weight: 500;
}

/* Index grid (authors, etc) */
.index-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0; border-top: 1px solid var(--line);
}
.index-grid > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 18px; color: var(--ink);
}
.index-grid > a:hover { color: var(--crimson); background: rgba(217,154,77,0.06); padding-left: 10px; }
.index-grid > a .count {
  font-family: var(--body); font-size: 12px; color: var(--ink-mute);
  letter-spacing: .12em; text-transform: uppercase;
}

/* Author page — masthead */
.author-masthead {
  padding: 56px 0 36px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 36px;
  position: relative;
}
.author-masthead .ar {
  font-family: var(--arabic); font-size: 44px; color: var(--amber);
  margin: 0 0 6px; letter-spacing: .03em; direction: rtl;
}
.author-masthead h1 {
  font-family: var(--display); font-size: clamp(40px, 5vw, 64px);
  font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em;
}
.author-meta {
  font-family: var(--body); font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; gap: 22px;
}
.author-meta strong { color: var(--amber); font-weight: 600; letter-spacing: .14em; }
.author-short {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink-soft);
  margin: 22px 0 0; max-width: 760px; line-height: 1.5;
}

/* Long-form article — bio, genre body, era body, list intro */
.longform {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.7;
  color: var(--ink); max-width: 760px;
}
.longform p { margin: 0 0 1.1em; }
.longform p:first-child::first-letter {
  float: left; font-family: var(--display); font-weight: 700;
  font-size: 72px; line-height: .85; padding: 10px 14px 0 0;
  color: var(--crimson);
}
.longform a { color: var(--crimson); border-bottom: 1px dotted var(--crimson-soft); }
.longform a:hover { border-bottom-style: solid; }
.longform em { font-style: italic; color: var(--umber); }

/* Sidebar layout for author / genre / era */
.with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 980px) { .with-sidebar { grid-template-columns: 1fr; gap: 36px; } }

.side-block {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
  margin-bottom: 26px;
}
.side-block h4 {
  font-family: var(--display); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--crimson); margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.side-block ul { list-style: none; padding: 0; margin: 0; }
.side-block ul li {
  padding: 8px 0; border-bottom: 1px dotted var(--line-soft);
  font-family: var(--serif); font-size: 16px;
}
.side-block ul li:last-child { border-bottom: 0; }
.side-block .work-year {
  font-family: var(--body); font-size: 12px; color: var(--ink-mute);
  letter-spacing: .08em; margin-left: 8px;
}

/* Pull quote */
.pullquote {
  border-left: 4px solid var(--crimson);
  padding: 8px 0 8px 22px; margin: 28px 0;
  font-family: var(--display); font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--umber);
}

/* Works list */
.works-list { list-style: none; padding: 0; margin: 0; }
.works-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 17.5px;
}
.works-list .yr {
  font-family: var(--body); font-size: 12px; color: var(--amber);
  letter-spacing: .12em; min-width: 56px;
}
.works-list .title { color: var(--ink); font-style: italic; }

/* Themes pills */
.themes { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.theme-pill {
  display: inline-block; padding: 6px 14px;
  background: var(--paper-2); color: var(--umber);
  border: 1px solid var(--line);
  font-family: var(--body); font-size: 12.5px; letter-spacing: .04em;
}

/* Book detail */
.detail {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  padding: 36px 0 56px; align-items: start;
}
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 28px; } }
.detail .cover {
  position: sticky; top: 100px;
  border: 1px solid var(--line); background: var(--cream);
  padding: 14px;
  box-shadow: var(--shadow);
}
.detail .cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.detail h1 {
  font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600; margin: 0 0 10px; line-height: 1.1; letter-spacing: -0.02em;
}
.detail .byline {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--ink-soft); margin: 0 0 18px;
}
.detail .byline a { color: var(--crimson); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tag {
  display: inline-block; padding: 4px 12px;
  background: transparent; color: var(--umber);
  border: 1px solid var(--line);
  font-family: var(--body); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase;
}
.tag:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 24px; }
.description { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink); margin: 24px 0; max-width: 720px; }
.description p { margin: 0 0 1.1em; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; margin: 28px 0;
  border: 1px solid var(--line); background: var(--cream);
}
.facts > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.facts > div:last-child { border-right: 0; }
.fact-label {
  font-family: var(--body); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px;
  font-weight: 600;
}
.fact-value { font-family: var(--display); font-size: 18px; color: var(--ink); font-weight: 500; }

/* Crumbs */
.crumbs {
  font-family: var(--body); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 22px 0 0;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--crimson); }

/* Pagination */
.paginator {
  display: flex; gap: 8px; justify-content: center; margin: 36px 0;
  font-family: var(--body); font-size: 14px;
}
.paginator a, .paginator span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line);
  color: var(--ink-soft); background: var(--cream);
}
.paginator .current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Reading list cards */
.list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.list-card {
  background: var(--cream); border: 1px solid var(--line);
  padding: 26px 26px 22px;
  border-top: 4px solid var(--crimson);
  display: block; color: var(--ink);
  transition: transform .15s;
}
.list-card:hover { transform: translateY(-3px); color: var(--ink); }
.list-card .eyebrow { color: var(--crimson); }
.list-card h3 {
  font-family: var(--display); font-size: 24px; margin: 8px 0 8px;
  font-weight: 600; letter-spacing: -0.01em;
}
.list-card p { font-family: var(--serif); color: var(--ink-soft); margin: 0; font-size: 15.5px; }

/* List item styling on /list/{slug} */
.list-item {
  display: grid; grid-template-columns: 50px 120px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.list-item:last-child { border-bottom: 0; }
.list-item-num {
  font-family: var(--display); font-size: 56px; font-weight: 600;
  line-height: .9; color: var(--gold-soft);
}
.list-item-cover { border: 1px solid var(--line); background: var(--cream); }
.list-item-cover img { aspect-ratio: 2/3; object-fit: cover; }
.list-item h3 {
  font-family: var(--display); font-size: 24px; margin: 0 0 4px;
  font-weight: 600; letter-spacing: -0.01em;
}
.list-item h3 a { color: var(--ink); }
.list-item h3 a:hover { color: var(--crimson); }
.list-item .by { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 0 0 8px; font-size: 16px; }
.list-item .why { font-family: var(--serif); font-size: 16.5px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 720px) { .list-item { grid-template-columns: 80px 1fr; }
  .list-item-num { display: none; } }

/* Related Resources / PBN block */
.further-reading {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 22px 22px 16px;
  margin: 0 0 28px;
}
.further-reading h4 {
  font-family: var(--display); font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 6px; font-weight: 600;
}
.further-reading .subtitle {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--ink-mute); margin: 0 0 14px;
  padding-bottom: 12px; border-bottom: 1px dotted var(--line);
}
.further-reading ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: fr;
}
.further-reading ol li {
  counter-increment: fr;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line-soft);
  font-family: var(--serif); font-size: 15.5px;
  display: flex; gap: 12px; align-items: baseline;
}
.further-reading ol li:last-child { border-bottom: 0; }
.further-reading ol li::before {
  content: counter(fr, decimal-leading-zero);
  font-family: var(--body); font-size: 11px; color: var(--gold);
  letter-spacing: .1em; min-width: 22px;
}
.further-reading ol li a {
  color: var(--umber-2); border-bottom: 1px dotted var(--line);
  flex: 1;
}
.further-reading ol li a:hover { color: var(--crimson); border-bottom-color: var(--crimson-soft); }
.further-reading .source {
  display: block; font-family: var(--body); font-size: 11px;
  color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase;
  margin-top: 2px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--umber) 0%, #2a1a0d 100%);
  color: #d8c8a8;
  margin-top: 80px;
  padding: 56px 0 24px;
  border-top: 4px solid var(--gold);
}
.site-footer .brand-name { color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-tag { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: #c8b89a; max-width: 380px; }
.site-footer h4 {
  font-family: var(--display); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-soft); margin: 0 0 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul li a { color: #d8c8a8; font-family: var(--body); font-size: 14px; }
.site-footer ul li a:hover { color: var(--gold-soft); }
.footer-base {
  border-top: 1px solid #4a3422;
  padding-top: 18px; color: #a89572;
  font-family: var(--body); font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-base .ar {
  font-family: var(--arabic); color: var(--gold-soft); letter-spacing: .15em;
}

/* Static page (about, etc) */
.static-page { padding: 56px 0; }
.static-page h1 {
  font-family: var(--display); font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600; margin: 0 0 24px; letter-spacing: -0.02em;
}
.static-page .lead {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink-soft); max-width: 720px;
  line-height: 1.5; margin-bottom: 32px;
}
.static-page .longform { max-width: 720px; }

/* Library page */
.library-head {
  padding: 48px 0 24px; border-bottom: 2px solid var(--ink); margin-bottom: 32px;
}
.library-head h1 { margin: 0 0 8px; }
.library-head p { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 0; font-size: 18px; }
