:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #061a35;
  color: #f5f8ff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #061a35;
}

.release-check {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(9rem, 29svh, 16rem) 0 4rem;
  overflow: hidden;
}

.release-check::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 max(1.5rem, calc((100vw - 56rem) / 2));
  width: 1px;
  background: #214774;
  content: "";
}

.release-copy,
.status {
  width: min(calc(100% - 3rem), 32rem);
  margin-left: max(1.5rem, calc((100vw - 56rem) / 2 + 2rem));
}

.release-index {
  position: absolute;
  z-index: -1;
  top: 8svh;
  right: clamp(1rem, 7vw, 8rem);
  color: #0b2851;
  font-size: clamp(12rem, 28vw, 28rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.75;
  user-select: none;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.release-text {
  margin: 1.75rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #d8e7ff;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  color: #b9d8c2;
  font-size: 1rem;
  line-height: 1.5;
}

.status-mark {
  width: 0.625rem;
  height: 0.625rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.status[data-state="loading"] {
  color: #d8e7ff;
}

.status[data-state="loading"] .status-mark {
  animation: pulse 900ms ease-in-out infinite alternate;
}

.status[data-state="error"] {
  color: #ffb4b4;
}

@keyframes pulse {
  to {
    opacity: 0.3;
  }
}

@media (max-width: 640px) {
  .release-check {
    padding-top: 23svh;
  }

  .release-check::before {
    left: 1rem;
  }

  .release-copy,
  .status {
    margin-left: 1.75rem;
  }

  .release-index {
    top: 11svh;
    right: 1rem;
    font-size: 13rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status[data-state="loading"] .status-mark {
    animation: none;
  }
}
