/* =============================================================================
   StingyWeb — public catalogue: THE INDEX
   -----------------------------------------------------------------------------
   The public face is a reference work: a modern archive, not a marketing site.
   Fraunces speaks the headlines, Inter carries the reading, and Plex Mono does
   the cataloguing — numbers, labels, provenance. Rows are ruled and numbered
   like an index; the one vermilion accent marks the ways in.

   Contents:  1 shell + header · 2 hero · 3 result lists · 4 entity cards
              5 article layout · 6 sections + key info · 7 FAQs · 8 related
              9 sources · 10 footer · 11 responsive
   ========================================================================== */

/* 1 · SHELL + HEADER -------------------------------------------------------- */
.public { background: var(--bg); }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.public .container { max-width: 1140px; }

/* the public voice: display serif for every heading a visitor reads.
   The bare-h1 rule targets list headers (browse, search); the hero and
   article set their own scale via .hero-title / .article-title. */
.results-header h1, .browse-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.public h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.01em;
}

.site-header {
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding: 0 var(--s6);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--s6);
}

/* purely typographic wordmark: serif name, vermilion full stop */
.wordmark {
  display: flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-decoration: none;
  flex: none;
  line-height: 1;
}
.wordmark:hover { text-decoration: none; color: var(--text-heading); }
.wordmark-mark { display: none; }
.wordmark > span:last-child::after {
  content: ".";
  color: var(--brand);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.header-nav a { color: var(--text-muted); }
.header-nav a:hover { color: var(--text-heading); text-decoration: none; }
.header-nav a.is-active, .header-nav a[aria-current="page"] {
  color: var(--text-heading);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
}

/* the header search is a ruled line, not a pill */
.header-search {
  margin-left: auto;
  flex: 0 1 300px;
  min-width: 0;
}
.header-search .search-input, .header-search input[type="search"] {
  width: 100%;
  height: 34px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color var(--transition);
}
.header-search .search-input:focus, .header-search input[type="search"]:focus {
  outline: none;
  border-bottom-color: var(--brand);
  box-shadow: none;
}
.header-search input::placeholder {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* 2 · HERO -------------------------------------------------------------------
   Left-set, asymmetric, typographic. The headline is the design. */
.hero {
  border-bottom: 1px solid var(--border-strong);
}
.hero-inner {
  max-width: 1140px;
  width: 100%;
  margin-inline: auto;
  padding: clamp(48px, 6.5vw, 88px) var(--s6) clamp(48px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--s5);
}

/* copy on the left, the scanning illustration in the hero's open right half */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(var(--s7), 5vw, var(--s10));
  align-items: center;
  width: 100%;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s5);
  min-width: 0;
}
.hero-art { min-width: 0; }
.hero-art svg, .hero-art img { display: block; width: 100%; height: auto; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brand);
  flex: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 540;
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--text-heading);
  text-wrap: balance;
  max-width: 21ch;
}

.hero-lede {
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

/* the search drawer: one ruled line and a slab of ink */
.hero-search {
  width: min(640px, 100%);
  display: flex;
  align-items: flex-end;
  gap: var(--s4);
  margin-top: var(--s4);
}
.hero-search .search-input, .hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 2px;
  font-family: var(--font-serif);
  font-size: 19px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  color: var(--text);
  transition: border-color var(--transition);
}
.hero-search .search-input::placeholder, .hero-search input::placeholder {
  color: var(--text-subtle);
  font-style: italic;
  font-weight: 400;
}
.hero-search .search-input:focus, .hero-search input:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--brand);
}
.hero-search .btn {
  height: 46px;
  padding: 0 28px;
}

.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  font-size: 13px;
}
.hero-suggestions a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}
.hero-suggestions a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

/* the ledger row: figures under a heavy rule, captioned in mono */
.hero-stats {
  display: flex;
  gap: clamp(var(--s7), 6vw, var(--s10));
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 2px solid var(--ink);
  width: 100%;
}
.hero-stat { text-align: left; }
.hero-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  line-height: 1.1;
}
.hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: var(--s2);
}

/* 3 · RESULT LISTS -----------------------------------------------------------
   Numbered index rows on hairlines. The number is set in the margin column,
   the way an index numbers its entries. */
