/* ==========================================================================
   MONOLITH · design system
   --------------------------------------------------------------------------
   Voice     Swiss International editorial. One sans (Archivo, wght 100-900),
             Noto Naskh Arabic for Arabic only (full Uthmani mark coverage). Off-white / off-black, one signal red.
   Grid      12 columns, fluid gutter, outer margin clamp(16px, 4vw, 64px).
             Mobile collapses every span to full width; asymmetry from 56rem.
   Type      Display: wght 780, tracking -0.055em, leading 0.86.
             Text:    wght 400, 1.0625-1.1875rem, leading 1.55, measure 64ch.
             Labels:  wght 600, 0.75rem caps, tracking 0.08em, tabular nums.
   Rhythm    8px base (--s-*). Text leading is a multiple of 4px at base size.
   Rules     Hairlines are structural: 1px for rows, 3px ink bar opens a part.
   Radius    0. Everywhere. No shadows.
   Accent    Red is used for: the hero period, primary action, current nav,
             link hover, quote marks, focus ring. Nothing else.
   Motion    Opacity/transform reveals of section heads only; off under
             prefers-reduced-motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f2f1ec;
  --ink: #0e0e0d;
  --red-l: #d4231a;   /* 4.58:1 on paper, white on it 5.18:1 */
  --red-d: #ff4b3e;   /* 5.82:1 on ink */

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5f5e59;   /* 5.75:1 */
  --rule: rgba(14, 14, 13, .16);
  --tint: rgba(14, 14, 13, .045);
  --accent: var(--red-l);
  --on-accent: #fff;

  /* inverse band values (dark band in light mode) */
  --inv-bg: var(--ink);
  --inv-fg: #ecebe5;
  --inv-muted: #9a9993;
  --inv-rule: rgba(236, 235, 229, .2);
  --inv-tint: rgba(236, 235, 229, .06);
  --inv-accent: var(--red-d);
  --inv-on-accent: var(--ink);

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", serif;

  --t-label: .75rem;
  --t-sm: .875rem;
  --t-base: clamp(1.0625rem, .35vw + .98rem, 1.1875rem);
  --t-md: clamp(1.25rem, .9vw + 1rem, 1.625rem);
  --t-lg: clamp(1.75rem, 2vw + 1.1rem, 2.75rem);
  --t-xl: clamp(2.5rem, 5vw + .75rem, 5.75rem);
  --t-hero: clamp(4.25rem, 25vw, 15.5rem);

  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4.5rem; --s-7: 7rem;
  --section: clamp(4.5rem, 9vw, 9rem);

  --margin: clamp(1rem, 4vw, 4rem);
  --gutter: clamp(1rem, 1.6vw, 1.5rem);
  --max: 1680px;
  --radius: 0;
  --measure: 64ch;
  --head-h: 4rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0d; --fg: #ecebe5; --muted: #9a9993;
    --rule: rgba(236, 235, 229, .17); --tint: rgba(236, 235, 229, .05);
    --accent: var(--red-d); --on-accent: var(--ink);
    --inv-bg: #ecebe5; --inv-fg: var(--ink); --inv-muted: #5f5e59;
    --inv-rule: rgba(14, 14, 13, .18); --inv-tint: rgba(14, 14, 13, .05);
    --inv-accent: #c8211a; --inv-on-accent: #fff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e0d; --fg: #ecebe5; --muted: #9a9993;
  --rule: rgba(236, 235, 229, .17); --tint: rgba(236, 235, 229, .05);
  --accent: var(--red-d); --on-accent: var(--ink);
  --inv-bg: #ecebe5; --inv-fg: var(--ink); --inv-muted: #5f5e59;
  --inv-rule: rgba(14, 14, 13, .18); --inv-tint: rgba(14, 14, 13, .05);
  --inv-accent: #c8211a; --inv-on-accent: #fff;
  color-scheme: dark;
}

/* Inverse band: swaps the semantic tokens for one section */
.inverse {
  --bg: var(--inv-bg); --fg: var(--inv-fg); --muted: var(--inv-muted);
  --rule: var(--inv-rule); --tint: var(--inv-tint);
  --accent: var(--inv-accent); --on-accent: var(--inv-on-accent);
  background: var(--bg); color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--t-base)/1.55 var(--sans);
  font-kerning: normal; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  hanging-punctuation: first allow-end last;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 720; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
