/* =======================
==== DESKTOP LAYOUT ======
======================= */

html, body {
  overflow-x: hidden;
}

@media (width >= 1000px) {
body {
  background-color: #f0f0f0;
  color: black;
  font-family: Lato, sans-serif;
  font-size: 0.875rem;
  margin: 0;
  width: 100%;
}

.container {
  margin: 0 auto;
  width: 1000px;
}

/* == SITE HEADER == */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e2e2e2;
  padding: 13px;
  width: 100%;
}

.header-container {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 1000px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 30px;
}

/* stylelint-disable no-descending-specificity */

.nav {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
}

.nav a {
  color: #777;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: #000;
}

.nav li {
  position: relative;
}

.nav li:hover .submenu,
.nav li:focus-within .submenu {
  display: flex;
}

.nav ul {
  display: flex;
  gap: 0 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .submenu {
  background-color: transparent;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  left: auto;
  margin: 0;
  padding: 20px 0 0;
  position: absolute;
  right: 0;
  top: 100%;
  width: 240px;
  z-index: 10;
}

.nav .submenu li {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.nav .submenu li:first-child {
  border-radius: 6px 6px 0 0;
}

.nav .submenu li:last-child {
  border-bottom: 1px solid #e2e2e2;
  border-radius: 0 0 6px 6px;
}

.nav .submenu li a {
  box-sizing: border-box;
  color: #777;
  display: block;
  line-height: 1.4;
  padding: 10px 15px;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
}

.nav .submenu li a:hover {
  background-color: #f0f0f0;
  color: #000;
  cursor: pointer;
}

/* == SITE MAIN == */

.site-main {
  align-items: flex-start;
  background-color: #f0f0f0;
  border-top: 1px solid #e2e2e2;
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  padding: 30px;
}

/* == BIOGRAPHIE == */

.biography {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 20px;
  width: 210px;
}

.biography img {
  border-radius: 50%;
  display: block;
  height: 160px;
  margin: 0 auto 20px;
  object-fit: cover;
  width: 160px;
}

.biography h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
  text-align: left;
}

.biography p {
  line-height: 145%;
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: left;
}

.biography hr {
  border: none;
  border-top: 1px solid #e2e2e2;
  margin-bottom: 10px;
  margin-top: 10px;
}

/* == ARTICLES == */

.articles {
  align-items: flex-start;
  background-color: #f0f0f0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 30px;
  width: 670px;
}

.articles article {
  align-items: flex-start;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  overflow: hidden;
  padding: 20px;
  width: 100%;
}

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

.articles article h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.articles article p {
  line-height: 145%;
  margin-bottom: 10px;
  margin-top: 10px;
}

.articles article .meta {
  color: #777;
  font-size: 0.875rem;
}

.articles article a {
  color: #777;
  text-decoration: none;
}

.articles article a:hover {
  color: #000;
}

.articles article .content {
  flex: 1;
}

/* == SITE FOOTER == */

.site-footer {
  background-color: #000;
  box-sizing: border-box;
  color: #fff;
  margin: 0 auto;
  padding: 14px;
  text-align: center;
  width: 100%;
}

.footer-container {
  background-color: #000;
  width: 100%;
}
}



/* =======================
===== TABLET LAYOUT ======
======================= */

