/* Blog pages — same palette, font and spacing as the homepage.
   #0a0a0a page, #0f130f cards, #39d98a accent, #eaf5ee text, JetBrains Mono. */

:root {
  --bg: #0a0a0a;
  --panel: #0f130f;
  --accent: #39d98a;
  --text: #eaf5ee;
  --muted: rgba(234, 245, 238, .6);
  --faint: rgba(234, 245, 238, .4);
  --line: rgba(234, 245, 238, .12);
  --line-soft: rgba(234, 245, 238, .06);
  --line-accent: rgba(57, 217, 138, .15);
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

a { -webkit-tap-highlight-color: transparent; }

/* keyboard focus stays visible everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- top bar: the homepage title bar, trimmed to a back link --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-accent);
}

.topbar-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(57, 217, 138, .1);
}

.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f56; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #27c93f; }

.topbar-path {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  font-size: 12px;
  color: rgba(234, 245, 238, .55);
}

.prompt { color: var(--accent); }

.nav-a {
  color: rgba(234, 245, 238, .55);
  text-decoration: none;
  transition: color .15s;
}
.nav-a:hover { color: var(--text); }
.nav-a.current { color: var(--accent); }

/* --- page shell --- */
.section { padding: 48px; }

.section-title {
  font-size: 16px;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 600;
}

.section-sub {
  font-size: 12px;
  color: var(--faint);
  margin: 0 0 28px;
}

/* --- post list --- */
.post-list { margin: 0; padding: 0; list-style: none; }

.post-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.post-date {
  font-size: 11px;
  color: var(--faint);
  padding-top: 2px;
}

.post-title { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; }

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.post-title a:hover { color: var(--accent); }

.post-excerpt {
  font-size: 12px;
  color: rgba(234, 245, 238, .55);
  line-height: 1.6;
  margin: 0;
}

.post-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}
.post-more:hover { text-decoration: underline; }

/* --- status messages (loading / empty / error) --- */
.status {
  font-size: 12px;
  line-height: 1.8;
  color: var(--faint);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.status.error { border-color: rgba(255, 95, 86, .35); color: rgba(234, 245, 238, .7); }
.status .status-head { color: var(--accent); display: block; margin-bottom: 6px; }
.status.error .status-head { color: #ff5f56; }

/* --- single post --- */
.post-header {
  border-bottom: 1px solid var(--line-accent);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.post-header h1 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  margin: 6px 0 0;
  max-width: 720px;
}

.post-body {
  max-width: 720px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(234, 245, 238, .75);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--accent);
  line-height: 1.5;
  margin: 34px 0 12px;
}
.post-body h2 { font-size: 17px; }
.post-body h3 { font-size: 15px; }
.post-body h4 { font-size: 13.5px; }

.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 20px; margin: 0 0 18px; }
.post-body li { margin-bottom: 8px; }

.post-body a { color: var(--accent); }

.post-body code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
}

.post-body pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}
.post-body pre code { border: 0; padding: 0; background: none; }

.post-body blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid rgba(57, 217, 138, .4);
  color: var(--muted);
}

.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

.post-body table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 12px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.post-footer {
  max-width: 720px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}
.post-footer a { color: var(--accent); text-decoration: none; }
.post-footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .section { padding: 32px 24px; }
  .post-row { grid-template-columns: 70px 1fr; gap: 14px; }
  .post-header h1 { font-size: 21px; }
  .nav-row { padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
}
