@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/press-start-2p-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --green: #00ff66;
  --green-dim: #4f9f72;
  --cyan: #00ddff;
  --body: #8ad9a8;
  --rule: rgba(0, 255, 102, 0.16);
  --pixel: 'Press Start 2P', monospace;
  --prose: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 20px 5rem;
  background-color: #020502;
  color: var(--body);
  font-family: var(--prose);
  font-size: 15px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  animation: ambientGlow 8s ease-in-out infinite;
}

@keyframes ambientGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.04); }
  100% { filter: brightness(1); }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 120% at 50% 50%,
    transparent 0%,
    transparent 75%,
    rgba(0, 0, 0, 0.25) 95%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0.15) 2px
  );
  pointer-events: none;
  z-index: 2;
}

.wrap {
  position: relative;
  z-index: 0;
  max-width: 640px;
  margin: 0 auto;
}

header {
  padding: 4.5rem 0 0;
}

h1 {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(1.4rem, 7vw, 2.4rem);
  line-height: 1.4;
  color: var(--green);
  text-shadow: 0 0 2px var(--green), 0 0 10px rgba(0, 255, 102, 0.45), 0 0 26px rgba(0, 255, 102, 0.2);
}

h2 {
  margin: 3rem 0 1.3rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule);
  font-family: var(--pixel);
  font-size: clamp(0.72rem, 3.4vw, 0.95rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--green);
  text-shadow: 0 0 2px rgba(0, 255, 102, 0.7), 0 0 12px rgba(0, 255, 102, 0.3);
}

main h2:first-child {
  margin-top: 1.6rem;
  padding-top: 0;
  border-top: 0;
}

.q {
  margin: 1.7rem 0 0.35rem;
  font-family: var(--pixel);
  font-size: clamp(0.58rem, 2.8vw, 0.72rem);
  line-height: 1.8;
  color: var(--cyan);
  text-shadow: 0 0 2px rgba(0, 221, 255, 0.5), 0 0 10px rgba(0, 221, 255, 0.25);
}

h2 + .q {
  margin-top: 0;
}

p {
  margin: 0;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

.contact {
  font-size: 1.05em;
}

.pagefoot {
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule);
}

.termlink {
  display: inline-block;
  font-family: var(--pixel);
  font-size: clamp(0.5rem, 2.6vw, 0.7rem);
  line-height: 1.6;
  color: var(--green);
  text-decoration: none;
  text-shadow: 0 0 2px rgba(0, 255, 102, 0.6), 0 0 8px rgba(0, 255, 102, 0.3);
}

.termlink:hover,
.termlink:focus-visible {
  text-decoration: underline;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  margin-left: 0.35em;
  vertical-align: text-bottom;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.copyright {
  display: block;
  margin-top: 1.5rem;
  color: var(--green-dim);
  font-size: 0.8em;
}

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

@media (max-width: 750px) {
  body {
    padding: 0 16px 4rem;
    font-size: 14px;
    line-height: 1.8;
  }

  header { padding-top: 2.4rem; }
  h2 { margin-top: 2.6rem; }
}
