/* ==========================================================================
   home.css — styles specific to index.html (Home / hero)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -6% -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -3;
  filter: saturate(1.05) contrast(1.05);
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.13) translate(-1.5%, -2%);
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      to top,
      rgba(10, 7, 6, 0.96) 0%,
      rgba(12, 8, 7, 0.55) 38%,
      rgba(14, 9, 8, 0.35) 62%,
      rgba(10, 7, 6, 0.75) 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 6, 5, 0.5) 0%,
      rgba(8, 6, 5, 0) 35%,
      rgba(8, 6, 5, 0) 65%,
      rgba(8, 6, 5, 0.5) 100%
    );
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 220px 60px rgba(5, 3, 3, 0.85);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px 6vw 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner .eyebrow {
  opacity: 0;
  animation: riseIn 0.9s ease forwards 0.15s;
}
.hero h1 {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.95;
  margin: 18px 0 6px;
  background: linear-gradient(
    180deg,
    #f4e3bd 0%,
    var(--gold) 55%,
    #a97c3f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 22px rgba(201, 165, 103, 0.25));
  opacity: 0;
  animation: riseIn 1.1s ease forwards 0.35s;
}
.hero .subtitle {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(20px, 5vw, 30px);
  letter-spacing: 0.03em;
  color: var(--parchment-dim);
  margin-bottom: 34px;
  opacity: 0;
  animation: riseIn 1s ease forwards 0.6s;
}
.hero .lede {
  max-width: 620px;
  color: var(--parchment-dim);
  font-size: 25px;
  margin-bottom: 42px;
  opacity: 0;
  animation: riseIn 1s ease forwards 0.8s;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: riseIn 1s ease forwards 1s;
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--parchment-dim);
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}
.scroll-cue .line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
  .scroll-cue .line {
    animation: none;
  }
  .hero-inner * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.hero-scrim {
  background: rgba(0, 0, 0, 0.35);
}
.hero-bg {
  filter: blur(5px);
  transform: scale(1.02);
}

/* ---------- confine the ember particles to this section only ----------
   #embers is `position:fixed; inset:0` in style.css, which makes it
   follow the whole page as you scroll. Overriding it here to
   `position:absolute` (sized to just the hero) means it scrolls away
   with the hero instead of bleeding into whatever section comes after it. */
#embers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 5;
}





/* =========================================
   ABOUT THE AUTHOR
========================================= */

.author-preview {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 80px 8%;

    /* Add your background image here */
    background-image:
      
        url("../assets/asas.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Soft light layer */

.author-preview-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(245, 242, 235, 0.18) 0%,
            rgba(245, 242, 235, 0.72) 35%,
            rgba(245, 242, 235, 0.11) 100%
        );

    pointer-events: none;
}


/* Main Layout */

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

    width: 100%;
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 400px 1fr;

    align-items: center;
    gap: 110px;
}


/* =========================================
   AUTHOR IMAGE
========================================= */

.author-image-box {
    width: 100%;
    max-width: 300px;

    padding: 7px;

    background: #f8f6f1;

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(50, 40, 30, 0.12);
}

.author-image-box img {
    display: block;

    width: 100%;
    aspect-ratio: 3 / 4;

    object-fit: cover;

    border-radius: 12px;
}


/* =========================================
   AUTHOR CONTENT
========================================= */

.author-content {
    max-width: 680px;
}


/* Small heading */

.author-eyebrow {
    display: block;

    margin-bottom: 22px;

    font-family: "Cinzel", serif;
    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.35em;
    text-transform: uppercase;

    color: #9a733d;
}


/* Author Name */

.author-content h2 {
    margin: 0 0 22px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 600;

    line-height: 1;

    color: #352b24;
}


/* Description */

.author-content p {
    max-width: 650px;

    margin: 0 0 12px;

    font-family: "EB Garamond", serif;

    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 400;

    line-height: 1.8;

    letter-spacing: 0.02em;

    color: #71675f;
}


/* =========================================
   READ MORE BUTTON
========================================= */

.author-btn {
    display: inline-flex;

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

    min-width: 170px;

    margin-top: 30px;
    padding: 17px 35px;

    border: 1px solid #ad803e;
    border-radius: 50px;

    font-family: "Cinzel", serif;
    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #94703d;
    text-decoration: none;

    transition: all 0.35s ease;
}

.author-btn:hover {
    background: #94703d;
    color: #fffaf2;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(148, 112, 61, 0.22);
}


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

@media (max-width: 900px) {

    .author-preview {
        padding: 90px 7%;
    }

    .author-preview-inner {
        grid-template-columns: 300px 1fr;
        gap: 60px;
    }

    .author-image-box {
        max-width: 280px;
    }

}


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

@media (max-width: 700px) {

    .author-preview {
        min-height: auto;

        padding: 80px 7%;

        background-position: center;
    }

    .author-preview-overlay {
        background:
            rgba(245, 242, 235, 0.82);
    }

    .author-preview-inner {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 45px;
    }

    .author-image-box {
        max-width: 270px;
        margin: auto;
    }

    .author-content {
        margin: auto;
    }

    .author-eyebrow {
        letter-spacing: 0.25em;
    }

    .author-content h2 {
        font-size: 52px;
    }

    .author-content p {
        font-size: 19px;
        line-height: 1.65;
    }

    .author-btn {
        margin-top: 25px;
    }

}