:root{--bg:#0d1117;--surface:#151b23;--text:#edf2f7;--muted:#a9b4c2;--accent:#d8b46a;--border:#2b3542;--max:1180px;--narrow:820px;--shadow:0 14px 40px rgba(0,0,0,.24)}html[data-theme=light]{--bg:#f5f3ee;--surface:#fff;--text:#18202a;--muted:#5d6875;--accent:#8b611f;--border:#d9d4c9;--shadow:0 12px 30px rgba(35,30,20,.09)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}.container{width:min(calc(100% - 40px),var(--max));margin:auto}.narrow{max-width:var(--narrow)}.site-header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--border)}.header-inner{min-height:78px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand img{width:48px;height:48px}.brand strong{display:block;font-family:Georgia,serif;font-size:1.15rem}.brand small{display:block;color:var(--muted);font-size:.75rem}.site-nav{display:flex;align-items:center;gap:17px;font-size:.9rem}.site-nav a{color:var(--muted)}.theme-toggle,.menu-toggle{border:1px solid var(--border);background:var(--surface);color:var(--text);padding:7px 11px;border-radius:6px;cursor:pointer}.menu-toggle{display:none}.hero{border-bottom:1px solid var(--border)}.hero-grid{min-height:590px;display:grid;grid-template-columns:1.35fr .65fr;align-items:center;gap:50px}.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:750;color:var(--accent)}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.12;margin:0 0 18px}h1{font-size:clamp(2.6rem,6vw,5.2rem);letter-spacing:-.035em}.hero-lede{font-size:1.2rem;color:var(--muted);max-width:720px}.hero-mark{text-align:center}.hero-mark img{width:min(310px,70%)}.hero-actions{display:flex;gap:22px;align-items:center;margin-top:30px}.button{display:inline-block;padding:11px 17px;background:var(--accent);color:#111;border-radius:6px;font-weight:750}.text-link,.read-more{font-weight:700;color:var(--accent)}.home-section{padding:76px 0}.section-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.section-title h2{font-size:2.2rem;margin-top:6px}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:var(--surface);border:1px solid var(--border);padding:26px;border-radius:10px;box-shadow:var(--shadow)}.card h2{font-size:1.45rem;margin-top:9px}.card p{color:var(--muted)}.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.topic{display:grid;grid-template-columns:1fr auto;gap:7px;background:var(--surface);border:1px solid var(--border);padding:20px;border-radius:8px}.topic span{font-family:Georgia,serif;font-size:1.2rem}.topic b{color:var(--accent)}.topic small{grid-column:1/-1;color:var(--muted);line-height:1.45}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:30px;box-shadow:var(--shadow)}.newsletter{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.newsletter h2{font-size:2rem;margin-top:7px}.newsletter p{color:var(--muted)}.newsletter-form label{display:block;font-size:.8rem;font-weight:700;margin-bottom:7px}.form-row{display:flex;gap:8px}.form-row input{flex:1;min-width:0;background:var(--bg);color:var(--text);border:1px solid var(--border);padding:12px;border-radius:6px}.form-row button{border:0;background:var(--accent);color:#111;font-weight:750;padding:0 16px;border-radius:6px}.setup-note{color:var(--muted);font-size:.9rem}.section-head{padding:80px 0 30px}.section-head h1{font-size:3.6rem;margin-top:8px}.section-head p{color:var(--muted);max-width:760px}.article{padding:85px 20px}.article h1{font-size:clamp(2.5rem,5vw,4.2rem);margin-top:8px}.lede{font-size:1.25rem;color:var(--muted)}.meta{color:var(--muted);font-size:.85rem;border-bottom:1px solid var(--border);padding-bottom:25px;margin-bottom:35px}.prose{font-family:Georgia,"Times New Roman",serif;font-size:1.12rem}.prose h2{font-size:1.8rem;margin-top:45px}.prose a{text-decoration:underline}.comments{margin-top:60px;font-family:system-ui,sans-serif}.error-page{padding:120px 0;text-align:center}.site-footer{border-top:1px solid var(--border);margin-top:40px;padding:50px 0 20px}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.footer-grid p{color:var(--muted)}.copyright{border-top:1px solid var(--border);margin-top:35px;padding-top:18px;color:var(--muted);font-size:.8rem}@media(max-width:900px){.site-nav{display:none;position:absolute;top:78px;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--border);padding:18px 20px;flex-direction:column;align-items:stretch}.site-nav.open{display:flex}.menu-toggle{display:block}.hero-grid{grid-template-columns:1fr;min-height:auto;padding:75px 0}.hero-mark{order:-1}.hero-mark img{width:170px}.card-grid{grid-template-columns:1fr 1fr}.topic-grid{grid-template-columns:1fr 1fr}.newsletter{grid-template-columns:1fr}}@media(max-width:600px){.container{width:min(calc(100% - 28px),var(--max))}.brand small{display:none}.hero-grid{padding:55px 0}.hero-actions{flex-direction:column;align-items:flex-start}.card-grid,.topic-grid{grid-template-columns:1fr}.section-head{padding:55px 0 25px}.section-head h1{font-size:2.7rem}.article{padding:55px 14px}.newsletter{padding:23px}.form-row{flex-direction:column}.form-row button{height:44px}.footer-grid{grid-template-columns:1fr}}
/* v2 content architecture */
.hero-mark img{width:min(300px,70%);aspect-ratio:1;object-fit:contain}
.card{padding:0;overflow:hidden}.card-link{display:block;height:100%;padding:26px}.card-link h2{margin-top:9px}.card-link p{margin-bottom:18px}.card-link:hover{color:inherit}.card-link:hover h2{color:var(--accent)}
.article-header{padding-bottom:28px}.article-meta{display:flex;flex-wrap:wrap;gap:9px 18px;color:var(--muted);font-size:.86rem;border-bottom:1px solid var(--border);padding:16px 0 22px;margin-top:24px}.article-taxonomy{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.article-taxonomy a{font-size:.78rem;border:1px solid var(--border);padding:4px 9px;border-radius:999px;color:var(--muted)}.article-taxonomy a:hover{color:var(--accent);border-color:var(--accent)}
.article-reference{margin:28px 0;padding:18px 20px;background:var(--surface);border-left:3px solid var(--accent);color:var(--muted)}.article-reference strong{display:block;color:var(--text);font-family:Georgia,serif;margin-bottom:4px}.sources,.related{margin-top:60px;padding-top:30px;border-top:1px solid var(--border)}.sources h2,.related h2{font-size:1.8rem}.sources li{margin:8px 0}.sources a{text-decoration:underline}.related-grid{margin-top:22px}.section-list{padding-bottom:80px}
@media(max-width:900px){.hero-mark img{width:180px}}
.site-nav a.active{color:var(--text);position:relative}.site-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-9px;height:2px;background:var(--accent)}
@media(max-width:900px){.header-inner{min-height:68px;gap:10px}.site-nav{top:68px}.theme-toggle{margin-left:0}.menu-toggle{margin-left:auto}.brand img{width:44px;height:44px}.brand strong{font-size:1.05rem}.site-nav a.active::after{display:none}}

/* v3 article architecture */
.article-summary{margin:28px 0;padding:20px 22px;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--muted)}
.article-summary strong{display:block;color:var(--text);font-family:Georgia,"Times New Roman",serif;font-size:1.05rem;margin-bottom:5px}
.article-summary p{margin:0}
.article-meta span+span::before{content:"·";margin-right:18px;color:var(--accent)}
.source-note{color:var(--muted)}
.prose blockquote{margin:30px 0;padding:4px 24px;border-left:3px solid var(--accent);color:var(--muted)}
.prose img{max-width:100%;height:auto;border-radius:8px}
.prose table{width:100%;border-collapse:collapse;margin:30px 0;font-family:system-ui,sans-serif;font-size:.95rem}
.prose th,.prose td{border:1px solid var(--border);padding:10px;text-align:left}
.prose th{background:var(--surface)}
.article-taxonomy + .article-taxonomy{margin-top:8px}
/* The Steady Watchman — section/list page styles */
.section-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-header h1 {
  margin: 0 0 18px;
}

