@font-face {
  font-family: "Ledlight";
  src: url("fonts/LEDLIGHT.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AlteHaasGrotesk";
  src: url("fonts/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #000;
  --text: #fff;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #fff;
    --text: #000;
  }
}

body[data-theme="light"] {
  color-scheme: light;
  --background: #fff;
  --text: #000;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --background: #000;
  --text: #fff;
}
* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "AlteHaasGrotesk", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, #a020f0 0%, transparent 35%),
    radial-gradient(circle, #2600bf 0%, transparent 35%),
    radial-gradient(circle, #ff00cc 0%, transparent 35%),
    radial-gradient(circle, #ff1744 0%, transparent 35%);
  background-color: var(--background);
  background-repeat: no-repeat;
  background-size: 55% 55%, 50% 50%, 60% 60%, 45% 45%;
  filter: blur(50px);
  animation: zweven 14s ease-in-out infinite alternate;
}

body > header {
  position: fixed;
  z-index: 10;
  top: 2rem;
  right: 2rem;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

header a,
#themeToggle,
#consent-close {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Ledlight", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

#themeToggle {
  position: fixed;
  z-index: 10;
  top: 2rem;
  left: 2rem;
}

header a:hover,
header a:focus-visible,
header a[aria-current="page"],
#themeToggle:hover,
#themeToggle:focus-visible,
#consent-close:hover,
#consent-close:focus-visible {
  background: #ff00cc;
  color: #000;
  border-color: #ff00cc;
  box-shadow: 0 0 18px 4px #ff00cc;
}

header a:hover,
header a:focus-visible,
#themeToggle:hover,
#themeToggle:focus-visible {
  transform: translateY(-3px);
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 100svh;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  scroll-margin-top: 7rem;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: "Ledlight", Arial, sans-serif;
  font-size: clamp(2rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

#home-subtitle,
#home-instruction {
  margin: 0;
  line-height: 1.5;
}

#home-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

#home-instruction {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

aside {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

aside p {
  position: absolute;
  width: max-content;
  margin: 0;
  color: #ff00fb;
  font-family: "Ledlight", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 4rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.45;
  text-shadow: 0 0 8px currentColor;
}

aside p:nth-child(1) {
  top: 18%;
  animation: naarLinks 16s linear infinite;
}

aside p:nth-child(2) {
  top: 28%;
  opacity: 0.75;
  animation: naarRechts 21s linear infinite;
}

aside p:nth-child(3) {
  top: 44%;
  color: #ff2000;
  font-size: clamp(2rem, 5vw, 7rem);
  opacity: 0.3;
  animation: naarLinks 25s linear infinite;
}

aside p:nth-child(4) {
  top: 64%;
  color: #2600bf;
  animation: naarRechts 18s linear infinite;
}

aside p:nth-child(5) {
  top: 78%;
  color: #c000ff;
  animation: naarLinks 23s linear infinite;
}

#consent {
  position: fixed;
  z-index: 20;
  bottom: 1rem;
  left: 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  max-height: 80svh;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  border: 2px solid currentColor;
  background: var(--background);
  color: var(--text);
  font-family: "Ledlight", Arial, sans-serif;
}

#consent[open] {
  width: min(30rem, calc(100% - 2rem));
  padding: 1.5rem;
}

#consent[hidden] {
  display: none;
}

#consent summary {
  cursor: pointer;
}

#consent h2 {
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 400;
}

#consent p {
  margin: 0 0 1rem;
  font-family: "AlteHaasGrotesk", Arial, sans-serif;
  line-height: 1.6;
}

#consent-close {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-width: 2px;
}

#skip-link {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 1rem;
  padding: 1rem;
  border: 2px solid currentColor;
  background: var(--background);
  color: var(--text);
  transform: translateY(-200%);
}

#skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
main:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

@keyframes zweven {
  0% {
    background-position: 0% 20%, 100% 80%, 70% 0%, 20% 100%;
  }
  25% {
    background-position: 65% 75%, 15% 5%, 90% 60%, 35% 25%;
  }
  50% {
    background-position: 30% 50%, 85% 30%, 10% 85%, 75% 15%;
  }
  75% {
    background-position: 90% 10%, 40% 85%, 55% 35%, 0% 60%;
  }
  100% {
    background-position: 15% 90%, 75% 40%, 30% 10%, 95% 75%;
  }
}

@keyframes naarLinks {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes naarRechts {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100vw);
  }
}

@media (max-width: 1200px) {
  #themeToggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
  }

  body > header {
  position: relative;
  top: auto;
  right: auto;
  padding: 5rem 1rem 1rem;
}

  header nav {
    gap: 0.6rem;
  }

  main {
    min-height: 65svh;
    padding: 2rem 1rem;
    scroll-margin-top: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 5rem);
  }
}

@media (max-width: 600px) {
  #consent {
    max-height: 60svh;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }

  #consent[open] {
    padding: 1rem;
  }
}

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

  aside {
    display: none;
  }

  aside p {
    animation: none;
  }

  header a,
  #themeToggle,
  #consent-close {
    transition: none;
    transform: none;
  }
}