:root {
  color-scheme: dark;
  --page-bg: #b9491c;
  --text: #fff9f0;
  --shadow: rgba(20, 8, 4, 0.28);
}

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

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

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: "DM Serif Display", serif;
}

img,
video {
  display: block;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 100%, rgba(255, 210, 160, 0.12), transparent 22%),
    radial-gradient(circle at 85% 100%, rgba(255, 224, 188, 0.08), transparent 24%),
    var(--page-bg);
}

.hero__media,
.hero__overlay,
.hero__content {
  position: absolute;
  inset: 0;
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__thumb {
  transform: scale(1.06);
  filter: blur(28px);
}

.hero__poster,
.hero__video {
  opacity: 0;
  transition: opacity 520ms ease;
}

.hero__overlay {
  background:
    linear-gradient(0deg, rgba(15, 7, 4, 0.18), rgba(15, 7, 4, 0.08) 24%, transparent 48%);
}

.hero__content {
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  z-index: 2;
  pointer-events: none;
}

.hero__content h1 {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: 1.5rem;
  line-height: 0.95;
  font-weight: 400;
  text-shadow: 0 10px 30px var(--shadow);
  white-space: nowrap;
}

html.is-poster-ready .hero__poster,
html.is-reduced-motion .hero__poster,
html.is-video-ready .hero__poster {
  opacity: 1;
}

html.is-video-ready .hero__video {
  opacity: 1;
}

@media (min-width: 768px) {
  .hero__content {
    padding: 3rem;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding: 4rem;
  }

  .hero__content h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__poster,
  .hero__video {
    transition: none;
  }
}
