/* Fit-to-screen layout for the harbour theme pages (it, nature, photography, return_to_harbour).
   Loaded last. The page never scrolls: text and controls scale with the viewport height,
   and the logo takes whatever height is left (square, at most 430px). */

html,body{height:100%;min-height:0!important;overflow:hidden!important;}
body{
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}

/* Logo: fills the remaining height */
.header{
  flex:1 1 0!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(6px,2.4vh,28px) 72px 0!important;
}
.logo-stage{
  height:100%!important;
  max-height:min(460px,100%)!important;
  padding:clamp(2px,1.4vh,18px) clamp(8px,2vw,34px)!important;
  box-sizing:border-box;
}
.logo{
  width:auto!important;
  height:100%!important;
  max-width:min(calc(100vw - 136px),430px)!important;
  max-height:430px!important;
  min-height:0;
  aspect-ratio:1;
  object-fit:contain;
}

/* Message block */
main{
  flex:0 0 auto!important;
  min-height:0!important;
  align-items:center!important;
  padding:clamp(4px,1.6vh,22px) 16px clamp(4px,1.2vh,16px)!important;
}
.content{width:min(680px,100%)!important;}
h1{font-size:clamp(22px,min(6.4vh,9vw),60px)!important;line-height:1.1!important;}
.message{margin-top:clamp(4px,1.2vh,12px)!important;font-size:clamp(11px,min(1.9vh,4vw),17px)!important;}
.transition{width:min(360px,100%)!important;margin-top:clamp(6px,2.4vh,22px)!important;}
.trail-awaits{margin-bottom:clamp(4px,1.4vh,14px)!important;font-size:clamp(11px,1.7vh,15px)!important;}
.seconds-line{margin-top:clamp(4px,1.2vh,11px)!important;font-size:clamp(11px,1.35vh,12px)!important;}
.final-message{margin-top:clamp(3px,1vh,10px)!important;font-size:clamp(11px,1.35vh,12px)!important;}
.early-access-btn{
  min-width:0!important;
  width:min(320px,100%)!important;
  min-height:clamp(34px,6vh,58px)!important;
  margin-top:clamp(6px,2vh,22px)!important;
  padding:0 clamp(12px,3vw,30px)!important;
  font-size:clamp(11px,1.35vh,12px)!important;
  letter-spacing:.16em!important;
}
.return-harbour-button{
  min-height:clamp(34px,5.6vh,46px)!important;
  margin-top:clamp(6px,1.8vh,18px)!important;
  max-width:100%;
}

/* Footer */
.site-footer{
  flex:0 0 auto!important;
  padding:clamp(4px,1.4vh,22px) 20px clamp(6px,1.8vh,24px)!important;
}
.footer-copy{font-size:clamp(11px,1.4vh,13px)!important;}
.footer-tagline{margin-top:clamp(2px,.7vh,8px)!important;font-size:clamp(11px,1.15vh,11px)!important;}

/* The compass menu scrolls inside its own panel if it does not fit */

/* Narrow or very low screens: compact sound button (orb only) so it never covers the footer or the message */
@media (max-width:900px),(max-height:520px){
  .site-footer{min-height:80px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding-left:68px!important;padding-right:68px!important;}
  .forest-sound-toggle{left:12px!important;bottom:12px!important;min-height:0!important;padding:7px!important;gap:0!important;transform:none!important;}
  .forest-sound-copy{display:none!important;}
}
@media (max-width:640px){
  .header{padding-left:16px!important;padding-right:16px!important;}
  .footer-copy,.footer-tagline{letter-spacing:.14em!important;}
}
