:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #171715;
}

body {
  margin: 0;
}

.site-header {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 5vw, 5rem);
  background: linear-gradient(to bottom, rgb(0 0 0 / 65%), transparent);
}

.wordmark {
  display: inline-block;
  padding-block: 0.25rem;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span {
  font-weight: 500;
}

.wordmark:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  text-align: center;
}

.hero-images,
.hero-frame,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-images {
  overflow: hidden;
}

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

.hero::after {
  content: "";
  background: rgb(0 0 0 / 35%);
  pointer-events: none;
}

.hero-caption {
  position: relative;
  z-index: 1;
  max-inline-size: 22ch;
  margin: 0;
  padding-inline: 1rem;
  font-size: clamp(1.75rem, 5vw, 5rem);
  font-weight: 750;
  line-height: 1.06;
  text-wrap: balance;
  text-shadow: 0 1px 3px #000, 0 2px 16px rgb(0 0 0 / 85%);
}

.opening-caption {
  display: none;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .opening-caption {
    display: inline;
  }

  .static-caption {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero {
    aspect-ratio: 4 / 5;
  }
}
