/* ==========================================================================
   Component — Article card
   --------------------------------------------------------------------------
   Typography-led entry in an Insights list: status (when needed),
   category, title, excerpt, byline and one text link. A rule on top
   instead of a box or image, so a list of articles reads like an
   editorial contents page rather than a blog template.

   <article class="article-card" data-status="concept" data-demo="true"
            aria-labelledby="article-x">
     <div class="article-card__header">
       <span class="badge badge--demo">Concept · not yet published</span>
       <p class="article-card__category type-eyebrow">SEO</p>
     </div>
     <h3 class="article-card__title" id="article-x">…</h3>
     <p class="article-card__excerpt">…</p>
     <p class="article-card__meta">ZENNTAC Editorial · Planned guide</p>
     <p class="article-card__action"><a class="link-action" href="…">…</a></p>
   </article>

   A published article drops the badge and links its title to the post.
   The category is always written in text, never shown by colour alone.
   WordPress: template-parts/article-card.php inside the posts loop.
   ========================================================================== */

.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block-start: var(--space-5);
  border-block-start: var(--border-width) solid var(--color-border-strong);
}

/* In a grid cell, entries in the same row share one height so the links
   line up. */
.grid > * > .article-card {
  block-size: 100%;
}

.article-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.article-card__category {
  color: var(--color-accent);
}

.article-card__title {
  max-inline-size: 28ch;
  font-family: var(--type-h3-family);
  font-size: var(--type-h3-size);
  font-weight: var(--type-h3-weight);
  line-height: var(--type-h3-leading);
  letter-spacing: var(--type-h3-tracking);
}

.article-card__excerpt {
  max-inline-size: var(--measure);
  color: var(--color-text-secondary);
}

.article-card__meta {
  color: var(--color-text-muted);
  font-size: var(--type-body-small-size);
}

.article-card__action {
  margin-block-start: auto;
}
