@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:wght@100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=League+Spartan:wght@100..900&family=Lexend+Deca:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,700;1,400;1,800&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
img {
  max-width: 100%;
  width: 100%;
}
ul {
  list-style-type: none;
}
p {
  line-height: 1.8;
  color: hsl(236, 13%, 42%);
}
html {
  font-size: 15px;
}

body {
  max-width: 1100px;
  margin: auto;
  padding-bottom: 4rem;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}
.header nav #menu-close {
  background: transparent;
  border: none;
  outline: none;
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 99999;
  cursor: pointer;
}
.header nav {
  opacity: 0;
  z-index: -999;
  transition: all 0.3s ease-in-out;
}
.header nav.open {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 75vw;
  background-color: white;
  padding: 1.25rem;
  opacity: 1;
  z-index: 99999999999;
}
.header nav ul {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.header nav ul li {
  margin: 1.5rem 0;
  font-size: 16px;
  cursor: pointer;
}
.header nav ul li:hover {
  color: hsl(5, 85%, 63%);
}
.header .menu-button button {
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
}
.showcase {
  padding: 1.25rem;
  padding-top: 0;
}
.showcase h1 {
  font-size: 2rem;
  color: hslhsl(240, 100%, 5%);
  margin: 1rem 0;
  font-weight: 800;
}
h4:hover {
  color: hsl(5, 85%, 63%);
  cursor: pointer;
}
.showcase div:first-child article p {
  margin-bottom: 1rem;
}
.showcase div:first-child article button {
  background-color: hsl(5, 85%, 63%);
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: all 0.3s ease-in-out;
}
.showcase div:first-child article button:hover {
  background-color: hsl(240, 100%, 5%);
  cursor: pointer;
}
.showcase > div:last-child {
  background-color: hsl(240, 100%, 5%);
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 0;
}

.showcase > div:last-child h2 {
  color: hsl(35, 77%, 62%);
  margin-bottom: 1rem;
}
.showcase > div:last-child article {
  padding: 1.25rem 0;
}
.showcase > div:last-child article:not(:last-child) {
  border-bottom: 1px solid hsl(236, 13%, 42%);
}
.showcase > div:last-child h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.showcase > div:last-child h3:hover {
  color: hsl(35, 77%, 62%);
  cursor: pointer;
}
.cards {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}
.cards article {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cards article img {
  width: 150px;
}
.cards article span {
  color: hsl(236, 13%, 42%);
  font-weight: bold;
  font-size: 2rem;
  opacity: 75%;
}
.cards article span h4 {
  font-size: 1.25rem;
  color: hsl(240, 100%, 5%);
  margin: 1rem 0;
}
.attribution {
  text-align: center;
  font-size: 12px;
  margin-top: 2rem;
}
.attribution a {
  text-decoration: none;
}
@media (min-width: 768px) {
  .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 2rem 1.25rem;
  }
  .header nav {
    opacity: 1;
    z-index: auto;
    width: 100%;
  }
  .header nav.open {
    position: relative;
    width: auto;
    background-color: transparent;
    padding: 0;
    z-index: auto;
  }
  .header nav #menu-close {
    display: none;
  }
  .header nav ul {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    top: 0;
    transform: translateY(0%);
  }
  .header nav ul li {
    margin: 0;
  }
  .header .menu-button button {
    display: none;
  }
  .showcase {
    display: flex;
    gap: 2rem;
  }
  .showcase h1 {
    font-size: 3rem;
  }
  .showcase > div:first-child article {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    place-items: center;
    margin-top: 2rem;
  }
  .showcase > div:last-child {
    margin-top: 0;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