p, figure, blockquote { margin: 0; }
.nw { white-space: nowrap; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[lang="ar"] { font-family: var(--arabic); line-height: 2.1; font-weight: 400; letter-spacing: 0; word-spacing: .06em; hanging-punctuation: none; }

.skip {
  position: absolute; inset-inline-start: var(--margin); top: .5rem; z-index: 50;
  padding: .75rem 1rem; background: var(--fg); color: var(--bg);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding-block: var(--section); }
.bar { border-top: 3px solid var(--fg); }            /* opens a major part */
.hair { border-top: 1px solid var(--rule); }

/* Small caps-style label: the only "eyebrow" voice */
.label {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1.4; color: var(--muted);
}
.muted { color: var(--muted); }

/* Section head: h2 + optional aside, aligned on the grid */
.shead { row-gap: var(--s-3); padding-top: var(--s-2); margin-bottom: var(--s-6); }
.shead h2 { font-size: var(--t-xl); letter-spacing: -.05em; line-height: .92; font-weight: 760; }
.shead .aside { align-self: end; color: var(--muted); max-width: 40ch; }
@media (min-width: 56rem) {
  .shead h2 { grid-column: 1 / 9; }
  .shead .aside { grid-column: 9 / -1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 3rem;
  padding: .75rem 1.25rem; border: 1px solid var(--fg); border-radius: var(--radius);
  background: transparent; color: var(--fg); font: 600 1rem/1.2 var(--sans);
  letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn .arr { font-weight: 400; }
.btn--sm { min-height: 2.75rem; padding: .5rem .9rem; font-size: var(--t-sm); }

/* Text link with arrow, used for "more" actions */
.more { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--fg); background: var(--bg); position: relative; z-index: 10; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-3); min-height: var(--head-h); }
.mark {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; margin-inline-end: auto;
  font-weight: 760; font-size: 1.125rem; letter-spacing: -.035em; text-decoration: none;
}
.mark::before { content: ""; inline-size: .8em; block-size: .8em; background: var(--accent); }
.mark:hover { color: var(--fg); }
.nav { display: flex; gap: var(--s-3); order: 3; flex-basis: 100%; border-top: 1px solid var(--rule); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; font-size: .9375rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn, .exit {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 .75rem;
  border: 1px solid var(--rule); background: transparent; color: var(--fg);
  font: 600 .8125rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; border-radius: var(--radius);
}
.icon-btn:hover { border-color: var(--fg); color: var(--fg); }
.icon-btn svg { width: 1rem; height: 1rem; }
.exit { position: fixed; z-index: 40; inset-inline-end: var(--margin); bottom: 1rem; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.exit:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.exit kbd { font: inherit; font-weight: 500; opacity: .7; }
@media (min-width: 48rem) {
  .nav { order: 0; flex-basis: auto; border: 0; margin-inline-end: var(--s-3); }
}
@media (max-width: 30rem) { .exit kbd { display: none; } }

/* ---------- Hero ---------- */
.hero { min-height: clamp(32rem, calc(100dvh - var(--head-h)), 60rem); display: flex; flex-direction: column; padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--s-4); }
.hero h1 {
  flex: 1; font-size: var(--t-hero); font-weight: 780; letter-spacing: -.062em; line-height: .84;
  margin-inline-start: -.06em; padding-bottom: var(--s-5); max-width: 9ch;
}
.hero h1 .dot { color: var(--accent); }
.hero-foot { row-gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--fg); align-items: start; }
.hero-foot p { font-size: var(--t-md); line-height: 1.35; letter-spacing: -.012em; max-width: 30ch; }
.hero-foot .ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56rem) {
  .hero h1 { max-width: none; }
  .hero-foot p { grid-column: 1 / 7; }
  .hero-foot .ctas { grid-column: 8 / -1; justify-content: flex-end; }
}

