:root {
  --bg: #fafafa;
  --fg: #1a1a2e;
  --muted: #6a6a7a;
  --accent: #4a6fa5;
  --accent-hover: #3a5a8a;
  --border: #e4e4e8;
  --card-bg: #fff;
  --code-bg: #1e1e2e;
  --code-fg: #cdd6f4;
  --code-header: #313244;
  --inline-code-bg: #f0f0f4;
  --inline-code-fg: #c7254e;
  --shadow: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-hover: 0 3px 12px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 780px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151c;
    --fg: #e0e0e8;
    --muted: #8888a0;
    --accent: #89b4fa;
    --accent-hover: #b4d0fa;
    --border: #2a2a38;
    --card-bg: #1e1e2a;
    --code-bg: #11111b;
    --code-fg: #cdd6f4;
    --code-header: #1a1a28;
    --inline-code-bg: #2a2a38;
    --inline-code-fg: #f38ba8;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-hover: 0 3px 12px rgba(0,0,0,0.4);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.breadcrumb {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); text-decoration: underline; }
.breadcrumb .sep { color: var(--muted); margin: 0 8px; }
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 24px;
}
article h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em; }
article h2 { font-size: 22px; font-weight: 600; margin-top: 36px; margin-bottom: 12px; }
article h3 { font-size: 18px; font-weight: 600; margin-top: 28px; margin-bottom: 8px; }
article h4 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 6px; }
article p { margin-bottom: 16px; }
article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
article a:hover { border-bottom-color: var(--accent); }
article a.citation { font-weight: 600; font-size: 0.85em; border-bottom: none; background: var(--inline-code-bg); padding: 1px 4px; border-radius: 3px; }
article ul, article ol { margin-bottom: 16px; padding-left: 24px; }
article li { margin-bottom: 6px; }
article blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 16px 0; color: var(--muted); }
article blockquote p { margin-bottom: 0; }
article code {
  font-family: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: var(--inline-code-bg);
  color: var(--inline-code-fg);
  padding: 2px 6px;
  border-radius: 4px;
}
article pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid var(--code-header);
}
article pre code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
article hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
article strong { font-weight: 700; }
article em { font-style: italic; }
.article-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.article-nav a { color: var(--accent); text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }
.index-list { list-style: none; padding: 0; }
.index-list li {
  margin-bottom: 10px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.index-list li:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.index-list a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 17px; display: block; }
.index-list a:hover { color: var(--accent-hover); }
.index-list .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.index-list .summary { color: var(--muted); font-size: 14px; margin-top: 2px; }
.session-header { margin-bottom: 28px; }
.session-header h1 { font-size: 30px; margin-bottom: 4px; }
.session-header .meta { color: var(--muted); font-size: 14px; }
.summary { color: var(--muted); font-style: italic; margin-bottom: 16px; }
.themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.theme {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--inline-code-bg);
  color: var(--accent);
}
.article-link { font-weight: 600; font-size: 18px; }
.session-bible-link { font-size: 20px; }
.meta { color: var(--muted); font-size: 14px; }
