:root {
  --bg: #12100e;
  --bg2: #1c1916;
  --bg3: #252018;
  --border: #2e2a24;
  --text: #e8dfd4;
  --text-muted: #9a8f82;
  --amber: #c4875a;
  --amber-dim: #8a5e3c;
  --amber-bright: #e0a070;
  --link: #c4875a;
  --font: 'Georgia', 'Times New Roman', serif;
  --mono: 'Menlo', 'Consolas', 'Monaco', monospace;
  --max: 860px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--amber);
  text-decoration: none;
  font-weight: bold;
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* MAIN */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: bold;
}
.btn-primary { background: var(--amber); color: var(--bg); }
.btn-primary:hover { background: var(--amber-bright); text-decoration: none; }
.btn-secondary { border: 1px solid var(--border); color: var(--text-muted); }
.btn-secondary:hover { border-color: var(--amber-dim); color: var(--text); text-decoration: none; }

/* INSTALL SNIPPET */
.install-snippet {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 2rem auto;
  max-width: 380px;
  text-align: left;
}
.install-snippet span { color: var(--amber); }

/* FEATURES */
.features { padding: 3rem 0; }
.features h2 { font-size: 1.5rem; font-weight: normal; margin-bottom: 2rem; color: var(--text); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
}
.feature-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border-radius: 4px;
}
.feature-card h3 { font-size: 1rem; font-weight: bold; margin-bottom: 0.4rem; color: var(--amber-bright); }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* RECENT POSTS */
.recent-posts { padding: 2rem 0 3rem; }
.recent-posts h2 { font-size: 1.5rem; font-weight: normal; margin-bottom: 1.5rem; }
.post-list { list-style: none; }
.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.post-date { font-family: var(--mono); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.post-title a { color: var(--text); font-size: 1rem; }
.post-title a:hover { color: var(--amber); }

/* PAGE HEADER */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8rem;
}
.page-header h1 { font-size: 2rem; font-weight: normal; color: var(--text); }
.page-header .subtitle { color: var(--text-muted); margin-top: 0.5rem; }

/* PROSE */
.prose { max-width: 680px; padding-bottom: 4rem; }
.prose h2 { font-size: 1.3rem; font-weight: normal; color: var(--amber-bright); margin: 2.5rem 0 0.8rem; }
.prose h3 { font-size: 1.05rem; font-weight: bold; color: var(--text); margin: 1.8rem 0 0.5rem; }
.prose p { margin-bottom: 1.2rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.5rem; color: var(--text); }
.prose li { margin-bottom: 0.4rem; }
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--amber-bright);
}
.prose pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.prose pre code .cmd { color: var(--amber); }
.prose pre code .comment { color: #5a5248; }
.prose blockquote {
  border-left: 3px solid var(--amber-dim);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--bg2);
  border-radius: 0 4px 4px 0;
}
.prose blockquote p { color: var(--text-muted); font-style: italic; margin: 0; }
.prose a { color: var(--amber); }
.prose img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* BLOG HEADER IMAGE */
.blog-header-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  max-height: 320px;
  object-fit: cover;
}

/* BLOG INDEX */
.blog-card {
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 0;
}
.blog-card:last-child { border-bottom: none; }
.blog-card-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.blog-card h2 { font-size: 1.2rem; font-weight: normal; margin-bottom: 0.4rem; }
.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--amber); text-decoration: none; }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; }

/* DOCS SIDEBAR LAYOUT */
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}
@media (max-width: 640px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-sidebar { padding-top: 0.2rem; }
.docs-sidebar h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.docs-sidebar ul { list-style: none; }
.docs-sidebar li { margin-bottom: 0.3rem; }
.docs-sidebar a { color: var(--text-muted); font-size: 14px; }
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--amber); text-decoration: none; }

/* CHANGELOG */
.changelog-entry { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.changelog-entry:last-child { border-bottom: none; }
.changelog-version {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 0.3rem;
}
.changelog-date { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-bottom: 1rem; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--amber); text-decoration: none; }
