:root {
  --soft-orange: hsl(35, 77%, 62%);
  --soft-red: hsl(5, 85%, 63%);
  --off-white: hsl(36, 100%, 99%);
  --grayish-blue: hsl(233, 8%, 79%);
  --dark-grayish-blue: hsl(236, 13%, 42%);
  --very-dark-blue: hsl(240, 100%, 5%);

  --ff-base: "Inter", sans-serif;
  --fs-par: 15px;
  --fw-base: 400;
  --fw-semi-bold: 700;
  --fw-bold: 800;
}

body {
  font-family: var(--ff-base);
  background-color: var(--off-white);
}

.whole-website {
  margin: 50px;
}

header {
  padding: 0;
  margin: 0;
}

.logo {
  margin-right: auto;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topnav a {
  color: var(--dark-grayish-blue);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--soft-red);
}

.nav-list {
  overflow: hidden;
  display: flex;
  gap: 50px;
  justify-content: flex-end;
}

ul {
  list-style-type: none;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
}

.main-articles {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.computer-img {
  max-width: 100%;
  height: auto;
}

article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr 1fr;
  margin-top: 20px;
}

h1 {
  grid-row: span 2;
  color: var(--very-dark-blue);
  font-size: 40px;
  font-weight: var(--fw-bold);
}

article > p {
  color: var(--dark-grayish-blue);
  font-size: var(--fs-par);
  line-height: 1.8;
}

button {
  background-color: var(--soft-red);
  color: var(--very-dark-blue);
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  letter-spacing: 2px;

  max-width: 200px;
  max-height: 50px;
}

button:hover {
  background-color: var(--very-dark-blue);
  color: var(--off-white);
}

aside {
  background-color: var(--very-dark-blue);
  padding: 30px;
}

h2 {
  color: var(--soft-orange);
  font-size: 40px;
  margin: 0;
}

.article > a:active {
  color: var(--soft-orange);
  text-decoration: none;
}

.link-article {
  color: var(--off-white);
  font-weight: var(--fw-semi-bold);
  text-decoration: none;
}

.link-article:hover {
  color: var(--soft-orange);
}

.article > p {
  color: var(--dark-grayish-blue);
  font-size: var(--fs-par);
}

hr {
  border-color: var(--dark-grayish-blue);
  width: 100%;
}

.aside-articles {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bottom-articles {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 50px;
}

.smaller {
  display: flex;
  gap: 25px;
}

.smaller > img {
  max-width: 80%;
  height: auto;
}

.smaller > article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}

h4 {
  color: var(--soft-red);
  font-size: 40px;
  font-weight: var(--fw-bold);
  margin: 0;
  padding: 0;
}

h5 {
  color: var(--very-dark-blue);
  font-size: 20px;
  margin: 0;
  padding: 0;
}

h5:hover {
  color: var(--soft-red);
}

.smaller > p {
  color: var(--dark-grayish-blue);
  font-size: var(--fs-par);
}

@media (max-width: 768px) {
  .whole-website {
    margin: 15px;
  }

  .main-articles,
  .bottom-articles {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .mobile-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .big-article > article {
    display: flex;
    flex-direction: column;
  }

  button {
    min-height: 50px;
  }

  .aside-articles {
    padding: 15px;
  }

  .smaller {
    gap: 15px;
  }

  .smaller > img {
    max-width: 35%;
    height: auto;
  }

  h5 {
    font-size: 18px;
  }

  .nav .logo {
    z-index: 2;
  }

  .nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .hamburger-menu {
    display: block;
    z-index: 2;
  }

  .nav {
    position: absolute;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;

    padding-top: 100px;

    align-items: center;
    text-align: left;
  }

  .nav.active {
    background-color: var(--off-white);
    max-width: 250px;
    right: 0;
  }

  ::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    /* z-index: 1; */
  }
}
