:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05060a;
  color: #f5f0eb;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background: #05060a;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  background-color: #05060a;
  background-image:
    linear-gradient(180deg, rgb(3 4 9 / 6%) 0%, rgb(3 4 9 / 8%) 42%, rgb(3 4 9 / 42%) 78%, rgb(3 4 9 / 82%) 100%),
    url("./assets/angryspaceman_channel_header.jpg");
  background-position: center 100%;
  background-repeat: no-repeat;
  background-size: auto 125vh;
  background-size: auto 125svh;
}

.main-content {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  padding: clamp(1.5rem, 5vh, 4rem) 1.25rem clamp(1.5rem, 5vh, 3.5rem);
}

.video-frame {
  width: min(720px, 72vw);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(247 190 132 / 48%);
  border-radius: 3px;
  background: #07080d;
  box-shadow: 0 12px 48px rgb(0 0 0 / 55%), 0 0 28px rgb(229 111 48 / 14%);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  min-height: 66px;
  padding: 1.2rem 1rem max(1.2rem, env(safe-area-inset-bottom));
  text-align: center;
  background: rgb(3 4 9 / 72%);
}

.site-footer p {
  margin: 0;
  color: rgb(245 240 235 / 78%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: lowercase;
}

.site-footer a {
  color: #f3a76c;
  text-decoration-color: rgb(243 167 108 / 45%);
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: #ffd0a7;
}

.site-footer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #ffd0a7;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .site-shell {
    background-position: center -5vh;
    background-size: 175vw auto;
  }

  .main-content {
    min-height: 600px;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .video-frame {
    width: min(100%, 520px);
  }

  .site-footer p {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
  }
}
