/* Our Authors page (/authors): every author's full details as one card.
   Uses the site tokens from base.css; nothing here restyles shared parts. */

.author-page {
  --author-serif: var(--font-dm-serif), "DM Serif Display", serif;
  --author-ink: #120d4a;
  --author-soft: #f4f1ff;
  --author-line: #ebe7fb;
  background: #fbfaff;
  padding-bottom: 8px;
}

/* ---------- Hero ---------- */
.author-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--logo-h) + 28px) 0 56px;
}
.author-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 8, 40, 0.86) 0%, rgba(10, 8, 40, 0.62) 46%, rgba(10, 8, 40, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 8, 40, 0.55) 0%, rgba(10, 8, 40, 0) 45%);
}
.author-hero__inner { position: relative; }
.author-hero__title {
  margin: 18px 0 0;
  font-family: var(--author-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  color: #fff;
}
.author-hero__intro {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
.author-hero__rule {
  display: block;
  width: 200px;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.1));
}

/* ---------- Shared bits ---------- */
.author-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f2de2, #8b5cf6);
  color: #fff;
  font-family: var(--author-serif);
  font-size: 72px;
  letter-spacing: 1px;
}
.author-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 3px 12px;
  background: var(--author-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.author-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.author-btn svg { width: 18px; height: 18px; }
.author-btn:hover { transform: translateY(-2px); }
.author-btn--primary { color: #fff; background: var(--grad); box-shadow: var(--sh-lift); }
.author-btn--wa { color: #fff; background: #1fb855; box-shadow: 0 16px 34px -16px rgba(31, 184, 85, 0.8); }
.author-btn--ghost { color: var(--primary); background: #fff; border: 1px solid var(--author-line); }

.author-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--author-soft);
  color: var(--author-ink);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.author-socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.author-socials svg { width: 18px; height: 18px; }

.author-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.author-chips li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--author-soft);
  color: #3b2bb5;
  font-size: 13px;
  font-weight: 600;
}

.author-prose {
  margin: 0 0 14px;
  white-space: pre-line; /* keeps one-item-per-line lists from the admin bio */
  font-size: 16px;
  line-height: 1.8;
  color: #3f4566;
}
.author-block { margin-top: 22px; }
.author-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--author-ink);
}
.author-block h3 svg { width: 18px; height: 18px; color: var(--primary); }
.author-achievements { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.author-achievements li {
  position: relative;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--author-line);
  color: #3f4566;
  line-height: 1.55;
}
.author-achievements li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
}

.author-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed #d6d0f5;
  border-radius: var(--r-card);
  background: #fff;
  color: #667085;
}
.author-empty > svg { width: 38px; height: 38px; color: var(--primary); }
.author-empty p { margin: 0; }
.author-empty__title { font-weight: 800; font-size: 18px; color: var(--author-ink); }
.author-empty .author-btn { margin-top: 10px; }

