.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}


body {
  margin: 20px;
  background-color: #bdb;
}

header, footer, section {
  background-color: #dfd;
}

header, footer, .content {
  width: 100%;
}

footer {
  position: absolute;
  bottom: 0
}


header, section {
    margin-block-end: 10px;
    padding: 5px;
}


.articles {
  display: grid;
  grid-template-columns: 400px 400px 400px;
}

.content {
  display: flex;
  justify-content: space-between;
}

.aside {
  width: 400px;
  height: 600px;
}

.articles section {
  margin-block-end: 10px;
  height: 250px;
  overflow: hidden;
}

.article .img-link {
  display: inline-block;
  height: 150px;
  width: 380px;
  overflow: hidden;
}

.article a {
  text-decoration: none;
  color: black;
}

.article a:hover {
  color: red;
}

.article > a > img {
  width: 390px;
}

.article h2, .article p  {
  margin: 0;
}

.articles section:not(:nth-child(3n)) {
  margin-inline-end: 10px;
}
