:root {
  --ink: #eafff6;
  --muted: #799387;
  --signal: #58ffb3;
  --void: #020604;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.binary-stage {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgb(14 45 31 / 22%), transparent 44%),
    linear-gradient(145deg, #010302 0%, #030a06 48%, #010302 100%);
}

.binary-stage::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgb(88 255 179 / 13%);
  box-shadow: inset 0 0 120px rgb(0 0 0 / 78%);
  content: "";
  pointer-events: none;
}

.binary-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
}

.scanlines {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.16;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(120 255 190 / 7%) 4px
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-mark,
.status-line {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
}

.site-mark {
  top: clamp(22px, 4vw, 46px);
  left: clamp(22px, 4vw, 54px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-mark a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-mark a:hover,
.site-mark a:focus-visible {
  color: var(--ink);
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
  animation: signal 2.4s ease-in-out infinite;
}

.status-line {
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(22px, 4vw, 44px);
  left: clamp(22px, 4vw, 54px);
  display: flex;
  justify-content: space-between;
}

.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;
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .site-mark,
  .status-line {
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-dot {
    animation: none;
  }
}
