/*
  (Suggestion) Use a top-down approach when applying CSS:
  1. Lay out the top-level elements: <header>, <main>, <footer>
  2. Lay out the articles within <main>
  3. Style individual elements
*/

 :root {
   --grey-dark: #292b2c;
   --grey-light: #e4e4e4;
   --white: #fff;
 }

body {
  margin: 0;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  color: var(--grey-dark);
  font-size: 1rem;
}

h1,h2,h3,h4,h5,h6 {
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

.header,
.main,
.footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}


/* Header */

.header {
  align-items: center;
}


/* Main */

.main {
  margin-bottom: 3rem;
}


/* Session */

.content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* Article */

.article {
  border-style: solid;
  border-width: medium;
  border-color: var(--grey-light);
  padding: 1rem;
  flex: 1;
}

.article img {
  width: 100%;
}

.article h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.article p {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.article a {
  background-color: var(--grey-light);
  color: var(--grey-dark);
  border-style: solid;
  border-width: 1px;
  border-color: var(--grey-dark);
  border-radius: 4px;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.article a:hover {
  background-color: var(--grey-dark);
  color: var(--grey-light);
  border-color: var(--grey-light);
}


/* Footer */

.footer {
  background-color: var(--white);
  border-top: 2px solid var(--grey-dark);
  text-align: center;
  font-size: 0.85rem;
  position: fixed;
  bottom: 0;
  min-width: 100%;
}


/* Media queries */

@media screen and (min-width: 992px) {
  .content {
    flex-direction: row;
  }

  .main {
    padding-right: 2rem;
  }
}