@font-face {
  font-family: 'Over Fear';
  src: url('./assets/over-fear.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #080909;
  color: #f2f1ec;
  font-family: Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #f2f1ec; color: #080909; }

.landing {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Layer order: film, legibility scrim, heading, sound control. */
.film, .film__poster, .film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film__poster, .film__video {
  object-fit: cover;
  object-position: center top;
}

.film__video { opacity: 0; }
.film.is-playing .film__video { opacity: 1; }

.landing::after {
  content: '';
  position: absolute;
  inset: 58% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgb(8 9 9 / 18%) 60%, rgb(8 9 9 / 65%));
}

.announcement {
  position: absolute;
  z-index: 1;
  inset-inline: 16px;
  bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
  margin: 0;
  padding-left: 0.12em;
  font-family: 'Over Fear', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(40px, 12vw, 72px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 2px 12px rgb(8 9 9 / 45%);
  pointer-events: none;
}

.sound {
  position: absolute;
  z-index: 2;
  top: max(20px, calc(env(safe-area-inset-top) + 12px));
  right: max(20px, calc(env(safe-area-inset-right) + 12px));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  background: rgb(8 9 9 / 55%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sound img { grid-area: 1 / 1; filter: invert(1); }
.sound__audible { visibility: hidden; }
.sound[aria-pressed='true'] .sound__muted { visibility: hidden; }
.sound[aria-pressed='true'] .sound__audible { visibility: visible; }
.sound:hover { background: rgb(8 9 9 / 78%); }
.sound:active { transform: scale(0.96); }
.sound:focus-visible { outline: 2px solid #f2f1ec; outline-offset: 4px; }
.sound[hidden] { display: none; }

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

@media (min-width: 768px) {
  .announcement {
    bottom: max(40px, 5dvh);
    font-size: clamp(64px, 6.5vw, 96px);
    letter-spacing: 0.16em;
    padding-left: 0.16em;
  }
  .sound { top: max(28px, env(safe-area-inset-top)); right: max(28px, env(safe-area-inset-right)); }
}

@media (max-height: 480px) and (orientation: landscape) {
  .announcement { bottom: max(16px, env(safe-area-inset-bottom)); font-size: clamp(32px, 10dvh, 46px); }
  .sound { top: max(12px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
}
