/* Let the homepage hero follow both the viewport and the source image ratio. */
.hero.hero-joy{min-height:0}
@media(min-width:761px){
  .hero.hero-joy{height:min(100svh,calc(88px + 72.5vw))}
}
/* Collapse the navigation before its links run out of horizontal space. */
@media(min-width:761px) and (max-width:1100px){
  header .menu{display:block;background:none;border:1px solid var(--line);padding:8px 13px;font-size:14px;flex-shrink:0}
  header nav{display:none;position:absolute;left:0;right:0;top:88px;padding:24px 4.5%;border-bottom:1px solid var(--line);background:#faf8f3;font-size:16px}
  header nav.open{display:flex;flex-direction:column;align-items:flex-start;gap:22px;max-height:calc(100svh - 88px);overflow-y:auto}
}
@media(max-width:760px){
  .hero.hero-joy{height:calc(72px + 72.5vw + 270px);min-height:0}
  .hero-joy .joy-photo{top:72px;height:72.5vw;object-position:center}
  .hero-joy .joy-content{bottom:58px;right:6%}
  .hero-joy .joy-scroll{bottom:20px}
  .hero-joy .joy-shade{background:linear-gradient(0deg,#eee9e1 0%,#eee9e1 35%,transparent 54%)}
  header nav{top:72px;max-height:calc(100svh - 72px);overflow-y:auto}
}
@media(min-width:761px) and (max-height:600px){
  .hero-joy .joy-content{bottom:8%}
  .hero-joy .joy-content h1{font-size:clamp(32px,4vw,48px)}
  .hero-joy .joy-link{margin-top:16px}
}
