/* =========================================================
BUY SECTION (small banner with image background)
========================================================= */

.buy-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  align-items: center;

  height: clamp(460px, 42vw, 800px);
  min-height: 0;
  padding: 0 !important;

  background-color: #2cadbb;
}

.buy-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    url("Images/buy-bg.jpg"),
    radial-gradient(
      ellipse 32% 110% at 0% 100%,
      #d4868c 0%,
      rgba(212, 134, 140, 0) 100%
    ),
    linear-gradient(
      90deg,
      rgba(150, 160, 165, 0.55) 0%,
      rgba(150, 160, 165, 0) 28%
    );

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* mirror the background so the rose/grey corner is on the RIGHT */
  transform: scaleX(-1);
}

.buy-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 8vw, 9rem);
}

.buy-books img {
  width: clamp(380px, 34vw, 680px);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
}

.buy-title {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
}

.buy-accent {
  color: #e2b865;
}

.amazon-link {
  display: inline-block;
  line-height: 0;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.amazon-link img {
  width: clamp(250px, 17vw, 320px);
  height: auto;
}

.amazon-link:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

/* =========================================================
ABOUT ME SECTION
========================================================= */

.about-hero {
  --header-h: 153px;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  align-items: center;

  min-height: 100vh;
  min-height: 100svh;

  padding: var(--header-h) 0 0 !important;

  background-color: #ffffff;
  background-image: none;
}

.about-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;

  background: url("Images/aboutme-img-0.jpg") no-repeat left top / cover;
}

.about-inner {
  width: min(1360px, 90%);
  margin-inline: auto;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

/* ---------- AUTHOR IMAGE ---------- */

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-photo {
  display: block;
  width: min(520px, 100%);
  height: auto;
}

.about-role {
  margin: 0.8rem 0 0;

  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
}

/* ---------- TEXT ---------- */

.about-content {
  max-width: 720px;
  padding-block: 2rem;
}

.about-title {
  margin: 0 0 1.8rem;

  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(3.8rem, 6.6vw, 7.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #050505;
}

.about-title .accent {
  color: var(--gold, #eba42d);
}

.about-content p {
  margin: 0 0 1.1rem;

  font-family: var(--sans, "Montserrat", Arial, sans-serif);
  font-size: clamp(1.05rem, 1vw, 1.45rem);
  line-height: 1.32;
  color: #111111;
  text-align: justify;
  text-justify: inter-word;
  text-indent: 2.5em;
  hyphens: auto;
}

/* =========================================================
RESPONSIVE (desktop above 1100px is unchanged)
========================================================= */

/* ---------- TABLET ---------- */

@media (max-width: 1100px) {
  .about-hero {
    --header-h: 130px;
  }

  .about-photo {
    width: min(420px, 100%);
  }

  .about-title {
    font-size: clamp(3rem, 6.6vw, 5rem);
  }

  .buy-books img {
    width: clamp(260px, 34vw, 680px);
  }

  .buy-title {
    font-size: clamp(1.9rem, 4vw, 4rem);
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 860px) {
  .about-hero {
    --header-h: 100px;
    min-height: 0;
    align-items: flex-start;
    padding-bottom: 3rem !important;
  }

  /* panel becomes a banner behind the photo; height now follows photo size */
  .about-hero::before {
    width: 100%;
    height: calc(min(340px, 76.5vw) + 7rem);
    bottom: auto;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .about-photo {
    width: min(340px, 85%);
    margin-inline: auto;
  }

  .about-role {
    font-size: 2rem;
  }

  .about-content {
    margin-inline: auto;
    padding-block: 0;
  }

  .about-title {
    text-align: center;
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .about-content p {
    text-align: justify;
    text-indent: 1.8em;
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* buy section */
  .buy-section {
    height: auto;
    padding: 3rem 0 !important;
  }

  .buy-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .buy-books img {
    width: min(420px, 90%);
    margin-inline: auto;
  }

  .amazon-link img {
    width: 250px;
    max-width: 100%;
  }

  .buy-title {
    white-space: normal;
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ---------- SMALL PHONES ---------- */

@media (max-width: 480px) {
  .about-hero {
    --header-h: 90px;
  }

  .about-photo {
    width: min(280px, 80%);
  }

  .about-hero::before {
    height: calc(min(280px, 72vw) + 7rem);
  }

  .about-content p {
    text-align: left;
    text-indent: 0;
    font-size: 1rem;
    line-height: 1.6;
  }
}

.site-footer .footer-list a {
  text-decoration: none;
}

.site-footer .footer-bottom a {
  text-decoration: none;
}