@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  src: url('/fonts/Inter-roman.var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
  src: url('/fonts/Inter-italic.var.woff2') format('woff2');
}

:root {
  --primary: #2e7d32;
  --primary-light: #4caf50;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f5f5f5;
  --border: #e0e0e0;
  --max-width: 1100px;
  --sidebar-width: 240px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}
.site-header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}
.site-header nav a:hover { color: #fff; }

/* Layout */
.site-content { flex: 1; padding: 2rem 0; }
.layout {
  display: flex;
  gap: 2rem;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}
.sidebar-nav a {
  display: block;
  padding: 0.3rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}
.sidebar-nav a:hover { background: var(--bg-light); }
.sidebar-nav a.active {
  background: var(--primary);
  color: #fff;
}
.sidebar-section { margin-bottom: 1rem; }
.sidebar-section > a { font-weight: 600; }
.sidebar-section ul {
  list-style: none;
  padding-left: 0.8rem;
  margin-top: 0.3rem;
}

/* Content */
.content {
  flex: 1;
  min-width: 0;
}
.content h1 { margin-bottom: 1rem; font-size: 2rem; }
.content h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content h3 { margin-top: 1.2rem; margin-bottom: 0.4rem; }
.content p { margin-bottom: 0.8rem; }
.content a { color: var(--primary); }
.content code {
  background: var(--bg-light);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.content pre {
  background: #272822;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.content ul, .content ol {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.content th, .content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  text-align: left;
}
.content th { background: var(--bg-light); font-weight: 600; }

/* Page items */
.page-item { margin-bottom: 1.5rem; }
.page-item h2 { font-size: 1.3rem; margin-top: 0; }
.page-item h2 a { text-decoration: none; }
.page-item p { color: var(--text-light); }

/* Footer */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 700px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
}
