*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-family: 'Manrope';
}

p {
  text-wrap: pretty;
}
:root {
  --very-dark-grayish-blue: hsl(217, 19%, 35%);
  --desaturated-dark-blue: hsl(214, 17%, 51%);
  --grayish-blue: hsl(212, 23%, 69%);
  --light-grayish-blue: hsl(210, 46%, 95%);
}

body {
  background-color: var(--light-grayish-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main-container {
  max-width: 25.1rem;
  max-height: 41.3rem;
  background-color: white;
  border-radius: 0.75rem;
}
.drawer-img {
  width: 100%;
  height: 15.3rem;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}
.article-info-container {
  padding: 2.4rem 2.6rem 0 2.6rem;
  h2 {
    color: var(--very-dark-grayish-blue);
    font-size: 1.5rem;
    line-height: 130%;
    margin-bottom: 1.8rem;
    font-weight: 700;
  }
  p {
    font-size: 1rem;
    color: var(--desaturated-dark-blue);
    line-height: 140%;
    font-weight: 500;
  }
}

.profile-container {
  margin-top: 2.3rem;
}
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 2.6rem 1.3rem 2.6rem;
}
.about {
  display: flex;
  align-items: center;
  gap: 1.23rem;

  img {
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
  }
  p {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--very-dark-grayish-blue);
    font-weight: 700;
    span {
      font-weight: 500;
      color: var(--grayish-blue);
    }
  }
}
.share-icon-profile {
  max-width: 2.5rem;
  max-height: 2.5rem;
  padding: 0.65rem;
  border-radius: 50%;
  background-color: var(--light-grayish-blue);
  border: none;
}
.share-icon-profile:hover {
  background-color: var(--desaturated-dark-blue);
  cursor: pointer;
  svg path {
    fill: white;
  }
}

.profile-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 2.6rem 1.3rem 2.6rem;
  background-color: var(--very-dark-grayish-blue);
  border-radius: 0 0 0.7rem 0.7rem;
  position: relative;
  bottom: 66.28px;
}
.links {
  display: flex;
  align-items: center;
  gap: 1.15rem;

  p {
    font-size: 1rem;
    color: var(--grayish-blue);
    text-transform: uppercase;
    letter-spacing: 0.25rem;
  }
  img {
    width: 1.5rem;
    height: 1.5rem;
  }
}
.share-icon-links {
  max-width: 2.5rem;
  max-height: 2.5rem;
  padding: 0.65rem;
  border-radius: 50%;
  background-color: var(--desaturated-dark-blue);
  border: none;
  svg path {
    fill: white;
  }
}
.share-icon-links:hover {
  cursor: pointer;
  background-color: var(--light-grayish-blue);
  svg path {
    fill: #6e8098;
  }
}
.hidden {
  display: none;
}

.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 1rem;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media only screen and (min-width: 50rem) {
  .main-container {
    display: flex;
    max-width: 56.15rem;
    max-height: 21.5rem;
  }
  .drawer-img {
    width: 21.9rem;
    height: 21.5rem;
    border-radius: 0.75rem 0 0 0.75rem;
  }
  .article-info-container {
    padding: 2.3rem 3rem 0 3rem;
    margin-bottom: 1.8rem;
  }
  .profile-container {
    margin-top: 0;
  }
  .profile {
    padding: 0 3rem 2.3rem 3rem;
  }
  .about {
    p {
      font-size: 1rem;
    }
  }
  .profile-links {
    max-width: 19rem;
    max-height: 4.2rem;
    border-radius: 0.7rem;
    position: relative;
    left: 20.5rem;
    bottom: 11rem;
    justify-content: none;
    box-shadow: 0 0.6rem 2rem rgba(158, 175, 194, 60%);
  }
  .profile-links::after {
    content: ' ';
    position: absolute;
    left: 45%;
    top: 4rem;
    border: solid;
    border-color: var(--very-dark-grayish-blue) transparent transparent
      transparent;
    border-width: 1rem;
  }
  .links {
    gap: 1.5rem;
  }
  .share-icon-links {
    position: relative;
    top: 5.1rem;
    right: 7.7rem;
  }
}
