/* Original Hostinger forest footage, isolated to the homepage masthead. */
.home-masthead.home-forest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: max(560px, calc(100svh - 120px));
  padding: 90px 48px 105px;
  overflow: hidden;
  isolation: isolate;
  background: #173F36 url('assets/original-forest-still.webp') center / cover no-repeat;
}
.forest-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; clip-path: inset(0); pointer-events: none; }
.forest-video { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; object-fit: cover; object-position: center; opacity: 1; }
.forest-has-frame .forest-video { opacity: 1; }
.home-forest::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#061A1224, #061A1224), radial-gradient(ellipse at center, #06140E75, transparent 72%); z-index: -1; pointer-events: none; }
.home-forest .home-masthead-link { position: relative; width: min(67%, 576px); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.home-forest .home-masthead-logo { mix-blend-mode: normal; filter: brightness(0) invert(1) drop-shadow(0 2px 3px #001811) drop-shadow(0 0 9px #00181180); }
.forest-motion-control { position: absolute; bottom: 20px; right: max(24px, calc((100vw - 1240px) / 2)); min-height: 46px; padding: 9px 17px; border: 1px solid #A77B43; border-radius: 4px; background: #FFF8EEF5; color: #51354A; font-size: max(16px, .8em); font-weight: 600; box-shadow: 0 3px 12px #11242E33; }
.forest-motion-control:hover { background: #F5E6D4; }
@media (max-width: 1100px) {
  .home-masthead.home-forest { padding-inline: 32px; }
}
@media (max-width: 850px) {
  .home-masthead.home-forest { min-height: max(510px, calc(100svh - 120px)); padding: 90px 24px 105px; }
}
@media (max-width: 620px) {
  .home-masthead.home-forest { min-height: max(430px, calc(100svh - 160px)); padding: 80px 16px 95px; }
  .home-forest .home-masthead-link { width: min(100%, 420px); }
  .forest-motion-control { right: 16px; bottom: 18px; }
}
/* Keep the preserved introduction and featured book in one centered column. */
.homepage #home-intro { display: flex; flex-direction: column; align-items: center; gap: 54px; min-height: 0; padding-block: 76px 70px; text-align: center; }
.homepage #home-intro .hero-copy { width: 100%; max-width: 760px; }
.homepage #home-intro .hero-copy::before { left: 50%; transform: translateX(-50%); }
.homepage #home-intro h1 { font-size: clamp(2.3rem, 3.8vw, 2.95rem); }
.homepage #home-intro .hero-description { margin-inline: auto; max-width: 590px; }
.homepage #home-intro .hero-actions { justify-content: center; }
.homepage #home-intro .hero-display { width: min(100%, 500px); flex: none; height: 556px; }
.homepage #home-intro .featured-label { grid-template-columns: 1fr; gap: 6px; text-align: center; }
.homepage #home-intro .featured-label a { justify-self: center; }
.homepage #home-intro .featured-label > span:nth-child(2) br { display: none; }
@media (max-width: 620px) {
  .homepage #home-intro { padding-block: 58px; gap: 42px; }
  .homepage #home-intro .hero-display { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-forest:not(.forest-motion-requested) .forest-video { display: none; }
}
@media print {
  .home-masthead.home-forest { min-height: 0; padding: 0; background: white; }
  .forest-media, .forest-motion-control, .home-forest::before { display: none; }
  .home-forest .home-masthead-link { border: 0; box-shadow: none; background: white; }
  .home-forest .home-masthead-logo { filter: none; }
}
