/* Company31 — Insights article reading layout.
   A per-page sheet (like cyber.css) loaded only on the long-form article pages
   under /insights/. Inherits every token and component from base.css + studio.css;
   adds the calm, single-column reading column, the byline, and the prose rhythm.
   Added 2026-06-24. */

/* The article header: kicker/category, headline, a meta row and a byline, all
   centred above the reading column to give the piece a clear front door. */
.article {
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem) clamp(2.5rem, 1.8rem + 4vw, 4.5rem);
}
.article__head { max-inline-size: 46rem; margin-inline: auto; text-align: center; }
.article__cat {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c31-accent); margin-block-end: 1.2rem;
}
.article__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.07; letter-spacing: -0.022em; font-weight: 600;
  margin-inline: auto; max-inline-size: 20ch;
}
.article__meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.55rem;
  margin-block-start: 1.4rem;
  font-size: 0.9rem; color: var(--c31-text-muted); font-variant-numeric: tabular-nums;
}
.article__meta .dot { inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--c31-text-muted); opacity: 0.7; }

/* Byline: the circular medallion echoing the brand mark, name and role. */
.article__byline {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-block-start: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem);
}
.article__avatar {
  inline-size: 48px; block-size: 48px; aspect-ratio: 1;
  object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c31-bg), 0 0 0 3px var(--c31-accent);
}
.article__byline-text { text-align: start; line-height: 1.3; }
.article__byline-text strong { display: block; color: var(--c31-text); font-size: 0.98rem; letter-spacing: -0.005em; }
.article__byline-text span { color: var(--c31-text-muted); font-size: 0.86rem; }

/* Optional brand-toned hero band under the header. */
.article__hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(2.5rem, 1.6rem + 3vw, 4rem) auto 0;
  max-inline-size: var(--wrap);
  border-radius: clamp(12px, 0.8vw, 20px);
  aspect-ratio: 21 / 8;
  background: linear-gradient(120deg, var(--brand-navy), #3f7fe0);
}
.article__hero img { inline-size: 100%; block-size: 100%; object-fit: cover; mix-blend-mode: luminosity; }
.article__hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand-navy) 36%, transparent), transparent 66%);
}
@media (max-width: 720px) { .article__hero { aspect-ratio: 16 / 10; } }

/* The reading column: one measured column, generous leading, editorial rhythm. */
.prose {
  max-inline-size: 40rem; margin-inline: auto;
  margin-block-start: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  font-size: clamp(1.075rem, 1.02rem + 0.25vw, 1.2rem);
  line-height: 1.68;
  color: var(--c31-text-soft);
}
.prose > * + * { margin-block-start: 1.45em; }
.prose p { color: var(--c31-text-soft); }
.prose strong { color: var(--c31-text); font-weight: 600; }
.prose a { color: var(--c31-accent); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--c31-accent-hover); }

/* Section subheads inside an article. */
.prose h2 {
  margin-block-start: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.15; letter-spacing: -0.018em; color: var(--c31-text);
}
.prose h3 {
  margin-block-start: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.2; letter-spacing: -0.012em; color: var(--c31-text);
}
.prose h2 + p, .prose h3 + p { margin-block-start: 0.9em; }

/* A pulled lead line: the first paragraph reads a touch larger and darker. */
.prose__lead { font-size: 1.12em; color: var(--c31-text); }

/* Blockquote: the studio's accent-rule treatment, reused from .step__case. */
.prose blockquote {
  margin-inline: 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-inline-start: 2px solid var(--c31-accent);
  font-size: 1.06em; color: var(--c31-text); font-weight: 500;
}
.prose ul, .prose ol { display: grid; gap: 0.7rem; padding-inline-start: 0; }
.prose li { position: relative; padding-inline-start: 1.6rem; color: var(--c31-text-soft); }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: 0.2rem; inset-block-start: 0.62em;
  inline-size: 0.42rem; block-size: 0.42rem; border-radius: 50%; background: var(--c31-accent);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { counter-increment: prose-ol; }
.prose ol li::before {
  content: counter(prose-ol); position: absolute; inset-inline-start: 0;
  color: var(--c31-accent); font-weight: 700; font-size: 0.85em; font-variant-numeric: tabular-nums;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }

/* Article footer: the source note and a quiet back link to the index. */
.article__foot {
  max-inline-size: 40rem; margin-inline: auto;
  margin-block-start: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  padding-block-start: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.article__source { font-size: 0.92rem; color: var(--c31-text-muted); max-inline-size: 44ch; }
