/* Shared series TOC — matches Tokens, Transformers & Truth */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --serif: 'Source Serif 4 Variable', Georgia, 'Times New Roman', serif;
  --bg: #0a0a0f;
  --bg-nav: rgba(10,10,15,0.92);
  --bg-card: #12121a;
  --bg-card-alt: #181825;
  --border: #2a2a3a;
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --accent: #498a9b;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --accent4: #f472b6;
  --accent5: #fbbf24;
  --radius: 12px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter Variable', system-ui, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #f5f5f8; --bg-card: #ffffff; --bg-card-alt: #ededf4;
  --bg-nav: rgba(245,245,248,0.95); --border: #dddde8;
  --text: #1a1a2e; --text-dim: #5a5a7a;
  --accent: #025c74; --accent2: #7040c0; --accent3: #0f9a6a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
p { margin-bottom: 1em; color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Hero — title + one description only */
.hero {
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(73,138,155,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { margin-bottom: 16px; }
.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Chapter / topic list */
.blog-grid {
  display: grid;
  gap: 16px;
  padding: 40px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(73,138,155,0.1);
  text-decoration: none;
}

.card-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(73,138,155,0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.card-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* Part heading inside a long series (e.g. Reasoning A/B/C/D). */
.part-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 12px 0 0;
}

/* Credit lives on the series index only. Names, no links. */
.series-credit {
  max-width: 820px;
  margin: -60px auto 48px;
  padding: 0 24px;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 600px) {
  .blog-card { padding: 16px; gap: 14px; }
  .card-num { font-size: 1.1rem; min-width: 40px; height: 40px; }
  .card-content h3 { font-size: 1rem; }
}
