/* blog.css — supplement to style.css for the Blog index and article pages.
   Links style.css first, then this. Reuses tokens, nav, footer, hero,
   buttons, section type, and .final CTA from style.css. */

/* ---------- Blog index ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  margin-top: 8px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img {
  margin: -32px -32px 24px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
}
.blog-card-img svg { display: block; width: 100%; height: auto; }
.blog-card-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 16px;
}
.blog-card-title {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 0 0 14px;
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 22px;
}
.blog-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-light);
}
.blog-card-meta .dot { color: var(--border-mid); }

/* ---------- Article ---------- */
.post-crumb {
  position: static;
  height: auto;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 28px 0 0;
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.post-crumb .container { display: flex; gap: 8px; align-items: center; }
.post-crumb a { color: var(--text-light); text-decoration: none; }
.post-crumb a:hover { color: var(--red); }
.post-crumb span { color: var(--border-mid); }
.post-crumb .here { color: var(--text-mid); }

.post-head { padding: 40px 0 0; }
.post-head .container { max-width: 760px; }
.post-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin: 0 0 18px;
}
.post-title {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--navy);
  margin: 0 0 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-light);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.post-meta strong { color: var(--navy); font-weight: 500; }
.post-meta .dot { color: var(--border-mid); }

.post-body { padding: 40px 0 16px; }
.post-body .container { max-width: 760px; }
.post-body h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--navy);
  margin: 48px 0 18px;
}
.post-body p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 22px;
}
.post-body p.post-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-mid);
}
.post-body strong { color: var(--navy); font-weight: 600; }
.post-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--navy); }
.post-body ul { margin: 0 0 22px; padding: 0; list-style: none; }
.post-body ul li {
  position: relative;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 24px;
  margin-bottom: 14px;
}
.post-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
}

@media (max-width: 700px) {
  .post-body p, .post-body ul li { font-size: 17px; }
}

/* Post hero figure (schematic) */
.post-hero { margin: 34px 0 6px; border: 1px solid var(--border); border-radius: 14px; background: #fcfbf8; box-shadow: 0 2px 14px rgba(30, 28, 58, 0.06); overflow: hidden; }
.post-hero svg { display: block; width: 100%; height: auto; }
.post-hero-zones { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 9px 18px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--text-light); letter-spacing: 0.04em; background: var(--white); }
@media (max-width: 700px) { .post-hero-zones { flex-direction: column; gap: 4px; } }
