/* ============================================================
   HOME PAGE — hero, series, featured sections
   ============================================================ */

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--ink-0);
  border-bottom: var(--border-subtle);
  padding: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
}

/* Subtle radial gold glow behind logo — echoes the cartouche */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
  border: var(--border-gold-hi);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-2);
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-headline {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-tertiary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Series section --- */
.series-section {
  background: var(--ink-0);
  border-bottom: var(--border-subtle);
}

.series-grid {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.series-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--ink-2);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--transition);
  text-decoration: none;
  flex: 1;
  min-width: 180px;
}

.series-item:hover {
  border-color: var(--gold-dim);
}

.series-item__icon {
  width: 44px;
  height: 44px;
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.series-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.series-item__icon i {
  font-size: 22px;
  color: var(--gold-dim);
}

.series-item__name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.2;
}

.series-item__label {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* --- Section headers with inline link --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.section-header h2 {
  margin-top: var(--space-xs);
}

/* --- Author card (featured) --- */
.author-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.author-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: var(--border-gold);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.author-card__initials {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
}

.author-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.author-card__genre {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-sm);
}

.author-card__bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  padding: 3px 9px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* --- Book card (featured) --- */
.book-card {
  display: flex;
  flex-direction: column;
}

.book-card__cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--ink-0);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.book-card__cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--gold-dim);
  font-size: 32px;
  width: 100%;
  height: 100%;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.book-card__meta {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.retail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.retail-link {
  font-family: var(--font-ui);
  font-size: 10px;
  padding: 3px 8px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.retail-link:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* --- Loading skeletons --- */
@keyframes shimmer {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.7; }
  100% { opacity: 0.4; }
}

.author-card-skeleton,
.book-card-skeleton {
  animation: shimmer 1.6s ease-in-out infinite;
  background: var(--ink-2);
  min-height: 140px;
}

.book-card-skeleton {
  min-height: 260px;
}

/* --- Featured books/authors alternate background --- */
.featured-authors-section {
  background: var(--ink-1);
}

.featured-books-section {
  background: var(--ink-0);
  border-top: var(--border-subtle);
}
