/* Dev blog (/blog). Builds on styles.css variables; loaded after it on blog pages only.
   Served from the site root (short cache), not /assets/ (immutable), so edits reach readers. */

.blog-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ===== Index ===== */
.blog-header h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 12px; }
.blog-header p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.blog-byline { margin-top: 12px; font-size: 14px; }
.blog-byline a, .post-meta a, .post-eyebrow a, .post-empty a, .footer-bottom a { color: var(--accent); }

.post-list { list-style: none; margin: 48px 0 0; padding: 0; }
.post-item { padding: 28px 0; border-top: 1px solid var(--border); }
.post-item time { color: var(--text-dim); font-size: 13px; }
.post-item h2 { font-size: 22px; margin: 6px 0 8px; line-height: 1.3; }
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--accent); }
.post-item p { color: var(--text-muted); line-height: 1.6; }
.post-empty { margin-top: 48px; color: var(--text-muted); }

/* ===== Post ===== */
.post-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.post-header h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px; }
.post-meta { color: var(--text-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.post-disclosure { color: var(--text-dim); font-size: 13px; margin: 10px 0 0; }
.post-disclosure a { color: var(--accent); }

.post-body { margin-top: 40px; font-size: 17px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.post-body h2 { font-size: 26px; margin: 48px 0 14px; line-height: 1.25; }
.post-body h3 { font-size: 20px; margin: 32px 0 10px; }
.post-body p, .post-body ul, .post-body ol, .post-body pre, .post-body blockquote, .post-body table { margin: 0 0 20px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.9em; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}
.post-body pre {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; line-height: 1.55;
}
.post-body pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--text-muted); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

.post-cta {
  margin-top: 56px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.post-cta h2 { font-size: 22px; margin-bottom: 8px; }
.post-cta p { color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }

@media (max-width: 600px) {
  .blog-wrap { padding: 40px 16px 72px; }
  .post-body { font-size: 16px; }
}
.post-body blockquote > :last-child { margin-bottom: 0; }
