@font-face {
  font-family: "Monoton";
  src: url("fonts/monoton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saira";
  src: url("fonts/saira.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/*
  Color system adapted from dashron.com/posts/dashron-v5-full-synthwave
  (colors/gradients/effects are not copyrightable; the two non-free
  display fonts used there, Razor and Newake, were replaced with the
  free Google Font Monoton).
*/
:root {
  --color-primary: #ff0066;
  --color-secondary: #ff2975;
  --color-accent: #3e024b;
  --color-white: #ffffff;
  --color-text-primary: rgba(255, 255, 255, 0.95);
  --color-text-secondary: rgba(255, 255, 255, 0.75);
  --color-link: #ff6b9d;
  --color-link-hover: #ff88b3;
  --color-background-start: #0f0209;
  --color-background-end: #770092;
  --color-border: #8a2255;
  --color-border-hover: #ee55bb;
  --color-neon-subtle: #e0316885;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  color: var(--color-text-primary);
  font-family: "Outfit", sans-serif;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#bg canvas {
  display: block;
}

/* CRT scanline overlay */
.scanline-overlay {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
}

/* Film grain / noise texture */
.noise-texture {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
}

/* Brand wordmark: neon glow text, Monoton in place of the licensed Razor font */
.brand {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand-text {
  font-family: "Monoton", cursive;
  font-size: clamp(1.8rem, 7vw, 4.5rem);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.5),
    2px 3px 20px rgba(255, 0, 255, 0.85),
    3px 2px 3px rgba(0, 0, 255, 0.85),
    0 0 7px var(--color-white),
    0 0 21px var(--color-neon-subtle);
}

/* Reusable neon box: glow-only border, no fill needed */
.neon-box {
  border: 0;
  box-shadow:
    0 0 5px 1px var(--color-white),
    0 0 10px 4px var(--color-primary),
    inset 0 0 5px 1px var(--color-white),
    inset 0 0 10px 4px var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .scanline-overlay, .noise-texture {
    display: none;
  }
}
