:root {
  --bg: #0a0a0a;
  --fg: #d4d4d4;
  --accent: #33cc66;
  --muted: #666;
  --divider: #1a1a1a;
  --highlight: #fff;
  --code-bg: #111;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', 'Consolas', monospace;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  padding: 3rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* --- Header / Branding --- */

.site-header {
  margin-bottom: 3rem;
}

.site-title {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-title:hover {
  color: var(--highlight);
}

.cursor::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

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

.site-tagline {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* --- Post list (index) --- */

.post-list {
  list-style: none;
  margin-top: 2rem;
}

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

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

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

.post-link {
  font-family: var(--font-mono);
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin: 0.25rem 0;
}

.post-link:hover {
  color: var(--highlight);
}

.post-excerpt {
  color: #999;
  font-size: 0.88rem;
}

/* --- Post page --- */

.back-link {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--accent);
}

h1 {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  color: var(--accent);
  line-height: 1.3;
}

.subtitle {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.byline {
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

h2 em {
  font-weight: 700;
}

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2.2rem 0;
}

p {
  margin-bottom: 1.2rem;
}

em {
  color: #c5c5c5;
}

strong {
  color: var(--highlight);
  font-weight: 700;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #c0c0c0;
}

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

a:hover {
  color: var(--highlight);
}

/* --- Table --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

th, td {
  padding: 0.5rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

th {
  color: var(--accent);
  font-weight: 700;
}

/* --- Closing --- */

.closing {
  text-align: center;
  margin-top: 2.5rem;
  font-style: italic;
  color: var(--muted);
}

/* --- Footer --- */

.site-footer {
  font-family: var(--font-mono);
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

/* --- Responsive --- */

@media (max-width: 600px) {
  body {
    padding: 2rem 1rem;
    font-size: 14px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
