/* vim: set ft=css foldmethod=marker foldlevel=10 : */

#nav {
  width: 100%;
  height: 3rem;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  position: fixed;
  top: 0;
  left: 0;
}

#nav a {
  width: 2rem;
  height: 2rem;
}

#nav a svg {
  width: 100%;
  height: 100%;
}

#banner {
  width: 100%;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(to bottom, #000c, #0006, #000c),
              var(--bg-img-url)
              right center/cover;
}

@keyframes fade-and-pop-down {
  0% {
    transform: translateY(-5ex);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-and-pop-right {
  0% {
    transform: translateX(-20ch);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#banner-content {
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin: 0 0 2rem 3rem;
}

#banner-title, #banner-subtitle {
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-delay: 0.3s;
  animation-timing-function: ease;
}

#banner-subtitle {
  animation-name: fade-and-pop-down;
}

#banner-title {
  animation-name: fade-and-pop-right;
}

#content {
  padding: 4rem 0;
}

#content p {
  font-size: 1.1em;
  margin-left: 3rem;
  margin-right: 3rem;
}

#content figure {
  margin-left: 0;
  margin-right: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#content figcaption {
  font-size: 1em;
}

#content img {
  width: 100%;
  height: auto;
}

@media only screen and (min-width: 768px) {
  #content {
    font-size: 1.1rem;
  }
}

@media only screen and (min-width: 1024px) {
  #nav {
    width: 3.5rem;
    height: 3.5rem;
    top: 2rem;
    padding-left: 0.5rem;
    border-radius: 0 50% 50% 0;
  }

  #banner {
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
  }

  #content {
    width: 55vw;
    margin: 4rem 5rem 4rem auto;
    padding: 5rem 5rem;
    font-size: 1.15rem;
    background-color: white;
    box-shadow: 3px 3px 30px 1px #0004;
  }

  #content p {
    margin-left: 0;
    margin-right: 0;
  }
}
