@font-face {
  font-family: "VT323";
  src: url("/fonts/vt323.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("/fonts/share-tech-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  --green: #00ff41;      /* matrix green */
  --green-dim: #2fcf55;  /* 10.2:1 on black */
  --green-mute: #1f9e3c; /* 6.0:1 on black; the quiet footer */
  --white: #f2fff4;
  --bg: #000;
  --glow: 0 0 5px var(--green), 0 0 10px var(--green);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--green);
  font-family: "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scanlines over everything, purely decorative. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 2px 4px);
  z-index: 3;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .2;
  z-index: 0;
}

.status {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  gap: 1.5rem;
  padding: .5rem 1rem;
  background: rgba(0,0,0,.6);
  border-bottom: 1px solid #0b5d1e;
  font-family: "VT323", monospace;
  font-size: 1rem;
  letter-spacing: .15em;
  z-index: 2;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem 3rem;
  gap: 1.25rem;
}

.logo-wrap { position: relative; }
.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: var(--green);
  filter: blur(80px);
  opacity: .12;
  border-radius: 50%;
}
.logo {
  position: relative;
  width: min(500px, 80vw);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 15px rgba(0,255,0,.5));
  animation: boot 1.5s ease-out both;
}

h1 {
  margin: 0;
  color: var(--white);
  font-weight: normal;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: var(--glow);
  animation: rise .8s .8s ease-out both;
}

.rule {
  width: 6rem;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: rise .8s .9s ease-out both;
}

.tagline {
  margin: 0;
  max-width: 32rem;
  font-family: "VT323", monospace;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: .12em;
  color: var(--green-dim);
  animation: rise .8s 1s ease-out both;
}

.void {
  margin: 1rem 0 0;
  font-family: "VT323", monospace;
  font-size: .95rem;
  color: var(--green-mute);
  animation: fade 1s 2s both, pulse 2s 3s ease-in-out infinite;
}

.back a, footer a {
  color: var(--green-dim);
  text-decoration: none;
}
.back a:hover, .back a:focus-visible,
footer a:hover, footer a:focus-visible {
  color: var(--white);
  text-shadow: var(--glow);
}
a:focus-visible { outline: 1px dashed var(--green); outline-offset: 3px; }

footer {
  position: relative;
  z-index: 1;
  padding: .75rem 1rem 1rem;
  text-align: center;
  font-family: "VT323", monospace;
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--green-mute);
}
footer p { margin: .15rem 0; }
footer .projects a { color: var(--green-mute); }

@keyframes boot  { from { opacity: 0; transform: scale(.92); filter: blur(10px); } to { opacity: 1; transform: none; } }
@keyframes rise  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 480px) {
  .status .wide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  #rain { display: none; }
}
