/* ============================================================
   GERMET blog — list + article styles (extends main.css tokens)
   ============================================================ */

/* ---------- Blog index: post cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.postcard {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.postcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(11,19,34,.28);
}
.postcard-img { aspect-ratio: 16/9; overflow: hidden; }
.postcard-img img { width: 100%; height: 100%; object-fit: cover; }
.postcard-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.postcard-meta {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blueprint-d);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.postcard-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--txt-l);
}
.postcard-title a:hover { color: var(--accent); }
.postcard-ex { color: var(--txt-l-mut); font-size: .95rem; flex: 1; }
.postcard-more {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Article page ---------- */
.article-hero {
  position: relative;
  min-height: clamp(280px, 46vh, 480px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,19,34,.25) 0%, rgba(11,19,34,.82) 100%);
}
.article-hero .wrap { position: relative; padding-block: 48px 40px; }
.article-kicker {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blueprint);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  max-width: 900px;
  color: var(--txt-d);
}
.article-lede {
  margin-top: 16px;
  max-width: 760px;
  color: var(--txt-d-mut);
  font-size: 1.05rem;
}

.article-body {
  background: var(--paper);
  color: var(--txt-l);
}
.article-prose {
  max-width: 760px;
  margin: 0 auto;
  padding-block: clamp(48px, 8vh, 84px);
  font-size: 1.06rem;
  line-height: 1.75;
}
.article-prose h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.2em 0 .6em;
}
.article-prose h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.8em 0 .5em;
}
.article-prose p { margin: 0 0 1.15em; }
.article-prose a { color: var(--blueprint-d); text-decoration: underline; text-underline-offset: 3px; }
.article-prose ul, .article-prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.article-prose ul { list-style: disc; }
.article-prose li { margin-bottom: .45em; }
.article-prose strong { font-weight: 600; }
.article-prose figure { margin: 2em 0; }
.article-prose figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}
.article-prose figcaption {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--txt-l-mut);
  margin-top: 10px;
}
.article-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: .2em 0 .2em 1.2em;
  margin: 1.6em 0;
  color: var(--txt-l-mut);
  font-style: italic;
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: .95rem;
}
.article-prose th, .article-prose td {
  border: 1px solid var(--line-light-2);
  padding: 10px 14px;
  text-align: left;
}
.article-prose th { background: var(--paper-2); font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.article-callout {
  background: var(--paper-2);
  border: 1px solid var(--line-light-2);
  border-left: 3px solid var(--blueprint-d);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 2em 0;
}
.article-callout p:last-child { margin-bottom: 0; }

/* author / back row */
.article-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 clamp(48px, 8vh, 84px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.article-author { font-size: .9rem; color: var(--txt-l-mut); }
.article-author strong { color: var(--txt-l); font-weight: 600; }
.back-blog {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blueprint-d);
}

/* CTA band under article */
.article-cta {
  background: var(--ink-2);
  color: var(--txt-d);
  padding-block: clamp(48px, 7vh, 72px);
}
.article-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.article-cta h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; max-width: 560px; }
.article-cta p { color: var(--txt-d-mut); margin-top: 8px; max-width: 560px; }

@media (max-width: 640px) {
  .article-hero { min-height: 240px; }
  .article-prose { font-size: 1rem; }
}
