:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e8e8ec;
  --muted: #9a9fab;
  --accent: #6ea8ff;
  --border: #2a2e38;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
header {
  padding: 3rem 1.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
header h1 { margin: 0 0 0.5rem; font-size: 1.9rem; }
.tagline { color: var(--muted); margin: 0; }
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.post {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-title { margin: 0 0 0.25rem; font-size: 1.3rem; }
.post-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }
.post-body { white-space: pre-wrap; margin: 0 0 1.25rem; }
.comments { border-top: 1px solid var(--border); padding-top: 1rem; margin-bottom: 1rem; }
.comment { padding: 0.5rem 0; border-bottom: 1px dashed var(--border); }
.comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; margin-right: 0.5rem; }
.comment-form { display: flex; flex-direction: column; gap: 0.5rem; }
.comment-form input, .comment-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.comment-form textarea { min-height: 70px; resize: vertical; }
.comment-form button {
  align-self: flex-start;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #0b1220;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
.comment-status { color: var(--muted); font-size: 0.85rem; margin: 0; min-height: 1.2em; }
#loading, #empty { color: var(--muted); text-align: center; }
