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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh; /* accounts for mobile browser toolbars */
  overflow: hidden;
}

/* Image fills the hero and crops to fit any screen shape */
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark gradient overlay keeps the title readable on any image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.5));
}

.hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1rem;
  color: #fff;
  text-align: center;
  /* Scales smoothly between phone and desktop sizes */
  font-size: clamp(2.25rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.4);
}
