:root {
  --bg: #f5f0eb;
  --surface: #ede8e2;
  --border: #d8d0c8;
  --text: #1a1814;
  --muted: #6b6560;
  --accent: #3a5aad;
  --accent-dim: #b0bedd;
  --max-w: 700px;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

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

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
nav a:hover { color: var(--text); }
nav .wordmark { color: var(--text); font-weight: 600; letter-spacing: 0.05em; font-size: 1rem; }
nav .sep { color: var(--border); }

/* ── Layout ── */
.page { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 6rem; }

/* ── Blog Index ── */
.blog-header { margin-bottom: 3rem; }
.blog-header h1 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-header p { color: var(--muted); font-size: 0.95rem; font-family: var(--font-ui); }

.post-list { list-style: none; display: flex; flex-direction: column; gap: 2.5rem; }
.post-list li { border-left: 2px solid var(--border); padding-left: 1.5rem; transition: border-color 0.15s; }
.post-list li:hover { border-color: var(--accent-dim); }

.post-meta { font-family: var(--font-ui); font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.post-list h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-excerpt { font-size: 0.95rem; color: var(--muted); font-family: var(--font-ui); line-height: 1.6; }

/* ── Article ── */
article header { margin-bottom: 2.5rem; }
article header .post-meta { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
article header h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
article header .deck { font-size: 1.1rem; color: var(--muted); font-style: italic; line-height: 1.6; border-left: 3px solid var(--accent-dim); padding-left: 1rem; }

.article-body { max-width: 100%; }
.article-body h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.75rem; line-height: 1.3; }
.article-body p { margin-bottom: 1.4rem; }
.article-body strong { color: #e8eaf6; }
.article-body em { color: var(--muted); }
.article-body a { color: var(--accent); text-decoration-color: var(--accent-dim); }
.article-body a:hover { text-decoration-color: var(--accent); }

.article-body blockquote {
  border-left: 3px solid var(--accent-dim);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--muted);
  font-style: italic;
}
.article-body blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.85rem; font-style: normal; font-family: var(--font-ui); }

.roll-call {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
}
.roll-call strong { color: var(--text); }

.references {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
}
.references h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; color: var(--muted); }
.references ol { padding-left: 1.5rem; line-height: 1.9; }
.references em { color: var(--text); font-style: italic; }

article footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}
article footer a { color: var(--accent); text-decoration: none; }
article footer a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.cta-block p { margin: 0; color: var(--muted); }
.cta-block a { color: var(--accent); text-decoration: none; font-weight: 500; }
.cta-block a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  nav { padding: 0.75rem 1rem; }
  .page { padding: 2rem 1rem 4rem; }
  article header h1 { font-size: 1.6rem; }
}
