@font-face {
  font-family: 'Inter';
  src: url(assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Inter';
  position: relative;
}

svg {
  cursor: pointer;
}

p, li {
  color: hsl(236, 13%, 42%);
  font-size: 15px;
  line-height: 1.8em;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 1.2em;
  margin-bottom: .5em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .3s;
}
a:hover {
  color: hsl(35, 77%, 62%);
}

.blackout {
  display: none;
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0, 0, 0, .5);
  z-index: 1;
}

.close-sidebar {
  position: fixed;
  right: 1.5em;
  top: 1.5em;
  cursor: pointer;
  z-index: 1;
}

.sidebar {
  position: fixed;
  right: 0;
  height: 100vh;
  width: 70vw;
  background-color: hsl(36, 100%, 99%);
  padding: 8em 2em;
}

.sidebar ul li {
  font-size: 1em;
  line-height: 2.8em;
  color: hsl(240, 100%, 5%);
  font-weight: 500;
}

.container {
  padding: 8vh 12vw;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5em;
}

header svg {
  display: none;
}

nav {
  width: 40%;
  padding: 0 1em;
}

nav ul {
  display: flex;
  justify-content: space-between;
}

ul li {
  list-style: none;
}

main {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2.5em;
}

.emphasis {
  max-width: 66%;
}

.image {
  background: url('assets/images/image-web-3-desktop.jpg') no-repeat;
  background-size: cover;
  margin-bottom: 2em;
  max-width: 100%;
  height: 250px;
}

section {
  display: flex;
  justify-content: space-between;
}

section h1 {
  width: 45%;
  font-size: 3.5em;
  font-weight: 800;
  line-height: 1em;
  color: hsl(240, 100%, 5%);
}

section article {
  width: 50%;
  padding: 0 .8em;
}

button {
  border: 1px solid transparent;
  padding: 1.2em 2em;
  margin-top: 2em;
  background-color: hsl(5, 85%, 63%);
  color: hsl(36, 100%, 99%);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .4em;
  transition: .3s;
}
button:hover {
  background-color: hsl(240, 100%, 5%);
}

aside {
  background-color: hsl(240, 100%, 5%);
  color: hsl(36, 100%, 99%);
  padding: 1.5em 1em;
  width: 32%;
}

aside h2 {
  color: hsl(35, 77%, 62%);
}

aside article{
  border-bottom: .1em solid hsl(233, 8%, 79%);
  padding: 1.2em 0;
}
aside article:nth-last-child(1) {
  border: none;
}

footer {
  display: flex;
  justify-content: space-between;
}

footer article {
  width: 32%;
  display: flex;
  gap: 1.5em;
}

footer img {
  width: 27%;
}

footer h2 {
  font-size: 2em;
  color: hsl(233, 8%, 79%);
  margin-bottom: .4em;
}

footer h3 {
  font-size: 1.1em;
  font-weight: 800;
  margin-bottom: .5em;
  color: hsl(240, 100%, 5%);
}

.show {
  display: block;
}

@media screen and (max-width: 375px){
  .container {
    padding: 5vh 5vw;
  }

  header {
    margin-bottom: 1.5em;
  }

  header img {
    height: 30px;
  }

  nav {
    display: none;
  }

  header svg {
    display: block;
  }

  main {
    flex-direction: column;
  }

  .emphasis {
    max-width: 100%;
  }

  .image {
    background: url('assets/images/image-web-3-mobile.jpg') no-repeat;
    background-size: cover;
    height: 280px;
  }

  section {
    flex-direction: column;
  }

  section h1 {
    width: 100%;
    font-size: 2.5em;
    margin-bottom: .5em;
  }

  section article {
    width: 100%;
    padding: 0;
    margin-bottom: 4em;
  }

  aside {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }

  footer article {
    width: 100%;
    margin-bottom: 2em;
  }
}