/* ===== home.css ===== */

/* Make room for the fixed header and center the hero */
body{
  padding-top: var(--header-h);               /* avoid overlap with fixed header */
  min-height: 100svh;                         /* safe viewport height on mobile */
  display: flex;
  flex-direction: column;
}

/* Center the hero vertically within the remaining viewport */
main.main{
  width: min(70vmin, 560px);
  aspect-ratio: 1 / 1;

  /* take all remaining space below the header and center the square */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-inline: auto;                        /* center horizontally */
}

/* Big animated logo on home */
.logo{
  width: 100%;
  height: auto;
  display: block;
}

/* Slightly larger hero on very small screens */
@media (max-width: 480px){
  main.main{ width: min(84vmin, 560px); }
}
