@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4-italic.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #F5F1E8;
  --paper-warm: #FAEEDB;
  --paper-alt: #FFFFFF;
  --ink: #14161A;
  --slate: #1D202A;
  --slate-hi: #2A3244;
  --accent: #D97740;
  --accent-hi: #E58D5F;
  --accent-dim: #A65A28;
  --accent-cool: #4E8BB8;
  --muted: #6A6055;
  --rule: #E5DDD0;
  --code-bg: #EFE7D4;
  --prose-max: 680px;
  --page-max: 1000px;
  --ui: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media print {
  body { background-image: none; }
}

a { color: var(--accent); }
a:hover { color: var(--accent-dim); }

/* ---------- site chrome ---------- */

.site-header, .site-footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-family: var(--ui);
  font-size: 14px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
}
.site-header .wordmark .agent-bot { display: block; }
.site-header nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- main layout containers ---------- */

main.prose {
  max-width: var(--prose-max);
  margin: 3rem auto 4rem;
  padding: 0 1.25rem;
}
main.wide {
  max-width: var(--page-max);
  margin: 3rem auto 4rem;
  padding: 0 1.25rem;
}

.breadcrumb {
  font-family: var(--ui);
  font-size: 13px;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- homepage hero ---------- */

.hero {
  position: relative;
  padding: 5rem 1.25rem 4rem;
  max-width: var(--page-max);
  margin: 0 auto;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  color: var(--accent);
}
.hero-pattern svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero h1,
.hero-title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  color: var(--ink);
}
.hero-thesis {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--ui);
  font-size: clamp(1.125rem, 2.1vw, 1.375rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 640px;
}
.hero-thesis p {
  margin: 0 0 0.35rem;
}
.hero-thesis p:last-child {
  margin-bottom: 0;
}
.hero-subhead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 2rem;
}
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
}
.hero-nav a {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- homepage sections ---------- */

.home-section {
  max-width: var(--page-max);
  margin: 4rem auto;
  padding: 0 1.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}
.home-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.home-section h2 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.home-section .section-intro {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: var(--prose-max);
}

/* ---------- start-here cards (2x2) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.card {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  background: var(--paper-alt);
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card:hover { border-color: var(--accent); }
.card .glyph {
  color: var(--accent);
  display: block;
}
.card-anchor {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}
.card-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.card-title a:hover { text-decoration-thickness: 2px; }
.card-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.45;
  margin: 0;
}

/* ---------- topic grid (2x2) ---------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}
.topic-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.topic-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.topic-head .glyph { color: var(--accent); flex-shrink: 0; }
.topic-head h3 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.topic-block .topic-desc {
  font-family: var(--serif);
  font-size: 0.97rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.topic-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.topic-post-list li {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}
.topic-post-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.topic-post-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.topic-more {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  display: inline-block;
}
.topic-more:hover { color: var(--accent-hi); }

/* ---------- recent list ---------- */

.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.recent-list li:last-child { border-bottom: none; }
.recent-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}
.recent-title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.recent-title a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.recent-meta {
  font-family: var(--ui);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-shrink: 0;
}
.recent-meta a { color: var(--muted); text-decoration: none; }
.recent-meta a:hover { color: var(--accent); }

/* ---------- about teaser + subscribe ---------- */

