/* =========================================================
   THE GREAT LIBRARY OF PHILOSOPHY
   AUTHOR PAGE — KAVYA JAIN
   ========================================================= */


/* =========================================================
   AUTHOR PAGE BASE
   ========================================================= */

.author-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  color: #2d261f;
  font-family: "Cormorant Garamond", Georgia, serif;
}


/* =========================================================
   AUTHOR HERO
   ========================================================= */

.author-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid rgba(92, 70, 43, 0.25);
}

.author-hero__content {
  max-width: 850px;
}

.author-eyebrow {
  margin: 0 0 1rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: #9a6f35;
  text-transform: uppercase;
}

.author-hero h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #30261d;
}

.author-role {
  margin: 1rem 0 1.6rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: #80613d;
}

.author-intro {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: #51473c;
}


/* =========================================================
   SECTION STRUCTURE
   ========================================================= */

.author-section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(92, 70, 43, 0.2);
}

.author-section__heading {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.author-section__heading span {
  flex: 0 0 auto;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a17a48;
}

.author-section__heading h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  color: #33291f;
}

.author-section__content {
  max-width: 820px;
  margin-left: 3.1rem;
}

.author-section__content p {
  margin: 0 0 1.35rem;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #4c443b;
}

.author-section__content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   AREAS OF FOCUS
   ========================================================= */

.author-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-left: 3.1rem;
}

.author-focus-card {
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(103, 78, 48, 0.22);
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.55);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.author-focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 117, 57, 0.45);
  box-shadow: 0 10px 28px rgba(55, 42, 28, 0.08);
}

.author-focus-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #624827;
}

.author-focus-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #62594f;
}


/* =========================================================
   LIBRARY FEATURE
   ========================================================= */

.author-library {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.author-library__box {
  margin-left: 3.1rem;
  padding: 2.4rem 2.5rem;
  border-left: 3px solid #b88a44;
  background: rgba(184, 138, 68, 0.07);
}

.author-library__box p {
  max-width: 760px;
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4d4338;
}


/* =========================================================
   BUTTON / TEXT LINK
   ========================================================= */

.author-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1px solid #8e6734;
  border-radius: 3px;
  background: #8e6734;
  color: #fffaf1;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.author-button:hover {
  background: #6f4f27;
  border-color: #6f4f27;
  transform: translateY(-1px);
}

.author-button:focus-visible {
  outline: 2px solid #b88a44;
  outline-offset: 4px;
}


/* =========================================================
   CONTRIBUTIONS
   ========================================================= */

#contributions {
  padding-bottom: 4rem;
}


/* =========================================================
   CONTACT
   ========================================================= */

.author-contact {
  border-bottom: 0;
}

.author-contact .author-section__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.author-contact .author-section__content p {
  margin: 0;
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.author-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2.5rem 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.author-navigation a {
  color: #70532f;
  text-decoration: none;
  transition: color 160ms ease;
}

.author-navigation a:hover {
  color: #a4773b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.author-navigation span {
  color: #a89479;
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode .author-page,
.dark-mode .author-page {
  color: #e8dfd2;
}

body.dark-mode .author-hero h1,
.dark-mode .author-hero h1,
body.dark-mode .author-section__heading h2,
.dark-mode .author-section__heading h2 {
  color: #eee5d8;
}

body.dark-mode .author-eyebrow,
.dark-mode .author-eyebrow {
  color: #c39a5b;
}

body.dark-mode .author-role,
.dark-mode .author-role {
  color: #c7aa7d;
}

body.dark-mode .author-intro,
.dark-mode .author-intro,
body.dark-mode .author-section__content p,
.dark-mode .author-section__content p {
  color: #cfc5b8;
}

body.dark-mode .author-section,
.dark-mode .author-section,
body.dark-mode .author-hero,
.dark-mode .author-hero {
  border-color: rgba(221, 201, 171, 0.16);
}

body.dark-mode .author-focus-card,
.dark-mode .author-focus-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(221, 201, 171, 0.16);
}

body.dark-mode .author-focus-card h3,
.dark-mode .author-focus-card h3 {
  color: #d2ad75;
}

body.dark-mode .author-focus-card p,
.dark-mode .author-focus-card p {
  color: #bfb4a7;
}

body.dark-mode .author-library__box,
.dark-mode .author-library__box {
  background: rgba(184, 138, 68, 0.08);
}

body.dark-mode .author-library__box p,
.dark-mode .author-library__box p {
  color: #cfc5b8;
}

body.dark-mode .author-navigation a,
.dark-mode .author-navigation a {
  color: #c4a06c;
}

body.dark-mode .author-navigation span,
.dark-mode .author-navigation span {
  color: #756a5c;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

  .author-page {
    padding: 0 1.25rem 3rem;
  }

  .author-hero {
    padding: 4rem 0 3.5rem;
  }

  .author-section {
    padding: 3.25rem 0;
  }

  .author-section__content,
  .author-focus-grid,
  .author-library__box {
    margin-left: 0;
  }

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

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .author-page {
    padding: 0 1rem 2.5rem;
  }

  .author-hero {
    padding: 3.25rem 0 2.75rem;
  }

  .author-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }

  .author-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .author-role {
    font-size: 0.95rem;
    margin-top: 0.9rem;
  }

  .author-intro {
    font-size: 1.08rem;
    line-height: 1.75;
  }

  .author-section {
    padding: 2.75rem 0;
  }

  .author-section__heading {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .author-section__heading span {
    font-size: 0.64rem;
  }

  .author-section__heading h2 {
    font-size: 1.35rem;
  }

  .author-section__content p {
    font-size: 1.03rem;
    line-height: 1.75;
  }

  .author-focus-grid {
    gap: 1rem;
  }

  .author-focus-card {
    padding: 1.35rem 1.3rem;
  }

  .author-focus-card h3 {
    font-size: 0.98rem;
  }

  .author-focus-card p {
    font-size: 0.96rem;
  }

  .author-library__box {
    padding: 1.6rem 1.4rem;
  }

  .author-library__box p {
    font-size: 1.05rem;
  }

  .author-navigation {
    gap: 0.45rem;
    padding-top: 2rem;
    font-size: 0.68rem;
    text-align: center;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  .author-focus-card,
  .author-button,
  .author-navigation a {
    transition: none;
  }

  .author-focus-card:hover,
  .author-button:hover {
    transform: none;
  }

}