/* =========================================================
   THE ENGINE AND THE GARDEN — Stylesheet
   Editorial-magazine register.
   ========================================================= */

:root {
  /* Paper and ink */
  --color-paper: #FAF7F2;
  --color-paper-soft: #F4EFE6;
  --color-ink: #1A1A1A;
  --color-ink-soft: #3A3A3A;
  --color-muted: #6B6B6B;
  --color-muted-soft: #8A8A8A;
  --color-divider: #E5E0D5;
  --color-divider-strong: #D0C8B5;

  /* Strand colors */
  --color-build: #C66B3D;        /* Build and Heal — terracotta */
  --color-build-soft: #E8C4AA;
  --color-humanize: #7A8B5A;     /* Humanize and Limit — olive */
  --color-humanize-soft: #C9D2B4;
  --color-expose: #3D4068;       /* Expose False Salvation — indigo */
  --color-expose-soft: #B5B7CC;

  /* Doctrinal lens colors */
  --color-creation: #B8763A;
  --color-fall: #6E4F4F;
  --color-redemption: #5F7A5C;
  --color-eschatology: #4E4C7A;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-narrow: 680px;
  --max-medium: 820px;
  --max-wide: 1140px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 260ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
  * { animation: none !important; transition: none !important; }
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}
@media (min-width: 720px) { html { font-size: 18px; } }
@media (min-width: 1100px) { html { font-size: 19px; } }

body {
  font-family: var(--font-body);
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.65;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-divider-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration) var(--ease);
}
a:hover { text-decoration-color: var(--color-ink); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

blockquote {
  border-left: 3px solid var(--color-divider-strong);
  padding-left: 1.3em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-ink-soft);
}

hr {
  border: none;
  height: 1px;
  background: var(--color-divider);
  margin: 2.5em 0;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-ink);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: 2.6rem; margin-top: 0; }
@media (min-width: 720px) { h1 { font-size: 3.2rem; } }
h2 { font-size: 1.9rem; margin-top: 2em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

em, i { font-style: italic; }
strong, b { font-weight: 600; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
th, td {
  padding: 0.7em 0.9em;
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}
th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.92);
}
.site-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-title a {
  text-decoration: none;
  color: var(--color-ink);
}
.site-title em {
  font-style: italic;
  color: var(--color-build);
}
.site-nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--color-build); }

@media (max-width: 720px) {
  .site-header-inner { flex-direction: column; gap: 0.7rem; padding: 0.8rem 1rem; }
  .site-title { font-size: 1.2rem; }
  .site-nav { font-size: 0.82rem; gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--color-divider);
  margin-top: 5rem;
  padding: 3rem 1.5rem 2rem;
  background: var(--color-paper-soft);
}
.site-footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.3fr;
  gap: 2rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.site-footer a { display: block; padding: 0.2rem 0; text-decoration: none; color: var(--color-ink-soft); }
.site-footer a:hover { color: var(--color-build); }
.site-footer .colophon {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
}
.footer-newsletter-copy {
  color: var(--color-ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}
.footer-newsletter-form {
  display: grid;
  gap: 0.55rem;
}
.footer-newsletter-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--color-divider-strong);
  background: var(--color-paper);
  color: var(--color-ink);
  font: 0.86rem var(--font-sans);
  padding: 0.72rem 0.8rem;
}
.footer-newsletter-form button {
  justify-self: start;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
  font: 600 0.76rem var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.68rem 0.9rem;
  cursor: pointer;
}
.footer-newsletter-form button:disabled {
  opacity: 0.62;
  cursor: progress;
}
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =========================================================
   PAGE WRAPPERS
   ========================================================= */
