:root {
  --midnight: #0b1a28;
  --charcoal: #1c1b19;
  --ivory: #f6f1e8;
  --paper: #efe8dc;
  --river: #4a6f8c;
  --forest: #2c4a3e;
  --brass: #b08d57;
  --muted: #6b645a;
  --ink: #241f1a;
  --rule: rgba(36, 31, 26, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --measure: 42rem;
  --space: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, .display, .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); margin: 0.2em 0 0.35em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 80; background: var(--ivory); padding: 0.5rem 1rem;
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 26, 40, 0.94);
  color: var(--ivory);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1280px; margin: 0 auto; padding: 0.85rem var(--space);
}
.wordmark {
  font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; font-weight: 600;
}
.nav-desktop { display: none; gap: 1.35rem; margin-left: auto; }
.nav-desktop a, .mobile-nav a {
  text-decoration: none; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246, 241, 232, 0.86);
}
.nav-desktop a:hover, .mobile-nav a:hover { color: var(--brass); }
.header-actions { margin-left: auto; display: flex; gap: 0.4rem; }
.icon-btn {
  background: none; border: 0; color: inherit; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 1.1rem; height: 1px; background: currentColor; margin: 4px 0;
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .header-actions { margin-left: 0; }
}
.mobile-nav {
  display: none;
  background: var(--midnight); color: var(--ivory); padding: 1rem var(--space) 2rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav nav { display: grid; gap: 1rem; }
.search-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(11,26,40,0.94); z-index: 50;
  place-items: center; padding: var(--space);
}
.search-overlay.is-open { display: grid; }
.search-overlay-form { width: min(40rem, 100%); display: flex; gap: 0.5rem; }
.search-overlay input, .search-page-form input, .stack-form input, .stack-form textarea, .newsletter-form input {
  width: 100%; border: 0; border-bottom: 1px solid var(--brass); background: transparent;
  color: inherit; font: inherit; padding: 0.7rem 0;
}
.search-overlay input { color: var(--ivory); font-size: 1.4rem; }
.overlay-close {
  position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: 0; color: var(--ivory);
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}

.hero { position: relative; min-height: 88vh; color: var(--ivory); display: grid; align-items: end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,26,40,0.15) 0%, rgba(11,26,40,0.72) 100%);
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-lines path { stroke-dasharray: 8 14; animation: flow 28s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -400; } }
.hero-copy { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 var(--space) 4.5rem; }
.hero-copy h1 { max-width: 16ch; }
.lede { font-size: 1.15rem; max-width: 42rem; color: rgba(246,241,232,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn {
  display: inline-block; text-decoration: none; padding: 0.75rem 1.3rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--brass); color: var(--midnight); }
.btn-ghost { border-color: rgba(246,241,232,0.55); color: var(--ivory); background: transparent; }
.kicker {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 0.6rem;
}
.dek { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.3; color: var(--muted); }

.section { max-width: 1280px; margin: 0 auto; padding: 4.5rem var(--space); }
.featured-grid, .author-header, .author-tile {
  display: grid; gap: 2rem;
}
@media (min-width: 860px) {
  .featured-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.featured-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.display a { text-decoration: none; }
.triple, .story-grid, .pathway-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) {
  .triple, .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .triple, .pathway-grid { grid-template-columns: repeat(4, 1fr); }
  .triple { grid-template-columns: repeat(3, 1fr); }
}
.quiet-card, .pathway-card, .story-card {
  background: var(--paper);
  padding: 0;
}
.quiet-card { padding: 1.5rem; }
.story-card a, .pathway-card { text-decoration: none; display: grid; height: 100%; color: inherit; }
.story-card img, .pathway-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.story-card-body, .pathway-card div { padding: 1.1rem 1.2rem 1.4rem; }
.chain { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.chain li {
  position: relative; padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.92rem; border-left: 1px solid var(--brass);
}
.chain li::before {
  content: ""; position: absolute; left: -3px; top: 0.7rem; width: 5px; height: 5px;
  border-radius: 50%; background: var(--brass);
}
.good-news-band { background: var(--forest); color: var(--ivory); max-width: none; padding-left: max(var(--space), calc((100% - 1280px)/2 + var(--space))); padding-right: max(var(--space), calc((100% - 1280px)/2 + var(--space))); }
.good-news-band .kicker, .good-news-band .dek { color: #d9c7a1; }
.good-news-band .story-card { background: rgba(246,241,232,0.08); color: var(--ivory); }
.one-thing { text-align: center; }
.one-thing blockquote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-style: italic;
  max-width: 38rem; margin: 0 auto 1.2rem; line-height: 1.3;
}
.text-link { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: var(--brass); }

.page-header { max-width: 50rem; margin: 0 auto; padding: 4rem var(--space) 1rem; }
.page-article, .narrow { max-width: var(--measure); margin: 0 auto; padding: 2rem var(--space) 5rem; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose p:first-of-type { font-size: 1.18rem; }
.feature-body .prose p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4rem; float: left; line-height: 0.8; padding: 0.12em 0.12em 0 0;
}
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose figure { margin: 2rem 0; }
.prose figcaption, .feature-figure figcaption {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem;
}
.prose blockquote {
  border-left: 1px solid var(--brass); margin: 2rem 0; padding-left: 1.2rem;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
}

.feature-figure img { width: 100%; max-height: 78vh; object-fit: cover; }
.feature-intro { max-width: 52rem; margin: 0 auto; padding: 2.5rem var(--space) 1rem; }
.byline { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; color: var(--muted); font-size: 0.92rem; }
.demo-flag {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--brass); color: var(--brass); padding: 0.15rem 0.4rem;
}
.feature-layout {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--space) 4rem;
  display: grid; gap: 2rem;
}
@media (min-width: 980px) {
  .feature-layout { grid-template-columns: 14rem 1fr; }
}
.evidence-lens {
  background: var(--paper); padding: 1.1rem; position: sticky; top: 5rem;
}
.evidence-bar { height: 4px; background: rgba(36,31,26,0.12); margin: 0.6rem 0; }
.evidence-bar span { display: block; height: 100%; background: var(--brass); }
.evidence-lens .tooltip {
  font-size: 0.8rem; color: var(--muted); display: none;
}
.evidence-lens:hover .tooltip, .evidence-lens:focus .tooltip, .evidence-lens:focus-within .tooltip { display: block; }
.share { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.share a, .share button {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-decoration: none;
}
.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.3; margin: 2.5rem 0; max-width: 36rem; color: var(--forest);
}
.box { margin: 2.5rem 0; padding: 1.4rem 1.5rem; background: var(--paper); border-left: 3px solid var(--river); }
.box-know { border-color: var(--forest); }
.box-uncertain { border-color: var(--brass); }
.box-act { border-color: var(--river); }
.box-note { color: var(--muted); font-style: italic; }
.source-note { font-size: 0.85rem; color: var(--muted); margin-top: 3rem; }
.tags a {
  display: inline-block; margin: 0 0.6rem 0.4rem 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}

