/* Blog: list + article reading view. Inherits tokens from site.css. */
.page {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; padding: 70px 24px 120px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 56px;
}
.topbar .home {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
  transition: color .2s ease;
}
.topbar .home:hover { color: var(--accent); }
.topbar .whoami { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.topbar .whoami .accent { color: var(--accent); }

.blog-title {
  font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -.01em;
  margin: 0 0 6px;
}
.blog-intro { color: var(--muted); font-size: 15px; margin: 0 0 48px; }

/* post list */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: block; padding: 26px 0; border-top: 1px solid var(--faint);
  color: inherit; text-decoration: none;
  transition: padding-left .35s var(--ease);
}
.post-item, .post-item:hover { text-decoration: none; }
.post-list .post-item:last-child { border-bottom: 1px solid var(--faint); }
.post-item:hover { padding-left: 8px; }
.post-item .pdate { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.post-item .ptitle {
  font-family: var(--serif); font-size: 24px; margin: 6px 0 8px; color: var(--ink);
  transition: color .2s ease; line-height: 1.2;
}
.post-item:hover .ptitle { color: var(--accent); }
.post-item .pexcerpt { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

.empty { color: var(--muted); font-size: 15px; line-height: 1.7; }
.empty code { font-family: var(--mono); color: var(--accent); font-size: 13px; }

/* ===== article ===== */
.article-head { margin-bottom: 40px; }
.article-head .pdate { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.article-head h1 {
  font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.12;
  letter-spacing: -.01em; margin: 10px 0 0;
}
.article-cover { width: 100%; border-radius: 10px; margin: 28px 0 0; border: 1px solid var(--faint); }

/* prose */
.prose { color: var(--ink); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 1.8em; line-height: 1.2; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(255,123,114,.35); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: .4em; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--faint); }
.prose blockquote {
  border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; margin-left: 0;
  color: var(--muted); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--faint); margin: 2.2em 0; }
.prose code {
  font-family: var(--mono); font-size: .86em; background: rgba(242,237,227,.06);
  padding: 2px 6px; border-radius: 4px;
}
.prose pre {
  background: #0c0a09; border: 1px solid var(--faint); border-radius: 10px;
  padding: 18px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--faint); padding: 8px 12px; text-align: left; }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }

.article-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--faint); }
.article-foot a { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.article-foot a:hover { color: var(--accent); }

@media (max-width: 540px) {
  .page { padding: 46px 18px 80px; }
  .topbar { margin-bottom: 40px; }
  .blog-title, .article-head h1 { font-size: 30px; }
  .blog-intro { margin-bottom: 36px; }
  .post-item { padding: 22px 0; }
  .post-item .ptitle { font-size: 21px; }
  .prose { font-size: 16px; }
  .prose pre { padding: 14px 12px; font-size: 12.5px; }
}
