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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Site header ── */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e293b;
}

.site-logo-link { text-decoration: none; }

.site-logo {
  width: 36px;
  height: 36px;
  background: #0a0f1e;
  border: 1px solid #1e293b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  transition: border-color 0.15s;
}
.site-logo:hover { border-color: #334155; }

.site-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-tagline {
  font-size: 0.62rem;
  color: #475569;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Post list ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card {
  display: block;
  background: #0a0f1e;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.post-card:hover { border-color: #334155; background: #0f172a; }

.post-meta {
  font-family: monospace;
  font-size: 0.62rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.post-desc {
  font-size: 0.78rem;
  color: #64748b;
}

/* ── Article ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: monospace;
  font-size: 0.65rem;
  color: #60a5fa;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.back-link:hover { color: #93c5fd; }

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e293b;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-meta {
  font-family: monospace;
  font-size: 0.62rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Prose ── */
.prose { color: #94a3b8; line-height: 1.85; }

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #e2e8f0;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  line-height: 1.3;
}
.prose h1 { font-size: 1.35rem; }
.prose h2 { font-size: 1.15rem; }
.prose h3 { font-size: 1rem; }
.prose h4 { font-size: 0.9rem; }

.prose p { margin-bottom: 1rem; }

.prose a { color: #60a5fa; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose code {
  font-family: monospace;
  font-size: 0.83em;
  background: #0a0f1e;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 2px 6px;
  color: #e2e8f0;
}

.prose pre {
  background: #0a0f1e;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }

.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.3rem; }

.prose blockquote {
  border-left: 2px solid #334155;
  padding-left: 1rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.prose hr { border: none; border-top: 1px solid #1e293b; margin: 2rem 0; }

.prose img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #1e293b;
  margin: 1rem 0;
}

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-family: monospace;
  font-size: 0.62rem;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem; }
  .article-title { font-size: 1.2rem; }
}