.page {
  max-width: var(--max-medium);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.page-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.page-wide { max-width: var(--max-wide); margin: 0 auto; padding: 3rem 1.5rem 4rem; }

.page-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

/* =========================================================
   HOME PAGE
   ========================================================= */
.home-hero {
  max-width: var(--max-medium);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}
.home-hero h1 {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1rem;
}
@media (min-width: 720px) { .home-hero h1 { font-size: 4.5rem; } }
@media (min-width: 1100px) { .home-hero h1 { font-size: 5.2rem; } }
.home-hero h1 em { font-style: italic; color: var(--color-build); font-weight: 400; }
.home-hero .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.home-hero .strand-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 2.5rem auto;
  max-width: 600px;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.home-hero .strand-strip a {
  flex: 1;
  padding: 1rem 0.8rem;
  text-decoration: none;
  border-right: 1px solid var(--color-divider);
  transition: background var(--duration) var(--ease);
  display: block;
}
.home-hero .strand-strip a:last-child { border-right: none; }
.home-hero .strand-strip a:hover { background: var(--color-paper-soft); }
.strand-strip .strand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
}
.strand-strip .strand-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: 0.3rem;
  display: block;
}
.strand-strip a.build .strand-name { color: var(--color-build); }
.strand-strip a.humanize .strand-name { color: var(--color-humanize); }
.strand-strip a.expose .strand-name { color: var(--color-expose); }

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-build);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.start-here-section {
  max-width: var(--max-wide);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.start-here-inner {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: 1.7rem 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 820px) {
  .start-here-inner {
    grid-template-columns: 0.9fr 1.6fr;
    align-items: start;
  }
}
.start-here-inner h2 {
  font-size: 1.65rem;
  margin: 0;
}
.start-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--color-ink-soft);
}
.start-steps li {
  margin: 0;
  padding-left: 0.2rem;
}
.start-steps a {
  font-weight: 600;
  text-decoration-color: var(--color-build-soft);
}

/* Diagrams section */
.home-diagrams {
  max-width: var(--max-wide);
  margin: 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 900px) { .home-diagrams { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

.diagram-block { text-align: center; }
.diagram-block h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.diagram-block .caption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Reading paths preview / audience cards */
.paths-preview, .audience-section {
  background: var(--color-paper-soft);
  padding: 4rem 1.5rem;
  margin-top: 4rem;
}
.paths-preview-inner, .audience-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.paths-preview h2, .audience-section h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.paths-preview .lead, .audience-section .lead {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}
.path-card-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-build);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* Map CTA section (between diagrams and essay on home) */
.map-cta {
  max-width: var(--max-medium);
  margin: 4rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}
.map-cta-lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
}
.map-cta-questions {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
}
.map-cta-questions li {
  position: relative;
  padding-left: 2rem;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
}
.map-cta-questions li::before {
  content: counter(map-q) ".";
  counter-increment: map-q;
  position: absolute;
  left: 0;
  color: var(--color-build);
  font-weight: 600;
  font-family: var(--font-display);
}
.map-cta-questions { counter-reset: map-q; }

.newsletter-section {
  margin: 4.5rem auto 0;
  padding: 0 1.5rem;
}
.newsletter-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2.2rem 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 820px) {
  .newsletter-inner {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}
.newsletter-copy h2 {
  font-size: 1.85rem;
  margin: 0 0 0.65rem;
}
.newsletter-copy p:last-child {
  max-width: 520px;
  color: var(--color-ink-soft);
  line-height: 1.55;
}
.newsletter-form {
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-sans);
}
.newsletter-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
}
.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}
@media (max-width: 560px) {
  .newsletter-row { grid-template-columns: 1fr; }
}
.newsletter-row input[type="email"] {
  min-width: 0;
  border: 1px solid var(--color-divider-strong);
  background: var(--color-paper);
  color: var(--color-ink);
  font: 1rem var(--font-sans);
  padding: 0.86rem 0.95rem;
}
.newsletter-row button {
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
  font: 600 0.82rem var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.86rem 1.1rem;
  cursor: pointer;
}
.newsletter-row button:disabled {
  opacity: 0.62;
  cursor: progress;
}
.newsletter-note {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}
.newsletter-status {
  color: var(--color-muted);
  font-size: 0.82rem;
  min-height: 1.3em;
  margin: 0;
}
.newsletter-status[data-state="success"] { color: var(--color-humanize); }
.newsletter-status[data-state="error"] { color: #8F3B2F; }
.newsletter-status[data-state="pending"] { color: var(--color-muted); }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Empty-zone caption under the venn */
.caption-empty-zone {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
  max-width: 480px;
  margin: 1.2rem auto 0;
  padding: 1rem 1.2rem;
  background: var(--color-paper-soft);
  border-left: 3px solid var(--color-build);
  text-align: left;
}

/* Tag row on thinker pages */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.role-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  background: var(--color-ink);
  color: var(--color-paper);
  border: 1px solid var(--color-ink);
}

/* Deep-dive callout on thinker pages (when a text page exists) */
.deep-dive-callout {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--color-build);
  color: var(--color-paper);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.deep-dive-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 247, 242, 0.75);
  font-weight: 600;
}
.deep-dive-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--color-paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 247, 242, 0.4);
  padding-bottom: 0.2rem;
  display: inline-block;
}
.deep-dive-link:hover {
  border-bottom-color: var(--color-paper);
}
.deep-dive-link em { font-style: italic; }

