/* Launch standby page, direction B "system standby" (25 Nov 2026). The landing's ground, scanlines,
   name and orb, the orb dormant, and in ENTER's place a status: SYSTEM IN STANDBY, and a line that
   says only what the site is doing, with a real "check again". The Signal colourway, type and
   ground are the site's own (client/public/app.css; a unit test keeps the colours and font equal). */
:root {
  --bg: #020302;
  --fg: #e3ebe6;
  --bright: #ffffff;
  --dim: #83918a;
  --accent: #2fe07f;
  --font: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs: 12.5px;
  --lh: 1.5;
  --scan: 0.04;
  --term-bg: radial-gradient(ellipse 88% 78% at 50% 40%, #111412 0%, #080a09 58%, #020302 100%);
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/jetbrains-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
}

.sb {
  position: fixed;
  inset: 0;
  background: var(--term-bg);
  overflow: hidden;
}
.sb::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, var(--scan)) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
}

/* The orb fills the page, as on the landing; it fades in once its type is ready. */
.orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.orb.on {
  opacity: 1;
}

.brand {
  position: absolute;
  left: 24px;
  top: calc(20px + env(safe-area-inset-top, 0px));
  z-index: 2;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--bright);
}
.brand .sl {
  color: var(--accent);
}

/* Where the landing has ENTER. */
.status {
  position: absolute;
  left: 50%;
  bottom: calc(9vh + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.state {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* the tracking after the last letter, so the line centres */
  color: var(--fg);
}
.lamp {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--accent);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.line {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}
.ps {
  color: var(--accent);
}
.again {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 6px 2px;
  margin: -6px -2px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--dim) 55%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
  border-radius: 0;
}
.again:hover,
.again:focus-visible {
  color: var(--bright);
  text-decoration-color: var(--accent);
}
.again:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.again[aria-disabled='true'] {
  cursor: default;
  color: inherit;
  opacity: 0.55;
  text-decoration-color: transparent;
}
.again-wrap {
  white-space: nowrap;
}
/* Without script there is nothing to check with. */
html:not(.js) .again-wrap {
  display: none;
}

@media (max-width: 560px) {
  .state {
    font-size: 11px;
    gap: 12px;
  }
  .line {
    font-size: 11px;
  }
  /* On a phone the check gets its own line, so a longer answer never leaves it hanging. */
  .again-wrap {
    display: block;
    margin-top: 8px;
  }
  .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lamp {
    animation: none;
    opacity: 0.8;
  }
  .orb {
    transition: none;
  }
}
