/* ================================================================
   AUTHORS — author profile pages (authors/*.html)
   Uses the shared tokens in main.css; layout mirrors the blog post
   header (blog.css .bp-header) so the two feel like one section.
   ================================================================ */

/* ── HEADER ─────────────────────────────────────────────────────── */
.au-hero {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 120px 80px 64px;
}

.au-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Reset the global fixed `nav` rule from components.css */

.au-profile {
  display: flex;
  align-items: center;
  gap: 36px;
}

.au-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--op);
}

.au-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.au-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--o);
  color: #fff;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.au-profile-text .slbl { margin-bottom: 8px; }

.au-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--dk);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.au-role {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.au-linkedin,
.au-all {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--o2);
  text-decoration: none;
}

.au-linkedin:hover,
.au-all:hover { text-decoration: underline; }

/* ── BIO + ARTICLE LIST ─────────────────────────────────────────── */
.au-main {
  background: var(--wh);
  padding: 72px 80px 96px;
}

.au-main-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.au-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px); /* same as .stit */
  font-weight: 800;
  color: var(--dk);
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.au-count {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mu);
}

.au-bio-text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--mid);
}

.au-bio-text p + p { margin-top: 16px; }

.au-bio-text a {
  color: var(--o2);
  font-weight: 600;
}

.au-post-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-bottom: 28px;
}

.au-post { border-bottom: 1px solid var(--rule); }

.au-post-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 4px;
  text-decoration: none;
  transition: background var(--t-fast);
}

.au-post-link:hover { background: #fff; }

.au-post-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dk);
  line-height: 1.45;
  transition: color var(--t-fast);
}

.au-post-link:hover .au-post-title { color: var(--o2); }

.au-post-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid);
}

.au-post-meta {
  font-size: 13px;
  color: var(--mu);
}

/* Topics the author writes about (from their posts' structured data) */
.au-topics { margin-top: 28px; }
.au-topics-hd {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--o2);
  margin-bottom: 12px;
}
.au-topic-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.au-topic-list li {
  font-size: 13.5px;
  color: var(--dk);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .au-hero { padding: 100px 40px 56px; }
  .au-main { padding: 56px 40px 72px; }
}

@media (max-width: 640px) {
  .au-hero { padding: 88px 20px 48px; }
  .au-main { padding: 40px 20px 56px; }
  .au-profile { flex-direction: column; align-items: flex-start; gap: 20px; }
  .au-avatar { width: 96px; height: 96px; }
  .au-avatar--initials { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .au-post-link,
  .au-post-title { transition: none; }
}
