/* ──────────────────────────────────────────────
   Blog post layout — included via <link> on
   every individual post page alongside style.css
   ────────────────────────────────────────────── */

.post-header {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: clamp(3rem,7vw,5.5rem) clamp(1.5rem,5vw,2rem) 0;
}

.post-meta {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.post-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem; max-width: 22ch;
}

.post-header .post-lead {
  font-size: 1.1rem; color: var(--muted);
  max-width: 55ch; line-height: 1.65;
}

/* ── Post body ── */
.post-body {
  max-width: 700px; margin: 0 auto;
  padding: 0 clamp(1.5rem,5vw,2rem) clamp(4rem,8vw,6rem);
}

.post-body h2 {
  font-size: 1.4rem; margin: 2.5rem 0 0.75rem;
}

.post-body h3 {
  font-size: 1.1rem; margin: 2rem 0 0.5rem;
}

.post-body p {
  font-size: 1rem; color: var(--muted);
  margin-bottom: 1.25rem; max-width: 65ch;
}

.post-body ul, .post-body ol {
  padding-left: 1.4rem; margin-bottom: 1.25rem;
}

.post-body li {
  font-size: 1rem; color: var(--muted); margin-bottom: 0.35rem;
}

.post-body strong { font-weight: 500; color: var(--text); }

.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  background: var(--tag-bg); color: var(--tag-text);
  padding: 0.1rem 0.4rem; border-radius: 2px;
}

.post-body pre {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-body pre code {
  background: none; padding: 0;
  font-size: 0.85rem; color: var(--text);
}

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 1rem;
}

.post-divider {
  border: none; border-top: 1px solid var(--border);
  max-width: 700px; margin: 0 auto;
}

/* ── Back nav ── */
.post-back {
  max-width: 700px; margin: 0 auto;
  padding: 2rem clamp(1.5rem,5vw,2rem) 4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}

.post-back a {
  font-size: 0.85rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}

.post-back a:hover { color: var(--text); }

/* ── Post images ── */
.post-image {
  margin: 2rem 0;
}

.post-image img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.post-image figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
}

/* ── Multi-image grid (2 columns) ── */
.post-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.post-image-grid figure {
  margin: 0;
}

.post-image-grid img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.post-image-grid figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (max-width: 500px) {
  .post-image-grid { grid-template-columns: 1fr; }
}

/* ── Hashtag line ── */
.post-hashtags {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2rem;
  line-height: 1.8;
}
