/* ============================================================
   VARSITY WISE — authors.css
   Aesthetic: Editorial magazine · Deep crimson · Refined
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --crimson: #9e0157;
  --crimson-dark: #7a0041;
  --crimson-deeper: #5c0030;
  --crimson-light: #fce7f3;
  --crimson-mid: #f3c6dc;

  --ink: #0f1117;
  --ink-80: #1e2333;
  --ink-60: #3d4461;
  --ink-40: #6b7280;
  --ink-20: #94a3b8;
  --ink-10: #e2e8f0;
  --ink-05: #f8fafc;

  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-3: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--surface-3);
  color: var(--ink);
  line-height: 1.6;
}

/* ── Page wrapper ────────────────────────────────────────── */
.authors-page {
  max-width: 1100px;
  margin: 0 auto;
  padding:
    clamp(20px, 3vw, 36px) calc(clamp(14px, 4vw, 40px) + var(--safe-r)) calc(clamp(64px, 12vw, 100px) + var(--safe-b)) calc(clamp(14px, 4vw, 40px) + var(--safe-l));
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.au-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 20px;
}

.au-breadcrumb a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .15s;
}

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

/* ── Page header ─────────────────────────────────────────── */
.au-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
  position: relative;
  background: var(--crimson-deeper);
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px) clamp(20px, 5vw, 48px) clamp(28px, 4vw, 48px);
}

/* Faint geometric circles */
.au-header::before,
.au-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .055);
}

.au-header::before {
  width: 480px;
  height: 480px;
  top: -190px;
  right: -110px;
}

.au-header::after {
  width: 280px;
  height: 280px;
  bottom: -130px;
  left: -70px;
}

.au-header-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.au-header>* {
  position: relative;
  z-index: 1;
}

.hero-line {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, .48);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.au-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
  display: block;
  margin-bottom: 10px;
}

.au-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.au-title em {
  font-style: italic;
  color: rgba(255, 255, 255, .70);
}

.au-subtitle {
  font-size: clamp(.875rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, .65);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.68;
}

/* Hairline bottom rule — mirrors navbar bottom rule */
.about-hero-inner::after {
  content: '';
  display: block;
  margin-top: clamp(32px, 5vw, 52px);
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, .15) 20%,
      rgba(255, 255, 255, .25) 50%,
      rgba(255, 255, 255, .15) 80%,
      transparent 100%);
}

.about-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Authors grid ────────────────────────────────────────── */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  animation: fadeIn .45s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Author card ─────────────────────────────────────────── */
.author-card {
  background: var(--surface);
  border: 1px solid var(--ink-10);
  border-radius: 14px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1),
    box-shadow .28s, border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Crimson sweep line on hover — bottom of card */
.author-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.author-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--crimson-mid);
}

.author-card:hover::after {
  transform: scaleX(1);
}

/* Avatar */
.author-card-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--crimson-mid);
  margin-bottom: 16px;
  transition: transform .25s, border-color .2s;
  flex-shrink: 0;
}

.author-card:hover .author-card-image {
  transform: scale(1.05);
  border-color: var(--crimson);
}

/* Placeholder avatar */
.author-card-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid var(--crimson-mid);
  transition: transform .25s;
}

.author-card:hover .author-card-placeholder {
  transform: scale(1.05);
}

/* Name */
.author-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-80);
  margin: 0 0 5px;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.author-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}

.author-card-name a:hover {
  color: var(--crimson);
}

/* Position */
.author-card-position {
  font-size: .78rem;
  color: var(--ink-40);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: .01em;
}

/* Bio — 3-line clamp */
.author-card-bio {
  font-size: .855rem;
  color: var(--ink-60);
  line-height: 1.62;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Article count strip */
.author-card-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--ink-20);
  font-weight: 500;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ink-10);
  width: 100%;
}

/* ── Empty state ─────────────────────────────────────────── */
.no-authors {
  text-align: center;
  padding: clamp(56px, 10vw, 96px) 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-sm);
}

.no-authors-icon {
  font-size: 3rem;
  opacity: .25;
  margin-bottom: 14px;
}

.no-authors-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-60);
  margin: 0;
  letter-spacing: -.01em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }

  .authors-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {

  .author-card,
  .author-card-image,
  .author-card-placeholder,
  .author-card::after {
    transition: none !important;
    animation: none !important;
  }
}