/* ==========================================================================
   Homepage
   ========================================================================== */

/* Global styles
   ========================================================================== */

html {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

p {
  line-height: 145%;
}

a {
  color: #777;
}

nav a {
  color: #777;
}

a:hover {
  color: #000;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  align-self: center;
  background-color: #f0f0f0;
  color: #000;
  font-family: lato, Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  margin: 0 auto;
}

/* Page header block
   ========================================================================== */

.page-header {
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #e2e2e2;
  display: flex;
  height: 28px;
  justify-content: space-between;
  margin: 0 auto;
  min-width: 940px;
  padding: 30px;
  width: 100%;
}

/* Page header inline
   ========================================================================== */

h1 {
  color: #2e2e2e;
  font-size: 24px;
  margin-bottom: 0;
  margin-left: 25px;
  margin-top: 0;
  padding: 0;
  text-align: left;
}

/* Navigation bar
========================================================================== */
.nav-box {
  align-items: center;
  display: flex;
}

nav ul {
  display: flex;
  font-size: 14px;
  gap: 20px;
  list-style: none;
  margin-left: 25px;
  padding: 0;
}

nav a:hover {
  color: #000;
}

/* Page content
========================================================================== */

/* page content display
========================================================================== */

main {
  align-self: center;
  background-color: #f0f0f0;
  box-sizing: border-box;
  height: 1096px;
  margin: 0 auto;
  padding: 30px;
  width: 940px;
}

.page-layout {
  display: flex;
  gap: 30px;
}

.biography {
  flex-shrink: 0;
  height: 559px;
  padding: 20px;
  width: 168px;
}

.articles {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 30px;
}

.boxes {
  align-items: flex-start;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  gap: 30px;
  padding: 20px;
}

/* articles display
========================================================================== */

.article {
  align-items: flex-start;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

/* Articles text
========================================================================== */

.article-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.articles-header h2 {
  border-radius: 5px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.article-img {
  border-radius: 5px;
  flex-shrink: 0;
  height: 180px;
  object-fit: cover;
  width: 180px;
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.article-meta {
  color: #777;
  font-size: 14px;
  margin: 0 0 12px;
}

.article-text {
  color: #000;
  font-size: 14px;
  line-height: 1.45;
}

.article-footer {
}

/* Page footer
   ========================================================================== */

.page-footer {
  background-color: #000;
  height: 16px;
  margin: 0 auto;
  max-width: 100%;
  min-width: 1000px;
  padding: 30px;
  text-align: center;
  width: 940px;
}

/* Page footer
   ========================================================================== */
.page-footer-text {
  color: #fff;
}

/* ==========================================================================
   Special media query for the main logo
   ========================================================================== */

@media screen and (width <= 440px) {
  header img {
    height: auto;
    width: 100%;
  }
}
