/* ==========================================================================
   AUTHOR.CSS
   Toilet Issues to Toilet Tissues — Author Page Styles
   Requires: shared.css (loaded first)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. PAGE-LOAD ANIMATION
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* --------------------------------------------------------------------------
   2. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  width: 100%;
  padding: 50px 40px 40px;
  background-color: var(--dark-bg);
}

/* Constrain direct children to the max-width grid */
.hero > div,
.hero > h1,
.hero > p {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Avatar + badge stack */
.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.author-badge { margin: 0; }

.author-badge span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c8a878;
  line-height: 1.8;
}

/* Author name heading */
h1.name {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: #f0e0c8;
  line-height: 1.1;
  margin-bottom: 6px;
}

.subtitle-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a8060;
  margin-bottom: 18px;
}

.hero-bio {
  max-width: 600px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #b09878;
}

.hero-bio strong {
  font-weight: 700;
  color: #f0e0c8;
}


/* --------------------------------------------------------------------------
   3. STATISTICS BAND (orange background)
   -------------------------------------------------------------------------- */
.stats-band {
  background-color: var(--orange-brown);
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border: 2px solid #fff;
}

.stat-item { text-align: center; color: #fff; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  opacity: 0.9;
}


/* --------------------------------------------------------------------------
   4. SECTION WRAPPER (generic content container)
   -------------------------------------------------------------------------- */
.section-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 28px;
  line-height: 1.2;
}

.body-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: #7a6a55;
  margin-bottom: 16px;
  max-width: 680px;
}

.body-text strong {
  font-weight: 700;
  color: #7a6a55;
}


/* --------------------------------------------------------------------------
   5. STORY CARDS
   -------------------------------------------------------------------------- */
.story-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.story-card {
  border: 1px solid var(--border-light);
  padding: 22px 28px;
  margin-bottom: -1px;
  background: transparent;
}

.story-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange-brown);
  margin-bottom: 8px;
}

.story-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mid);
}

.story-card p em     { font-style: italic; }
.story-card p strong { font-weight: 700; }


/* --------------------------------------------------------------------------
   6. PHILOSOPHY SECTION (dark background)
   -------------------------------------------------------------------------- */
.philosophy-dark {
  background-color: var(--dark-bg);
  padding: 70px 40px;
  text-align: center;
}

.philosophy-dark .section-label {
  color: #c8a878;
  opacity: 1;
}

.philosophy-dark h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: #f0e0c8;
  margin-bottom: 14px;
}

.philosophy-dark .sub-text {
  font-size: 13px;
  color: #c8a878;
  max-width: 480px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* Pillar card grid */
.philosophy-pillars {
  max-width: 680px;
  margin: 0 auto;
}

.philosophy-pillar {
  margin-bottom: 8px;
  background-color: #2a1f0f;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #f0e0c8;
  margin-bottom: 12px;
}

.pillar-text {
  font-size: 13px;
  color: #b09878;
  line-height: 1.75;
}


/* --------------------------------------------------------------------------
   7. HIS APPROACH SECTION
   -------------------------------------------------------------------------- */
.approach-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px;
}

.approach-list {
  margin-top: 24px;
}

.approach-item {
  display: flex;
  gap: 22px;
  margin-bottom: 28px;
  align-items: flex-start;
}

/* Numbered circle */
.approach-num {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-brown);
  flex-shrink: 0;
  margin-top: 2px;
}

.approach-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 5px;
}

.approach-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   8. "WHY READERS TRUST HIM" SECTION
   -------------------------------------------------------------------------- */
.trust-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 40px 60px;
}

.trust-section .section-label { margin-bottom: 12px; }

.trust-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--dark-brown);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 540px;
}

.trust-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 14px;
}

.trust-section p em {
  font-style: italic;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   9. BOOK CTA (orange background)
   -------------------------------------------------------------------------- */
.book-cta-dark {
  background-color: var(--orange-brown);
  padding: 50px 40px;
}

.book-cta-inner {
  max-width: 860px;
  margin: 0 auto;
}

.book-series-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.book-series-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 30px;
}

.book-section-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 560px;
}

.book-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
}

/* Override shared .btn-primary for author page (white on dark-bg) */
.book-cta-dark .btn-primary {
  background-color: #fff;
  color: var(--dark-bg);
  font-size: 10px;
  font-weight: 900;
  padding: 18px 36px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.book-cta-dark .btn-primary:hover {
  background-color: var(--dark-bg);
  color: #fff;
  transform: none;
  box-shadow: none;
}


/* --------------------------------------------------------------------------
   10. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1.name             { font-size: 36px; }
  .stats-band         { gap: 40px; }
  .stat-number        { font-size: 48px; }
  .philosophy-dark h2 { font-size: 26px; }
  h2.section-title    { font-size: 28px; }
  .trust-section h2   { font-size: 26px; }
  .book-title         { font-size: 22px; }

  .section-wrapper,
  .approach-section,
  .trust-section      { padding-left: 24px; padding-right: 24px; }

  .hero               { padding: 36px 24px 30px; }
  .book-cta-dark      { padding: 40px 24px; }
  .philosophy-dark    { padding: 50px 24px; }
}

@media (max-width: 480px) {
  h1.name             { font-size: 30px; }
  .stat-number        { font-size: 40px; }
  .stats-band         { padding: 30px 20px; gap: 28px; }
  h2.section-title    { font-size: 24px; }
  .philosophy-dark h2 { font-size: 22px; }
  .book-title         { font-size: 20px; }
  .trust-section h2   { font-size: 22px; }
}
