:root {
  --bg: #0a0a0a;
  --fg: #c0c0c0;
  --green: #33ff33;
  --green-dim: #226622;
  --amber: #ffb000;
  --red: #ff3333;
  --cyan: #00cccc;
  --magenta: #cc44cc;
  --border: #1a1a1a;
  --code-bg: #111111;
  --font: "Berkeley Mono", "IBM Plex Mono", "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --max-width: 720px;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── HEADER ──────────────────────────── */
.site-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-header .site-title {
  color: var(--green);
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.site-header pre.ascii {
  color: var(--green);
  font-size: 10px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-align: center;
}

.site-header .subtitle {
  color: var(--green-dim);
  font-size: 13px;
  margin-top: 0.25rem;
}

.site-header .subtitle .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── NAV ─────────────────────────────── */
nav {
  margin: 1rem 0 0;
  font-size: 13px;
}

nav a {
  color: var(--green);
  text-decoration: none;
  margin-right: 1.5rem;
}

nav a:hover { text-decoration: underline; }

nav a::before { content: "["; color: var(--green-dim); }
nav a::after  { content: "]"; color: var(--green-dim); }

/* ── MAIN ────────────────────────────── */
h1, h2, h3 {
  color: var(--green);
  font-weight: normal;
  margin: 2rem 0 0.75rem;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; color: var(--amber); }

h1::before { content: "# "; color: var(--green-dim); }
h2::before { content: "## "; color: var(--green-dim); }
h3::before { content: "### "; color: var(--green-dim); }

p { margin: 0 0 1rem; }

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

a:hover { text-decoration: underline; }

code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--amber);
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  border-left: 2px solid var(--green-dim);
  margin: 0 0 1rem;
  font-size: 13px;
}

pre code {
  background: none;
  padding: 0;
  color: var(--fg);
}

blockquote {
  border-left: 2px solid var(--amber);
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 1rem;
  color: #999;
  font-style: italic;
}

ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }
li::marker { color: var(--green-dim); }

hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 2rem 0;
}

/* ── POST LIST ───────────────────────── */
.post-list { list-style: none; margin: 0; }

.post-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.post-date {
  color: var(--green-dim);
  font-size: 12px;
}

.post-title {
  font-size: 1.05rem;
  color: var(--green);
  text-decoration: none;
}

.post-title:hover { text-decoration: underline; }

.post-excerpt {
  color: #888;
  font-size: 13px;
  margin-top: 0.25rem;
}

.post-tags {
  margin-top: 0.35rem;
}

.tag {
  display: inline-block;
  background: var(--code-bg);
  color: var(--amber);
  font-size: 11px;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 2px;
}

/* ── BLOG POST ───────────────────────── */
article header {
  margin-bottom: 2rem;
}

article header .post-date {
  display: block;
  margin-top: 0.25rem;
}

article p {
  text-align: justify;
}

article img.post-image {
  max-width: 600px; width: 100%;
  border: 1px solid var(--border);
  display: block;
  margin: 1rem auto;
}

/* ── FOOTER ──────────────────────────── */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #555;
}

.site-footer a { color: var(--green-dim); }

/* ── STATUS LINE ─────────────────────── */
.status-line {
  color: var(--green-dim);
  font-size: 12px;
  margin-top: 2rem;
}

.status-line::before { content: "> "; color: var(--green); }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 600px) {
  body { padding: 1rem; font-size: 14px; }
  .site-header pre.ascii { font-size: 6px; }
}
