:root {
  color-scheme: dark;
  background: #080f14;
  color: #e6f4f1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  isolation: isolate;
}

/* One composited layer supplies the slow, quiet breath. */
.atmosphere {
  position: absolute;
  inset: -16%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 49%, #1c4c5b 0%, #12354f 25%, #0d213d 43%, transparent 64%),
    radial-gradient(ellipse at 77% 76%, #152b4c 0%, transparent 55%);
  opacity: 0.6;
  animation: breathe 6s ease-in-out infinite;
}

.field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, #86adca 0.7px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}

main {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  padding: 24px;
}

h1 {
  display: flex;
  align-items: center;
  gap: 0.15em;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.cursor {
  flex: none;
  width: 0.12em;
  height: 0.87em;
  background: #8acff0;
  animation: blink 1s steps(1, end) infinite;
}

::selection {
  background: #8acff0;
  color: #080f14;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(0.82);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.24);
    opacity: 0.92;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .cursor {
    animation: none;
  }
}
