/* Blog pages: layout and article typography on top of the hub bundle (main.css).
   Uses the hub design tokens with safe fallbacks. */

.blog-main {
  padding: 140px 0 80px;
}

.blog-hero {
  max-width: 640px;
  margin-bottom: 56px;
}

.blog-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.blog-empty {
  color: var(--ink-muted, #5d5f63);
}

.post-list {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.post-item {
  padding: 24px 0;
  border-top: 1px solid var(--hairline, rgb(25 26 28 / 0.14));
}

.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #5d5f63);
  margin: 0 0 8px;
}

.post-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent, #d9481e);
}

.post-desc {
  color: var(--ink-muted, #5d5f63);
  max-width: 60ch;
  margin: 0;
}

/* Article */

.post {
  max-width: 720px;
}

.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 0;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose a {
  color: var(--accent, #d9481e);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ol,
.prose ul {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.9em;
  background: var(--bg-inset, #ececea);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.prose pre {
  background: var(--bg-inset, #ececea);
  padding: 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose img {
  max-width: 100%;
  border-radius: 10px;
}

.prose blockquote {
  border-left: 3px solid var(--accent, #d9481e);
  margin: 0 0 1.2em;
  padding-left: 18px;
  color: var(--ink-muted, #5d5f63);
}

.post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline, rgb(25 26 28 / 0.14));
  color: var(--ink-muted, #5d5f63);
}

.post-footer a {
  color: var(--accent, #d9481e);
}
