/* ── Post layout ── */
.post-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.post-article {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Post header ── */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #0078d7;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.post-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6070;
}

.post-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #1c1c2e;
  margin-bottom: 1rem;
}

.post-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #3a3a4e;
  font-weight: 400;
}

/* ── Badge variants ── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  color: #ffffff;
}

.badge--blue   { background: #0078d7; }
.badge--green  { background: #00b050; }
.badge--orange { background: #e05c00; }
.badge--purple { background: #6b0ac9; }
.badge--teal   { background: #008b8b; }

/* ── Site title link in header ── */
.site-title {
  color: inherit;
  text-decoration: none;
}
.site-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Post body typography ── */
.post-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1c1c2e;
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1c1c2e;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #0078d7;
}

.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c2e;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-body a {
  color: #0078d7;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: #005fa3;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.4rem 1.5rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: #f0f4f8;
  border-left: 4px solid #0078d7;
  font-style: italic;
  color: #3a3a4e;
}

.post-body code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
  background: #e8edf2;
  padding: 0.15em 0.4em;
  color: #1c1c2e;
}

.post-body pre {
  background: #1a1a2e;
  color: #e0e6f0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.4rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body hr {
  border: none;
  border-top: 2px solid #e0e6f0;
  margin: 2.5rem 0;
}

/* ── Post footer ── */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dde3ea;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: #0078d7;
  padding: 0.45rem 1rem;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 0.85;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-title { font-size: 1.8rem; }
  .post-lede  { font-size: 1rem; }
  .post-body  { font-size: 1rem; }
}