/* Source note section on thinker pages */
.source-note {
  margin-top: 3rem;
  padding: 1.4rem 1.5rem;
  background: var(--color-paper-soft);
  border-left: 3px solid var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.source-note h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .paths-grid { grid-template-columns: repeat(3, 1fr); } }
.path-card {
  background: var(--color-paper);
  border: 1px solid var(--color-divider);
  padding: 1.8rem 1.5rem;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
  display: block;
}
.path-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-build);
}
.path-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.path-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0;
}

/* =========================================================
   THINKER CARDS
   ========================================================= */
.thinker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.thinker-card {
  background: var(--color-paper);
  border: 1px solid var(--color-divider);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  border-top: 4px solid var(--color-divider);
}
.thinker-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-divider-strong);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.thinker-card.strand-build { border-top-color: var(--color-build); }
.thinker-card.strand-humanize { border-top-color: var(--color-humanize); }
.thinker-card.strand-expose { border-top-color: var(--color-expose); }

.thinker-card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.2rem;
  line-height: 1.1;
}
.thinker-card .dates {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.8rem;
}
.thinker-card .one-line {
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}
.thinker-card .role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* =========================================================
   THINKER PAGE
   ========================================================= */
.thinker-page header.thinker-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-divider);
}
.thinker-page .dates {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.thinker-page h1 {
  font-size: 3.2rem;
  margin: 0 0 0.6rem;
  font-weight: 400;
}
.thinker-page .one-line {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.thinker-page .strand-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  background: var(--color-paper-soft);
  border: 1px solid var(--color-divider);
}
.strand-tag.build { color: var(--color-build); border-color: var(--color-build-soft); }
.strand-tag.humanize { color: var(--color-humanize); border-color: var(--color-humanize-soft); }
.strand-tag.expose { color: var(--color-expose); border-color: var(--color-expose-soft); }
.strand-tag.multi-strand {
  background: linear-gradient(90deg, var(--color-build-soft) 0%, var(--color-humanize-soft) 50%, var(--color-expose-soft) 100%);
  color: var(--color-ink);
  border-color: var(--color-divider-strong);
  font-weight: 600;
}

.thinker-page .signature-quote {
  border-left: 3px solid var(--color-build);
  padding-left: 1.3em;
  margin: 2em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-ink-soft);
}
.thinker-page .signature-quote .source {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.thinker-page h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  position: relative;
}

/* =========================================================
   MAP PAGE
   ========================================================= */
.map-page {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.map-header {
  text-align: center;
  margin-bottom: 2rem;
}
.map-header h1 { font-size: 2.5rem; margin-bottom: 0.4rem; }
.map-header .lead {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

.map-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--color-divider-strong);
  padding: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.map-toggle button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--color-ink-soft);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  border-right: 1px solid var(--color-divider-strong);
}
.map-toggle button:last-child { border-right: none; }
.map-toggle button.active {
  background: var(--color-ink);
  color: var(--color-paper);
}

.map-canvas {
  width: 100%;
  background: var(--color-paper);
  border: 1px solid var(--color-divider);
  padding: 2rem 1rem 1rem;
  position: relative;
  min-height: 480px;
}
.map-canvas svg { width: 100%; height: auto; overflow: visible; }

.map-tooltip {
  position: absolute;
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.6rem 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  max-width: 240px;
  z-index: 10;
  line-height: 1.4;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip strong { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }
.map-tooltip .tt-dates { color: var(--color-muted-soft); font-size: 0.75rem; }

.map-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.map-legend-item { display: flex; align-items: center; gap: 0.45rem; }
.map-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

.map-axis-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  fill: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.map-axis-line { stroke: var(--color-divider-strong); stroke-width: 1; }
.map-grid-line { stroke: var(--color-divider); stroke-width: 1; }

.map-dot {
  cursor: pointer;
  transition: r 180ms ease, stroke-width 180ms ease;
}
.map-dot:hover { stroke-width: 3; }

.map-dot-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  fill: var(--color-ink-soft);
  pointer-events: none;
  user-select: none;
}

/* Map questions (the two organizing questions, above the toggle) */
.map-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto 1.5rem;
}
@media (max-width: 720px) { .map-questions { grid-template-columns: 1fr; } }
.map-question {
  padding: 1.2rem 1.4rem;
  background: var(--color-paper-soft);
  border-left: 3px solid var(--color-build);
}
.map-question:nth-child(2) { border-left-color: var(--color-humanize); }
.map-q-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.map-question p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--color-ink);
  margin: 0;
}