@media (width >=769px) and (width <= 999.5px)   {
  body {
    background-color: #f0f0f0;
    color: black;
    font-family: Lato, sans-serif;
    font-size: 0.875rem;
    margin: 0;
  }

  .container {
    margin: 0 auto;
  }

  /* == SITE HEADER == */

  .site-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e2e2;
    padding: 13px 0;

  }

  .header-container {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 30px;
  }

  .nav {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
  }

  .nav a {
    color: #777;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .nav a:hover {
    color: #000;
  }

  .nav li {
    position: relative;
  }

  .nav li:hover .submenu,
  .nav li:focus-within .submenu {
    display: flex;
  }

  .nav ul {
    display: flex;
    gap: 0 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav .submenu {
    background-color: transparent;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    left: auto;
    margin: 0;
    padding: 20px 0 0;
    position: absolute;
    right: 0;
    top: 100%;
    width: 240px;
    z-index: 10;
  }

  .nav .submenu li {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-bottom: none;
    margin: 0;
    padding: 0;
  }

  .nav .submenu li:first-child {
    border-radius: 6px 6px 0 0;
  }

  .nav .submenu li:last-child {
    border-bottom: 1px solid #e2e2e2;
    border-radius: 0 0 6px 6px;
  }

  .nav .submenu li a {
    box-sizing: border-box;
    color: #777;
    display: block;
    line-height: 1.4;
    padding: 10px 15px;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
  }

  .nav .submenu li a:hover {
    background-color: #f0f0f0;
    color: #000;
    cursor: pointer;
  }

  /* == SITE MAIN == */

  .site-main {
    align-items: flex-start;
    background-color: #f0f0f0;
    border-top: 1px solid #e2e2e2;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    padding: 30px;
  }

  /* == BIOGRAPHIE == */

  .biography {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    padding: 20px;
    width: 210px;
  }

  .biography img {
    border-radius: 50%;
    display: block;
    height: 160px;
    margin: 0 auto 20px;
    object-fit: cover;
    width: 160px;
  }

  .biography h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: left;
  }

  .biography p {
    line-height: 145%;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: left;
  }

  .biography hr {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  /* == ARTICLES == */

  .articles {
    align-items: flex-start;
    background-color: #f0f0f0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 30px;
  }

  .articles article {
    align-items: center;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    padding: 20px;
    width: 100%;
  }

  .articles article picture,
  .articles article img {
    border-radius: 5px;
    display: block;
    flex-shrink: 0;
    height: 180px;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
  }


  .articles article h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 10px;
  }

  .articles article p {
    line-height: 145%;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .articles article .meta {
    color: #777;
    font-size: 0.875rem;
  }

  .articles article a {
    color: #777;
    text-decoration: none;
  }

  .articles article a:hover {
    color: #000;
  }

  .articles article .content {
    flex: 1;
  }

  /* == SITE FOOTER == */

  .site-footer {
    background-color: #000;
    box-sizing: border-box;
    color: #fff;
    margin: 0 auto;
    padding: 14px;
    text-align: center;
    width: 100%;
  }

  .footer-container {
    background-color: #000;
    width: 100%;
  }
}



@media (width >=481px) and (width <= 768px)   {
  body {
    background-color: #f0f0f0;
    color: black;
    font-family: Lato, sans-serif;
    font-size: 0.875rem;
    margin: 0;
  }

  .container {
    margin: 0 auto;
  }

  /* == SITE HEADER == */

  .site-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e2e2;
    max-width: 768px;
    min-width: 481px;
    padding: 13px 0;

  }

  .header-container {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 30px;
  }

  .nav {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
  }

  .nav a {
    color: #777;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .nav a:hover {
    color: #000;
  }

  .nav li {
    position: relative;
  }

  .nav li:hover .submenu,
  .nav li:focus-within .submenu {
    display: flex;
  }

  .nav ul {
    display: flex;
    gap: 0 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav .submenu {
    background-color: transparent;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    left: auto;
    margin: 0;
    padding: 20px 0 0;
    position: absolute;
    right: 0;
    top: 100%;
    width: 240px;
    z-index: 10;
  }

  .nav .submenu li {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-bottom: none;
    margin: 0;
    padding: 0;
  }

  .nav .submenu li:first-child {
    border-radius: 6px 6px 0 0;
  }

  .nav .submenu li:last-child {
    border-bottom: 1px solid #e2e2e2;
    border-radius: 0 0 6px 6px;
  }

  .nav .submenu li a {
    box-sizing: border-box;
    color: #777;
    display: block;
    line-height: 1.4;
    padding: 10px 15px;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
  }

  .nav .submenu li a:hover {
    background-color: #f0f0f0;
    color: #000;
    cursor: pointer;
  }

  /* == SITE MAIN == */

  .site-main {
    align-items: center;
    background-color: #f0f0f0;
    border-top: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: flex-start;
    padding: 30px;
  }

  /* == BIOGRAPHIE == */

  .biography {
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    box-sizing: border-box;
    display: grid;
    gap: 20px;
    grid-template-columns: 160px 1fr;
    order: 2;
    padding: 20px;
    text-align: left;
    width: 100%;
  }

  .biography img {
    align-items: end;
    border-radius: 50%;
    flex-shrink: 0;
    height: 160px;
    margin-right: 20px;
    object-fit: cover;
    order: 1;
    width: 160px;
  }

  .biography .biography-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    grid-column-start: 2;
    justify-content: flex-start;
    order: 2;
  }

  .biography h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
  }

  .biography p {
    line-height: 145%;
    margin: 0;
  }

  .biography hr {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 10px 0;
  }




  /* == ARTICLES == */

  .articles {
    align-items: flex-start;
    background-color: #f0f0f0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 30px;
    order: 1;
    width: 100%;
  }

  .articles article {
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow: hidden;
    padding: 20px;
    width: 100%;
  }

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

  .articles article h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 10px;
  }

  .articles article p {
    line-height: 145%;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .articles article .meta {
    color: #777;
    font-size: 0.875rem;
  }

  .articles article a {
    color: #777;
    text-decoration: none;
  }

  .articles article a:hover {
    color: #000;
  }

  .articles article .content {
    flex: 1;
  }

  /* == SITE FOOTER == */

  .site-footer {
    background-color: #000;
    box-sizing: border-box;
    color: #fff;
    margin: 0 auto;
    padding: 14px;
    text-align: center;
    width: 100%;
  }

  .footer-container {
    background-color: #000;
    width: 100%;
  }
}


