/* ABOUT THE AUTHOR PAGE
   Page-specific styles only. Keep the shared site header/navigation
   in css/style.css so the design stays consistent across the website.
*/

:root {
  --author-navy: #0F1C2E;
  --author-charcoal: #161616;
  --author-crimson: #8B1E24;
  --author-silver: #C9C9C9;
  --author-white: #FFFFFF;
  --author-paper: #F7F5F0;
  --author-gold: #B99A59;
}

.author-page {
  color: var(--author-charcoal);
  background: var(--author-paper);
  overflow: hidden;
}

.author-container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* Hero */
.author-hero {
  padding: 54px 0 48px;
  background: linear-gradient(110deg, #F1EEE7 0%, #FFFFFF 58%, #F4F0E8 100%);
}

.author-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 78px);
}

.author-portrait {
  min-height: 390px;
  max-height: 510px;
  overflow: hidden;
  background: #E4E0D8;
  border-radius: 3px;
  box-shadow: 0 14px 35px rgba(15, 28, 46, 0.14);
}

.author-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  max-height: 510px;
  object-fit: cover;
  object-position: center 30%;
}

.author-hero-copy {
  text-align: center;
}

.author-kicker {
  display: inline-block;
  color: var(--author-crimson);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 13px;
}

.author-hero-copy h1 {
  margin: 0;
  color: var(--author-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 600;
}

.author-role {
  margin: 18px 0;
  color: #333B45;
  font-size: clamp(11px, 1.5vw, 15px);
  letter-spacing: 2px;
  line-height: 1.8;
  font-weight: 600;
}

.author-role span {
  color: var(--author-gold);
  padding-inline: 5px;
}

.author-gold-rule {
  display: block;
  width: 150px;
  height: 3px;
  margin: 18px auto;
  background: var(--author-gold);
}

.author-hero-intro {
  max-width: 520px;
  margin: 0 auto;
  color: #454545;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
}

/* Section title ribbon */
.author-journey {
  padding: 15px 0 42px;
  background: var(--author-paper);
}

.section-ribbon {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 12px 34px;
  background: var(--author-crimson);
  color: var(--author-white);
  border-radius: 5px 24px 5px 24px;
  text-align: center;
}

.section-ribbon h2 {
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.5vw, 29px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.journey-copy {
  max-width: 930px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.journey-copy p,
.author-text-column p {
  margin: 0 0 15px;
  color: #292929;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
}

/* Two-column biography */
.author-bio-section {
  padding: 12px 0 48px;
  background: #FFFFFF;
}

.author-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.author-text-column {
  padding: 8px 8px 8px 0;
}

.author-text-column + .author-text-column {
  border-left: 1px solid #D8CBAF;
  padding-left: 42px;
}

.author-text-column h2 {
  margin: 0 0 13px;
  color: var(--author-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.25;
}

.author-text-column p {
  text-align: left;
}

/* Writing style panel */
.writing-style-section {
  padding: 0 0 52px;
  background: #FFFFFF;
}

.writing-style-panel {
  padding: 30px 28px 34px;
  background: #F3EFE6;
  border: 1px solid #E6DDCC;
  border-radius: 12px;
}

.section-heading-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.section-heading-centered .author-gold-rule {
  width: 65px;
  margin: 0;
}

.section-heading-centered h2 {
  margin: 0;
  color: var(--author-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-style: italic;
  text-align: center;
}

.writing-style-intro {
  margin: 14px auto 28px;
  max-width: 760px;
  color: #343434;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.writing-style-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.style-item {
  padding: 8px 20px;
  text-align: center;
}

.style-item + .style-item {
  border-left: 1px solid #D8CBAF;
}

.style-symbol {
  min-height: 48px;
  color: var(--author-crimson);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.style-item h3 {
  margin: 10px 0 9px;
  color: var(--author-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.3;
}

.style-item p {
  margin: 0;
  color: #343434;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Published works */
.published-works-section {
  padding: 5px 0 65px;
  background: #FFFFFF;
}

.published-ribbon {
  margin-bottom: 32px;
}

.published-books-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.published-book {
  display: block;
  min-width: 0;
  color: var(--author-charcoal);
  text-decoration: none;
  text-align: center;
}

.published-book img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #E6E3DD;
  box-shadow: 0 8px 17px rgba(15, 28, 46, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.published-book:hover img {
  transform: translateY(-5px);
  box-shadow: 0 13px 22px rgba(15, 28, 46, 0.23);
}

.published-book h3 {
  margin: 12px 0 0;
  color: var(--author-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.4;
}

/* Closing statement */
.author-closing {
  position: relative;
  padding: 54px 0;
  color: var(--author-white);
  background: var(--author-navy);
}

.author-closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.closing-copy {
  max-width: 820px;
}

.closing-copy h2 {
  margin: 0 0 15px;
  color: #FFFFFF;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.4vw, 39px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}

.closing-copy p {
  margin: 0;
  color: #E6E9ED;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.75;
}

.closing-decoration {
  flex: 0 0 auto;
  color: var(--author-silver);
  font-size: 92px;
  opacity: 0.8;
}

/* Footer: midnight blue to match the existing site palette */
.site-footer {
  background: var(--author-navy);
  color: #FFFFFF;
  padding: 42px 0 20px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  color: #FFFFFF;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 2px;
  text-decoration: none;
}

.footer-brand p {
  margin: 10px 0 24px;
  color: var(--author-silver);
  font-size: 14px;
}

.footer-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
}

.footer-navigation a {
  color: #FFFFFF;
  font-size: 13px;
  text-decoration: none;
}

.footer-navigation a:hover {
  color: var(--author-silver);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin: 0;
  color: var(--author-silver);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1000px) {
  .published-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .writing-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .style-item:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .author-hero {
    padding: 35px 0 42px;
  }

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

  .author-portrait {
    width: min(100%, 430px);
    min-height: 0;
    max-height: 470px;
    margin: 0 auto;
  }

  .author-portrait img {
    min-height: 0;
    max-height: 470px;
  }

  .author-two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .author-text-column + .author-text-column {
    border-left: 0;
    border-top: 1px solid #D8CBAF;
    padding: 25px 0 0;
  }

  .author-text-column {
    padding: 0;
  }

  .author-closing-inner {
    align-items: flex-start;
  }

  .closing-decoration {
    font-size: 60px;
  }
}

@media (max-width: 520px) {
  .section-ribbon {
    padding: 10px 18px;
  }

  .writing-style-panel {
    padding: 25px 16px;
  }

  .section-heading-centered {
    gap: 10px;
  }

  .section-heading-centered .author-gold-rule {
    width: 30px;
  }

  .writing-style-grid {
    grid-template-columns: 1fr;
  }

  .style-item,
  .style-item + .style-item,
  .style-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #D8CBAF;
    padding: 20px 8px;
  }

  .style-item:first-child {
    border-top: 0;
  }

  .published-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .published-book h3 {
    font-size: 14px;
  }

  .author-closing-inner {
    display: block;
  }

  .closing-decoration {
    display: none;
  }

  .footer-navigation {
    gap: 13px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .published-book img {
    transition: none;
  }
}