.author-header { max-width: 1100px; margin: 0 auto; padding: 3rem var(--space); }
@media (min-width: 800px) { .author-header { grid-template-columns: 16rem 1fr; } }
.portrait { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.author-index { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .author-index { grid-template-columns: 1fr 1fr; } }
.author-tile { grid-template-columns: 7.5rem 1fr; background: var(--paper); text-decoration: none; color: inherit; }
.author-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }

.follow-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.follow-tab {
  background: transparent; border: 1px solid var(--rule); padding: 0.5rem 0.8rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.follow-tab.is-active { border-color: var(--brass); color: var(--forest); }
.follow-panel { display: none; gap: 1.5rem; }
.follow-panel.is-active { display: grid; }
@media (min-width: 800px) { .follow-panel.is-active { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.chain-animated li { animation: rise 0.6s ease both; animation-delay: calc(var(--i) * 0.12s); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.site-footer { background: var(--midnight); color: var(--ivory); padding: 3.5rem var(--space) 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.footer-label { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--brass); }
.footer-links { display: grid; gap: 0.45rem; align-content: start; }
.footer-links a { text-decoration: none; color: rgba(246,241,232,0.8); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.newsletter-form input { color: var(--ivory); min-width: 14rem; }
.newsletter-form button, .search-page-form button, .search-overlay button[type=submit] {
  background: var(--brass); color: var(--midnight); border: 0; padding: 0.7rem 1rem; cursor: pointer;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; font-family: var(--sans);
}
.rss-quiet { margin-top: 1.2rem; font-size: 0.75rem; opacity: 0.45; }
.rss-quiet a { color: inherit; }
.copyright { max-width: 1280px; margin: 2.5rem auto 0; font-size: 0.8rem; opacity: 0.5; }
.flash-wrap { max-width: 1280px; margin: 0 auto; padding: 1rem var(--space) 0; }
.flash-success { color: var(--forest); }
.flash-error { color: #8a2a2a; }
.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.plain-list { line-height: 1.9; }
.search-page-form { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.pager { display: flex; gap: 1rem; margin-top: 2rem; justify-content: center; }
