/* blog pages only — loaded after style.css */

:root {
  --muted: #93a89b;   /* meta text; ~7.8:1 on --bg (AA) */
  --code-bg: #0f1511;
  --strong: #eef4f0;
}

/* skip link + focus */
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  z-index: 20;
}
.skip:focus { top: 12px; }

/* text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
pre:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
}

/* prompt breadcrumb */
.prompt a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
}
.prompt a:hover {
  color: var(--hover);
  border-bottom-color: var(--hover);
}
.prompt .tilde { color: var(--muted); }
.prompt .cmd { overflow-wrap: anywhere; }

/* blog index */
.blog-head h1,
.post-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  letter-spacing: 0.2px;
}
.blog-intro {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
}
.post-count {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.post-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.post-list > li {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.post-list > li:last-child { padding-bottom: 0; }
.post-item h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.post-item h2 a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.post-item h2 a:hover {
  color: var(--hover);
  border-bottom-color: var(--hover);
}
.post-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}
.empty {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* meta + tags (shared) */
.post-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 12px;
}
.tags li {
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 6px;
}

/* article */
.post-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.post-head h1 { font-size: 24px; }

.post-body {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.75;
}
.post-body > :first-child { margin-top: 28px; }
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre {
  margin: 0 0 18px;
}
.post-body p,
.post-body li { overflow-wrap: break-word; }

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--accent);
  font-weight: 600;
  line-height: 1.4;
  margin: 36px 0 12px;
}
.post-body h2 { font-size: 18px; }
.post-body h3 { font-size: 16px; }
.post-body h4 { font-size: 15px; color: var(--text); }
.post-body h2::before {
  content: "## ";
  content: "## " / "";
  color: var(--dim);
}

.post-body ul,
.post-body ol { padding-left: 22px; }
.post-body li { margin: 0 0 8px; }
.post-body ul { list-style: none; }
.post-body ul > li { position: relative; }
.post-body ul > li::before {
  content: "-";
  position: absolute;
  left: -16px;
  color: var(--dim);
}
.post-body ol > li::marker { color: var(--muted); }

.post-body strong { color: var(--strong); font-weight: 600; }
.post-body em { font-style: italic; }

.post-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--dim);
}
.post-body a:hover {
  color: var(--hover);
  border-bottom-color: var(--hover);
}

.post-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent);
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1px 5px;
}
.post-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 14px 16px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.6;
  tab-size: 4;
}
.post-body pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: var(--text);
  white-space: pre;
}

.post-body blockquote {
  border-left: 2px solid var(--dim);
  padding-left: 14px;
  color: var(--muted);
}
.post-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}
.post-body hr { margin: 28px 0; }

@media (max-width: 480px) {
  .post-head h1 { font-size: 20px; }
  .blog-head h1 { font-size: 20px; }
  .post-body { font-size: 15px; }
  .post-body pre { font-size: 13px; padding: 12px; }
}