.section-description {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  padding: 26px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 8px;
  background: var(--card, rgba(255,255,255,.035));
}

.article-card-meta {
  margin-bottom: 12px;
  color: var(--gold, #d4af37);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  line-height: 1.12;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card-subtitle {
  margin-bottom: 12px;
  opacity: .82;
}

.article-card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold, #d4af37);
  font-weight: 700;
  text-decoration: none;
}

.empty-section {
  padding: 28px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 8px;
}

@media (max-width: 760px) {
  .section-page {
    width: min(100% - 28px, 1120px);
    padding-top: 48px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card h2 {
    font-size: 1.45rem;
  }
}

/* V5 — Topic taxonomy pages */
.taxonomy-page {
  padding: 5rem 0 6rem;
}
.taxonomy-page .section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.taxonomy-page h1 {
  margin: .25rem 0 2.5rem;
}
.taxonomy-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}
.article-card-section {
  color: var(--gold, #d4af37);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.taxonomy-page .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .taxonomy-page {
    padding: 3rem 0 4rem;
  }
  .taxonomy-page .section-shell {
    padding: 0 1rem;
  }
  .taxonomy-page .article-grid {
    grid-template-columns: 1fr;
  }
}
/* Topic page heading */
.taxonomy-page .eyebrow + h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
/* Search page */
.search-page {
  padding: 4rem 0 5rem;
}

.search-page .section-shell {
  max-width: 1100px;
}

.search-page h1 {
  margin-bottom: 2rem;
}

.search-form {
  max-width: 760px;
  margin-bottom: 3rem;
}

.search-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.search-form-row {
  display: flex;
  gap: 0.75rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.search-form button {
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--background);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 1.5rem;
}

.search-result {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.search-result h2 {
  margin-top: 0;
}

.search-result p {
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .search-page {
    padding: 3rem 0 4rem;
  }

  .search-page .section-shell {
    padding: 0 1rem;
  }

  .search-form-row {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }
}
/* Search page layout */
.search-page .section-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer .footer-logo {
  width: 72px;
  height: 72px;
  max-width: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .footer-brand {
    align-items: flex-start;
  }

  .site-footer .footer-logo {
    width: 60px;
    height: 60px;
    max-width: 60px;
  }
}
