:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #6b6b66;
  --rule: #e6e2d8;
  --accent: #2a5a8c;
  --accent-hover: #3a7ab8;
  --max: 680px;
  --max-wide: 960px;

  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
}

main {
  max-width: var(--max);
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: currentColor;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
}
h1 { font-size: 2rem; margin: 0 0 1.25rem; line-height: 1.15; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }

p, ul, ol { margin: 0 0 1rem; }

blockquote {
  margin: 1.5rem 0;
  padding: 0 1.25rem;
  border-left: 2px solid var(--rule);
  color: var(--fg);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: .5rem; }
blockquote footer {
  font-style: normal;
  color: var(--muted);
  font-size: .95em;
}

img { max-width: 100%; height: auto; }
figure { margin: 1.5rem 0; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* ----- Header / nav ----- */
.site-header {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.25rem 1.5rem .75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.site-header .brand a {
  color: var(--fg);
  border-bottom: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.site-header .brand a:hover { color: var(--accent); }
.site-header .tagline {
  color: var(--muted);
  margin-left: .5rem;
  font-size: .95em;
  font-weight: 400;
  font-style: italic;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: .95rem;
}
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: 1rem 1rem .5rem;
  }
  .site-nav ul {
    gap: .9rem;
    font-size: .9rem;
    width: 100%;
  }
  .site-header .tagline { display: none; }
}
.site-nav a {
  color: var(--fg);
  border-bottom: none;
}
.site-nav a:hover { color: var(--accent); }

/* ----- Footer ----- */
.site-footer {
  max-width: var(--max-wide);
  margin: 4rem auto 2rem;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .9rem;
  text-align: center;
}
.social-links {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.social-links a { color: var(--muted); border-bottom: none; }
.social-links a:hover { color: var(--accent); }
.site-footer .meta a { color: var(--muted); border-bottom: none; }
.site-footer .meta a:hover { color: var(--accent); }
.press-line {
  margin: 0 0 .65rem;
  font-size: .95em;
  color: var(--fg);
}
.press-line a { color: var(--accent); }
.copyright { font-size: .85em; }

/* ----- Home page ----- */
.home .hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 2rem;
  align-items: center;
}
.hero-name {
  font-size: 2.4rem;
  margin: 0 0 .5rem;
  letter-spacing: -0.01em;
}
.hero-roles {
  font-size: 1.15rem;
  color: var(--fg);
  margin: 0 0 .25rem;
}
.hero-line {
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1.25rem;
}
.hero-photo img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-cta { margin: 0; }
.btn-primary {
  display: inline-block;
  padding: .55rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  border-bottom: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  border-bottom: none;
}
.btn-secondary {
  display: inline-block;
  padding: .55rem 1rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
@media (max-width: 600px) {
  .home .hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-photo { max-width: 140px; margin: 0 auto; }
}

.proof-strip {
  margin: 0 0 2.5rem;
  padding: .85rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.proof-strip a { color: var(--fg); border-bottom: none; }
.proof-strip a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .proof-strip { font-size: .85rem; padding: .75rem .85rem; text-align: left; }
}

.home .now h2,
.home .featured-book h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}
.home .featured-book h2 { text-transform: none; letter-spacing: -0.005em; color: var(--fg); font-size: 1.6rem; }
.home .featured-book h2 a { color: var(--fg); border-bottom: none; }
.home .featured-book h2 a:hover { color: var(--accent); }

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0 2.5rem;
}
.now-pillar h3 {
  font-size: 1rem;
  margin: 0 0 .35rem;
  color: var(--fg);
}
.now-pillar p {
  margin: 0 0 .5rem;
  font-size: .95rem;
  line-height: 1.55;
}
.now-link a {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--accent);
}
@media (max-width: 680px) {
  .now-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.featured-book {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.featured-book-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 .25rem;
}
.featured-book-sub { color: var(--muted); font-size: .98em; margin-bottom: 1rem; }
.featured-book-pullquote {
  margin: 1rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--accent);
  font-size: 1.1em;
  font-family: var(--serif);
  color: var(--fg);
  line-height: 1.45;
}
.featured-book-cta {
  font-family: var(--sans);
  font-size: .95rem;
  margin: 1rem 0 1.5rem;
}
.featured-book-cta .primary {
  font-weight: 600;
  margin-right: 1rem;
}
.featured-book-cta a { margin-right: 1rem; }
@media (max-width: 680px) {
  .featured-book { grid-template-columns: 1fr; }
  .featured-book-cover { max-width: 200px; }
}

