*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  /* Cap image height in vh; used on img because % max-height needs a definite parent height. */
  --image-cap: calc(100vh - 11.5rem);
  --image-cap: calc(100svh - 11.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.5rem;
  max-width: 100%;
  max-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

.hero-visual {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

@media (max-width: 600px), (max-height: 700px) {
  .hero {
    padding: 1rem;
    --image-cap: calc(100vh - 12.75rem);
    --image-cap: calc(100svh - 12.75rem);
  }
}

.hero img {
  display: block;
  max-width: 100%;
  max-height: var(--image-cap);
  width: auto;
  height: auto;
  object-fit: contain;
}

.contact {
  flex-shrink: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact p {
  margin: 0;
}

.contact p + p {
  margin-top: 0.5rem;
}
