@charset "utf-8";

/* Dynamic homepage hero slider */
.home-feature-shell{
  padding:42px 0 28px;
}

.home-feature-slider{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(0,0,0,.52);
  box-shadow:0 16px 45px rgba(0,0,0,.24);
  backdrop-filter:blur(2px);
}

.home-feature-track{
  position:relative;
}

.home-feature-slide{
  display:none;
  grid-template-columns:minmax(220px,34%) minmax(0,1fr);
  gap:46px;
  align-items:center;
  min-height:430px;
  padding:42px 64px 48px;
  color:#fff;
}

.home-feature-slide.is-active{
  display:grid;
}

.home-feature-media{
  display:grid;
  place-items:center;
  min-height:340px;
}

.home-feature-media img{
  display:block;
  width:auto;
  max-width:100%;
  height:330px;
  max-height:330px;
  object-fit:contain;
  filter:drop-shadow(0 15px 22px rgba(0,0,0,.34));
}

.home-feature-media.is-custom img{
  width:100%;
  height:330px;
  object-fit:cover;
  border-radius:8px;
}

.home-feature-copy{
  max-width:690px;
}

.home-feature-label{
  margin:0 0 12px;
  color:#f0c35b;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.home-feature-copy h1,
.home-feature-copy h2{
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1.04;
  text-transform:none;
}

.home-feature-subtitle{
  margin:0 0 13px;
  color:#ddd;
  font-size:1.18rem;
  line-height:1.45;
}

.home-feature-byline{
  margin:0 0 18px;
  color:#fff;
  font-size:1rem;
}

.home-feature-byline a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.home-feature-text{
  max-width:62ch;
  margin:0 0 24px;
  color:#e3e3e3;
  font-size:1.02rem;
  line-height:1.65;
}

.home-feature-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.home-feature-actions .btn{
  margin:0;
}

.home-feature-controls{
  display:flex;
  position:absolute;
  right:22px;
  bottom:18px;
  z-index:4;
  gap:8px;
  align-items:center;
}

.home-feature-arrow,
.home-feature-dot{
  border:1px solid rgba(255,255,255,.42);
  color:#fff;
  background:rgba(0,0,0,.42);
  cursor:pointer;
}

.home-feature-arrow{
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:1.25rem;
  line-height:1;
}

.home-feature-dots{
  display:flex;
  gap:6px;
}

.home-feature-dot{
  width:10px;
  height:10px;
  padding:0;
  border-radius:50%;
  text-indent:-9999px;
  overflow:hidden;
}

.home-feature-dot.is-active{
  background:#fff;
}

.home-feature-arrow:hover,
.home-feature-arrow:focus-visible,
.home-feature-dot:hover,
.home-feature-dot:focus-visible{
  background:#c94e50;
}

.home-catalog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  margin:0 0 34px;
}

.home-book-card{
  overflow:hidden;
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
}

.home-book-cover{
  display:grid;
  place-items:center;
  min-height:310px;
  padding:18px;
  background:#f6f6f3;
}

.home-book-cover img{
  display:block;
  width:100%;
  height:275px;
  object-fit:contain;
}

.home-book-copy{
  padding:18px;
}

.home-book-copy h3{
  margin:0 0 7px;
  font-size:1.16rem;
}

.home-book-copy h3 a{
  color:inherit;
  text-decoration:none;
}

.home-book-copy h3 a:hover{
  text-decoration:underline;
}

.home-book-byline{
  margin:0;
  color:#777;
  font-size:.9rem;
}

.home-book-byline a{
  color:inherit;
}

@media(max-width:900px){
  .home-feature-slide{
    grid-template-columns:240px minmax(0,1fr);
    gap:30px;
    padding:36px 42px 54px;
  }

  .home-feature-media img{
    height:280px;
    max-height:280px;
  }

  .home-feature-media.is-custom img{
    height:280px;
  }

  .home-catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .home-feature-shell{
    padding-top:24px;
  }

  .home-feature-slide,
  .home-feature-slide.is-active{
    grid-template-columns:1fr;
    gap:22px;
    min-height:0;
    padding:28px 24px 62px;
  }

  .home-feature-media{
    min-height:230px;
  }

  .home-feature-media img,
  .home-feature-media.is-custom img{
    height:230px;
    max-height:230px;
  }

  .home-feature-copy h1,
  .home-feature-copy h2{
    font-size:2rem;
  }

  .home-feature-controls{
    right:16px;
    bottom:14px;
  }
}

@media(max-width:500px){
  .home-catalog-grid{
    grid-template-columns:1fr;
  }
}


/* Homepage section heading scale */
.home-section-heading{
  margin-bottom:10px !important;
  font-size:clamp(2.75rem, 4.8vw, 4.25rem) !important;
  line-height:1.08 !important;
  font-weight:700 !important;
}

@media(max-width:680px){
  .home-section-heading{
    font-size:clamp(2.2rem, 9vw, 3rem) !important;
  }
}


/* Keep the three homepage pillars visually equal, as in the legacy HTML homepage. */
@media(min-width:751px){
  .cta{
    display:flex;
    align-items:stretch;
  }

  .cta article{
    float:none;
    box-sizing:border-box;
    min-height:190px;
  }
}


/* ============================================================
   HOMEPAGE SLIDER — TALLER BOOK-COVER PRESENTATION
   Keeps portrait covers fully visible instead of clipping them.
   ============================================================ */

.home-feature-slide{
  min-height:560px;
  padding-top:48px;
  padding-bottom:58px;
}

.home-feature-media{
  min-height:450px;
  align-self:stretch;
}

/* Book covers should always be fully visible. */
.home-feature-media img{
  width:auto;
  max-width:100%;
  height:440px;
  max-height:440px;
  object-fit:contain !important;
  object-position:center center;
}

/* Even when a custom image is supplied for a book slide, do not crop it. */
.home-feature-media.is-custom img{
  width:100%;
  height:440px;
  max-height:440px;
  object-fit:contain !important;
  object-position:center center;
  background:transparent;
}

/* Leave enough breathing room below controls on the taller slide. */
.home-feature-controls{
  bottom:22px;
}

@media(max-width:900px){
  .home-feature-slide{
    min-height:500px;
    padding-top:40px;
    padding-bottom:58px;
  }

  .home-feature-media{
    min-height:380px;
  }

  .home-feature-media img,
  .home-feature-media.is-custom img{
    height:370px;
    max-height:370px;
  }
}

@media(max-width:680px){
  .home-feature-slide,
  .home-feature-slide.is-active{
    min-height:0;
  }

  .home-feature-media{
    min-height:300px;
  }

  .home-feature-media img,
  .home-feature-media.is-custom img{
    height:300px;
    max-height:300px;
  }
}