/* ----- Praise (home) ----- */
.praise {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.praise h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}
.praise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 1rem;
}
.praise-quote {
  margin: 0;
  padding: 0;
  font-size: .92em;
  border-left: 2px solid var(--rule);
  padding-left: .85rem;
  font-style: italic;
}
.praise-quote p { margin: 0 0 .5rem; }
.praise-quote footer {
  margin-top: .25rem;
  font-size: .9em;
  font-style: normal;
}
@media (max-width: 800px) {
  .praise-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.praise-more {
  font-family: var(--sans);
  font-size: .9rem;
  margin: 1rem 0 0;
}

/* ----- Generic callout box ----- */
.callout {
  margin: 1.5rem 0;
  padding: .85rem 1.1rem;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: .98em;
}
.callout strong { color: var(--fg); }

/* ----- Other views: small floated book covers ----- */
.other-view-cover {
  float: right;
  width: 130px;
  margin: 0 0 1rem 1.5rem;
}
.other-view-cover img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.other-view-cover figcaption {
  margin-top: .4rem;
  text-align: center;
  font-family: var(--sans);
  font-size: .8rem;
}
.other-view-cover figcaption a { border-bottom: none; color: var(--accent); }
.other-view-cover figcaption a:hover { color: var(--accent-hover); }
@media (max-width: 600px) {
  .other-view-cover { float: none; max-width: 140px; margin: 1rem auto; }
  .other-view-cover img { display: block; }
}

/* ----- About-page photo ----- */
.about-photo {
  float: right;
  width: 180px;
  margin: 0 0 1rem 1.5rem;
}
.about-photo img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
@media (max-width: 600px) {
  .about-photo { float: none; margin: 0 auto 1.5rem; max-width: 160px; }
}

/* ----- Book-detail aside ----- */
.book-details {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--accent);
  font-family: var(--sans);
  font-size: .92rem;
}
.book-details h3 {
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}
.book-details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .25rem .75rem;
  margin: 0;
}
.book-details dt { color: var(--muted); font-weight: 500; }
.book-details dd { margin: 0; color: var(--fg); }
.book-details dd a { border-bottom: none; }

/* ----- Recent writings (home) ----- */
.recent-writings {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.recent-writings h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}
.writings-list.compact { margin: 0; }
.writings-list.compact li {
  border-bottom: 1px solid var(--rule);
  padding: .85rem 0;
  margin: 0;
}
.writings-list.compact li:last-child { border-bottom: none; }
.writings-list.compact .writing-title { font-size: 1.05rem; margin: 0; }
.writings-list.compact .writing-excerpt {
  margin: .35rem 0 0;
  font-size: .92em;
  color: var(--fg);
  line-height: 1.5;
}
.recent-writings .more-link {
  font-family: var(--sans);
  font-size: .9rem;
  margin: 1rem 0 0;
}

/* ----- Newsletter embed ----- */
.newsletter {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.newsletter h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 .5rem;
}
.newsletter > p { margin-bottom: 1rem; color: var(--fg); }
.newsletter-cta { margin: 1rem 0 .5rem; }
.newsletter-meta {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}
.newsletter-fallback {
  margin: .75rem 0 0;
  font-family: var(--sans);
  font-size: .9rem;
}

/* ----- Single book detail ----- */
.book-hero {
  text-align: center;
  margin: 0 auto 2rem;
  padding: 1rem 0 0;
}
.book-hero img {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.book-hero figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .98em;
}
.book-hero figcaption strong { color: var(--fg); font-size: 1.1em; }

