/* Article page hero — loaded only on /blog/:slug and /news/:slug (via
   extraHead in public-articles.js). Structure only: every colour comes from
   the palette surface applied to the hero (.surface-<key> sets the --c-*
   variables in /theme.css), so the band recolours with the chosen palette.
   The cover image fills the band and a semi-transparent tint of the
   surface's background sits over it; without a cover the same layout renders
   on the solid surface colour. Fallbacks mimic the 'dark' surface so an
   unknown/deleted surface key still yields readable text over a photo. */

.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-bg, var(--color-ink));
}

.article-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--c-bg, var(--color-ink)) 72%, transparent);
}

.article-hero-inner {
  position: relative; /* above the media + overlay layers */
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
}

.article-hero-eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-feature, var(--color-brand-light));
}

.article-hero-title {
  margin: 0;
  max-width: 24ch;
  font-size: 2.7rem;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--c-heading, var(--color-bg));
}

.article-hero-sub {
  margin: 1rem 0 0;
  max-width: 640px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--c-text, var(--color-surface));
}

/* Meta row: avatars + "By …" · date · "Reviewed by …" · tag badges. */
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.3rem;
  margin-top: 1.7rem;
  font-size: 0.9rem;
  color: var(--c-subtle, var(--color-slate-soft));
}
.article-hero-meta a {
  color: var(--c-text, var(--color-surface));
  text-decoration: underline;
}
.article-hero-meta a:hover { text-decoration: none; }

.article-hero-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-text, var(--color-surface));
}
.article-hero-avatars { display: inline-flex; }
.article-hero-avatars img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-bg, var(--color-ink));
  background: var(--c-panel, var(--color-slate));
}
.article-hero-avatars img + img { margin-left: -9px; }

@media (max-width: 600px) {
  .article-hero-inner { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .article-hero-title { font-size: 1.9rem; }
  .article-hero-sub { font-size: 1.1rem; }
}

/* Article content matches the standard page container width (pages have no
   720px cap, so articles shouldn't either). Applies to the body and the
   community section beneath it. */
article.section .prose { max-width: none; }
article.section .community-block,
article.section .comments { max-width: none; }
