:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --text: #101624;
  --muted: #5a6478;
  --primary: #2d5bff;
  --primary-dark: #1f46d3;
  --card: #ffffff;
  --border: #e1e7f0;
  --shadow: 0 24px 60px rgba(16, 22, 36, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.primary-button,
.ghost-button {
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 16px 40px rgba(45, 91, 255, 0.25);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0.6rem 0 1.4rem;
}

.hero-body {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-art {
  display: grid;
  gap: 1.2rem;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 60px 1fr;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card img {
  width: 60px;
  height: 60px;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.spotlight-section {
  background: linear-gradient(
    135deg,
    rgba(45, 91, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
}

.spotlight-card {
  background: var(--card);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.spotlight-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfd8ea, #e9edf5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6b80;
  font-weight: 600;
}

.spotlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.spotlight-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.spotlight-description {
  color: var(--muted);
  font-size: 0.98rem;
}

.spotlight-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-intro {
  color: var(--muted);
  max-width: 620px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.author-grid,
.book-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.author-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author-card {
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(16, 22, 36, 0.12);
}

.author-link {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.author-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #e8edf5;
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.author-meta p {
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(45, 91, 255, 0.12);
  color: var(--primary-dark);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.book-card {
  display: grid;
  gap: 1rem;
}

.book-card-link {
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.book-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(16, 22, 36, 0.12);
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfd8ea, #e9edf5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6b80;
  font-weight: 600;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: white;
}

.author-page {
  padding: 4.5rem 0 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.author-hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
}

.author-hero img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  background: #e8edf5;
}

.author-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.author-metadata {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0;
  color: var(--muted);
}

.author-detail-panel {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.author-detail-panel p {
  color: var(--muted);
}

.author-books-grid {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2rem;
}

.author-books-grid .book-card {
  gap: 1.2rem;
}

.book-card--highlight {
  outline: 2px solid rgba(45, 91, 255, 0.7);
  box-shadow: 0 30px 80px rgba(45, 91, 255, 0.2);
}

.book-card-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.book-tagline {
  color: var(--muted);
  font-weight: 500;
}

.book-card-body {
  display: flex;
  gap: 3em;
  width: 100%;
  align-items: flex-start;
}

.author-book-cover {
  flex: 0 0 min(240px, 32%);
  max-width: 320px;
}

.author-book-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.book-copy {
  flex: 3;
}

.empty-state {
  color: var(--muted);
  font-style: italic;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .book-card-body {
    flex-direction: column;
    gap: 1.2rem;
  }

  .author-book-cover {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .author-book-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }
}

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

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