/* ==========================================================================
   Blog: the /blog index, the post pages, and the post cards on the homepage.
   Uses the tokens in styles.css; no colour here that the tokens don't cover
   apart from the borders and fills the homepage already uses.
   ========================================================================== */

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: rgba(127, 216, 190, 0.3); }
.post-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.post-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.post-sum { font-size: 14px; color: rgba(250, 250, 248, 0.68); }
.post-meta { margin-top: auto; font-size: 13px; color: rgba(250, 250, 248, 0.5); }


.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* Index */
.blog-hero { padding-top: 24px; }
.blog-hero h1 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.05;
}
.blog-hero .lead { margin-bottom: 0; max-width: 640px; }
.post-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding: 40px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--surface-testimonial);
  border: 1px solid rgba(127, 216, 190, 0.22);
  border-top: 3px solid var(--color-accent);
  border-radius: 18px;
}
.post-feature .post-title {
  max-width: 820px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.post-feature .post-sum { max-width: 720px; font-size: 17px; }
.post-feature .post-more { font-size: 14px; font-weight: 600; color: var(--color-accent); }

/* Post page */
.post-wrap { max-width: 860px; margin: 40px auto 0; }
.post-article {
  padding: clamp(24px, 5vw, 56px);
  background: rgba(13, 27, 42, 0.9);
  border: 1px solid rgba(127, 216, 190, 0.08);
  border-radius: 18px;
}
.post-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.post-byline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 16px; }
.post-byline .post-meta { margin: 0; }
.post-article h1 {
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.post-intro {
  margin: 0 0 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250, 250, 248, 0.1);
  font-size: 20px;
  line-height: 1.6;
  color: rgba(250, 250, 248, 0.9);
}
.post-body p,
.post-body li {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(250, 250, 248, 0.82);
}
.post-body p { margin: 0 0 20px; }
.post-body h2 {
  margin: 40px 0 14px;
  font-size: 24px;
  line-height: 1.25;
}
.post-body ul {
  margin: 0 0 24px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-body strong { color: var(--color-text); }
.post-note {
  padding: 14px 18px;
  border-left: 3px solid rgba(127, 216, 190, 0.5);
  border-radius: 0 8px 8px 0;
  background: rgba(127, 216, 190, 0.06);
  font-size: 14px !important;
  color: rgba(250, 250, 248, 0.68) !important;
}
.post-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--surface-testimonial);
  border: 1px solid rgba(127, 216, 190, 0.18);
  border-radius: 16px;
}
.post-cta h2 { margin: 0 0 8px; font-size: 24px; }
.post-cta h2 em { font-style: normal; color: var(--color-accent); }
.post-cta p { margin: 0 0 22px; color: rgba(250, 250, 248, 0.75); }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.post-more-head { margin: 0 0 24px; font-size: 26px; }

@media (max-width: 768px) {
  .post-feature { padding: 28px 22px; }
}
