/**************************
* MARK: Fonts
**************************/

@font-face {
  font-family: "Montserrat";
  src: url("../Montserrat-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "MontserratLight";
  src: url("../Montserrat-Light.ttf") format("truetype");
}

@font-face {
  font-family: "Classo";
  src: url("../classo.regular.ttf");
}

/**************************
* MARK: Algemene Styling & Variables
**************************/

:root {
  --gradient: radial-gradient(
    rgb(199, 157, 231),
    rgb(79, 79, 204),
    rgb(253, 79, 155),
    rgb(255, 169, 10),
    red
  );
  --text-color: black;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gradient: radial-gradient(
      rgb(60, 30, 90),
      rgb(30, 30, 90),
      rgb(120, 20, 80),
      rgb(120, 70, 10),
      rgb(90, 0, 0)
    );
    --text-color: white;
  }
}

body {
  color: var(--text-color);
  color-scheme: light dark;
  background: var(--gradient);
  min-height: 100dvh;
  background-size: 300% 400%;
  animation: move 10s alternate infinite;
}

@keyframes move {
  from {
    background-position: 0%;
  }
  to {
    background-position: 100% 100%;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: absolute;
  top: 60px;
  left: 28px;
  font-family: "MontserratLight", sans-serif;
  color: black;
  outline: 2px solid var(--text-color);
  outline-offset: 4px;
  border-radius: 0.2em;
}

/**************************
* MARK: Typografie Basis
**************************/

h1 {
  font-family: "Classo", sans-serif;
  font-size: clamp(2rem, 9vw, 5rem);
  font-weight: bold;
  word-spacing: -1%;
  margin-bottom: 2rem;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 35px;
  font-weight: 350;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: "MontserratLight", sans-serif;
  font-size: 20px;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: "MontserratLight", sans-serif;
  font-size: 17px;
  margin-bottom: 0.5rem;
}

p {
  font-family: "MontserratLight", sans-serif;
  font-weight: lighter;
  font-size: 19px;
  line-height: 1.6;
}

/**************************
* MARK: Header
**************************/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

header a {
  line-height: 1;
  padding-left: 1em;
  font-family: "MontserratLight";
  list-style: none;
  text-decoration: none;
  color: var(--text-color);
  display: inline-block;
  transition: transform 0.3s ease;
}

header a:hover {
  transform: scale(1.2);
}

header a:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 4px;
  border-radius: 0.2em;
}

header a:active {
  opacity: 0.3;
  transform: scale(0.98);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 50px);
  line-height: 1;
  font-family: "MontserratLight";
  list-style: none;
  padding-right: 1em;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
}

nav a:active {
  opacity: 0.3;
  transform: scale(0.98);
}

nav a:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 4px;
  border-radius: 0.2em;
}

/**************************
* MARK: Section 1 & 2 (Intro & Kleur)
**************************/

section:nth-of-type(1) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 2rem;
}

section:nth-of-type(1) {
  padding-top: 6rem;
}

section:nth-of-type(1) > article:nth-of-type(1) {
  grid-column: 1 / 4;
}

section:nth-of-type(1) > article:nth-of-type(2) {
  grid-column: 1 / 3;
}

/**************************
* MARK: Section 3
**************************/

section:nth-of-type(2) {
  display: block;
  padding-top: 4rem;
  padding-left: 2rem;
}

/**************************
* MARK: Section 3 (Kaarten)
**************************/

@keyframes reveal {
  from {
    scale: 0.9;
    opacity: 0;
    clip-path: inset (45% 20% 45% 20%);
  }
  50% {
    scale: 1;
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
  }
}

section:nth-of-type(3) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 2rem;
  animation: reveal linear forwards;
  animation-timeline: view();
}

section:nth-of-type(3) > article {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section:nth-of-type(3) h2 {
  font-family: "MontserratLight", sans-serif;
  font-size: 28px;
  color: white;
  margin: 0;
}

section:nth-of-type(3) p {
  font-size: 18px;
  line-height: 1.5;
  color: white;
  margin: 0;
}

@media (max-width: 900px) {
  section:nth-of-type(4) {
    grid-template-columns: 1fr;
  }
}

/**************************
* MARK: Section 5 (Voorbeelden)
**************************/

section:nth-of-type(4) {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  padding: 2rem;
}

section:nth-of-type(4) > article {
  display: flex;
  flex-direction: column;
  gap: 0;
}

iframe {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  margin-bottom: 3em;
}

/**************************************************
- schaling voor klein scherm
**************************************************/
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  section {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 2rem 1rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  section,
  section:nth-of-type(1),
  section:nth-of-type(2),
  section:nth-of-type(3),
  section:nth-of-type(4),
  section:nth-of-type(5) {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 2rem 1rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
}
