:root {
  color-scheme: dark;
  --status-bg: #050c1b;
  --status-ink: #f8fbff;
  --status-muted: #aebbd0;
  --status-accent: #2c9df4;
  --status-accent-soft: rgba(44, 157, 244, .18);
  --status-image: url('/assets/status/site-missing.png');
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.site-status-page {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--status-ink);
  background: var(--status-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.site-status-private {
  --status-accent: #ffbd66;
  --status-accent-soft: rgba(255, 189, 102, .16);
  --status-image: url('/assets/status/site-private.png');
}

.site-status-preflight,
.site-status-noscript {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #050c1b;
  color: #aebbd0;
}

.site-status-preflight-mark {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-top-color: #2c9df4;
  border-radius: 50%;
  animation: status-spin .8s linear infinite;
}

.site-status-noscript { padding: 32px; text-align: center; }
.site-status-noscript a { color: #7bc5ff; }

.site-status-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4vw, 58px) clamp(24px, 7vw, 126px) clamp(26px, 4vw, 54px);
  overflow: hidden;
  background: #050c1b;
}

.site-status-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--status-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.015);
  animation: status-arrive 1.1s cubic-bezier(.2, .75, .25, 1) both;
}

.site-status-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 9, 22, .97) 0%, rgba(3, 9, 22, .91) 28%, rgba(3, 9, 22, .52) 53%, rgba(3, 9, 22, .06) 78%),
    linear-gradient(0deg, rgba(3, 9, 22, .68) 0%, transparent 28%);
}

.site-status-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.035em;
  font-weight: 760;
  font-size: clamp(16px, 1.35vw, 21px);
}

.site-status-brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.site-status-brand-mark::before,
.site-status-brand-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--status-accent);
  transform: rotate(-45deg);
}

.site-status-brand-mark::after { transform: rotate(45deg); opacity: .58; }
.site-status-brand em { color: #71beff; font-style: normal; }
.site-status-private .site-status-brand em { color: #d7a5ff; }

.site-status-content {
  align-self: center;
  width: min(660px, 51vw);
  padding: clamp(64px, 9vh, 116px) 0 clamp(50px, 7vh, 86px);
  animation: status-copy .75s .12s cubic-bezier(.2, .75, .25, 1) both;
}

.site-status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--status-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.site-status-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.site-status-title {
  max-width: 630px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 5.3vw, 92px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.055em;
  text-transform: none !important;
  font-variant: normal;
  text-wrap: balance;
  text-shadow: 0 10px 46px rgba(0, 0, 0, .32);
}

.site-status-copy {
  max-width: 555px;
  margin: 28px 0 0;
  color: var(--status-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.68;
  text-wrap: pretty;
}

.site-status-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.site-status-primary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--status-accent);
  color: #03101f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 15px 45px var(--status-accent-soft);
  transition: transform .2s ease, filter .2s ease;
}

.site-status-primary::after { content: "\2192"; font-size: 19px; font-weight: 500; }
.site-status-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.site-status-primary:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.site-status-hint {
  color: rgba(222, 231, 243, .68);
  font-size: 12px;
  line-height: 1.5;
}

.site-status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(216, 226, 240, .55);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-status-footer span:last-child { color: rgba(216, 226, 240, .38); }

@keyframes status-arrive {
  from { opacity: .35; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes status-copy {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 820px) {
  .site-status-shell {
    padding: 24px 22px 28px;
  }

  .site-status-shell::before {
    background-position: 69% center;
  }

  .site-status-shell::after {
    background:
      linear-gradient(0deg, rgba(3, 9, 22, .98) 0%, rgba(3, 9, 22, .88) 48%, rgba(3, 9, 22, .22) 100%),
      linear-gradient(90deg, rgba(3, 9, 22, .78), rgba(3, 9, 22, .08));
  }

  .site-status-content {
    align-self: end;
    width: 100%;
    padding: min(38vh, 320px) 0 30px;
  }

  .site-status-title { max-width: 590px; font-size: clamp(44px, 13vw, 68px); }
  .site-status-copy { margin-top: 20px; font-size: 16px; line-height: 1.58; }
  .site-status-actions { margin-top: 26px; }
  .site-status-primary { width: 100%; }
  .site-status-hint { width: 100%; text-align: center; }
  .site-status-footer span:last-child { display: none; }
}

@media (max-height: 670px) and (min-width: 821px) {
  .site-status-content { padding: 34px 0; }
  .site-status-title { font-size: clamp(44px, 7.8vh, 66px); }
  .site-status-copy { margin-top: 19px; }
  .site-status-actions { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
