/* Blog index and article pages. Uses the selected site theme's tokens. */

.blog-page {
  max-width: 980px;
  margin: 0 auto;
}

.blog-hero {
  max-width: 760px;
  padding: 12px 0 30px;
}

.blog-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 5.6vw, 68px);
}

.blog-hero .lede {
  max-width: 660px;
  margin-bottom: 18px;
}

.blog-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.post-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.post-card {
  display: block;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.post-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.post-card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.post-card h2 {
  max-width: 760px;
  margin: 8px 0 8px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.post-card p {
  max-width: 700px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.post-card .text-link {
  font-size: 11px;
}

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

.post-header {
  padding: 12px 0 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.post-header .eyebrow a {
  color: var(--mint);
  text-decoration: none;
}

.post-header .eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-title {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.01;
  letter-spacing: -.055em;
}

.post-header .lede {
  max-width: 700px;
  margin-bottom: 18px;
}

.post-meta {
  color: var(--muted-2);
}

.post-body {
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.post-body p {
  margin: 0 0 19px;
}

.post-body p:first-child {
  color: var(--ink);
  font-size: 16px;
}

.post-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--ink);
}

.post-body h2 {
  margin: 36px 0 13px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.post-body h3 {
  margin: 28px 0 9px;
  font-size: 18px;
}

.post-body blockquote {
  margin: 26px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--mint);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.post-body code {
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--ink);
  font-size: .88em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.post-body li {
  margin: 6px 0;
}

.post-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 44px;
  padding: 22px;
}

.post-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
}

.post-cta p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.post-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-footer-actions .button {
  margin-top: 0;
}

.post-footer .text-link {
  font-size: 11px;
}

.blog-teaser-card {
  display: block;
  max-width: 780px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.blog-teaser-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.blog-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-teaser-card h3 {
  margin: 8px 0 7px;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -.03em;
}

.blog-teaser-card p {
  max-width: 680px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .post-card {
    padding: 18px;
  }

  .post-body {
    font-size: 14px;
  }

  .post-body p:first-child {
    font-size: 15px;
  }

  .post-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