.home-footer {
  max-width: var(--page-max);
  margin: 4rem auto 2rem;
  padding: 3rem 1.25rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-teaser h2 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.about-teaser p {
  font-family: var(--serif);
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.about-teaser a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.subscribe-block {
  border: 1px solid var(--rule);
  background: var(--paper-alt);
  padding: 1.25rem 1.5rem;
  border-radius: 3px;
}
.subscribe-block h3 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.subscribe-block p {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.subscribe-block .subscribe-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.subscribe-block a {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.subscribe-block a:hover { color: var(--accent-hi); text-decoration: underline; }

/* ---------- article page ---------- */

.post-title {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.post-meta {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-meta a { color: var(--muted); text-decoration: none; }
.post-meta a:hover { color: var(--accent); }

.hero-graphic {
  width: 100%;
  height: auto;
  margin: 0 0 2rem;
  border: 1px solid var(--rule);
}

/* ---------- post formats ---------- */

.insight-lead {
  margin: 0 0 2.5rem;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 4px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
}
.insight-lead p { margin: 0; }

.post-lede {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
}
.post-lede p { margin: 0; }
.post-lede::before {
  content: 'Summary';
  display: block;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.prose--diagram .hero-graphic {
  margin: 0 calc(50% - 50vw) 2.5rem;
  width: 100vw;
  max-width: 100vw;
  border-left: none;
  border-right: none;
}

.prose--contrast .post-body {
  /* reserved: contrast layout activates when content uses
     the contrast structure (e.g., h2-paired columns). */
}

/* ---------- /stack/ reference page ---------- */

main.stack-ref {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

.stack-header {
  margin-bottom: 2.5rem;
}
.stack-eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.stack-lede {
  font-family: var(--ui);
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 42rem;
}
.stack-framing {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 1.5rem 0 0;
  max-width: 42rem;
}
.stack-framing em {
  font-style: normal;
  color: var(--accent-dim);
  font-weight: 500;
}

.stack-diagram {
  margin: 0 0 2.5rem;
}
.stack-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.stack-toc {
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 0 0 2.5rem;
  font-family: var(--ui);
  font-size: 14px;
}
.stack-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.stack-toc a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.stack-toc a:hover {
  color: var(--accent-dim);
  border-bottom-color: var(--accent-dim);
}

.stack-section {
  margin: 0 0 3rem;
  scroll-margin-top: 1rem;
}
.stack-section h2 {
  font-family: var(--ui);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.stack-section-lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.stack-layer-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.stack-layer-list dt {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  scroll-margin-top: 1rem;
}
.stack-layer-list dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  max-width: 42rem;
}
.stack-id {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--accent-cool);
  margin-right: 0.5rem;
  letter-spacing: 0;
}

.stack-missing {
  padding-left: 1.5rem;
  margin: 0;
}
.stack-missing li {
  margin-bottom: 1rem;
  max-width: 42rem;
}

.stack-diagnostic {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.stack-diagnostic li {
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--ink);
}
.stack-diagnostic a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.stack-diagnostic a:hover { color: var(--accent-dim); }

.stack-essay-link {
  margin: 4rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
}
.stack-essay-link p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}
.stack-essay-cta {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.stack-essay-cta:hover {
  color: var(--accent-dim);
  border-bottom-color: var(--accent-dim);
}

@media (min-width: 720px) {
  .stack-layer-list {
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem 1.5rem;
  }
  .stack-layer-list dd { margin: 0; }
}

.post-body p { margin: 0 0 1.25rem; }
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.005em;
}
.post-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent);
}
.post-body a:hover {
  color: var(--accent-dim);
  text-decoration-thickness: 2px;
}

.reference-pointer {
  margin: 2.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--muted);
}
.reference-pointer p { margin: 0; }
.reference-pointer a {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.reference-pointer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.article-signoff {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.article-signoff img { display: block; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #2a2d33;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.08em 0.3em;
  border-radius: 3px;
}
.post-body pre {
  font-family: var(--mono);
  background: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 3px;
}
.post-body pre code { background: none; padding: 0; }

/* ---------- related essays + prev/next (article footer) ---------- */

.related-essays {
  margin: 4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.related-essays h2 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.related-grid .card { padding: 1.125rem; gap: 0.5rem; }
.related-grid .card-title { font-size: 1.05rem; }

.prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
  font-size: 13px;
}
.prev-next-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0;
}
.prev-next-nav a:hover { color: var(--accent); }
.prev-next-nav .pn-label {
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.prev-next-nav .pn-title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 400;
}
.prev-next-nav .pn-next { text-align: right; align-items: flex-end; }

/* ---------- topics facet + index ---------- */

.topic-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.topic-header .glyph { color: var(--accent); flex-shrink: 0; }

.topic-description {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: var(--prose-max);
  line-height: 1.5;
}

.topic-concept {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--paper-warm);
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  max-width: var(--prose-max);
}
.topic-concept p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}
.topic-concept-eyebrow {
  font-family: var(--ui) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  color: var(--accent-dim) !important;
  margin: 0 0 0.6rem !important;
}

.topic-essays-heading {
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.topics-index-list { list-style: none; padding: 0; margin: 0; }
.topics-index-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.topics-index-list li:last-child { border-bottom: none; }
.topics-index-list .glyph { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.topics-index-list .topic-row-body { flex: 1; }
.topics-index-list h2 {
  font-family: var(--ui);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 0.35rem;
}
.topics-index-list h2 a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.topics-index-list p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.topics-index-list .topic-count {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------- legacy index list (used by /topics/<slug>/ facets) ---------- */

.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.index-list li:last-child { border-bottom: none; }
.index-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}
.index-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.index-title a:hover { text-decoration-thickness: 2px; }
.index-pull {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  line-height: 1.45;
}
.index-meta {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.index-meta a { color: var(--muted); text-decoration: none; }
.index-meta a:hover { color: var(--accent); }

/* ---------- glyphs ---------- */

.glyph {
  display: inline-block;
  vertical-align: middle;
}
.glyph-inline {
  color: var(--accent);
  margin-right: 0.25rem;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 18px; }
  .post-title { font-size: 1.75rem; }
  main.prose, main.wide { margin: 2rem auto 3rem; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subhead { font-size: 1.05rem; }
  .card-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .home-footer { grid-template-columns: 1fr; gap: 2rem; }
  .home-section { margin: 3rem auto; padding-top: 2rem; }
  .site-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .site-header nav a { margin-left: 0; margin-right: 1rem; }
  .prev-next-nav { grid-template-columns: 1fr; gap: 0.5rem; }
  .prev-next-nav .pn-next { text-align: left; align-items: flex-start; }
  .recent-list li { flex-direction: column; gap: 0.25rem; align-items: flex-start; }
}
