@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
}

body {
  padding: 5%;
  position: relative;
}

#dark-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 26, 0.4);
}

header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 3% 0 10% 0;
}

header #logo {
  height: 2em;
}

header #mobile-hamburger-icon {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 3.5em;
  height: 1.5em;
  background: url(/assets/img/icon-menu.svg) center center/cover;
  cursor: pointer;
  z-index: 11;
}

header #mobile-hamburger-icon:checked {
  background: url(/assets/img/icon-menu-close.svg) center center/cover;
  width: 2.6em;
  height: 2em;
}

header #mobile-hamburger-icon:checked ~ nav {
  right: 0;
  -webkit-transition: right 200ms ease;
  transition: right 200ms ease;
}

header #mobile-hamburger-icon:checked + #dark-overlay {
  display: block;
}

header nav {
  position: fixed;
  background-color: white;
  width: 70vw;
  height: 100vh;
  top: 0;
  right: -100%;
  z-index: 10;
  -webkit-transition: right 200ms ease;
  transition: right 200ms ease;
}

header nav ul {
  list-style: none;
  margin-top: 55%;
  padding-left: 10%;
}

header nav li {
  margin-bottom: 1.6em;
}

header nav li a {
  text-decoration: none;
  color: #00001a;
  font-size: 1.3em;
}

p {
  color: #5d5f79;
  line-height: 1.6em;
  font-size: 1em;
}

#primary-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

#hero {
  margin-bottom: 4em;
}

#hero #hero-img {
  width: 100%;
  height: 45vh;
  margin-bottom: 1.1em;
  background: url(/assets/img/image-web-3-mobile.jpg) center center/cover no-repeat;
}

#hero h1 {
  color: #00001a;
  font-size: 2.8em;
  font-weight: 800;
  line-height: 1.1em;
  margin-bottom: .4em;
}

#hero p {
  margin-bottom: 2em;
}

#hero button {
  background-color: #f15e50;
  padding: 1.2em 2.5em;
  border: none;
  cursor: pointer;
}

#hero button a {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: white;
  letter-spacing: .3em;
  text-decoration: none;
  text-transform: uppercase;
}

#new-articles-list {
  display: block;
  width: 100%;
  padding: 8% 6%;
  background-color: #00001a;
  color: white;
  margin-bottom: 4em;
}

#new-articles-list h2 {
  color: #e9ab53;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 1em;
}

#new-articles-list p {
  color: #fffdfa;
}

#new-articles-list .article:not(:last-child) {
  padding-bottom: 2em;
}

#new-articles-list .article + .article {
  border-top: solid #5d5f79 1px;
  padding-top: 2em;
}

#new-articles-list .article-title {
  font-weight: 700;
  font-size: 1.4em;
  margin-bottom: .8em;
}

#new-articles-list li {
  list-style: none;
}

#featured-articles .article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 9em;
  margin-bottom: 2.5em;
}

#featured-articles img {
  height: 100%;
  padding-right: 1.2em;
}

#featured-articles .article-info {
  padding: .5% 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  height: 100%;
}

#featured-articles .article-number {
  color: #c5c6ce;
  font-size: 2em;
  font-weight: 700;
}

#featured-articles .article-title {
  font-size: 1.2em;
  font-weight: 700;
}

.attribution {
  font-size: 11px;
  text-align: center;
  padding: 15px;
}

.attribution a {
  color: #3e52a3;
  text-decoration: none;
}

@media screen and (min-width: 1200px) {
  body {
    padding: 2% 12%;
  }
  header {
    padding-bottom: 4em;
  }
  header #logo {
    height: 3em;
  }
  header #mobile-hamburger-icon {
    display: none;
  }
  header nav {
    position: relative;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    height: auto;
    width: auto;
    top: auto;
    right: auto;
  }
  header nav ul {
    margin-top: 0;
    padding-left: 0;
  }
  header nav li {
    display: inline-block;
    margin-bottom: 0;
    margin-left: 2em;
  }
  header nav li a {
    color: #5d5f79;
    font-size: 1em;
  }
  header nav li a:hover {
    color: #f15e50;
  }
  p {
    font-size: 1.1em;
  }
  #primary-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 3%;
    margin-bottom: 8em;
  }
  #hero {
    -webkit-box-flex: 5;
        -ms-flex: 5;
            flex: 5;
    margin-bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  #hero #hero-img {
    height: 55%;
    width: 100%;
    margin: 0;
    background: url(/assets/img/image-web-3-desktop.jpg) center center/cover no-repeat;
    -webkit-box-flex: 2;
        -ms-flex: 2;
            flex: 2;
  }
  #hero #hero-txt-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8%;
    padding-top: 4%;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  #hero h1 {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    font-size: 4em;
    margin: 0;
  }
  #hero p {
    margin: 0;
  }
  #hero #hero-blurb {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    height: 100%;
  }
  #hero button {
    padding: 1.4em 3em;
    -ms-flex-item-align: start;
        align-self: flex-start;
  }
  #hero button:hover {
    background-color: #00001a;
  }
  #new-articles-list {
    -webkit-box-flex: 2;
        -ms-flex: 2;
            flex: 2;
    padding: 3% 2%;
    margin: 0;
  }
  #new-articles-list .article-title:hover {
    color: #e9ab53;
    cursor: pointer;
  }
  #featured-articles {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 3%;
            column-gap: 3%;
    margin-bottom: 5em;
  }
  #featured-articles > * {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  #featured-articles .article-title:hover {
    color: #f15e50;
    cursor: pointer;
  }
}
