:root {
  --color-bg: rgb(11, 3, 34);
  --color-accent: rgb(60, 179, 113);
  --color-link: rgb(146, 146, 255);
  --color-muted: rgb(86, 81, 99);
  --color-text: white;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  line-height: 1.7;
  padding: 40px 20px;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────── */

header {
  margin-bottom: 48px;
}

header h1 {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1 a:hover {
  opacity: 0.7;
}

header p.tagline {
  color: var(--color-muted);
  font-size: 0.9rem;
}

nav {
  margin-top: 14px;
}

nav a {
  color: var(--color-link);
  text-decoration: none;
  margin-right: 20px;
  font-size: 0.9rem;
}

nav a:hover {
  opacity: 0.5;
}

/* ── Post list (index) ───────────────────────────────── */

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-muted);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.post-list .post-title {
  font-size: 1.2rem;
  color: var(--color-accent);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.post-list .post-title:hover {
  opacity: 0.7;
}

.post-list .post-summary {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ── Individual post ─────────────────────────────────── */

article .post-header {
  margin-bottom: 36px;
}

article .post-header h1 {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

article .post-header .post-date {
  font-size: 0.8rem;
  color: var(--color-muted);
}

article .post-content h2 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

article .post-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

article .post-content a {
  color: var(--color-link);
  text-decoration: none;
}

article .post-content a:hover {
  opacity: 0.5;
}

article .post-content ul,
article .post-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

article .post-content li {
  margin-bottom: 6px;
}

article .post-content code {
  background: rgba(60, 179, 113, 0.1);
  border: 1px solid rgba(60, 179, 113, 0.3);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 0.9em;
  color: var(--color-accent);
}

article .post-content pre {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

article .post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text);
}

article .post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
  color: var(--color-muted);
  margin-bottom: 16px;
  font-style: italic;
}

article .post-content hr {
  border: none;
  border-top: 1px solid var(--color-muted);
  margin: 28px 0;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  opacity: 0.5;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--color-muted);
  color: var(--color-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
}

footer a:hover {
  opacity: 0.5;
}