.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding: var(--s8) 0 var(--s6);
}
.results-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

/* category filters: specimen tags */
.results-filters { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.results-filters a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition),
              background var(--transition);
}
.results-filters a:hover {
  border-color: var(--ink);
  color: var(--text-heading);
  text-decoration: none;
}
.results-filters a.is-active, .results-filters a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inverse);
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
  counter-reset: entry;
}
/* the prose rules (`.article-body ul` indent, `li + li` rhythm) must never
   leak into component lists that happen to sit inside an article body */
.article-body ul.result-list, .article-body ul.card-grid,
.article-body ul.related-list { padding: 0; margin: 0; }
.article-body .result-list > li + li, .article-body .card-grid > li + li,
.article-body .related-list > li + li, .article-body .source-list > li + li { margin-top: 0; }

.result-card {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
}
.result-card::before {
  content: counter(entry, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 4;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.result-card > * { grid-column: 2; }
.result-card:hover::before { color: var(--brand); }

.result-kicker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.result-kicker, .result-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}
.result-type { color: var(--brand); }

.result-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.22;
  margin-top: 3px;
}
.result-title a { color: var(--text-heading); }
.result-title a:hover { color: var(--brand); text-decoration: none; }

.result-snippet {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-muted);
  margin-top: var(--s2);
  max-width: 66ch;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}
.result-host { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-subtle); }
.result-path { font-family: var(--font-mono); font-size: 11px; color: var(--text-subtle); overflow-wrap: anywhere; }

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}

/* previous/next spans rendered disabled on the search pager */
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* 4 · ENTITY CARDS -----------------------------------------------------------
   Catalogue cards: numbered sheets of lighter paper with a hairline edge. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  counter-reset: card;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* the browse A–Z renders plain <li> rows into the same grid */
.card-grid > li { min-width: 0; }
.card-grid > li > a {
  color: var(--text-heading);
  font-weight: 600;
  font-size: 14.5px;
}
.card-grid > li > a:hover { color: var(--brand); text-decoration: none; }

.entity-card {
  counter-increment: card;
  display: block;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition);
}
.entity-card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s4);
  transition: color var(--transition);
}
.entity-card:hover {
  text-decoration: none;
  border-color: var(--ink);
}
.entity-card:hover::before { color: var(--brand); }

.entity-card-type {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--brand);
}
.entity-card-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--text-heading);
  margin-top: var(--s2);
}
.entity-card-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--s3);
}

/* 4a · HOME BELOW THE HERO ---------------------------------------------------
   Featured entries beside an accession register — the archive's log of what
   was filed most recently — then the categories. */
.home-below {
  display: flex;
  flex-direction: column;
  gap: var(--s9);
  padding: var(--s8) 0 var(--s10);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(var(--s7), 5vw, var(--s10));
  align-items: start;
}
.home-featured { min-width: 0; }

/* three compact catalogue cards in one row */
.home-grid .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.home-featured .entity-card { padding: var(--s4); }
.home-featured .entity-card::before { margin-bottom: var(--s3); font-size: 10px; }
.home-featured .entity-card-name { font-size: 17px; }
.home-featured .entity-card-desc {
  font-size: 12.5px;
  margin-top: var(--s2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media (max-width: 720px) {
  .home-grid .card-grid { grid-template-columns: 1fr; }
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}

.index-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  min-width: 0;
}

/* the accession ledger: what was filed, when, and from where */
.home-added { min-width: 0; }
.added-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}
.added-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  column-gap: var(--s5);
  align-items: baseline;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.added-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.added-body { min-width: 0; }
.added-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-heading);
}
.added-name:hover { color: var(--brand); text-decoration: none; }
.added-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 3px;
  max-width: 52ch;
}
.added-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}
.added-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}
.added-host {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
}

/* the home rail: other ways in, in the same voice as the browse rail */
.home-rail {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: var(--s7);
  min-width: 0;
}
.rail-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .home-rail { position: static; gap: var(--s5); }
}
@media (max-width: 720px) {
  .added-row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .added-date { order: 2; }
  .added-meta { flex-direction: row; align-items: baseline; text-align: left; order: 3; }
}

