:root {
  --bg: #0d0f0e;
  --surface: #161a18;
  --surface-elevated: #1e2421;
  --accent: #2a7a5e;
  --text: #e8e4dc;
  --text-secondary: #9a9690;
  --text-tertiary: #5c5a56;
  --border: rgba(255, 255, 255, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header a.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}
.site-header a.brand-link:hover {
  text-decoration: none;
}
.brand-logo {
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--text);
}
.site-header a.nav-link {
  font-size: 0.95rem;
}
.hero {
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.hero p {
  color: var(--text-secondary);
  margin: 0;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.category-nav a {
  color: var(--text-secondary);
}
.category-nav a:hover,
.category-nav a.active {
  color: var(--accent);
}
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.post-card:hover {
  border-color: rgba(42, 122, 94, 0.4);
}
.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.post-card .inner {
  padding: 1.25rem 1.5rem;
}
.post-card h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.post-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.post-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.meta {
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(42, 122, 94, 0.15);
  color: var(--accent);
}
.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(42, 122, 94, 0.2);
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.category-badge:hover {
  text-decoration: none;
  background: rgba(42, 122, 94, 0.3);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.9rem;
}
article.post .featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
article.post h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
article.post .post-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
}
.prose {
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose h2,
.prose h3 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}
.prose h2 {
  font-size: 1.35rem;
}
.prose h3 {
  font-size: 1.15rem;
}
.prose p {
  margin: 0 0 1rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  background: rgba(42, 122, 94, 0.06);
}
.prose pre,
.prose code {
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: 0.9em;
}
.prose pre {
  background: var(--surface-elevated);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.prose img {
  max-width: 100%;
  border-radius: 8px;
}
.author-bio {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.author-bio img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.embed-card {
  margin: 2rem 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.embed-card .thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #1e2421, #2a7a5e33);
}
.embed-card h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}
.embed-card .tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.embed-card .meta-row {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.btn-play {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.btn-play:hover {
  background: #3da67e;
  text-decoration: none;
}
.pdf-callout {
  margin: 2rem 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem;
}
.pdf-callout h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.pdf-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pdf-btns a {
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.pdf-btns a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.page-title {
  font-family: Cinzel, Georgia, serif;
  font-size: 2rem;
  margin: 0 0 1.5rem;
}
.not-found {
  text-align: center;
  padding: 4rem 1rem;
}
.not-found h1 {
  font-family: Cinzel, Georgia, serif;
}
