/* MARK: fonts */
@font-face {
  font-family: "Seraphs";
  src: url("fonts/SeraphsVF.woff2") format("woff2");
  font-display: swap;
}

/* MARK: basis */
body {
  margin: 0;
  overflow-x: hidden;
  background: black;
  color: white;
  font-family: "Seraphs", serif;
  text-align: center;
}

header {
  display: none;
}

p {
  margin: 0;
}

footer {
  padding: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* MARK: grid */

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  row-gap: 0;
}

.muur,
.podium {
  display: contents;
}

main section,
.slot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

/* MARK: papapa */
.groep1,
.groep2,
.groep3,
.groep4 {
  gap: 0.5em;
  flex-wrap: wrap;
  align-content: center;
  min-height: 24dvh;
  white-space: nowrap;
  font-size: 5em;
  line-height: 1;
}

.groepp {
  flex-basis: 0;
  margin: 10rem;
  font-size: 3em;
}
.groepp2 {
  font-size: 0.5em;
  rotate: 5deg;
}
.groep1 p,
.groep2 p,
.groep3 p,
.groep4 p {
  font-family: "Seraphs", serif;
  font-variation-settings:
    "wght" 125,
    "ROND" 0,
    "YELA" 200;
}

@keyframes golf {
  from {
    font-variation-settings:
      "wght" 150,
      "ROND" 0,
      "YELA" 0;
  }
  to {
    font-variation-settings:
      "wght" 100,
      "ROND" 100,
      "YELA" 100;
  }
}

.eerstezin,
.tweedezin {
  flex-direction: column;
  gap: 0.2em;
  min-height: 90dvh;
  font-size: 0.5em;
}

.voorikvergeet,
.voorikvergeet2,
.voorikvergeet3 {
  font-size: 20em;
  font-style: oblique;
  font-weight: 1200;
  line-height: 0.95;
}

.eerstezin p:last-child,
.tweedezin p:last-child,
.vierdezin p {
  font-size: 5em;
  line-height: 1.1;
  font-variation-settings:
    "wght" 100,
    "ROND" 100,
    "YELA" 100;
}

.vierdezin {
  min-height: 60dvh;
}

.derdedezin {
  gap: 0.3em;
  min-height: 90dvh;
  font-size: min(17vw, 30dvh);
  line-height: 1;
  rotate: 40deg;
}

.de,
.hele,
.dag {
  rotate: 0deg;
}

.slot {
  min-height: 70dvh;
  font-size: min(2.6vw, 3.6dvh);
  line-height: 1.25;
}

.slot {
  max-width: 44ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* MARK: animaties */
/* gehaald uit de deepdive variable fonts van sanne */
@media (prefers-reduced-motion: no-preference) {
  .groep1 p,
  .groep2 p,
  .groep3 p,
  .groep4 p {
    animation: golf 3s ease-in-out infinite alternate;
    animation-delay: calc(var(--rij, 0) * -0.6s - var(--p, 0) * 1s);
  }
  .groep2 {
    --rij: 1;
  }
  .groep3 {
    --rij: 2;
  }
  .groep4 {
    --rij: 3;
  }
  :is(.groep1, .groep2, .groep3, .groep4) p:nth-child(2) {
    --p: 4;
  }
  :is(.groep1, .groep2, .groep3, .groep4) p:nth-child(3) {
    --p: 3;
  }
  :is(.groep1, .groep2, .groep3, .groep4) p:nth-child(4) {
    --p: 2;
  }
  :is(.groep1, .groep2, .groep3, .groep4) p:nth-child(5) {
    --p: 1;
  }
  /* gevraagd aan ai hoe dit moest. Heb de code gekopieerd. */
  .derdedezin p {
    animation: stuiter 0.8s ease-in-out infinite alternate;
  }
  .hele {
    animation-delay: 0.25s;
  }
  .dag {
    animation-delay: 0.5s;
  }
}

@keyframes stuiter {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -0.12em;
  }
}
