/* =========================================================
   JOHNNY PEPPERSTEIN — AUTHOR PAGE

   Sage / Gold / Old Literature Theme
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
  --sage-dark: #26382f;
  --sage: #536b59;
  --sage-light: #718575;
  --gold: #c6a55b;
  --gold-light: #dfc987;
  --gold-dark: #a98335;
  --cream: #f4efe3;
  --paper: #ebe4d4;
  --paper-dark: #ddd4c0;
  --white: #fffdf7;
  --ink: #263029;
  --muted: #657066;
  --max-width: 1180px;
  --serif: "EB Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --old: "IM Fell English", Georgia, serif;
  --blackletter: "UnifrakturMaguntia", serif;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* =========================================================
   PAGE HERO
========================================================= */

.author-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(38, 56, 47, 0.96), rgba(38, 56, 47, 0.96));
}

/* Subtle paper pattern */

.author-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.4) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  pointer-events: none;
}

/* Gold bottom line */

.author-hero::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

/* =========================================================
   HERO CONTENT
========================================================= */

.author-hero-inner {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  margin: auto;
}

/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--old);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* =========================================================
   ORNAMENT
========================================================= */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 18px 0;
}

.ornament span {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament b {
  color: var(--gold);
  font-size: 13px;
  font-weight: normal;
}

/* =========================================================
   HERO TITLE
========================================================= */

.author-hero h1 {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(58px, 9vw, 105px);
  
  font-weight: 600;
  letter-spacing: -0.04em;
}

.author-hero h1 em {
  display: block;
  margin-top: 12px;
  color: var(--gold-light);
  font-family: var(--blackletter);
  font-size: 0.75em;
  font-style: normal;
}

.hero-sub {
  margin: 28px 0 0;
  color: rgba(244, 239, 227, 0.72);
  font-family: var(--old);
  font-size: 18px;
  font-style: italic;
}

/* =========================================================
   AUTHOR STORY
========================================================= */

.author-story {
  padding: 120px 30px;
  background: linear-gradient(135deg, #f4efe3, #ebe4d4);
}

.story-wrap {
  width: min(100%, var(--max-width));
  margin: auto;
  display: grid;
  grid-template-columns:
    minmax(300px, 0.85fr)
    minmax(400px, 1.15fr);
  gap: 100px;
  align-items: center;
}

/* =========================================================
   PORTRAIT
========================================================= */

.author-portrait {
  margin: 0;
  text-align: center;
}

.portrait-frame {
  position: relative;
  padding: 16px;
  background: var(--sage-dark);
  box-shadow:
    18px 22px 0 rgba(83, 107, 89, 0.22),
    0 20px 50px rgba(30, 35, 30, 0.2);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}

.frame-inner {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ccc;
}

.frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.82) contrast(0.96);
  transition:
    transform 0.8s ease,
    filter 0.8s ease;
}

.author-portrait:hover .frame-inner img {
  transform: scale(1.025);
  filter: sepia(0) saturate(1) contrast(1);
}

/* =========================================================
   CAPTION
========================================================= */

.author-portrait figcaption {
  margin-top: 24px;
  color: var(--sage-dark);
  font-family: var(--old);
  font-size: 16px;
  font-style: italic;
}

.author-portrait figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
}

/* =========================================================
   AUTHOR COPY
========================================================= */

