/* ===========================================================
   Author page — layered on top of styles.css
   Reuses :root tokens, .site-header, .brand, .site-nav,
   .nav-toggle, .button(.--accent), .sr-only, fonts.
   =========================================================== */

.author-main {
  background: #ffffff;
}

/* ---------- Hero ---------- */
.author-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(88vh, 760px);
  padding: 8.5rem var(--gutter) 5.5rem;
  background: #0f0e0c;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.author-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(0.92);
  z-index: 0;
}

.author-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.62) 44%, rgba(12, 11, 9, 0.42) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, 0.5) 0%, rgba(12, 11, 9, 0.28) 46%, rgba(12, 11, 9, 0.62) 100%);
}

.author-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.05rem;
  max-width: 46rem;
  text-align: center;
}

.author-hero__icon {
  width: clamp(4.4rem, 6vw, 6.4rem);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(226, 102, 37, 0.28));
}

.author-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.55rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.author-hero__lead {
  margin: 0.2rem 0 0;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  letter-spacing: -0.01em;
}

.author-hero__sub {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  line-height: 1.5;
}

/* ---------- Intro band ---------- */
.author-intro {
  background: #f2f1ef;
  padding: clamp(3rem, 6vw, 4.6rem) var(--gutter);
}

.author-intro p {
  width: min(100%, 62rem);
  margin: 0 auto;
  text-align: center;
  color: #1f1f1f;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  line-height: 1.5;
}

/* ---------- Feature sections ---------- */
.author-feature {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #ffffff;
}

.author-feature__grid {
  width: min(calc(100% - 2 * var(--gutter)), var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.author-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(1rem, 1.6vw, 1.4rem);
  box-shadow: var(--section-shadow);
}

.author-feature__copy h2 {
  margin: 0 0 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.author-feature__copy p {
  margin: 0 0 1.1rem;
  max-width: 34rem;
  color: #1f1f1f;
  font-size: clamp(0.97rem, 0.12vw + 0.93rem, 1rem);
  line-height: 1.5;
}

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

@media (min-width: 860px) {
  .author-feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5.5rem);
  }

  /* image-right variant: copy stays first in DOM, media moves right */
  .author-feature--media-right .author-feature__media {
    order: 2;
  }
}

/* ---------- Footer ---------- */
.author-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2.2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
  background: #414141;
  color: rgba(255, 255, 255, 0.92);
}

.author-footer a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: opacity 160ms ease;
}

.author-footer a:hover {
  opacity: 0.75;
}

.author-footer__link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.author-footer__brand {
  display: inline-flex;
}

.author-footer__brand img {
  width: 3rem;
  height: auto;
}

.author-footer__powered {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .author-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
  }
}
