:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  overflow: hidden;
}

.shell {
  width: min(calc((100dvh - 20px) * 0.6666667), calc(100vw - 24px));
  margin: 0;
  padding: 0;
}

@supports not (height: 100dvh) {
  .shell {
    width: min(calc((100vh - 20px) * 0.6666667), calc(100vw - 24px));
  }
}

.poster {
  position: relative;
  width: 100%;
}

.poster-bg {
  display: block;
  width: 100%;
  height: auto;
}

.tablet-buttons {
  position: absolute;
  left: 20%;
  right: 8%;
  top: 50%;
  bottom: 1.5%;
  display: block;
}

.image-button {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  text-decoration: none;
  transition: transform 140ms ease;
  width: 100%;
}

#windows-link {
  top: 4px;
}

#mac-link {
  top: 43%;
}

.image-button img {
  display: block;
  width: min(58%, 460px);
  height: auto;
  margin: 0 0 0 8%;
}

.image-button:hover,
.image-button:focus-visible {
  transform: translateY(-2px);
}

.image-button:focus-visible {
  outline: 3px solid rgba(33, 37, 28, 0.36);
  outline-offset: 4px;
}

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

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 860px) {
  body {
    padding: 6px 4px;
  }

  .shell {
    width: min(calc((100dvh - 12px) * 0.6666667), calc(100vw - 8px));
    padding: 0;
  }

  .tablet-buttons {
    left: 18%;
    right: 7%;
    top: 50%;
    bottom: 1%;
    display: block;
  }

  #windows-link {
    top: 2px;
  }

  #mac-link {
    top: 42%;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 860px) {
    .shell {
      width: min(calc((100vh - 12px) * 0.6666667), calc(100vw - 8px));
    }
  }
}

/* Force downloads-page button placement lower in the parchment area. */
body.downloads-page .tablet-buttons {
  top: 48% !important;
  left: 57% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 66% !important;
  bottom: 8% !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.4%;
}

body.downloads-page .image-button img {
  width: min(54%, 420px) !important;
  margin: 0 auto !important;
}

body.downloads-page .image-button {
  position: static !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
}

body.downloads-page .phish-link img {
  width: min(56%, 430px) !important;
}

@media (max-width: 860px) {
  body.downloads-page .tablet-buttons {
    top: 47% !important;
    left: 57% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 72% !important;
    bottom: 8% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2%;
  }

  body.downloads-page .image-button img {
    width: min(60%, 360px) !important;
    margin: 0 auto !important;
  }

  body.downloads-page .phish-link img {
    width: min(62%, 372px) !important;
  }
}

.landing-poster {
  position: relative;
  width: 100%;
}

.landing-bg {
  display: block;
  width: 100%;
  height: auto;
}

.landing-tablet {
  position: absolute;
  left: 22%;
  right: 10%;
  top: 44%;
  bottom: 1.5%;
  display: block;
}

.landing-copy-box {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  color: #111;
  font-size: clamp(0.72rem, 0.96vw, 0.9rem);
  line-height: 1.28;
  text-align: center;
  width: 62%;
  margin: 0;
  padding: 0;
}

.landing-copy-box p {
  margin: 0;
}

.landing-copy-box .landing-lead {
  font-weight: 800;
  font-size: 1.2em;
}

.landing-downloads-image {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  display: block;
  width: 66%;
  margin: 0;
  text-decoration: none;
  transition: transform 140ms ease;
}

.landing-downloads-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.landing-downloads-image:hover,
.landing-downloads-image:focus-visible {
  transform: translateX(-50%) translateY(-2px);
}

.landing-downloads-image:focus-visible {
  outline: 3px solid rgba(33, 37, 28, 0.36);
  outline-offset: 4px;
}

@media (max-width: 860px), (max-height: 940px) {
  .landing-tablet {
    left: 20%;
    right: 9%;
    top: 44%;
    bottom: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1%;
    padding: 4% 0 2%;
    overflow: hidden;
  }

  .landing-copy-box {
    position: static;
    transform: none;
    width: 62%;
    font-size: 0.5rem;
    line-height: 1.2;
    margin-top: 14%;
  }

  .landing-downloads-image {
    position: static;
    transform: none;
    width: 60%;
    margin-top: auto;
  }

  .landing-downloads-image:hover,
  .landing-downloads-image:focus-visible {
    transform: translateY(-2px);
  }
}

body.status-page {
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(182, 150, 86, 0.18), transparent 28%),
    linear-gradient(180deg, #16110b 0%, #090704 100%);
}

.status-shell {
  width: min(100%, 720px);
}

.status-card {
  border: 1px solid rgba(224, 194, 126, 0.2);
  background: rgba(18, 13, 8, 0.92);
  border-radius: 24px;
  padding: 40px 32px;
  color: #f4ead4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.status-kicker {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8ba7b;
}

.status-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
}

.status-copy {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(244, 234, 212, 0.88);
}

.status-link {
  display: inline-block;
  margin-top: 24px;
  color: #f6d38d;
  font-weight: 700;
  text-decoration: none;
}

.status-link:hover,
.status-link:focus-visible {
  text-decoration: underline;
}
