@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #05070b;
  --fg: #e8ecf3;
  --muted: #6b7a90;
  --accent: #7fd1ff;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist Mono", ui-monospace, monospace;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Vignette plus a faint scanline grain, so edges fall away into darkness. */
.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(5, 7, 11, 0.85) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px);
}

main {
  position: relative;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 16px;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(127, 209, 255, 0.15);
}

/* Characters still being "decrypted" render dimmed, in the accent colour. */
h1 .glyph {
  font-weight: 200;
  color: var(--accent);
  opacity: 0.55;
}

.sub {
  margin: 1.5rem 0 0;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade-in 1.6s ease 1.4s forwards;
}

.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--accent);
  opacity: 0.7;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes fade-in { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sub { animation: none; opacity: 1; }
  .caret { animation: none; }
}
