/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --bg-card: #f4f3f0;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --accent: #1e2433;
  --accent-light: #3a4560;
  --rule: #e0ddd8;
  --max-width: 720px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 18px; }

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ────────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--text);
}

.site-name:hover { text-decoration: none; }

.site-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  flex-shrink: 0;
}

nav { display: flex; gap: 1.5rem; }

nav a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

nav a:hover { color: var(--text); text-decoration: none; }

/* Narrow screens: let the nav drop below the site name and wrap instead of
   overflowing the right edge. Desktop layout is unaffected. */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 0.75rem 1.5rem; }
  .site-name { white-space: nowrap; }
  nav { flex-wrap: wrap; gap: 0.5rem 1.25rem; }
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.copyright {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ─── Home ──────────────────────────────────────────────────── */
.home {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.home-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.home-hero h1 {
  font-size: 2.2rem;
  font-weight: normal;
  line-height: 1.25;
  color: var(--accent);
}

.home-intro {
  margin-bottom: 3rem;
}

.home-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.home .series-list h2 {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ─── Series Cards ──────────────────────────────────────────── */
.series-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.series-card:last-child { border-bottom: none; }

.series-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.series-card h2, .series-card h3 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.series-card h2 a, .series-card h3 a {
  color: var(--text);
}

.series-card h2 a:hover, .series-card h3 a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

.series-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: 560px;
}

.read-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent-light);
}

/* ─── Series Index ──────────────────────────────────────────── */
.series-index {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.series-index h1 {
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* ─── Series Page ───────────────────────────────────────────── */
.series-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.back-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--text); text-decoration: none; }

.series-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.series-header h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.series-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.series-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* ─── Series Content ────────────────────────────────────────── */
.series-content p {
  margin-bottom: 1.25rem;
}

.series-content h2 {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 3rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.series-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.series-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.series-content em {
  font-style: italic;
  color: var(--text-muted);
}

.series-content strong {
  font-weight: bold;
  color: var(--text);
}

.series-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

/* Tagline treatment handled by .series-tagline-close class */

.series-tagline-close {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.series-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-light);
}

.series-footer a { color: var(--text-muted); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .home-hero h1 { font-size: 1.75rem; }
  .series-header h1 { font-size: 1.5rem; }
}


/* ─── Featured Book (Homepage) ─────────────────────────────── */
.featured-book {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
}

.featured-book-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.featured-book h2 {
  font-size: 1.35rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.featured-book h2 a {
  color: var(--text);
}

.featured-book h2 a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

.featured-book p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 560px;
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.book-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.4rem 0.9rem;
  display: inline-block;
}

.book-cta:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.book-more {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.book-royalties {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  max-width: 560px;
}

.book-royalties a {
  color: var(--accent);
}

.book-royalties a:hover {
  color: var(--accent-light);
}

/* ─── Books Index ───────────────────────────────────────────── */
.books-index {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.books-index h1 {
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.book-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin-bottom: 2rem;
}

.book-card h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.book-card h2 a { color: var(--text); }
.book-card h2 a:hover { color: var(--accent-light); text-decoration: none; }

.book-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 560px;
}

/* ─── Individual Book Page ──────────────────────────────────── */
.book-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.book-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.book-header h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 1rem 0;
  line-height: 1.2;
}

.book-content p {
  margin-bottom: 1.25rem;
}

.book-content strong {
  font-weight: bold;
}

/* ===========================
   Generic content pages
   (About, Reframing, Papers)
   =========================== */

.content-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-page .page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.content-page .page-header h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  margin: 0;
}

.content-page .page-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.content-page .page-content p {
  margin-bottom: 1.25rem;
}

.content-page .page-content a {
  color: var(--accent);
  text-decoration: underline;
}

.content-page .page-content a:hover {
  color: var(--accent-light);
}

.content-page .page-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.content-page .page-content h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.content-page .page-content em {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Book series label + cover */
.book-series-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.book-header .book-series-label {
  margin-top: 1rem;
  margin-bottom: 0;
}

.book-cover {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Author photo */
.author-photo {
  display: block;
  width: 220px;
  margin: 0 auto 2.5rem;
}

/* Book CTA button group */
.book-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ─── Creative Reframing article list ──────────────────────── */
.article-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: article;
}

.article-list li {
  counter-increment: article;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.article-list li:last-child { border-bottom: none; }

.article-thumb {
  flex: 0 0 160px;
  display: block;
  line-height: 0;
}

.article-thumb img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-card);
}

.article-body { min-width: 0; }

.article-list .article-date {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.article-list .article-body > a {
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.article-list .article-body > a:hover {
  color: var(--accent-light);
}

.article-list .article-body > a::before {
  content: counter(article) ". ";
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.article-list .article-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

@media (max-width: 560px) {
  .article-thumb { flex-basis: 112px; }
  .article-thumb img { width: 112px; height: 70px; }
}

.foundations-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 0.25rem;
}

.article-list-foundations {
  margin-top: 0;
}

.article-list-foundations .article-body > a::before {
  content: none;
}

.article-list li.series-heading {
  counter-increment: none;
  display: block;
  padding: 1.75rem 0 0;
  border-bottom: none;
}

.content-page .page-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ─── Site list signup ─────────────────────────────────────── */
.subscribe-block {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
}

.subscribe-title {
  font-size: 1.35rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.subscribe-block > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 560px;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  max-width: 560px;
}

.subscribe-form label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
  display: block;
  width: 100%;
  margin-bottom: 0.35rem;
}

.subscribe-form input[type="email"] {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d8d6d0;
  padding: 0.45rem 0.7rem;
  flex: 1 1 220px;
}

.subscribe-form button {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.subscribe-form button:hover {
  background: var(--accent);
  color: var(--bg);
}

.subscribe-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.essay-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e6e4df;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.essay-nav a {
  color: var(--text-muted);
}

.essay-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.essay-nav-next {
  margin-left: auto;
}

/* ─── Translate (floating) ──────────────────────────────────── */
.translate-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid #d8d6d0;
  box-shadow: 0 2px 10px rgba(30, 36, 51, 0.08);
  padding: 0.55rem 0.7rem;
  max-width: calc(100vw - 2rem);
}

.translate-btn,
.translate-go {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--text-muted);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.translate-btn:hover,
.translate-go:hover {
  color: var(--text);
  border-color: var(--text);
}

.translate-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.translate-menu[hidden] {
  display: none;
}

.translate-label {
  color: var(--text-light);
}

.translate-menu select {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d8d6d0;
  padding: 0.3rem 0.45rem;
}

@media (max-width: 560px) {
  .translate-float {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}


/* ─── Reframing essay pages ─────────────────────────────────── */
.reframing-essay .essay-dek {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-style: italic;
}

.essay-cover {
  margin: 0 0 2rem;
  line-height: 0;
}

.essay-cover img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--bg-card);
}

.essay-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.essay-footer a {
  color: var(--accent);
}

.content-page .page-content figure {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 420px;
}

.content-page .page-content figure img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 2px;
}

.content-page .page-content figcaption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.content-page .page-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.content-page .page-content ul,
.content-page .page-content ol {
  margin: 0 0 1.25rem 1.25rem;
}

.content-page .page-content li {
  margin-bottom: 0.4rem;
}

.content-page .page-content h2,
.content-page .page-content h3 {
  font-family: Georgia, serif;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

.content-page .back-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 1rem;
}

.content-page .back-link:hover {
  color: var(--accent-light);
}

.reframing-essay .page-content em {
  font-style: italic;
  color: inherit;
  font-size: inherit;
}

