/* =========================================================
   JOHNNY PEPPERSTEIN — ABOUT / BOOK 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-light: #f7f2e6;
  --paper-dark: #ddd4c0;

  --white: #fffdf7;

  --ink: #263029;
  --muted: #657066;

  --rust: #8a4a2e;

  --shadow: 0 20px 50px rgba(30, 35, 30, 0.18);

  --shadow-sm: 0 8px 20px rgba(30, 35, 30, 0.15);

  --serif: "EB Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --old: "IM Fell English", Georgia, serif;
  --blackletter: "UnifrakturMaguntia", serif;

  --max-width: 1180px;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--cream);
  color: var(--ink);

  font-family: var(--serif);
  font-size: 19px;
  

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* =========================================================
   PAGE HEADER
   Matches the Author page visual style
========================================================= */

.page-header {
  position: relative;

  min-height: 430px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 90px 25px 85px;

  overflow: hidden;

  text-align: center;

  background: linear-gradient(rgba(38, 56, 47, 0.96), rgba(38, 56, 47, 0.96));

 
}

/* =========================================================
   HEADER PAPER TEXTURE
========================================================= */

.page-header::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.12;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.45) 1px,
    transparent 1px
  );

  background-size: 8px 8px;

  pointer-events: none;
}

/* =========================================================
   HEADER DECORATIVE GOLD LINE
========================================================= */

.page-header::after {
  content: "";

  position: absolute;

  left: 7%;
  right: 7%;
  bottom: 22px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    var(--gold-light),
    var(--gold),
    transparent
  );

  opacity: 0.7;
}

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

.page-header .eyebrow {
  position: relative;
  z-index: 2;

  display: block;

  margin-bottom: 18px;

  color: var(--gold-light);

  font-family: var(--old);
  font-size: 14px;
  font-weight: 400;

  letter-spacing: 0.28em;

  text-transform: uppercase;
}

/* =========================================================
   PAGE TITLE
========================================================= */

.page-header h1 {
  position: relative;
  z-index: 2;

  max-width: 900px;

  margin: 0;

  color: var(--cream);

  font-family: var(--display);

  font-size: clamp(48px, 7vw, 86px);

  font-weight: 500;

  line-height: 0.95;

  letter-spacing: -0.025em;

  text-wrap: balance;
}

/* =========================================================
   DECORATIVE TITLE ORNAMENT
========================================================= */

.page-header .eyebrow::after {
  content: " ✦ ";

  margin-left: 10px;

  color: var(--gold);
}

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

#about {
  position: relative;

  padding: 125px 30px;

  background: linear-gradient(135deg, var(--paper-light), var(--paper));

  overflow: hidden;
}

/* =========================================================
   SUBTLE PAPER TEXTURE
========================================================= */

#about::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.28;

  background-image: radial-gradient(
    rgba(90, 76, 45, 0.08) 1px,
    transparent 1px
  );

  background-size: 13px 13px;

  pointer-events: none;
}

/* =========================================================
   INNER CONTAINER
========================================================= */

.inner {
  position: relative;
  z-index: 2;

  width: min(100%, var(--max-width));

  margin: 0 auto;
}

/* =========================================================
   BOOK GRID
========================================================= */

.book-grid {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.75fr)
    minmax(400px, 1.25fr);

  gap: 100px;

  align-items: center;
}

/* =========================================================
   BOOK FRAME
========================================================= */

