:root {
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --brand-600: #0b4aa6;
  --brand-500: #0f5ed1;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --card: #f8fafc;
  --ring: rgba(15, 94, 209, 0.18);
}

.author-page {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 35%, #ffffff 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

.author-hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.author-hero__bg {
  position: absolute;
  inset: -120px -20% auto -20%;
  height: 260px;
  background:
    radial-gradient(1200px 180px at 20% 20%, rgba(15,94,209,0.25), transparent 60%),
    radial-gradient(900px 220px at 80% 10%, rgba(14,116,144,0.18), transparent 55%);
  filter: blur(2px);
}

.author-hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-identity h1 {
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 8px;
}

.author-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ink-500);
  margin-bottom: 6px;
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.pill {
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-700);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.author-bio {
  font-size: 1rem;
  color: var(--ink-700);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.author-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-ghost {
  border: 1px solid var(--brand-500);
  color: var(--brand-600);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 94, 209, 0.18);
}

.author-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.author-social a {
  font-size: 0.85rem;
  color: var(--ink-700);
  text-decoration: none;
  background: rgba(15, 94, 209, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.author-social a:hover {
  background: rgba(15, 94, 209, 0.2);
  color: var(--brand-600);
}

.author-feed {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.feed-header h2 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  color: var(--ink-900);
}

.feed-subtitle {
  color: var(--ink-500);
  margin-bottom: 20px;
}

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

.story-card {
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.story-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.story-body {
  padding: 16px 16px 20px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.story-meta .dot {
  font-size: 0.9rem;
}

.story-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.story-body p {
  margin: 0 0 12px;
  color: var(--ink-700);
  line-height: 1.6;
}

.story-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-600);
}

.no-results {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.pagination {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ink-700);
  background: var(--paper);
}

.pagination span.active {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}

@media (max-width: 980px) {
  .author-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .author-hero__content {
    grid-template-columns: 110px 1fr;
  }
  .author-avatar {
    width: 110px;
    height: 110px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .author-hero__content {
    grid-template-columns: 1fr;
  }
  .author-grid {
    grid-template-columns: 1fr;
  }
  .author-avatar {
    width: 96px;
    height: 96px;
  }
}