@media (width <=480px) {
  body {
    background-color: #f0f0f0;
    color: black;
    font-family: Lato, sans-serif;
    font-size: 0.875rem;
    margin: 0;
  }

  .container {
    margin: 0 auto;
  }

  /* == SITE HEADER == */
  .site-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e2e2;
    padding: 13px 0;

  }

  .header-container {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .nav {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .nav a {
    color: #777;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .nav a:hover {
    color: #000;
  }

  .nav li {
    position: relative;
  }

  .nav li:hover .submenu,
  .nav li:focus-within .submenu {
    display: flex;
  }

  .nav ul {
    display: flex;
    gap: 0 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav .submenu {
    background-color: transparent;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 20px 0 0;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    width: 240px;
    z-index: 10;
  }

  .nav .submenu li {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-bottom: none;
    margin: 0;
    padding: 0;
  }

  .nav .submenu li:first-child {
    border-radius: 6px 6px 0 0;
  }

  .nav .submenu li:last-child {
    border-bottom: 1px solid #e2e2e2;
    border-radius: 0 0 6px 6px;
  }

  .nav .submenu li a {
    box-sizing: border-box;
    color: #777;
    display: block;
    line-height: 1.4;
    padding: 10px 15px;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
  }

  .nav .submenu li a:hover {
    background-color: #f0f0f0;
    color: #000;
    cursor: pointer;
  }

  /* == SITE MAIN == */
  .site-main {
    align-items: center;
    background-color: #f0f0f0;
    border-top: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: flex-start;
    padding: 30px;
  }

  /* == BIOGRAPHIE == */


  .biography {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    gap: 30px;
    order: 2;
    width: 100%;
  }

  .biography img {
    border-radius: 50%;
    display: block;
    height: 160px;
    margin: 20px auto;
    object-fit: cover;
  }

  .biography h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 20px;
    text-align: left;
  }

  .biography p {
    line-height: 145%;
    margin: 20px;
    text-align: left;
  }

  .biography hr {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 20px
  }



  /* == ARTICLES == */
  .articles {
    align-items: flex-start;
    background-color: #f0f0f0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 30px;
    order: 1;
    width: 100%;
  }

  .articles article {
    align-items: center;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    padding: 20px;
    width: 100%;
  }

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

  .articles article h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 10px;
  }

  .articles article p {
    line-height: 145%;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .articles article .meta {
    color: #777;
    font-size: 0.875rem;
  }

  .articles article a {
    color: #777;
    text-decoration: none;
  }

  .articles article a:hover {
    color: #000;
  }

  .articles article .content {
    flex: 1;
  }


  /* == SITE FOOTER == */

  .site-footer {
    background-color: #000;
    box-sizing: border-box;
    color: #fff;
    margin: 0 auto;
    padding: 14px;
    text-align: center;
    width: 100%;
  }

  .footer-container {
    background-color: #000;
    width: 100%;
  }
}

