* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-size: 2rem;
  font-family: sans-serif;
}

header,
footer {
  background: #222831;
  color: white;
  height: 6rem;
}

nav {
  width: 60vw;
  height: 100%;
  margin: 0 auto;
}

nav > ul {
  display: flex;
  list-style: none;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  gap: 2rem;
}

nav > ul > li {
  width: 100%;
  height: 100%;
}

.active {
  background: red;
}

nav > ul > li > a {
  height: 100%;
  width: 100%;
  display: block;
  text-align: center;
  line-height: 6rem;
  text-decoration: none;
  color: white;
}

h1 {
  font-size: 250%;
  margin-bottom: 2rem;
  border-bottom: 1rem solid black;
  font-weight: 500;
}

section {
  width: 60vw;
  margin: 0 auto;
  padding: 4rem;
}

article {
  width: 60vw;
  margin: 0 auto;
  padding: 4rem;
}

.box {
  width: 60vw;
  height: 40rem;
  position: relative;
  padding: 0;
  margin-bottom: 4rem;
}

.box > a > figure {
  width: 100%;
  height: 100%;
}

.box > a > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5rem;
}

.box > a > figure > img:hover {
  transform: none;
}

.box > a > section {
  position: absolute;
  bottom: 0%;
  left: 0%;
  padding: 4rem;
  color: white;
  width: 100%;
  height: 100%;
  border-radius: 5rem;
  background: linear-gradient(transparent, 80%, black);
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}

figure {
  margin-bottom: 4rem;
}

img {
  width: 100%;
  border-radius: 0.5rem;
  transition: 1s transform;
}

img:hover {
  transform: scale(1.05);
}

p {
  margin-bottom: 4rem;
}

p:last-of-type {
  margin-bottom: 0;
}

figcaption {
  font-size: 80%;
  font-style: italic;
}

audio {
  display: block;
  margin-top: 1.5rem;
}

video {
  width: 100%;
  margin-bottom: 4rem;
  border-radius: 0.5rem;
}

.top {
  width: 8rem;
  height: 8rem;
  background: #222831;
  border: none;
  font-size: 150%;
  font-family: "Open Sans", sans-serif;
  border-radius: 0.5rem;
  color: white;
  position: fixed;
  bottom: 12rem;
  right: 12rem;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

footer > p {
  width: 80vw;
}

@media screen and (max-width: 1000px) {
  article {
    width: 80vw;
  }
  footer > p {
    width: 80vw;
  }
  img:hover {
    transform: none;
  }
  .top {
    width: 60px;
    height: 60px;
    bottom: 60px;
    right: 60px;
  }

  header {
    height: auto;
  }

  nav {
    width: 100%;
  }

  nav > ul {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  body {
    font-size: 16px;
  }
  article {
    width: 100vw;
    padding: 20px;
  }
  h1 {
    font-size: 180%;
  }
  footer > p {
    width: 100vw;
    padding-left: 20px;
  }
}