.map-empty-quadrant-note {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.2rem 1.4rem;
  background: var(--color-paper-soft);
  border-left: 3px solid var(--color-expose);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}
.map-instructions {
  max-width: 720px;
  margin: 2.5rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.55;
}

/* Map static fallback (for no-JS, mobile preview, accessibility) */
.map-fallback {
  max-width: var(--max-wide);
  margin: 4rem auto 0;
  padding: 2.5rem 1.5rem 0;
  border-top: 1px solid var(--color-divider);
}
.map-fallback h2 {
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 0.5rem;
}
.fallback-lead {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.fallback-table-wrap {
  overflow-x: auto;
  margin: 0 -1rem;
  padding: 0 1rem;
}
.fallback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}
.fallback-table th {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 2px solid var(--color-divider-strong);
  vertical-align: top;
}
.fallback-table .th-sub {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-muted-soft);
  margin-top: 0.2rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-display);
  font-style: italic;
}
.fallback-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}
.fallback-table tbody tr:hover { background: var(--color-paper-soft); }
.fallback-table a { text-decoration: none; }
.fallback-table a:hover strong { color: var(--color-build); }
.fallback-dates { font-family: var(--font-sans); font-size: 0.78rem; color: var(--color-muted); }
.fallback-num {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-soft);
  text-align: right;
}
.fallback-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
}

/* Texts page */
.texts-page { padding-top: 3rem; }
.texts-section {
  max-width: var(--max-wide);
  margin: 0 auto 4rem;
}
.texts-section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-divider);
}
.texts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.text-card {
  background: var(--color-paper);
  border: 1px solid var(--color-divider);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.text-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-divider-strong);
  box-shadow: 0 5px 16px rgba(0,0,0,0.05);
}
.text-card .text-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}
.text-card h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}
.text-card .text-author {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink-soft);
  margin-bottom: 0.8rem;
}
.text-card .text-short {
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
  color: var(--color-ink-soft);
}
.text-card .text-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--color-build);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.text-card .text-link:hover { color: var(--color-ink); }

.texts-notes {
  max-width: 760px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
.texts-notes li {
  padding: 1rem 0 1rem 1.2rem;
  border-left: 2px solid var(--color-divider-strong);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}
.texts-footnote {
  max-width: 720px;
  margin: 3rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.55;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--color-divider);
}

/* "Start here" box on /texts/ */
.start-here {
  max-width: var(--max-medium);
  margin: 0 auto 4rem;
  padding: 2rem 2rem 1.7rem;
  background: var(--color-paper-soft);
  border-left: 4px solid var(--color-build);
}
.start-here-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-build);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.start-here-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 1rem;
  font-weight: 500;
}
.start-here-list {
  margin: 0;
  padding-left: 1.5rem;
}
.start-here-list li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}
.start-here-list strong { font-weight: 600; }

/* Full-commentary badge on text cards */
.text-card-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  background: var(--color-build);
  color: var(--color-paper);
  margin-bottom: 0.7rem;
  align-self: flex-start;
}

/* Structured source-metadata block on text pages (machine-readable provenance) */
.source-metadata {
  margin-top: 3rem;
  padding: 1.5rem 1.7rem;
  background: var(--color-paper-soft);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-muted);
}
.source-metadata h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 1rem;
  font-weight: 600;
}
.source-metadata dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.3rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.source-metadata dt {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
  padding-top: 0.1rem;
}
.source-metadata dd {
  margin: 0;
  color: var(--color-ink-soft);
}
@media (max-width: 580px) {
  .source-metadata dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .source-metadata dd { margin-bottom: 0.7rem; }
}

/* Individual text-commentary page (/texts/[slug]/) */
.text-page { max-width: var(--max-medium); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.text-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--color-divider);
}
.text-breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.text-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.text-breadcrumb a:hover { color: var(--color-build); }
.text-page h1 {
  font-size: 3rem;
  margin: 0.5rem 0 0.4rem;
  font-weight: 400;
  line-height: 1.05;
}
.text-page .text-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-ink-soft);
  margin: 0 0 0.8rem;
  line-height: 1.3;
}
.text-page .text-author-line {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 1.4rem;
  font-style: italic;
}
.text-page .text-standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--color-ink);
  margin: 1.5rem 0 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--color-build);
}
.text-page h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
  margin-bottom: 0.7rem;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline-page { max-width: var(--max-wide); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.timeline-track {
  position: relative;
  margin: 3rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--color-divider-strong);
}
.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.5rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 3px solid var(--color-build);
}
.timeline-entry.strand-build::before { border-color: var(--color-build); }
.timeline-entry.strand-humanize::before { border-color: var(--color-humanize); }
.timeline-entry.strand-expose::before { border-color: var(--color-expose); }
.timeline-entry.strand-multi::before { border-color: var(--color-muted); background: var(--color-muted); }