.author-copy {
  max-width: 650px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--sage);
  font-family: var(--old);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.author-copy h2 {
  margin: 0 0 30px;
  color: var(--sage-dark);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.author-copy h2 em {
  display: block;
  margin-top: 8px;
  color: var(--gold-dark);
  font-family: var(--old);
  font-size: 0.78em;
  font-style: italic;
}

/* =========================================================
   DROP CAP
========================================================= */

.dropcap::first-letter {
  float: left;
  padding: 7px 10px 0 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: 78px;
  line-height: 0.75;
}

/* =========================================================
   PARAGRAPHS
========================================================= */

.author-copy p:not(.section-label) {
  color: #424a43;
  font-size: 19px;
  line-height: 1.8;
  text-align: justify;
}

/* =========================================================
   GOLD DIVIDER
========================================================= */

.gold-rule {
  width: 100%;
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(
    90deg,
    var(--gold),
    rgba(198, 165, 91, 0.15),
    transparent
  );
}

/* =========================================================
   BLOCKQUOTE
========================================================= */

.author-copy blockquote {
  position: relative;
  margin: 35px 0;
  padding: 20px 30px 20px 50px;
  color: var(--sage-dark);
  font-family: var(--old);
  font-size: 25px;
  line-height: 1.35;
  font-style: italic;
}

.quote-mark {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 75px;
  line-height: 1;
}

/* =========================================================
   BOOK SECTION
========================================================= */

.author-book {
  padding: 120px 30px;
  background: var(--sage-dark);
  color: var(--cream);
  overflow: hidden;
}

.book-wrap {
  width: min(100%, 1000px);
  margin: auto;
  display: grid;
  grid-template-columns:
    1fr
    0.65fr;
  gap: 80px;
  align-items: center;
}

/* =========================================================
   BOOK COPY
========================================================= */

.book-copy h2 {
  margin: 0 0 25px;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.9;
  font-weight: 600;
}

.book-copy h2 em {
  display: block;
  color: var(--gold-light);
  font-family: var(--old);
  font-size: 0.8em;
  font-style: italic;
}

.book-copy > p:not(.section-label) {
  max-width: 500px;
  color: rgba(244, 239, 227, 0.72);
  font-size: 19px;
  line-height: 1.8;
}

/* =========================================================
   BOOK BUTTON
========================================================= */

.book-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--old);
  font-size: 15px;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.book-button span {
  color: var(--gold-light);
  transition: transform 0.3s ease;
}

.book-button:hover {
  color: var(--sage-dark);
  background: var(--gold-light);
  transform: translateY(-3px);
}

.book-button:hover span {
  color: var(--sage-dark);
  transform: translateX(5px);
}

/* =========================================================
   BOOK IMAGE
========================================================= */

.book-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-visual img {
  position: relative;
  z-index: 2;
  width: min(300px, 80%);
  transition: transform 0.6s ease;
}

.book-visual:hover img {
  transform: rotate(0deg) translateY(-10px);
}

/* =========================================================
   BOOK GLOW
========================================================= */

.book-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(198, 165, 91, 0.24),
    transparent 70%
  );
  filter: blur(20px);
}

/* =========================================================
   CLOSING QUOTE
========================================================= */

.author-quote {
  padding: 120px 30px;
  background: var(--paper);
}

.quote-inner {
  width: min(800px, 100%);
  margin: auto;
  text-align: center;
}

.quote-ornament {
  color: var(--gold);
  font-size: 18px;
}

.quote-inner p {
  margin: 25px 0;
  color: var(--sage-dark);
  font-family: var(--old);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  font-style: italic;
}

.quote-inner em {
  color: var(--gold-dark);
}

.quote-line {
  display: block;
  width: 90px;
  height: 1px;
  margin: 30px auto 0;
  background: var(--gold);
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(45px);
  filter: blur(4px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {
  .story-wrap {
    grid-template-columns: 1fr;
    gap: 65px;
    max-width: 650px;
  }

  .author-portrait {
    max-width: 500px;
    margin: auto;
  }

  .author-copy {
    max-width: 100%;
  }

  .book-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 700px;
  }

  .book-copy > p:not(.section-label) {
    margin-left: auto;
    margin-right: auto;
  }

  .book-button {
    margin-top: 25px;
  }

  .book-visual {
    order: -1;
  }

  .book-visual img {
    width: 260px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  /* Hero */

  .author-hero {
    min-height: 370px;
  }

  .author-hero h1 {
    font-size: clamp(50px, 14vw, 70px);
  }

  .ornament span {
    width: 50px;
  }

  /* Sections */

  .author-story,
  .author-book,
  .author-quote {
    padding: 90px 20px;
  }

  /* Author copy */

  .author-copy h2 {
    font-size: 45px;
  }

  .author-copy blockquote {
    font-size: 21px;
    padding-left: 35px;
  }

  .dropcap::first-letter {
    font-size: 65px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .author-hero {
    min-height: 350px;
  }

  .author-hero h1 {
    font-size: 55px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .author-story,
  .author-book,
  .author-quote {
    padding: 80px 20px;
  }

  .author-copy h2 {
    font-size: 42px;
  }

  .author-copy blockquote {
    font-size: 20px;
    padding-left: 35px;
  }

  .dropcap::first-letter {
    font-size: 62px;
  }
}
