@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

:root {
  --Soft-orange: hsl(35, 77%, 62%);
  --Soft-red: hsl(5, 85%, 63%);

  --Off-white: hsl(36, 100%, 99%);
  --Grayish-blue: hsl(233, 8%, 79%);
  --Dark-grayish-blue: hsl(236, 13%, 42%);
  --Very-dark-blue: hsl(240, 100%, 5%);
}

html {
  box-sizing: border-box;
  font-size: 16px;
}

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

body {
  margin: clamp(1.5rem, 4vh, 5rem) auto auto;
  padding: 0 1rem;
  max-width: 70rem;
  font-family: 'Inter', sans-serif;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 700;
}

p {
  font-size: 15px;
  font-weight: 400;
}

.header {
  display: flex;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.header__logo {
  margin: auto auto auto 0;
}

.header__menu {
  margin: auto 0 auto auto
}

.header__nav ul {
  margin-top: 0;
  margin-bottom: 0;
}

.header__nav li {
  list-style: none;
}

.header__nav a {
  text-decoration: none;
  color: var(--Very-dark-blue);
}

.header__nav a:hover {
  color: var(--Soft-orange);
}

.article__image {
  width: 100%;
}

.article h1 {
  font-size: 3rem;
  color: var(--Very-dark-blue);
}

.article p {
  line-height: 1.5rem;
  color: var(--Dark-grayish-blue);
}

.article button {
  width: 11.5rem;
  height: 3rem;
  border: none;
  background-color: var(--Soft-red);
  color: var(--Off-white);
  letter-spacing: .25rem;
  text-transform: uppercase
}

.article button:hover {
  cursor: pointer;
  background-color: var(--Very-dark-blue);
}

.aside {
  background-color: var(--Very-dark-blue);
  padding: 1rem;
}

.aside h2 {
  color: var(--Soft-orange);
}

.aside a {
  color: var(--Off-white);
  font-weight: 700;
  text-decoration: none;
}

.aside a:hover {
  color: var(--Soft-orange);
}

.aside p {
  color: var(--Grayish-blue);
}

.aside p::after {
  background-color: var(--Dark-grayish-blue);
  display: block;
  width: 100%;
  height: 2px;
  content: '';
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.section {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.section img {
  height: 8rem;
  /* margin-top: auto; */
  margin-bottom: auto;
}

.section h2 {
  color: var(--Grayish-blue);
  margin-top: 0;
}

.section a {
  color: var(--Very-dark-blue);
  font-weight: 700;
  text-decoration: none;
}

.section a:hover {
  color: var(--Soft-orange);
}

.section p {
  color: var(--Dark-grayish-blue);
}

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

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width:800px) {
  .logo {
    display: flex;
    width: 100%;
  }

  .header__nav.header__nav--opened {
    display: block;
  }

  .header__nav {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    background-color: var(--Off-white);
    text-align: right;
    max-width: 16rem;
    width: 100%;
  }

  .header__close {
    margin: clamp(1.5rem, 4vh, 5rem) 1rem 5.5rem;
  }

  .header__nav ul {
    padding: 0;
    margin-left: 1.5rem;
  }

  .header__nav li {
    margin-bottom: 2rem;
    text-align: left;
  }

  .article__image {
    content: url(assets/images/image-web-3-mobile.jpg);
  }

  .aside {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

@media (min-width:800px) {

  .header__menu,
  .header__close {
    display: none;
  }

  .header__nav {
    margin-left: auto;
    margin-top: auto;
    margin-bottom: auto;
  }

  .header__nav ul {
    display: flex;
  }

  .header__nav li {
    margin-left: 2.5rem;
  }

  .main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .article {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: max-content auto;
    gap: 2rem;
  }

  .article>* {
    margin: auto;
  }

  .article__image {
    grid-column: span 2;
  }

  .article h1 {
    font-size: 3.5rem;
  }

  .aside {
    margin-top: 0;
  }
}