/* Blog-specific styles. Loaded only on blog pages (blog.html, blog.en.html,
   blog/*.html). Shares the palette and type from styles.css. */

.blog-index,
.blog-post {
  padding-top: 56px;
  padding-bottom: 24px;
}

.blog-index h1 { margin: 0 0 2rem; }

/* Post index list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.post-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.post-list h2 {
  font-size: 1.5rem;
  margin: 0.15em 0 0.35em;
}
.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}
.post-list h2 a:hover {
  color: var(--terracotta);
}
.post-list p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Date / meta line */
.post-meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin: 0;
}

.blog-empty {
  color: var(--muted);
  font-style: italic;
}

/* Single post body */
.blog-post h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 0.3em;
}
.blog-post .post-meta {
  margin-bottom: 2rem;
}
.blog-post h2 { margin-top: 1.8em; }
.blog-post h3 { margin-top: 1.5em; }
.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.blog-post blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--terracotta);
  color: var(--muted);
}
.blog-post ul,
.blog-post ol {
  padding-left: 1.3em;
}
.blog-post li { margin: 0.3em 0; }

.post-back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.post-back a {
  text-decoration: none;
  font-weight: 600;
}

/* Newsletter signup at the end of posts and index (Substack, loaded on click) */
.post-subscribe {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.post-subscribe h2 { margin-top: 0; }

/* Long unbroken strings (source URLs) must wrap instead of widening the page on phones */
.blog-post { overflow-wrap: anywhere; }
