/*
 * Sierra — author bio page (template-author-bio.php).
 *
 * Loaded after blog.css. Everything here is built from pieces the site already
 * has: the .stat-num / .stat-label pair from the home hero, the bordered
 * --dark-2 cards, the red condensed eyebrow and the hairline rows.
 */

.blog-article.bio-article { padding-top: 0; }
.blog-article.bio-article .blog-article__inner { max-width: 1140px; }

/* ---- Career milestones --------------------------------------------------- */
.bio-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  /* Lifted over the hero's bottom edge; the hero is its own stacking context. */
  position: relative;
  z-index: 2;
  margin: -36px 0 70px;
}
.bio-milestone {
  position: relative;
  padding: 30px 28px 28px;
  border-left: 1px solid var(--border);
  transition: background var(--transition);
}
.bio-milestone:first-child { border-left: 0; }
.bio-milestone:hover { background: var(--dark-3); }
.bio-milestone .stat-num,
.bio-milestone .stat-label { display: block; }
.bio-milestone .stat-num { font-size: 52px; }
.bio-milestone .stat-num small {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-left: 6px;
}
.bio-milestone .stat-label { margin-top: 10px; line-height: 1.5; }

/* ---- Two columns: prose and a sticky summary card ------------------------- */
.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: start;
}
.bio-aside { position: sticky; top: 40px; }

.bio-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 32px 30px;
}
.bio-card + .bio-card { margin-top: 20px; }
.blog-prose .bio-card h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.blog-prose .bio-card h4::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--orange);
  opacity: 0.3;
}
.bio-fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.bio-fact:last-of-type { border-bottom: 0; }
.bio-fact span { display: block; }
.bio-fact__label {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bio-fact__value {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}
.bio-card .btn { display: block; margin-top: 22px; text-align: center; }
.bio-card .link-arrow { margin-top: 18px; }
.bio-card--cta { border-left: 3px solid var(--orange); }
.blog-prose .bio-card--cta p { font-size: 15px; line-height: 1.7; margin: 0; }

/* ---- Prose ---------------------------------------------------------------- */
.bio-body { counter-reset: bio-chapter; }

/* The opening paragraph reads as a standfirst. */
.blog-prose .bio-body > p:first-child {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--white);
}
.blog-prose .bio-body > p.bio-thread {
  margin: 34px 0 0;
  padding: 26px 30px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  font-family: var(--font-condensed);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--white);
}

/* Each chapter opens on a hairline with a numbered red eyebrow. */
.blog-prose .bio-body h2 {
  counter-increment: bio-chapter;
  margin-top: 60px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.blog-prose .bio-body h2::before {
  content: "0" counter(bio-chapter);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--orange);
}
.blog-prose .bio-body > p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .bio-layout { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .bio-aside { position: static; }
  .bio-milestones { grid-template-columns: repeat(2, 1fr); }
  .bio-milestone:nth-child(odd) { border-left: 0; }
  .bio-milestone:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .bio-milestones { margin: -24px 0 50px; }
  .bio-milestone { padding: 22px 18px 20px; }
  .bio-milestone .stat-num { font-size: 40px; }
  .bio-milestone .stat-num small { font-size: 15px; }
  .bio-milestone .stat-label { font-size: 13px; letter-spacing: 0.08em; }
  .blog-prose .bio-body > p:first-child { font-size: 21px; }
  .blog-prose .bio-body > p.bio-thread { padding: 22px 22px; font-size: 21px; }
  .blog-prose .bio-body h2 { margin-top: 46px; padding-top: 36px; }
  .bio-card { padding: 28px 22px; }
}

/* ---- Portrait (2026-11-13) -----------------------------------------------
 * Its own grid item: top of the right column on desktop, above the prose on
 * smaller screens, so mobile visitors see it before the article. */
.bio-layout { row-gap: 20px; grid-template-rows: auto 1fr; }
.bio-layout > .bio-body { grid-column: 1; grid-row: 1 / span 2; }
.bio-layout > .bio-aside { grid-column: 2; grid-row: 2; }
.bio-layout > .bio-portrait { margin: 0; grid-column: 2; grid-row: 1; }
.bio-layout > .bio-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 0;
}

@media (max-width: 1024px) {
  .bio-layout { row-gap: 50px; grid-template-rows: none; }
  .bio-layout > .bio-body,
  .bio-layout > .bio-aside,
  .bio-layout > .bio-portrait { grid-column: auto; grid-row: auto; }
  .bio-layout > .bio-portrait { max-width: 480px; }
}
