/* Homepage only: four matching wordmark rows (HYR CLUB, HYR THE BOOK, RITUAL ITEMS, the bio), every one flipping on hover or tap.
   Original typography, width fitting, hover reveal and two-tap behaviour
   are inherited from style.css / script.js without modification. */
.home-page .landing {
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

/* On a desktop the group sits with the same air above it as below (the bottom keeps room for the Instagram icon). */
@media (min-width: 761px) {
  .home-page .landing { padding-top: max(5.6vh, 52px); }
}

/* Four rows must still clear the Instagram icon on short desktop windows. */
@media (min-width: 761px) and (max-height: 720px) {
  .home-page .row-label { font-size: min(11.45vw, 15.5vh); }
  .home-page .row-active { font-size: min(11.7vw, 15.8vh); }
}

/* Remove the former small-link footer reservation in short desktop windows. */
@media (min-width: 761px) and (max-height: 600px) {
  body.home-page,
  .home-page .landing { min-height: 0; }
  .home-page .landing { padding: 12px 0 58px; }
}

/* Keep the existing compact, centred mobile group.
   In landscape, keep all four rows above the Instagram icon. */
@media (max-width: 760px) and (orientation: landscape) {
  .home-page .landing {
    padding: 12px 0 58px;
    gap: min(2.6vw, 2vh);
  }
  .home-page .mega-row { height: min(14.5vw, 13vh); }
}

/* The 4 in RITU4L: Adobe Caslon's default figures are old-style, so the 4 sits small and hangs below the line.
   Ask the font for lining figures (cap height). The Adobe Fonts kit only carries them once "OpenType Features" is
   ticked on the web project; until then script.js adds .four-fallback, measures the old-style glyph against a
   capital, and sets --four-desc (how far its foot hangs below the baseline, in em), --four-scale (the growth that
   takes it to cap height) and the transform origin (the baseline), so the glyph is lifted exactly onto the
   baseline and grown from its foot to letter height, never floated above the line. */
.home-page .row-label .four {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.home-page .row-label .four.four-fallback {
  display: inline-block;
  margin-inline: 0.04em;
  transform: translateY(calc(var(--four-desc, 0em) * -1 * var(--four-scale, 1))) scale(var(--four-scale, 1));
}
