:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f9f3e3;
  background: #14120f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: clamp(1.5rem, 8vw, 8rem);
  background: #14120f;
}

main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 20%;
  background:
    linear-gradient(90deg, #14120f 0%, rgb(20 18 15 / 35%) 40%, rgb(20 18 15 / 12%) 100%),
    linear-gradient(0deg, rgb(20 18 15 / 72%), transparent 52%),
    url("assets/the-stream.png") right center / cover no-repeat;
}

.content {
  max-inline-size: 46rem;
}

h1 {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 0.95;
  text-wrap: balance;
}

.download-heading {
  max-inline-size: 15ch;
  margin-block-end: 2rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-link,
.unavailable {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  min-block-size: 4.5rem;
  min-inline-size: 11rem;
  padding: 0.8rem 1.125rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
}

.primary-link {
  background: #f1ca76;
  color: #1e180f;
  text-decoration: none;
}

.primary-link:hover {
  background: #ffdfa0;
}

.primary-link:focus-visible {
  outline: 2px solid #fff5d9;
  outline-offset: 4px;
}

.platform-detail {
  font-size: 0.875rem;
  font-weight: 500;
}

.unavailable {
  border-color: #857d6d;
  background: #221f19;
  color: #e0d8c9;
}

@media (max-width: 40rem) {
  main {
    align-items: end;
    padding-block-end: clamp(2rem, 10vh, 6rem);
  }

  main::before {
    inset: 0;
    background:
      linear-gradient(0deg, #14120f 8%, rgb(20 18 15 / 92%) 30%, rgb(20 18 15 / 10%) 76%),
      url("assets/the-stream.png") 88% center / cover no-repeat;
  }

  .actions {
    display: grid;
    inline-size: min(100%, 22rem);
  }
}

@media (forced-colors: active) {
  .primary-link {
    border-color: LinkText;
  }

  .unavailable {
    border-color: GrayText;
  }
}
