/* Home (the menu page). The four menu lines are real links laid over the watercolour wash. */
.page--home .home__menu { z-index: 1; font-family: var(--font-display); }
.page--home .home__menu a { text-decoration: none; padding: 0.3em 0.7em; display: inline-block; }
.page--home .home__menu a:hover, .page--home .home__menu a:focus-visible { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }

/* phones: the wash block takes whatever height is left on the screen. Inside it the four links share the space
   above the swans (so the gaps between them shrink on short screens and nothing can land on the swans), the swans
   sit at the bottom, and the wash is stretched behind both. The block never gets smaller than four 40px links
   plus the swans; on short screens the photo above shrinks instead. */
.page--home .home__photo { flex: 0 1 30dvh; }
.page--home .home__splash {
  position: relative; flex: 1 1 auto; align-self: stretch; width: auto; margin-inline: calc(-1 * var(--gutter));
  display: flex; flex-direction: column; align-items: center; padding: 0.9rem 0 0.9rem;
}
.page--home .home__wash { position: absolute; inset: 0; z-index: 0; }
.page--home .home__wash > .collage { width: 100%; height: 100%; aspect-ratio: auto; }
.page--home .home__menu { position: relative; z-index: 1; flex: 1 1 auto; display: flex; width: 100%; }
.page--home .home__menu ul { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; }
.page--home .home__menu li { font-size: clamp(1.0625rem, 2.5dvh, 1.375rem); line-height: 1.1; white-space: nowrap; }
.page--home .home__menu a { min-height: 2.5rem; min-width: 9rem; display: grid; place-items: center; padding: 0 1em; }
.page--home .home__swans { position: relative; z-index: 1; flex: 0 0 clamp(3.75rem, 12dvh, 7rem); width: 78%; margin-top: 0.35rem; }
/* very short screens: the trinket row goes so the photo keeps some room */
@media (max-height: 36rem) { .page--home .home__trinkets { display: none; } }

/* wide stage: each line sits where the design has it */
@media (min-width: 37.5rem) and (min-aspect-ratio: 1/1) {
  .page--home .home__menu, .page--home .home__menu ul { display: contents; }
  .page--home .home__menu li:nth-child(n) { position: absolute; left: var(--rx); font-size: max(1.0625rem, var(--fs)); }
  .page--home .home__menu a { padding: 0 0.3em; min-height: 0; min-width: 0; display: inline-block; }
  /* the phone wash block must dissolve here, or the links would be placed relative to it instead of the stage */
  .page--home .home__splash { display: contents; }
  .page--home .home__menu li { line-height: var(--lh, 1.2); }
}