/* 4b · BROWSE INDEX ----------------------------------------------------------
   The A–Z reads like the index of a reference work: a sticky rail carries the
   whole alphabet (inert letters stay dim), the categories and the catalogue's
   figures — the same rail voice as the console — while the main column files
   every entry under a large index character. */
.browse-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(var(--s8), 6vw, var(--s10));
  padding: var(--s8) 0 var(--s10);
  align-items: start;
}

.browse-rail {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: var(--s7);
}

.rail-group { display: flex; flex-direction: column; gap: var(--s3); }

.rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.letter-cell {
  display: grid;
  place-items: center;
  height: 27px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}
a.letter-cell:hover {
  border-color: var(--ink);
  color: var(--text-heading);
  text-decoration: none;
}
a.letter-cell.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inverse);
}
.letter-cell.is-empty {
  border-color: var(--border);
  color: var(--border-strong);
}

.rail-list { list-style: none; padding: 0; margin: 0; }
.rail-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.rail-list a:hover { color: var(--text-heading); text-decoration: none; }
.rail-list a:hover .rail-count { color: var(--brand); }
.rail-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition);
}

.rail-facts { margin: 0; }
.rail-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: 3px 0;
}
.rail-facts dt { font-size: 12.5px; color: var(--text-muted); }
.rail-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
}

.browse-main { min-width: 0; }

.browse-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-bottom: var(--s6);
}

.letter-section { scroll-margin-top: 92px; }
.letter-section + .letter-section { margin-top: var(--s7); }

.letter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--ink);
}
.letter-char {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 560;
  line-height: 1;
  color: var(--text-heading);
}
.letter-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.browse-list { list-style: none; padding: 0; margin: 0; }
.browse-entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.browse-entry:last-child { border-bottom: 0; }

.browse-entry-main { min-width: 0; }
.browse-entry-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-heading);
}
.browse-entry-name:hover { color: var(--brand); text-decoration: none; }
.browse-entry-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 3px;
  max-width: 56ch;
}

.browse-entry-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}
.browse-entry-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}
.browse-entry-host {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
}

@media (max-width: 1024px) {
  .browse-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .browse-rail { position: static; gap: var(--s5); }
  .letter-grid { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); }
  .rail-list a { padding: 2px 0; }
}
@media (max-width: 720px) {
  .browse-entry { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .browse-entry-meta { flex-direction: row; align-items: baseline; gap: var(--s3); text-align: left; }
}

/* 5 · ARTICLE LAYOUT -------------------------------------------------------- */
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
  flex-wrap: wrap;
}
.breadcrumb-trail li { display: flex; align-items: center; gap: var(--s2); }
.breadcrumb-trail a { color: var(--text-subtle); }
.breadcrumb-trail a:hover { color: var(--text-heading); text-decoration: none; }

.article-layout {
  max-width: 1140px;
  margin-inline: auto;
  padding: var(--s8) var(--s6) var(--s10);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: var(--s10);
  align-items: start;
  width: 100%;
}

.article-main { min-width: 0; max-width: 720px; }

.article-header {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding-bottom: var(--s6);
}

.article-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--brand);
  flex: none;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-heading);
  text-wrap: balance;
}

.article-lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-subtle);
}

