:root {
  color-scheme: dark;
  --background: #010002;
  --foreground: #fff;
  --secondary: #cdcdcd;
  --muted: #afafaf;
  --button-background: #fff;
  --button-foreground: #0d0d0d;
  --button-hover: #ececec;
  --focus-ring: rgb(139 165 255 / 80%);
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  color: var(--foreground);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  display: flex;
  box-sizing: border-box;
  width: min(100%, 1468px);
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  text-align: center;
}

.brand {
  position: fixed;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: block;
  width: 18px;
  height: 18px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.art {
  position: fixed;
  z-index: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: min(960px, calc(100vw - 40px));
  aspect-ratio: 3 / 2;
  pointer-events: none;
  transform: translateX(-50%);
}

.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status .art img {
  -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 12%,
      #000 88%,
      transparent
    ),
    linear-gradient(0deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(
      90deg,
      transparent,
      #000 12%,
      #000 88%,
      transparent
    ),
    linear-gradient(0deg, #000 0%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  width: min(762px, 100%);
  min-height: 363px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.status .content {
  gap: 4px;
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
  transform: translateY(-56px);
}

.text {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.title,
.copy {
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.title {
  font-size: 24px;
  font-weight: 590;
  letter-spacing: 0.07px;
  line-height: 28px;
}

.copy {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 26px;
}

.login-required .art {
  bottom: -58px;
  width: min(1294px, calc(100vw - 40px));
}

.login-required .art img,
.access-denied .art img {
  object-fit: cover;
}

.login-required .content {
  gap: 24px;
  background: radial-gradient(
    ellipse 334px 153px at 50% 55%,
    #020617 0%,
    transparent 100%
  );
}

.actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 37px;
  border-radius: 100px;
  background: var(--button-background);
  color: var(--button-foreground);
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.32px;
  line-height: 26px;
  text-decoration: none;
  transition: background-color 0.1s ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--button-hover);
}

.button:active {
  opacity: 0.8;
}

.button:focus-visible,
.brand:focus-visible,
.access-denied-logout:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--background),
    0 0 0 4px var(--focus-ring);
}

.mark {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: brightness(0) invert(5.098%);
  object-fit: contain;
}

.privacy {
  width: min(279px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  opacity: 0.7;
}

.privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-required .text,
.privacy {
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}

.access-denied .art {
  bottom: -17px;
  width: min(1215px, calc(100vw - 40px));
}

.access-denied .content {
  width: min(594px, 100%);
  min-height: 214px;
}

.access-denied .text {
  box-sizing: border-box;
  padding-bottom: 24px;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}

.account {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.access-denied-logout {
  position: fixed;
  z-index: 2;
  top: 24px;
  right: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
}

.access-denied-logout:hover {
  color: var(--foreground);
}

.account-email {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  opacity: 0.7;
  overflow-wrap: anywhere;
}

.access-denied .copy a {
  color: inherit;
  text-underline-offset: 3px;
}

.request-access-form {
  margin: 0 0 12px;
}

.request-access-form .button {
  min-height: 41px;
  padding: 0 16px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.request-access-form .button:disabled {
  cursor: default;
  opacity: 0.7;
}

.request-access-spinner {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid rgb(17 17 17 / 25%);
  border-top-color: #111;
  border-radius: 50%;
  animation: request-access-spin 700ms linear infinite;
}

.request-access-status,
.request-access-error {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 20px;
}

.request-access-status {
  color: var(--secondary);
}

.request-access-error {
  color: #ff8a8a;
}

@keyframes request-access-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-height: 800px) {
  .wrap {
    padding: 20px;
  }

  .status .art {
    width: min(960px, 94vw, 120vh);
  }
}

@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  .login-required,
  .access-denied,
  .status {
    overflow-x: clip;
  }

  .login-required .art,
  .access-denied .art,
  .status .art {
    bottom: 0;
    width: min(150vw, 150vh);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 24px 18px;
  }

  .button {
    max-width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }
}

.access-denied .title {
  text-wrap: balance;
}

.login-required .copy {
  text-wrap: pretty;
}

.first-publish {
  color-scheme: light dark;
  --background: light-dark(#fff, #212121);
  --foreground: light-dark(#0d0d0d, #fff);
  --secondary: light-dark(#737373, #b4b4b4);
}

.first-publish .title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 24px;
}

.first-publish .copy {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: normal;
  line-height: 20px;
}

.publish-ring {
  margin-bottom: 20px;
  color: light-dark(#e5e5e5, #424242);
}

.publish-ring-fill {
  stroke: light-dark(#0085ff, #48aaff);
  stroke-dashoffset: 25;
  transition-property: none;
}

.publish-ring[data-stage="preparing"] .publish-ring-fill {
  stroke-dashoffset: 96;
}

.publish-ring[data-stage="finalizing"] .publish-ring-fill {
  stroke-dashoffset: 4;
}

.publish-ring[data-stage="complete"] .publish-ring-fill {
  stroke-dashoffset: 0;
}

/* Leave a gap while publishing, then close it from the current arc when the Site is live. */
@media (prefers-reduced-motion: no-preference) {
  .publish-ring-fill {
    transition: stroke-dashoffset 10s ease-out;
  }

  .publish-ring[data-stage="finalizing"] .publish-ring-fill {
    transition-duration: 4s;
  }

  .publish-ring[data-stage="complete"] .publish-ring-fill {
    transition-duration: 180ms;
  }

  @starting-style {
    .publish-ring-fill {
      stroke-dashoffset: 96;
    }

    .publish-ring[data-stage="finalizing"] .publish-ring-fill {
      stroke-dashoffset: 25;
    }
  }
}