/* ---------- YouTube facade ---------- */
.yt, .yt-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; color: #fff; text-decoration: none; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); }
.yt-play {
  position: absolute; z-index: 1; inset-inline-start: 0; bottom: 0;
  display: grid; place-items: center; width: clamp(3.5rem, 7vw, 5.5rem); aspect-ratio: 1;
  background: var(--red-l); transition: transform .2s ease;
}
.yt-play::before { content: ""; border-style: solid; border-width: .7em 0 .7em 1.15em; border-color: transparent transparent transparent #fff; margin-inline-start: .25em; font-size: clamp(.8rem, 1.3vw, 1.1rem); }
.yt:hover .yt-play, .yt:focus-visible .yt-play { transform: scale(1.06); transform-origin: bottom left; }
.yt:hover { color: #fff; }
.yt-cap { position: absolute; z-index: 1; inset-inline: clamp(4.5rem, 8.5vw, 7rem) 1rem; bottom: .9rem; display: grid; gap: .15rem; }
.yt-cap b { font-weight: 650; font-size: clamp(.9375rem, 1.2vw, 1.25rem); letter-spacing: -.015em; line-height: 1.2; }
.yt-cap span { font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Thumbnails: monochrome plates; colour returns on hover or focus */
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
a:hover .thumb img, a:focus-visible .thumb img { filter: none; }

/* ---------- Home: featured debunk ---------- */
.feature { row-gap: var(--s-4); }
.feature .text { display: flex; flex-direction: column; gap: var(--s-3); }
.feature h2 { font-size: var(--t-lg); letter-spacing: -.04em; line-height: 1; }
.feature h2 a { text-decoration: none; }
.feature .dek { color: var(--muted); max-width: 40ch; }
.feature .facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding-top: var(--s-2); border-top: 1px solid var(--rule); }
@media (min-width: 56rem) {
  .feature .text { grid-column: 1 / 5; grid-row: 1; }
  .feature .media { grid-column: 5 / -1; grid-row: 1; }
}

/* ---------- Home: pillars (ruled index rows, unequal) ---------- */
.lead { font-size: var(--t-md); line-height: 1.4; letter-spacing: -.012em; max-width: 34ch; }
.pillars { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.pillar { row-gap: var(--s-2); padding-block: var(--s-4) var(--s-5); border-top: 1px solid var(--fg); }
.pillar h3 { font-size: var(--t-lg); letter-spacing: -.045em; line-height: .98; }
.pillar p { color: var(--muted); max-width: 46ch; }
.pillar:last-child { border-bottom: 1px solid var(--fg); }
@media (min-width: 56rem) {
  .pillars-intro .lead { grid-column: 5 / 12; }
  .pillar h3 { grid-column: 1 / 7; }
  .pillar p { grid-column: 8 / 12; padding-top: .4rem; }
  .pillar:nth-child(2) h3 { grid-column: 3 / 9; }
  .pillar:nth-child(2) p { grid-column: 9 / -1; }
  .pillar:nth-child(3) h3 { grid-column: 5 / 11; }
  .pillar:nth-child(3) p { grid-column: 1 / 5; grid-row: 1; }
}

/* ---------- Primary source specimen (Arabic as hero) ---------- */
.specimen { row-gap: var(--s-4); }
.specimen .ar {
  font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 2.05; text-align: right; font-weight: 400;
}
.specimen .tr { max-width: 52ch; }
.specimen .ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; padding-top: var(--s-2); border-top: 1px solid var(--rule); }
.ref-big { font-size: var(--t-lg); font-weight: 760; letter-spacing: -.045em; line-height: 1; }
@media (min-width: 56rem) {
  .specimen .ar { grid-column: 3 / -1; }
  .specimen .side { grid-column: 1 / 6; }
  .specimen .tr { grid-column: 7 / 12; }
}

/* ---------- Video index (ruled table) ---------- */
.vlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.vlist li { border-bottom: 1px solid var(--rule); }
.vlist a { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-2); align-items: center; padding-block: var(--s-2); text-decoration: none; }
.vlist .thumb { grid-row: span 2; }
.vlist .t { font-weight: 560; align-self: end; letter-spacing: -.012em; line-height: 1.3; }
.vlist .v { grid-column: 2; align-self: start; font-size: var(--t-sm); color: var(--muted); }
.vlist a:hover .t { color: var(--accent); }
.vhead { display: none; }
@media (min-width: 56rem) {
  .vhead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: .5rem; }
  .vhead span:nth-child(1) { grid-column: 3 / 10; }
  .vhead span:nth-child(2) { grid-column: 11 / -1; text-align: end; }
  .vlist a { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: .75rem; }
  .vlist .thumb { grid-column: 1 / 3; grid-row: auto; }
  .vlist .t, .vlist .v { align-self: center; }
  .vlist .t { grid-column: 3 / 10; font-size: 1.1875rem; }
  .vlist .v { grid-column: 11 / -1; text-align: end; }
}

