/* Blog styles — ride the shared landing tokens (/preview/styles.css) the same
   way /about does. Article prose mirrors .about-prose so the whole static site
   reads as one surface. */

.blog-head {
  padding: 72px 0 40px;
}
.blog-head .eyebrow { color: var(--emerald-bright); }
.blog-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 10px 0 0;
  text-wrap: balance; color: var(--text);
}
.blog-sub {
  max-width: 640px; margin: 14px 0 0; font-size: 16.5px; line-height: 1.65;
  color: var(--text-dim);
}

/* Index cards */
.post-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  padding: 8px 0 72px;
}
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg-panel); padding: 22px;
  text-decoration: none; transition: border-color 160ms ease, transform 160ms ease;
}
.post-card:hover { border-color: var(--emerald-deep); transform: translateY(-2px); }
.post-card .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald-bright);
}
.post-card h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 20px; line-height: 1.3; margin: 0; color: var(--text);
}
.post-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }
.post-card .meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--text-dim); }

/* Article prose */
.post-prose { max-width: 720px; padding: 20px 0 72px; }
.post-prose > p { font-size: 16.5px; line-height: 1.75; color: var(--text-dim); margin: 0 0 20px; }
.post-prose p strong, .post-prose li strong { color: var(--text); }
.post-prose h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em;
  font-size: clamp(22px, 3vw, 27px); line-height: 1.25; color: var(--text);
  margin: 40px 0 14px;
}
.post-prose h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18.5px;
  color: var(--text); margin: 28px 0 10px;
}
.post-prose ul, .post-prose ol { margin: 0 0 20px; padding-left: 24px; }
.post-prose li { font-size: 16px; line-height: 1.7; color: var(--text-dim); margin: 0 0 10px; }
.post-prose a { color: var(--emerald-bright); text-decoration: none; }
.post-prose a:hover { text-decoration: underline; }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin: 16px 0 0; font-size: 14px; color: var(--text-dim);
}

/* The snippet-friendly direct answer near the top */
.post-answer {
  margin: 26px 0; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--emerald-deep);
  border-radius: var(--r-card); background: var(--bg-panel);
}
.post-answer p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--text); }

/* Worked-example / comparison tables */
.post-table-scroll { overflow-x: auto; margin: 0 0 20px; }
.post-prose table {
  width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5;
}
.post-prose th, .post-prose td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  color: var(--text-dim); vertical-align: top;
}
.post-prose th { color: var(--text); font-weight: 700; white-space: nowrap; }
.post-prose td:first-child { color: var(--text); }

/* Mid-article and closing CTAs */
.post-cta {
  margin: 34px 0; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg-panel);
}
.post-cta p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--text); }
.post-cta .btn { display: inline-block; }

.post-foot-note {
  margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.65; color: var(--text-dim);
}