/* ---------- Author cards ---------- */
.author-list { display: grid; gap: 26px; padding: 32px 0 64px; }
.author-card {
  /* Clears the fixed header when a blog byline jumps to /authors#slug. */
  scroll-margin-top: calc(var(--logo-h) + 16px);
  padding: 12px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--author-line);
  box-shadow: var(--sh-soft);
  transition: box-shadow 0.3s var(--ease);
}
.author-card:hover { box-shadow: var(--sh-card); }
.author-card:target { border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.12), var(--sh-card); }
.author-card__top {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 290px;
  gap: 26px;
}
.author-card__photo {
  position: relative;
  /* Fixed square, top-aligned: a long bio no longer stretches the photo. */
  align-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--r-card) - 8px);
  background: var(--author-soft);
}
.author-card__photo img,
.author-card__photo .author-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: #3b1fd9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.author-card__main { padding: 14px 0; min-width: 0; }
.author-card__name {
  margin: 0;
  font-family: var(--author-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--author-ink);
  overflow-wrap: anywhere;
}
.author-card__handle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.author-card__handle { color: var(--primary); font-weight: 700; font-size: 17px; text-decoration: none; }
.author-card__about { margin-top: 14px; }
.author-card__about .author-prose { margin-bottom: 10px; font-size: 15px; line-height: 1.75; }
.author-card__about > :last-child { margin-bottom: 0; }
.author-card__about .author-block { margin-top: 16px; }
.author-card__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.author-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #f8f7ff;
  color: #667085;
  font-size: 13px;
}
.author-card__stats svg { width: 18px; height: 18px; color: var(--primary); }
.author-card__stats strong { color: var(--author-ink); font-size: 15px; }
.author-card__block { margin-top: 16px; }
.author-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--author-ink);
}
.author-card__label--lg { font-family: var(--author-serif); font-weight: 400; font-size: 22px; margin-bottom: 14px; }
.author-card__label--lg svg { width: 18px; height: 18px; color: var(--primary); }
.author-card__label--lg span { font-family: var(--f-body); font-size: 14px; color: #98a2b3; }
.author-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #667085;
}
.author-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.author-card__meta svg { width: 16px; height: 16px; color: var(--primary); }
.author-card__side {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 14px 14px 14px 24px;
  border-left: 1px solid var(--author-line);
}
.author-card__quote {
  position: relative;
  margin: 0;
  padding: 16px 16px 14px 44px;
  border-radius: 14px;
  background: var(--author-soft);
}
.author-card__quote svg { position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; color: #3b1fd9; }
.author-card__quote p { margin: 0; font-style: italic; color: #3f4566; line-height: 1.55; }
.author-card__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: #667085; }
.author-card__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.author-card__thumbs a { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; background: var(--author-soft); }
.author-card__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.author-card__thumbs a:hover img { transform: scale(1.08); }
.author-card__none { margin: 0; font-size: 13px; color: #98a2b3; }

/* ---------- CTA ---------- */
.author-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  margin-top: 6px;
  border-radius: var(--r-card);
  background: linear-gradient(90deg, #ece8ff, #f7f5ff);
  border: 1px solid var(--author-line);
}
.author-cta__logo {
  display: inline-flex;
  width: 120px;
  padding-right: 28px;
  border-right: 2px solid #c9bff8;
  color: #4f2de2;
}
.author-cta__logo svg { width: 100%; height: auto; }
.author-cta__copy { flex: 1; min-width: 0; }
.author-cta__copy h2 { margin: 0; font-family: var(--author-serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); color: var(--author-ink); }
.author-cta__copy p { margin: 4px 0 0; color: #475467; }
.author-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .author-card__top { grid-template-columns: 300px minmax(0, 1fr); }
  .author-card__side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border-left: 0;
    border-top: 1px solid var(--author-line);
    padding: 18px 10px 6px;
  }
}
@media (max-width: 960px) {
  .author-cta { flex-wrap: wrap; }
  .author-cta__logo { display: none; }
}
@media (max-width: 760px) {
  .author-card__top { grid-template-columns: 1fr; gap: 16px; }
  .author-card__photo { max-width: 420px; width: 100%; }
  .author-card__main { padding: 0 8px; }
  .author-card__side { grid-template-columns: 1fr; padding: 16px 8px 8px; }
  .author-cta { padding: 22px 18px; }
  .author-cta__actions { width: 100%; }
  .author-cta__actions .author-btn { flex: 1 1 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .author-card,
  .author-card__thumbs img,
  .author-btn { transition: none; }
}

/* Biography list (second paragraph) in the right column: one row per line. */
.author-card__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.author-card__list li {
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8f7ff;
  border: 1px solid var(--author-line);
  color: var(--author-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
/* Closing / contact lines of the biography, under the first paragraph. */
.author-card__note {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f1ff, #fbfaff);
  border-left: 3px solid var(--primary);
}
.author-card__note p { margin: 0; white-space: pre-line; font-size: 15px; line-height: 1.75; color: #3f4566; }
.author-card__note p + p { margin-top: 8px; }
