/* Home page (2026-11-06): the Nipyon Go! book card opens the page; the animated torii gate
   lives behind the Nara Notes section. Loaded last on the home page. */

/* ---------- the book card is the first thing on the page */
.book--first {
  padding-top: calc(72px + clamp(2rem, 4vw, 3.4rem));   /* clears the fixed site header */
  scroll-margin-top: 0;
}
.book--doorway h1 {
  margin: 0;
  max-width: 16ch;
  font: 800 clamp(2.4rem, 4.1vw, 3.6rem)/1.12 "Nunito", "Noto Sans JP", sans-serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.book--doorway h1 span { color: #356962; }

@media (max-width: 760px) {
  .book--first { padding-top: calc(112px + 1.4rem); }   /* the phone header has two rows */
  .book--doorway h1 { font-size: clamp(2.1rem, 8.5vw, 2.8rem); max-width: none; }
  /* Phones: heading, then the button, then the art, so the button shows without scrolling. */
  .book--doorway .book-doorway__inner { grid-template-areas: "intro" "details" "preview"; }
}

/* ---------- Nara Notes in the torii gate */
.feature-doorway--torii {
  overflow: hidden;
  min-height: clamp(560px, 46vw, 760px);
  display: grid;
  align-items: center;
  background: #f8f2e6;
}
.feature-doorway--torii .nara-torii {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: 50% 50%;
  background-size: cover;
  filter: none;
}
.feature-doorway--torii .hero-loop-video { object-position: 50% 50%; }
.feature-doorway--torii .nara-torii__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(255 253 247 / 55%), transparent 22%, transparent 78%, rgb(255 253 247 / 70%));
  pointer-events: none;
}
/* The words sit on a paper card so they read over the picture. */
.feature-doorway--torii .feature-doorway__copy {
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  border: 1px solid rgb(23 50 67 / 10%);
  border-radius: 22px;
  background: rgb(255 253 247 / 90%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 22px 40px -18px rgb(16 39 51 / 25%);
}
.feature-doorway--torii .feature-doorway__portal { box-shadow: 0 26px 48px -18px rgb(16 39 51 / 40%); }

@media (max-width: 760px) {
  .feature-doorway--torii { min-height: 0; }
}

/* ---------- footer quick access: two doors now (Study Bites, Nara Notes) */
.footer-quick-access .hero-channels { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .footer-quick-access .hero-channel-group__cards { grid-template-columns: minmax(0, 1fr); }
}