/* ---------- Stories (inverse band) ---------- */
.stories { row-gap: var(--s-5); }
.stories h2 { font-size: var(--t-xl); letter-spacing: -.055em; line-height: .9; font-weight: 760; }
.stories blockquote { margin: var(--s-4) 0 0; font-size: var(--t-md); line-height: 1.4; max-width: 30ch; }
.q { color: var(--accent); }
.story { display: grid; gap: .75rem; align-content: start; text-decoration: none; }
.story .t { font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.story--lead .t { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.025em; }
.story .v { font-size: var(--t-sm); color: var(--muted); }
.story:hover .t { color: var(--accent); }
.story-pair { display: grid; gap: var(--s-4) var(--gutter); }
.story-more { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.story-more a { display: flex; justify-content: space-between; gap: var(--s-2); min-height: 2.75rem; padding-block: .9rem; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.story-more a span:last-child { color: var(--muted); white-space: nowrap; font-size: var(--t-sm); }
@media (min-width: 40rem) { .story-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) {
  .stories .intro { grid-column: 1 / 5; }
  .stories .body { grid-column: 6 / -1; display: grid; gap: var(--s-5); }
}

/* ---------- Sources teaser (big reference specimens) ---------- */
.src-intro { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.src-intro h2 { font-size: var(--t-xl); letter-spacing: -.055em; line-height: .9; font-weight: 760; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs li { display: grid; row-gap: .5rem; column-gap: var(--gutter); padding-block: var(--s-3); border-top: 1px solid var(--rule); }
.refs li:first-child { border-top: 1px solid var(--fg); }
.refs .type { align-self: start; padding-top: .35rem; }
.refs .r { font-size: var(--t-lg); font-weight: 760; letter-spacing: -.045em; line-height: 1; }
.refs .r a { text-decoration: none; }
.refs .n { color: var(--muted); max-width: 44ch; }
@media (min-width: 56rem) {
  .src-intro { grid-column: 1 / 5; }
  .refs { grid-column: 6 / -1; }
  .refs li { grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr); align-items: baseline; }
}

/* ---------- Support ---------- */
.support { row-gap: var(--s-5); }
.support h2 { font-size: var(--t-hero); font-size: clamp(3.25rem, 11vw, 11rem); letter-spacing: -.062em; line-height: .86; font-weight: 780; }
.support h2 .dot { color: var(--accent); }
.support .copy { font-size: var(--t-md); line-height: 1.4; max-width: 34ch; }
.actions { display: grid; gap: var(--s-4); align-content: start; }
.actions .row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56rem) {
  .support h2 { grid-column: 1 / -1; }
  .support .copy { grid-column: 1 / 6; }
  .support .actions { grid-column: 7 / -1; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .help { font-size: var(--t-sm); color: var(--muted); }
.field .err { display: none; font-size: var(--t-sm); color: var(--accent); font-weight: 600; }
.field:has(:user-invalid) .err, .field.is-invalid .err { display: block; }
input[type="email"], input[type="url"], input[type="text"], input[type="search"], textarea {
  width: 100%; min-height: 3rem; padding: .75rem .875rem; border: 1px solid var(--fg); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }
input:user-invalid, textarea:user-invalid, .is-invalid input, .is-invalid textarea { border-color: var(--accent); border-width: 2px; }
.inline-form { display: grid; gap: .75rem; }
.inline-form .combo { display: flex; }
.inline-form .combo input { border-inline-end: 0; }
.status { font-size: var(--t-sm); font-weight: 600; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-foot { border-top: 3px solid var(--fg); padding-block: var(--s-5) var(--s-4); font-size: var(--t-sm); }
.site-foot .grid { row-gap: var(--s-4); }
.site-foot .mark { font-size: 1.375rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.site-foot ul a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 500; font-size: 1rem; }
.site-foot .note { max-width: 36ch; }
.site-foot .note b { font-weight: 650; }
.site-foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-3); margin-top: var(--s-5); border-top: 1px solid var(--rule); color: var(--muted); }
@media (min-width: 56rem) {
  .site-foot .brand { grid-column: 1 / 5; }
  .site-foot nav { grid-column: 5 / 7; }
  .site-foot .elsewhere { grid-column: 7 / 9; }
  .site-foot .note { grid-column: 9 / -1; }
}

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.art-head { row-gap: var(--s-4); padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--s-5); }
.art-head h1 { font-size: clamp(2.75rem, 7.4vw, 8.25rem); font-weight: 780; letter-spacing: -.058em; line-height: .9; margin-inline-start: -.04em; }
.art-head .dek { font-size: var(--t-md); line-height: 1.4; letter-spacing: -.012em; max-width: 44ch; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--gutter); margin: 0; padding-top: var(--s-2); border-top: 1px solid var(--fg); }
.meta dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: .15rem 0 0; font-weight: 600; }
.meta dd a { text-decoration: none; border-bottom: 1px solid currentColor; }
@media (min-width: 56rem) {
  .art-head .series { grid-column: 1 / -1; }
  .art-head h1 { grid-column: 1 / 12; }
  .art-head .dek { grid-column: 1 / 8; }
  .meta { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .meta div { grid-column: span 3; }
}

.art-video { margin: 0 0 var(--section); row-gap: var(--s-2); }
.art-video figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-top: .75rem; border-top: 1px solid var(--rule); font-size: var(--t-sm); }
.art-video figcaption b { font-weight: 650; }
@media (min-width: 56rem) { .art-video .yt, .art-video .yt-frame, .art-video figcaption { grid-column: 1 / 11; } }

/* Body: TOC | text | sidenote margin */
.art-body { row-gap: var(--s-5); padding-bottom: var(--section); }
.toc { font-size: var(--t-sm); }
.toc h2 { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: .75rem; border-bottom: 1px solid var(--fg); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .35rem; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; line-height: 1.3; transition: color .15s; }
.toc a.is-current { color: var(--accent); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.prose h2 {
  font-size: var(--t-lg); letter-spacing: -.045em; line-height: 1; font-weight: 740;
  margin-top: var(--s-6); padding-top: var(--s-2); border-top: 3px solid var(--fg); clear: both;
}
.prose h2 + p { margin-top: var(--s-3); }
.prose .first::first-line { font-weight: 600; }
.abstract { padding: var(--s-3) 0 var(--s-3); border-block: 1px solid var(--fg); }
.abstract h2 { all: unset; display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.abstract p { font-size: 1.0625rem; line-height: 1.55; }
.abstract p + p { margin-top: 1em; }

/* Footnote refs + sidenotes */
.fn { font-size: .68em; line-height: 0; vertical-align: super; font-weight: 650; }
.fn a { display: inline-block; padding: .1em .1em .1em .05em; text-decoration: none; color: var(--accent); }
.sn { display: none; white-space: normal; }
@media (min-width: 75rem) {
  .art-body { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .toc { grid-column: 1 / 4; position: sticky; top: var(--s-3); align-self: start; }
  .prose { grid-column: 4 / 10; max-width: none; }
  .sn {
    display: block; float: right; clear: right; position: relative;
    width: 46%; margin-inline-end: calc(-46% - var(--gutter) * 1.6); margin-block: .3rem 1rem;
    padding-top: .45rem; border-top: 1px solid var(--rule);
    font-size: .8125rem; line-height: 1.45; color: var(--muted);
  }
  .sn b { color: var(--accent); font-weight: 650; margin-inline-end: .35em; }
}

/* Quran verse block: Arabic leads, translation follows, reference anchors */
.verse { margin-block: var(--s-6); padding-top: var(--s-2); border-top: 3px solid var(--fg); clear: both; }
.verse .ar { font-size: clamp(1.625rem, 2.3vw, 2.25rem); line-height: 2.1; text-align: right; font-weight: 400; margin: 0; padding-block: var(--s-3); }
.verse .tr { font-size: var(--t-base); line-height: 1.55; padding-top: var(--s-2); border-top: 1px solid var(--rule); }
.verse .tr::before { content: "\201C"; }
.verse .tr::after { content: "\201D"; }
.verse footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-top: var(--s-2); }
.verse footer .ref-big { font-size: var(--t-md); }
@media (min-width: 75rem) { .verse { margin-inline-end: calc(-46% - var(--gutter) * 1.6); } .verse .tr { max-width: 60ch; } }

/* Hadith block: a ruled data record */
.hadith { margin-block: var(--s-5); border: 1px solid var(--fg); clear: both; }
.hadith dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--fg); }
.hadith dl div { padding: .75rem 1rem; }
.hadith dl div + div { border-inline-start: 1px solid var(--rule); }
.hadith dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hadith dd { margin: .2rem 0 0; font-weight: 650; font-size: .9375rem; }
.hadith blockquote { margin: 0; padding: 1.25rem 1rem; }
.hadith footer { padding: 0 1rem 1rem; }
@media (max-width: 30rem) { .hadith dl { grid-template-columns: 1fr; } .hadith dl div + div { border-inline-start: 0; border-top: 1px solid var(--rule); } }

/* Pull-quote: hanging red quote mark */
.pull { margin-block: var(--s-6); clear: both; }
.pull blockquote { margin: 0; }
.pull p { font-size: clamp(1.625rem, 2.6vw, 2.5rem); font-weight: 680; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
.pull .q:first-child, .stories blockquote .q:first-child { margin-inline-start: -.42em; }
@supports (hanging-punctuation: first) { .pull .q:first-child, .stories blockquote .q:first-child { margin-inline-start: 0; } }
.pull figcaption { margin-top: var(--s-2); }
@media (min-width: 75rem) { .pull { margin-inline-end: calc(-46% - var(--gutter) * 1.6); } }

/* Endmatter: notes, sources, reading, citation, share */
.endmatter { margin-top: var(--s-7); clear: both; }
.endmatter section { padding-top: var(--s-2); border-top: 3px solid var(--fg); margin-bottom: var(--s-6); }
.endmatter h2 { all: unset; display: block; font-size: var(--t-md); font-weight: 740; letter-spacing: -.03em; margin-bottom: var(--s-3); }
.notes { margin: 0; padding: 0; list-style: none; counter-reset: n; font-size: .9375rem; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding-block: .6rem; border-bottom: 1px solid var(--rule); }
.notes li::before { content: counter(n); font-weight: 650; color: var(--accent); }
.notes li:target { background: var(--tint); }
.back { text-decoration: none; margin-inline-start: .35rem; font-weight: 600; }
.biblio { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.biblio li { display: grid; gap: .1rem; padding-block: .7rem; border-bottom: 1px solid var(--rule); }
.biblio .label { color: var(--muted); }
.cite { display: grid; gap: var(--s-2); }
.cite pre { margin: 0; padding: 1rem; background: var(--tint); border-inline-start: 3px solid var(--accent); font: 400 .9375rem/1.55 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }

.related { row-gap: var(--s-4); }
.related .story { grid-column: span 12; }
@media (min-width: 40rem) { .related .story { grid-column: span 6; } }
@media (min-width: 56rem) {
  .related h2 { grid-column: 1 / 4; }
  .related .story:nth-of-type(1) { grid-column: 4 / 10; grid-row: 1 / 3; }
  .related .story:nth-of-type(2) { grid-column: 10 / -1; }
  .related .story:nth-of-type(3) { grid-column: 10 / -1; }
}
.related h2 { font-size: var(--t-lg); letter-spacing: -.045em; }

.pager { display: grid; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); }
.pager a { display: grid; gap: .35rem; padding: var(--s-3) 0; text-decoration: none; }
.pager a + a { border-top: 1px solid var(--rule); }
.pager b { font-size: var(--t-md); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
@media (min-width: 48rem) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a + a { border-top: 0; border-inline-start: 1px solid var(--rule); padding-inline-start: var(--gutter); text-align: end; }
}

/* ==========================================================================
   SOURCES
   ========================================================================== */
.src-head { row-gap: var(--s-4); padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--s-5); }
.src-head h1 { font-size: clamp(4rem, 15vw, 14rem); font-weight: 780; letter-spacing: -.065em; line-height: .84; margin-inline-start: -.06em; }
.src-head .lead { max-width: 36ch; }
@media (min-width: 56rem) {
  .src-head h1 { grid-column: 1 / -1; }
  .src-head .lead { grid-column: 7 / 12; }
}
.filters { display: grid; gap: var(--s-2); padding-block: var(--s-2); border-top: 3px solid var(--fg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: transparent; color: var(--fg); font: 600 .875rem/1 var(--sans); cursor: pointer;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip .c { font-weight: 400; opacity: .7; margin-inline-start: .35rem; }
.search { position: relative; }
.search input { padding-inline-start: 2.75rem; }
.search svg { position: absolute; inset-inline-start: .9rem; top: 50%; translate: 0 -50%; width: 1.1rem; height: 1.1rem; pointer-events: none; }
@media (min-width: 56rem) { .filters { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: var(--gutter); } .chips { justify-content: flex-end; } }

.slist { list-style: none; margin: 0; padding: 0; }
.src { display: grid; row-gap: .6rem; column-gap: var(--gutter); padding-block: var(--s-3); border-bottom: 1px solid var(--rule); grid-template-columns: minmax(0, 1fr); }
.src .r { font-size: var(--t-md); font-weight: 740; letter-spacing: -.03em; line-height: 1.1; }
.src .n { color: var(--muted); max-width: 52ch; }
.src .act { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.src .act a { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; font-weight: 600; font-size: var(--t-sm); }
.src .act .icon-btn { font-size: var(--t-sm); }
@media (min-width: 56rem) {
  .src { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .src .label { grid-column: 1 / 3; }
  .src .r { grid-column: 3 / 6; }
  .src .n { grid-column: 6 / 10; }
  .src .act { grid-column: 10 / -1; justify-content: flex-end; }
}
.empty { padding-block: var(--s-6); border-bottom: 1px solid var(--rule); }
.empty p:first-child { font-size: var(--t-lg); font-weight: 740; letter-spacing: -.045em; }
.count { padding-block: .75rem; }

.submit { row-gap: var(--s-5); }
.submit form { display: grid; gap: var(--s-3); }
@media (min-width: 56rem) {
  .submit .intro { grid-column: 1 / 5; }
  .submit form { grid-column: 6 / 12; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .submit .field--wide, .submit .status, .submit .btn { grid-column: 1 / -1; }
  .submit .btn { justify-self: start; }
}
.submit .intro h2 { font-size: var(--t-xl); letter-spacing: -.055em; line-height: .9; font-weight: 760; }
.submit .intro p { margin-top: var(--s-3); color: var(--muted); max-width: 36ch; }

/* ---------- Motion: reveal section heads (JS adds .rv only if allowed) ---------- */
.rv { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Print: a clean paper ---------- */
@media print {
  :root { --bg: #fff; --fg: #000; --muted: #333; --rule: #999; --accent: #000; }
  body { font-size: 10.5pt; line-height: 1.5; background: #fff; color: #000; }
  .site-head, .site-foot, .skip, .toc, .art-video, .share, .related, .pager, .cite button, .sn, .exit, .yt, .yt-frame { display: none !important; }
  .art-head h1 { font-size: 30pt; }
  .art-head .dek { font-size: 13pt; }
  .art-body, .art-head { display: block; }
  .prose { max-width: none; }
  .prose h2 { font-size: 16pt; break-after: avoid; }
  .verse, .hadith, .pull, blockquote, .notes li { break-inside: avoid; }
  .verse, .pull { margin-inline-end: 0; }
  .prose a[href^="http"]::after, .biblio a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #333; overflow-wrap: anywhere; }
  .print-video { display: block !important; }
}
.print-video { display: none; }
