/* ─── 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 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--text);
}

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; }

/* ─── 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 in content */
.series-content p:last-child {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 2rem;
  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; }
}
