* { box-sizing: border-box; }

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

body {
  background: #10233b;
  font-family: Arial, Helvetica, sans-serif;
  overflow: auto;
}

/*
  The artwork is 3:2. The hero scales to fit BOTH the browser width
  and height while preserving that ratio, so the entire composition
  remains visible and the buttons stay aligned with the artwork.
*/
.site {
  width: 100%;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero {
  position: relative;
  width: min(100vw, 150svh);
  aspect-ratio: 3 / 2;
  line-height: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*
  Clickable areas are proportional to the original artwork.
  They scale with the image on every screen size.
*/

/* Red YouTube button: bottom-center. */
.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  background: transparent;
  border-radius: 7%;
  -webkit-tap-highlight-color: transparent;
}

.hotspot.youtube {
  left: 26.0%;
  top: 75.6%;
  width: 46.0%;
  height: 19.0%;
}

/* Yellow Buy Me a Coffee button: bottom-right. */
.hotspot.coffee {
  left: 73.5%;
  top: 83.8%;
  width: 25.0%;
  height: 11.5%;
}

.hotspot:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -5px;
  background: rgb(255 255 255 / 12%);
}

@media (hover: hover) and (pointer: fine) {
  .hotspot:hover {
    background: rgb(255 255 255 / 3%);
  }
}

/* On very short screens, allow scrolling rather than clipping content. */
@media (max-height: 360px) {
  .site {
    align-items: flex-start;
  }
  .hero {
    width: min(100vw, 150svh);
  }
}
