@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&family=Cabin:ital,wght@0,400..700;1,400..700&family=Gaegu:wght@300;400;700&display=swap");

:root {
  font-size: 22px;

  font-family: "Cabin", serif;
  font-weight: 300;

  --clr-primary: deeppink;
  --clr-background: #dccdf2;
  --clr-background-emphasis: skyblue;
  --clr-text: #636;
}

@media screen and (max-width: 830px) {
  :root {
    font-size: 18px;
  }
}

* {
  box-sizing: border-box;
}

body {
  max-width: 800px;
  margin: auto;

  background-image: radial-gradient(
    circle at 95vw 89vh,
    var(--clr-background) 0%,
    var(--clr-background-emphasis) 200%
  );
  color: var(--clr-text);
}

#hero {
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#hero h1,
#hero p {
  padding: 0;
  margin: 0;
}

#hero p#hero-above,
#hero p#hero-below {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.5rem;

  &#hero-above {
    translate: -8rem 0;
  }

  &#hero-below {
    translate: 8rem 0;
  }
}

#hero h1 {
  font-family: Gaegu, sans-serif;
  font-size: 4.5rem;

  color: var(--clr-primary);
  font-weight: 700;
  animation: hero-beat 2s ease-in-out infinite,
    hero-swirl 4s ease-in-out infinite;
  rotate: -0.04rad;

  text-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 830px) {
  #hero p {
    translate: 0 !important;
  }

  #hero h1 {
    font-size: 2rem;
  }
}

#hero #hero-canvas {
  position: absolute;
}

@keyframes hero-swirl {
  0% {
    rotate: -0.06rad;
  }

  50% {
    rotate: -0.02rad;
  }

  100% {
    rotate: -0.06rad;
  }
}

@keyframes hero-beat {
  0% {
    letter-spacing: -0.05rem;
  }

  50% {
    letter-spacing: 0.05rem;
  }

  100% {
    letter-spacing: -0.05rem;
  }
}

@media screen and (max-width: 830px) {
  main {
    padding: 0 0.5rem;
  }
}

main strong {
  font-weight: 800;
}

main p,
main h3 {
  margin: 0;
  padding: 0;
  padding-bottom: 0.5rem;
}

main h2 {
  color: var(--clr-text);
  padding: 0.5rem 0;
  margin: 0;
  font-family: "Baloo 2", sans-serif;
}

main ul.projects-list {
  list-style: none;
  padding: 1rem 0;
  margin: 0;

  display: grid;
  grid-template-columns: 1fr;

  @media screen and (min-width: 500px) {
    grid-template-columns: 1fr 1fr;
  }

  @media screen and (min-width: 700px) {
    grid-template-columns: 1fr 1fr 1fr;
  }

  gap: 16px;
}

ul .project {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  height: 100%;

  background-color: var(--clr-background);
  border: var(--clr-primary) 2px solid;
  border-radius: 1rem;
  padding: 0.5rem;

  .name {
    font-family: "Baloo 2", sans-serif;
    font-weight: 600;
  }

  .date {
    font-size: 0.9rem;
    text-align: center;
  }

  .where {
    font-weight: 700;
  }
}

a {
  color: var(--clr-primary);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

a.project {
  text-decoration: none;
  color: var(--clr-text);

  &:hover {
    background-color: var(--clr-primary);
    color: white;
  }
}

footer {
  max-width: 800px;
  margin: auto;
  padding: 0.5rem 0;
  font-size: 0.8rem;

  border-top: var(--clr-text) 2px solid;
}
