@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;800&family=VT323&display=swap');

html, body
{
  margin: 0;
  font-family: "Poppins";
  background: #d1dedd;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

h2, h3
{
  color: #767f7e;
}

h1
{
  color: #a8a8a8
}

p
{
  color: #828b8a;
}

nav
{
  align-content: center;
}

.title
{
  text-align: center;
  font-size: 3rem;
}

nav ul
{
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}


nav ul li
{
  display: inline-block;
}

nav ul li a
{
  display: block;
  padding: 0.875rem 1rem;
  text-decoration: none;
  font-size: 1.5rem;
  color: #a8a8a8;
  transition: border-bottom 0.1s ease-in-out;
}

nav a:hover
{

  border-bottom: 0.1875rem solid;
}

.grid-menu
{
  display: grid;
  grid-template-columns: 0.5fr 1fr 3fr;
  grid-template-rows: 1fr;
  width: 100%;
  margin: 0;
  position: sticky;
  top: 0;
  background: #03292b;
  justify-items: center;
  align-items: center;
  border-bottom: 1px solid white;
}

.grid-menu img
{
  width: 50%;
  height: 100%;
  object-fit: cover;
}

/* Main grid*/
.grid-container
{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3.75rem;
  max-width: 1200px;
  margin: 1.25rem auto;
}

article img, article.head-article img
{
  width: 100%;
  border: 0.25rem solid white;
  border-radius: 0.5rem;
}

article.head-article
{
  grid-column: span 3;
  /* nested grid */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3.75rem;
  align-items: center;
  border-bottom: 1px solid #bbc7c7;
  padding-bottom: 2.5rem;
}

article p, article h3, article.head-article h2
{
  margin: 1.25rem 0.625rem;
}

footer
{
  width: 100%;
  border-top: 1px solid #bbc7c7;
  position: sticky;
  bottom: 0;
  background: #03292b;
  text-align: center;
  color: #a8a8a8;
  padding-bottom: 0.0313rem;
  border-top: 1px solid white;

}

@media screen and (max-width:1400px)
{
  article 
  {
    display: grid;
    grid-column: span 3;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    align-items: center;
  }
  .grid-menu 
  {
    display: grid;
    grid-template-columns: 1fr 3fr;
  }
  .grid-menu img {
    display: none;
  }
}
@media screen and (max-width:980px) 
{
  .title {
    display: none;
  }
  .grid-container { margin:
    6.25rem auto;
  }
  .grid-menu {
    display: grid;
    grid-template-columns: 1fr;
    position:fixed
  }
  article,article.head-article {
    display: block;
    margin: 0 1.25rem;
  }
    nav ul li a
  {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    font-size: 0.7rem;
    color: #a8a8a8;
    transition: border-bottom 0.1s ease-in-out;
  }
  footer {
    position: fixed;
  }
}