.frame {
  position: relative;

  display: block;

  width: min(390px, 100%);

  margin: 0 auto;

  padding: 18px;

 
  


  transform: rotate(-1.5deg);

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

/* =========================================================
   FRAME INNER BORDER
========================================================= */

.frame::before {
  content: "";

  position: absolute;

  inset: 9px;

  border: 1px solid var(--gold);

  opacity: 0.85;

  pointer-events: none;

  z-index: 2;
}

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

.frame img {
  position: relative;
  z-index: 1;

  width: 150%;

  height: auto;

  object-fit: cover;

  filter: sepia(0.08) saturate(0.9) contrast(0.97);

  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

/* =========================================================
   BOOK FRAME HOVER
========================================================= */

.frame:hover {
  transform: rotate(0deg) translateY(-8px);

  box-shadow:
    20px 28px 0 rgba(83, 107, 89, 0.18),
    0 30px 65px rgba(30, 35, 30, 0.28);
}

.frame:hover img {
  filter: sepia(0) saturate(1) contrast(1);

  transform: scale(1.015);
}

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

.col {
  max-width: 650px;
}

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

.col p {
  margin: 0 0 22px;

  color: #424a43;

  font-family: var(--serif);

  font-size: 19px;

  line-height: 1.85;

  text-align: justify;
}

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

.dropcap::first-letter {
  float: left;

  padding: 7px 12px 0 0;

  color: var(--gold);

  font-family: var(--display);

  font-size: 82px;

  font-weight: 500;

  line-height: 0.72;
}

/* =========================================================
   FEATURE SENTENCE
========================================================= */

.col p strong {
  display: block;

  margin-top: 30px;
  padding: 22px 25px;

  color: var(--sage-dark);

  border-left: 2px solid var(--gold);

  background: linear-gradient(90deg, rgba(198, 165, 91, 0.1), transparent);

  font-family: var(--old);

  font-size: 23px;

  font-weight: 400;

  line-height: 1.45;

  font-style: italic;
}

/* =========================================================
   SINGLE "A FISH..." LINE
========================================================= */

.col p:nth-of-type(3) {
  margin-top: 30px;

  color: var(--gold-dark);

  font-family: var(--blackletter);

  font-size: 36px;

  line-height: 1;

  text-align: left;
}

/* =========================================================
   GOLD DECORATIVE RULE
========================================================= */

.col::before {
  content: "";

  display: block;

  width: 70px;

  height: 1px;

  margin-bottom: 30px;

  background: linear-gradient(90deg, var(--gold), transparent);
}

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

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  margin-top: 12px;

  padding: 13px 25px;

  background: var(--gold);

  color: var(--sage-dark);

  border: 1px solid var(--gold);

  text-decoration: none;

  font-family: var(--old);

  font-size: 15px;

  letter-spacing: 0.06em;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* =========================================================
   BUTTON HOVER
========================================================= */

.btn:hover {
  background: var(--gold-light);

  color: var(--sage-dark);

  transform: translateY(-4px);

  box-shadow: 0 12px 25px rgba(38, 56, 47, 0.18);
}

/* =========================================================
   BUTTON ARROW
========================================================= */

.btn::after {
  content: " →";

  margin-left: 10px;

  font-size: 18px;

  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(4px);
}

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

.reveal {
  opacity: 0;

  transform: translateY(40px);

  filter: blur(3px);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}

.reveal.visible,
.reveal.in {
  opacity: 1;

  transform: translateY(0);

  filter: blur(0);
}

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

@media (max-width: 900px) {
  .page-header {
    min-height: 390px;

    padding: 85px 25px 75px;
  }

  #about {
    padding: 95px 25px;
  }

  .book-grid {
    grid-template-columns:
      minmax(270px, 0.8fr)
      minmax(350px, 1.2fr);

    gap: 60px;
  }

  .frame {
    width: min(350px, 100%);
  }

  .col p {
    font-size: 18px;
  }
}

/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 760px) {
  .book-grid {
    grid-template-columns: 1fr;

    gap: 70px;

    max-width: 650px;

    margin: 0 auto;
  }

  .frame {
    width: min(390px, 100%);
  }

  .col {
    max-width: 100%;
  }

  .col::before {
    margin-left: auto;
    margin-right: auto;
  }

  .col p {
    text-align: left;
  }

  .col p:nth-of-type(3) {
    text-align: center;
  }
}

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

@media (max-width: 650px) {
  .page-header {
    min-height: 350px;

    padding: 75px 20px 70px;
  }

  .page-header h1 {
    font-size: clamp(43px, 12vw, 65px);

    line-height: 0.92;
  }

  .page-header .eyebrow {
    font-size: 12px;

    letter-spacing: 0.22em;
  }

  #about {
    padding: 80px 20px;
  }

  .book-grid {
    gap: 55px;
  }

  .frame {
    width: min(340px, 100%);

    padding: 14px;
  }

  .col p {
    font-size: 18px;

    line-height: 1.8;
  }

  .dropcap::first-letter {
    font-size: 70px;

    padding-right: 10px;
  }

  .col p strong {
    padding: 18px 20px;

    font-size: 21px;
  }

  .col p:nth-of-type(3) {
    font-size: 32px;
  }

  .btn {
    width: auto;

    min-height: 48px;

    padding: 12px 20px;
  }
}

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

@media (max-width: 430px) {
  .page-header {
    min-height: 320px;

    padding: 65px 18px 65px;
  }

  .page-header h1 {
    font-size: 42px;
  }

  .page-header::after {
    left: 12%;
    right: 12%;
  }

  #about {
    padding: 70px 18px;
  }

  .book-grid {
    gap: 45px;
  }

  .frame {
    width: 92%;

    padding: 12px;
  }

  .col p {
    font-size: 17px;

    line-height: 1.75;
  }

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

  .col p:nth-of-type(3) {
    font-size: 29px;
  }

  .col p strong {
    font-size: 20px;
  }

  .btn {
    width: 100%;

    text-align: center;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;

    filter: none;
  }

  .frame,
  .frame:hover {
    transform: none;
  }

  .frame img,
  .frame:hover img {
    transform: none;
  }
}