.timeline-year {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
}
.timeline-entry h3 { font-size: 1.2rem; margin: 0.2rem 0 0.3rem; }
.timeline-entry p { font-size: 0.92rem; color: var(--color-ink-soft); margin: 0; line-height: 1.5; }
.timeline-entry a { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-build); text-decoration: none; }
.timeline-entry a:hover { text-decoration: underline; }

/* =========================================================
   THEME / PATH PAGES
   ========================================================= */
.theme-page, .path-page {
  max-width: var(--max-medium);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.theme-page h1, .path-page h1 {
  font-size: 3rem;
  font-weight: 400;
}
.theme-page .standfirst, .path-page .standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-divider);
}

/* =========================================================
   THREE-STRAND DIAGRAM (SVG)
   ========================================================= */
.three-strand-svg { max-width: 580px; margin: 0 auto; display: block; }
.three-strand-svg .strand-circle {
  fill-opacity: 0.18;
  stroke-width: 2;
}
.three-strand-svg .strand-circle.build { fill: var(--color-build); stroke: var(--color-build); }
.three-strand-svg .strand-circle.humanize { fill: var(--color-humanize); stroke: var(--color-humanize); }
.three-strand-svg .strand-circle.expose { fill: var(--color-expose); stroke: var(--color-expose); }
.three-strand-svg .strand-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.three-strand-svg .strand-label.build { fill: var(--color-build); }
.three-strand-svg .strand-label.humanize { fill: var(--color-humanize); }
.three-strand-svg .strand-label.expose { fill: var(--color-expose); }
.three-strand-svg .thinker-name {
  font-family: var(--font-sans);
  font-size: 13px;
  fill: var(--color-ink-soft);
}
.three-strand-svg a:hover .thinker-name { fill: var(--color-ink); font-weight: 600; }

/* =========================================================
   DOCTRINAL LENS DIAGRAM
   ========================================================= */
.doctrinal-lens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-divider);
  max-width: 540px;
  margin: 0 auto;
}
.lens-quadrant {
  padding: 1.4rem 1.1rem;
  min-height: 180px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
}
.lens-quadrant:nth-child(2n) { border-right: none; }
.lens-quadrant:nth-child(n+3) { border-bottom: none; }
.lens-quadrant h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}
.lens-quadrant .lens-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}
.lens-quadrant .lens-thinkers {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}
.lens-quadrant .lens-thinkers a {
  text-decoration: none;
  color: var(--color-ink-soft);
  border-bottom: 1px dotted var(--color-divider-strong);
}
.lens-quadrant .lens-thinkers a:hover { color: var(--color-build); border-bottom-color: var(--color-build); }
.lens-quadrant.creation h3 { color: var(--color-creation); }
.lens-quadrant.fall h3 { color: var(--color-fall); }
.lens-quadrant.redemption h3 { color: var(--color-redemption); }
.lens-quadrant.eschatology h3 { color: var(--color-eschatology); }

/* =========================================================
   UTILITY
   ========================================================= */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.muted { color: var(--color-muted); }
.small { font-size: 0.9em; }
.font-sans { font-family: var(--font-sans); }

.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.cta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
  transition: background var(--duration) var(--ease);
  border: 1px solid var(--color-ink);
}
.cta:hover { background: var(--color-build); border-color: var(--color-build); }
.cta-secondary { background: transparent; color: var(--color-ink); }
.cta-secondary:hover { background: var(--color-paper-soft); color: var(--color-build); }

/* Pull-quotes within prose */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-build);
  margin: 2rem 0;
  text-align: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Related thinkers section */
.related-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-divider);
}
.related-section h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.related-thinkers { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.related-thinkers a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-paper-soft);
  text-decoration: none;
  color: var(--color-ink-soft);
  border: 1px solid var(--color-divider);
  transition: all var(--duration) var(--ease);
}
.related-thinkers a:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
