@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: #f0f0f0;
  --muted: #aaa;
  --title: #00ff1a;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #fff;
    --text: #000;
    --muted: #555;
    --title: #006b0b;
  }
}

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

body[data-theme="dark"] {
  color-scheme: dark;
  --background: #000;
  --text: #f0f0f0;
  --muted: #aaa;
  --title: #00ff1a;
}

* {
  box-sizing: border-box;
}

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

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

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

header a,
#themeToggle {
  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 {
  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);
}

#inhoud {
  scroll-margin-top: 7rem;
}

h1 {
  margin: 0;
  padding: 2rem 2.5rem 0.6rem;
  color: var(--title);
  font-family: "Ledlight", Arial, sans-serif;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

#instructie {
  margin: 0;
  padding: 0 2.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}


#tijdlijn {
  display: flex;
  width: 100%;
  min-height: 65vh;
  padding: 4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #c000ff var(--background);
}

#tijdlijn > section {
  flex: 0 0 100%;
  min-width: 0;
  padding: 3.75rem 5rem;
  border-right: 2px solid var(--muted);
  scroll-snap-align: start;
}

#tijdlijn > section > p:first-child {
  margin: 0 0 1rem;
  color: #c000ff;
  font-size: 1.2rem;
  font-weight: 700;
}

#tijdlijn h2 {
  margin: 0 0 1.5rem;
  font-family: "FakeReceipt", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

#tijdlijn > section > p:last-child {
  max-width: 90ch;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#tijdlijn::-webkit-scrollbar {
  height: 12px;
}

#tijdlijn::-webkit-scrollbar-track {
  background: var(--background);
}

#tijdlijn::-webkit-scrollbar-thumb {
  background: #c000ff;
  border-radius: 10px;
}

#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;
}

#tijdlijn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: -3px;
}

@media (max-width: 1200px) {
  body {
    padding-top: 0;
  }

  body > header {
    position: static;
    padding: 5rem 1rem 1rem;
  }

  header nav {
    gap: 0.6rem;
  }

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

  #inhoud {
    scroll-margin-top: 1rem;
  }
}

@media (max-width: 1000px) {
  h1 {
    padding: 2rem 1rem 1rem;
    font-size: clamp(2rem, 8vw, 4rem);
  }

  #instructie {
    display: none;
  }

  #tijdlijn {
    flex-direction: column;
    min-height: 0;
    padding: 1rem;
    overflow: visible;
    scroll-snap-type: none;
  }

  #tijdlijn > section {
    flex: none;
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--muted);
  }

  #tijdlijn h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  #tijdlijn > section > p:last-child {
    max-width: 100%;
    font-size: 1rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  header a,
  #themeToggle {
    transition: none;
    transform: none;
  }
}