.author-page {
  --author-navy: #101a4d;
  --author-blue: #2457e6;
  --author-orange: #f56d25;
  --author-ink: #121a2d;
  --author-muted: #647089;
  --author-border: #dfe5f0;
  background: #f5f7fb;
  color: var(--author-ink);
  font-family: 'Encode Sans', sans-serif;
  padding-top: 65px;
}

.author-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.author-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px 0 64px;
  background:
    radial-gradient(circle at 88% 10%, rgba(89, 135, 255, 0.42), transparent 30%),
    linear-gradient(125deg, #0d1749 0%, #173385 55%, #255bdc 100%);
  color: #fff;
}

.author-hero-decoration {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.author-hero-decoration-one {
  top: -170px;
  right: -90px;
  width: 420px;
  height: 420px;
}

.author-hero-decoration-two {
  right: 240px;
  bottom: -180px;
  width: 310px;
  height: 310px;
}

.author-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.author-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-breadcrumb a:hover {
  color: #fff;
}

.author-profile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.author-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(5, 16, 66, 0.3);
}

.author-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.author-kicker,
.author-section-kicker {
  margin: 0 0 9px;
  color: #ffb086;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-profile h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.author-introduction {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.7;
}

.author-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 26px;
  font-size: 14px;
}

.author-profile-meta > span {
  color: rgba(255, 255, 255, 0.75);
}

.author-profile-meta strong {
  color: #fff;
  font-size: 18px;
}

.author-profile-meta a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.author-profile-meta a span,
.author-post-read-more span {
  transition: transform 0.2s ease;
}

.author-profile-meta a:hover span,
.author-post-read-more:hover span {
  transform: translateX(4px);
}

.author-articles {
  padding: 64px 0 82px;
}

.author-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.author-section-kicker {
  color: var(--author-orange);
}

.author-section-heading h2 {
  margin: 0;
  color: var(--author-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.author-results-summary {
  margin: 0;
  color: var(--author-muted);
  font-size: 14px;
}

.author-results-summary strong {
  color: var(--author-ink);
}

.author-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.author-post-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--author-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 49, 91, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.author-post-card:hover {
  transform: translateY(-5px);
  border-color: #cbd6ee;
  box-shadow: 0 20px 44px rgba(30, 49, 91, 0.13);
}

.author-post-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #182b70, #2e69e9);
}

.author-post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.author-post-card:hover .author-post-image {
  transform: scale(1.035);
}

.author-post-image-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.author-post-image-fallback img {
  width: min(180px, 70%);
  height: auto;
  filter: brightness(0) invert(1);
}

.author-post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.author-post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 19px;
  color: #758199;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.author-post-meta > span:first-child {
  color: var(--author-blue);
}

.author-post-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8c1d1;
}

.author-post-title {
  display: -webkit-box;
  min-height: 75px;
  margin: 13px 0 12px;
  overflow: hidden;
  color: var(--author-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.author-post-title a {
  color: inherit;
  text-decoration: none;
}

.author-post-title a:hover {
  color: var(--author-blue);
}

.author-post-excerpt {
  display: -webkit-box;
  margin: 0 0 22px;
  overflow: hidden;
  color: var(--author-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.author-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: auto;
  color: var(--author-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.author-page a:focus-visible {
  outline: 3px solid rgba(245, 109, 37, 0.45);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .author-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .author-page {
    padding-top: 48px;
  }

  .author-shell {
    width: min(100% - 32px, 560px);
  }

  .author-hero {
    padding: 28px 0 44px;
  }

  .author-breadcrumb {
    margin-bottom: 28px;
  }

  .author-profile {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
  }

  .author-logo {
    width: 76px;
    height: 76px;
    padding: 11px;
    border-radius: 18px;
  }

  .author-profile h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .author-introduction,
  .author-profile-meta {
    grid-column: 1 / -1;
  }

  .author-introduction {
    margin-top: 14px;
    font-size: 15px;
  }

  .author-profile-meta {
    margin-top: 4px;
  }

  .author-articles {
    padding: 44px 0 64px;
  }

  .author-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .author-post-grid {
    grid-template-columns: 1fr;
  }

  .author-post-title {
    min-height: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .author-page *,
  .author-page *::before,
  .author-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