.buy-links {
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  font-family: var(--sans);
  font-size: .9rem;
}
.buy-links strong { margin-right: .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.buy-links a { white-space: nowrap; }
.buy-links .buy-primary {
  display: inline-block;
  padding: .35rem .8rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  border-bottom: none;
  font-weight: 500;
}
.buy-links .buy-primary:hover { background: var(--accent-hover); color: #fff; border-bottom: none; }

.buy-international {
  margin: 0 0 2rem;
  padding: .65rem 1rem;
  background: rgba(0,0,0,.02);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .9rem;
}
.buy-international > summary {
  cursor: pointer;
  color: var(--muted);
}
.buy-international[open] > summary { margin-bottom: .5rem; }
.buy-international ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.buy-international li { margin-bottom: .25rem; line-height: 1.5; }
.buy-international a { color: var(--accent); }

/* ----- Media CTA ----- */
.media-cta {
  margin: 1.25rem 0 2rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--accent);
  font-family: var(--sans);
  font-size: .95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
}
.media-cta strong { font-weight: 600; }
.media-cta a.btn-primary { font-size: .9rem; padding: .5rem .85rem; }

/* ----- Books index ----- */
.books-index {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.books-index li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
/* Lead book — larger cover, more vertical room, bigger heading */
.books-index li:first-child {
  grid-template-columns: 200px 1fr;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
}
.books-index li:first-child > div h2 { font-size: 1.6rem; }
.books-index li:last-child { border-bottom: none; }
.books-index-pullquote {
  margin: 1rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
  font-style: italic;
  font-size: .98em;
  line-height: 1.5;
}
.books-index-pullquote p { margin: 0 0 .35rem; }
.books-index-pullquote footer { font-style: normal; font-size: .9em; color: var(--muted); }
.books-index-meta {
  font-family: var(--sans);
  font-size: .85rem;
  margin: .5rem 0 1rem;
}
.books-index-cta {
  font-family: var(--sans);
  font-size: .95rem;
  margin: 1rem 0 0;
}
.books-index-cta a { margin-right: .85rem; }
.books-index-cta .btn-primary { font-size: .9rem; padding: .45rem .85rem; }
.books-index li > div { min-width: 0; }
.books-index li:has(> a > img) { /* book has cover */ }
.books-index li > a img { width: 100%; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.books-index li > div:first-child:not(:has(img)) { /* placeholder for non-cover books */ }
.books-index li > div h2 {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
}
.books-index li > div h2 a { color: var(--fg); border-bottom: none; }
.books-index li > div h2 a:hover { color: var(--accent); }

@media (max-width: 680px) {
  .books-index li { grid-template-columns: 1fr; }
}

/* Books-index entries with no cover: use full row width */
.books-index li:not(:has(> a)) { grid-template-columns: 1fr; }

/* ----- Writings (Substack mirror) ----- */
.lede {
  font-size: 1.05em;
  color: var(--fg);
}
.muted { color: var(--muted); }
.writings-actions {
  font-family: var(--sans);
  font-size: .9rem;
  margin: 1rem 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.writings-actions .rss-link {
  color: var(--muted);
  margin-left: .5rem;
}
.writings-actions .rss-link:hover { color: var(--accent); }

.writings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.writings-list li {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.writings-list li:last-child { border-bottom: none; }
.writing-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: none;
  margin-bottom: .15rem;
}
.writing-title:hover { color: var(--accent); }
.writing-date {
  display: block;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .5rem;
}
.writing-excerpt {
  margin: 0;
  color: var(--fg);
  font-size: .98em;
  line-height: 1.55;
}

/* ----- Per-paper page ----- */
.paper .paper-authors { color: var(--fg); margin: 0 0 .25rem; font-size: 1.02em; }
.paper .meta { color: var(--muted); margin: 0 0 1.5rem; }
.paper .meta a { color: var(--muted); border-bottom: none; }
.paper .meta a:hover { color: var(--accent); border-bottom: 1px solid currentColor; }
.paper h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin: 2rem 0 .5rem;
}
.paper .abstract { margin: 0 0 1.5rem; }
.paper .links a { margin-right: .5rem; }
.bibtex {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85em;
  background: rgba(0,0,0,.025);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  color: var(--fg);
}

/* ----- Publications index ----- */
.areas {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: .9em;
  font-family: var(--sans);
}
.areas a {
  display: inline-block;
  padding: .25rem .65rem;
  margin: 0 .15rem .25rem 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  background: rgba(0,0,0,.015);
  transition: background .15s ease, border-color .15s ease;
}
.areas a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pub-list { list-style: none; padding: 0; }
.pub-list li {
  margin-bottom: .9rem;
  line-height: 1.5;
}

/* ----- Now: as-of stamp ----- */
.now-asof {
  font-family: var(--sans);
  font-size: .65em;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ----- Collapsible discussion questions ----- */
.discussion-questions {
  margin: 1.5rem 0;
  padding: .85rem 1.1rem;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.discussion-questions > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--fg);
  list-style: revert;
}
.discussion-questions > summary::marker { color: var(--accent); }
.discussion-questions[open] > summary { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.discussion-questions blockquote { font-size: .92em; }

/* ----- Page TOC (book pages) ----- */
.page-toc {
  font-family: var(--sans);
  font-size: .9rem;
  margin: 0 0 1.5rem;
  padding: .65rem 1rem;
  background: rgba(0,0,0,.025);
  border-radius: 6px;
  color: var(--muted);
}
.page-toc a { color: var(--fg); border-bottom: none; }
.page-toc a:hover { color: var(--accent); }
