:root {
  --bg:          #0f1117;
  --bg-subtle:   #161b22;
  --border:      #30363d;
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --accent:      #3fb950;
  --link:        #58a6ff;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.site-title a:hover { text-decoration: none; }

nav a {
  color: var(--text-muted);
  margin-left: 1.5rem;
  font-size: 0.9rem;
}
nav a:hover { color: var(--text); text-decoration: none; }

/* ── Main ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Homepage ── */
.home-hero {
  background: white;
  color: #0f1117;
  border-radius: 8px;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
.hero-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}
.home-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f1117;
}
.home-hero p {
  color: #555;
  font-size: 1.05rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  background: var(--bg-subtle);
  transition: border-color 0.15s;
}
.section-card:hover { border-color: var(--accent); text-decoration: none; }
.section-card h3 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.section-card p { color: var(--text-muted); font-size: 0.875rem; }

.recent-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* ── Post list ── */
.post-list { list-style: none; }
.post-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }

.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.post-title { font-size: 1.1rem; font-weight: 600; }
.post-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ── Section header ── */
.section-header { margin-bottom: 2rem; }
.section-header h1 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.section-header p { color: var(--text-muted); }

/* ── Single page ── */
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.5rem; }
.page-header .meta { color: var(--text-muted); font-size: 0.85rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}
.status-sprouting { background: #1a2e1a; color: #3fb950; border: 1px solid #2ea043; }
.status-growing   { background: #1c2d3a; color: #58a6ff; border: 1px solid #388bfd; }
.status-harvest   { background: #2d1f00; color: #d29922; border: 1px solid #9e6a03; }

/* ── Prose ── */
.content { max-width: 660px; }
.content h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.content p  { margin-bottom: 1rem; }
.content ul, .content ol { margin: 0 0 1rem 1.5rem; }
.content li { margin-bottom: 0.25rem; }
.content code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}
.content pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.content pre code { background: none; border: none; padding: 0; font-size: 0.85rem; }
.content blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
}
.content a { color: var(--link); }
.content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  nav a:first-child { margin-left: 0; }
  main { padding: 2rem 1rem; }
}
