@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: "FakeReceipt";
  src: url("fonts/Fake Receipt.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;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Ledlight", Arial, sans-serif;
  font-weight: 400;
}

main p {
  margin: 0;
  font-family: "FakeReceipt", Arial, sans-serif;
  font-weight: 400;
}

body > header {
  padding: 2rem 2rem 2rem 16rem;
}

header nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

header a,
#themeToggle,
main > section > a {
  display: inline-block;
  padding: 0.8rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

header a,
#themeToggle {
  padding: 0.6rem 0.8rem;
  font-family: "Ledlight", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#themeToggle {
  position: absolute;
  z-index: 10;
  top: 2rem;
  left: 2rem;
  background: var(--background);
}

header a:hover,
header a:focus-visible,
header a[aria-current="page"],
#themeToggle:hover,
#themeToggle:focus-visible,
main > section > a:hover,
main > section > a: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 > section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--background);
  scroll-margin-top: 2rem;
}

main > section::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -15%;
  background:
    radial-gradient(ellipse at 25% 40%, var(--glow-one), transparent 50%),
    radial-gradient(ellipse at 75% 60%, var(--glow-two), transparent 50%);
  filter: blur(40px);
  animation: genre-drift var(--speed, 10s) ease-in-out infinite alternate;
}


#frequencies-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85svh;
  padding: 5rem 1.5rem;
  text-align: center;
}

#frequencies-intro::before {
  inset: 5% 10%;
  background:
    radial-gradient(ellipse at 35% 45%, #ff00cc55, transparent 55%),
    radial-gradient(ellipse at 65% 60%, #7000ff55, transparent 55%);
  filter: blur(45px);
  animation: signal-drift 8s ease-in-out infinite alternate;
}

#intro-title {
  max-width: 100%;
  font-size: clamp(2rem, 8vw, 7rem);
  overflow-wrap: anywhere;
}

#intro-description {
  max-width: 48ch;
  font-size: 1.1rem;
  line-height: 1.7;
}

#intro-scroll {
  margin-top: 2rem;
}

#house {
  --glow-one: #ff006633;
  --glow-two: #ff880033;
}

#techno {
  --glow-one: #0066ff33;
  --glow-two: #9900ff33;
}

#electro {
  --glow-one: #00ff6633;
  --glow-two: #99ff0033;
}

#drum-bass {
  --glow-one: #ffcc0033;
  --glow-two: #ff660033;
  --speed: 7s;
}

#ambient {
  --glow-one: #44ccff33;
  --glow-two: #aaaaff33;
  --speed: 22s;
}

main > section:not(#frequencies-intro) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 3rem;
  min-height: 100svh;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid currentColor;
}

main > section > h2,
main > section > p,
main > section > a {
  grid-column: 1 / -1;
}

h2 {
  font-size: clamp(2.5rem, 10vw, 9rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#drum-bass h2 {
  font-size: clamp(2rem, 7vw, 7rem);
}

main article {
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

main article p {
  max-width: 48ch;
  font-family: "AlteHaasGrotesk", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

main > section:not(#frequencies-intro) > p {
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
}

main > section > a {
  justify-self: start;
}

#skip-link {
  position: fixed;
  z-index: 20;
  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,
main:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

@keyframes signal-drift {
  0% {
    transform: translate(-15%, -10%) scale(0.9);
  }
  50% {
    transform: translate(10%, 5%) scale(1.2);
  }
  100% {
    transform: translate(-5%, 15%) scale(1);
  }
}

@keyframes genre-drift {
  from {
    transform: translate(-8%, -4%) scale(1);
  }
  to {
    transform: translate(8%, 4%) scale(1.12);
  }
}

@media (max-width: 1200px) {
  body > header {
    padding: 5.5rem 1rem 1rem;
  }

  header nav {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  #themeToggle {
    top: 1rem;
    left: 1rem;
  }
}

@media (max-width: 750px) {
  main > section:not(#frequencies-intro) {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}


@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  header a,
  #themeToggle,
  main > section > a {
    transition: none;
    transform: none;
  }
}


