/* longform.css: split out of styles.css 2026-09-13, loaded only by the templates that use it. */

.toc-sidebar { position: relative; }

.toc-sticky h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-3xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.toc-sticky ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc-sticky li {
  counter-increment: toc;
  margin-bottom: var(--space-1);
}

.toc-sticky a:hover { color: var(--accent); }

.article-body > section { margin-bottom: var(--space-8); }

.article-body h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: var(--space-4);
}

.article-body p { margin-bottom: var(--space-5); line-height: 1.7; }
.article-body ul, .article-body ol { margin: 0 0 var(--space-5) var(--space-6); }
.article-body li { margin-bottom: var(--space-2); }
.article-body li::marker { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure-read);
  font-variation-settings: 'opsz' 36;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(250, 250, 245, 0.14);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(250, 250, 245, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(250, 250, 245, 0.3);
}

.footer-nav a:hover {
  color: var(--gold-soft);
  text-decoration-color: var(--gold-soft);
}

.article-body { max-width: none; }

/* --- 32.5 Contrast leftovers ----------------------------------------- */
.toc-sticky a::before { color: var(--ink-muted); }

.toc-sticky h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-3xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* 33. The hero shares the reading composition's geometry, so the h1 sits
   flush with the contents rail instead of on the container edge. */
:root { --longform-span: calc(200px + var(--space-8) + var(--measure-article)); }

.article-layout {
  max-width: var(--longform-span);
  justify-content: start;
  padding-inline: var(--space-6);
}

body:has(.article-layout) .hero > .hero-content {
  max-width: var(--longform-span);
  padding-inline: var(--space-6);
}

@media (max-width: 1000px) {
  .article-layout { max-width: var(--measure-wide); }
  body:has(.article-layout) .hero > .hero-content { max-width: var(--measure-wide); }
}