/* on-this-page rail */
.article-nav {
  position: sticky;
  top: 88px;
  font-size: 12.5px;
}
.article-nav-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--s3);
}
.article-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border-strong);
}
.article-nav-list a {
  display: block;
  padding: 5px 0 5px var(--s4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  line-height: 1.4;
}
.article-nav-list a:hover { color: var(--text-heading); text-decoration: none; }
.article-nav-list a.is-current {
  color: var(--text-heading);
  font-weight: 600;
  border-left-color: var(--brand);
}

/* tab strip: mono caps, inked underline */
.tab-strip {
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: var(--s7);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip-inner {
  display: flex;
  gap: var(--s5);
  min-width: max-content;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tab-strip-inner li { list-style: none; }
.tab-link {
  display: inline-block;
  padding: var(--s2) 0 var(--s3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab-link:hover { color: var(--text-heading); text-decoration: none; }
.tab-link.is-active, .tab-link.is-current {
  color: var(--text-heading);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

/* 6 · SECTIONS + KEY INFO --------------------------------------------------- */
.article-section {
  padding: var(--s7) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.article-section:first-of-type { border-top: 0; padding-top: 0; }

.article-section h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.012em;
  color: var(--text-heading);
  margin-bottom: var(--s4);
}
.article-section h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin: var(--s5) 0 var(--s3);
}

.article-body, .prose {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}
.article-body p + p, .prose p + p { margin-top: var(--s4); }
.article-body ul, .prose ul {
  margin: var(--s4) 0;
  padding-left: 1.1em;
}
.article-body li + li, .prose li + li { margin-top: var(--s2); }
.article-body li::marker, .prose li::marker { color: var(--brand); }
.prose-wide { max-width: none; }

/* key info: a ruled definition ledger */
.keyinfo {
  border-top: 2px solid var(--ink);
  margin: var(--s5) 0;
}
.keyinfo-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.keyinfo-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-top: 4px;
}
.keyinfo-row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.keyinfo-source { font-size: 11.5px; margin-left: var(--s2); }
@media (max-width: 560px) { .keyinfo-row { grid-template-columns: 1fr; gap: 2px; } }

/* 7 · FAQS ------------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; }

.faq {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.008em;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-subtle);
  flex: none;
  transition: transform var(--transition);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }

.faq-answer {
  padding: 0 0 var(--s5);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  max-width: 64ch;
}
.faq-source { font-size: 12px; margin-top: var(--s2); }

/* 8 · RELATED --------------------------------------------------------------- */
.related-block { margin-top: var(--s4); }
.related-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--s4);
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-strong);
}
.related-list li {
  border-bottom: 1px solid var(--border);
}
.related-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 14px;
}
.related-list a:hover { color: var(--brand); text-decoration: none; }
.related-kind {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* 9 · SOURCES ----------------------------------------------------------------
   Provenance is the product's promise, so it closes the entry as its own
   ruled register. */
.sources {
  margin-top: var(--s6);
  border-top: 2px solid var(--ink);
  padding-top: var(--s5);
}
.sources-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: var(--s4);
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  counter-reset: src;
}
.source-item {
  counter-increment: src;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.source-item::before {
  content: counter(src, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.source-item:last-child { border-bottom: 0; }
.source-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.source-title { font-size: 13.5px; font-weight: 600; color: var(--text-heading); }
a.source-title:hover, .source-title a:hover { color: var(--brand); text-decoration: none; }
.source-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  overflow-wrap: anywhere;
}
.source-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

.verified {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-top: var(--s5);
  font-size: 12.5px;
  color: var(--text-subtle);
}
.verified::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
  align-self: center;
}

/* 10 · FOOTER ----------------------------------------------------------------
   The archive closes in ink — fixed dark in both themes. */
.site-footer {
  margin-top: auto;
  background: #1c1812;
  color: #cbc3af;
  border-top: 1px solid rgba(255, 253, 246, 0.12);
}
.site-footer-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding: var(--s9) var(--s6) var(--s8);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: #8d8470;
}
.footer-col p { font-size: 13px; color: #cbc3af; max-width: 40ch; }
.footer-col a { color: #cbc3af; font-size: 13px; }
.footer-col a:hover { color: #fffdf6; text-decoration: none; }
.footer-note {
  font-size: 12.5px;
  color: #8d8470;
  max-width: 46ch;
  line-height: 1.6;
}

/* 11 · RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .article-nav { display: none; }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

@media (max-width: 720px) {
  .site-header-inner { gap: var(--s4); height: 58px; }
  .header-nav { gap: var(--s4); }
  .header-search { flex-basis: 180px; }
  /* fade the right edge of the scrollable tab strip as a scroll cue */
  .tab-strip {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .hero-search { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: var(--s6); flex-wrap: wrap; }
  .result-card { grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--s3); }
  .article-layout { padding: var(--s6) var(--s5) var(--s9); }
  .site-footer-inner { flex-direction: column; gap: var(--s5); }
}

@media (max-width: 480px) {
  .header-search { display: none; }
}
