* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;

  --very-dark-grayish-blue: hsl(217, 19%, 35%);
  --desaturated-dark-blue: hsl(214, 17%, 51%);
  --grayish-blue: hsl(213, 23%, 69%);
  --light-grayish-blue: hsl(210, 46%, 95%);
  --white: hsl(0, 0%, 100%);
}

body {
  font-size: 1.3rem;
  font-family: "Manrope", serif;
  background-color: var(--light-grayish-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#app {
  background-color: var(--white);
  max-width: 500px;
  margin: 2rem;
}

img {
  max-width: 100%;
}

.banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

#app {
  border-radius: 1rem;
}

#card-banner,
.banner-img {
  border-radius: 1rem 1rem 0 0;
}

#card-info {
  border-radius: 0 0 1rem 1rem;
  padding: 4rem 3.9rem 0;
}

#card-info > p {
  margin-top: 2rem;
  line-height: 150%;
}

h2,
h3 {
  font-weight: 700;
  color: var(--very-dark-grayish-blue);
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

#card-info p {
  font-weight: 500;
  color: var(--desaturated-dark-blue);
  margin-bottom: 2rem;
}

.author-info span {
  font-weight: 500;
  color: var(--grayish-blue);
}

#share-button {
  border: none;
  padding: 0.8rem;
  border-radius: 50%;
  background-color: var(--light-grayish-blue);
}

#share-button:hover {
  cursor: pointer;
  background-color: var(--grayish-blue);
}

.card-author,
.share-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-author {
  z-index: 1;
  padding: 1rem 0;
}

.author-container,
.social-links {
  display: flex;
  gap: 1rem;
}

.author-container {
  align-items: center;
}

.share-links {
  position: absolute;
  transform: translate(-12%, -100%);
  height: 60px;
  width: 90%;
  background-color: var(--very-dark-grayish-blue);
  z-index: 2;
  padding: 1.4rem 2rem;
  border-radius: 0 0 1rem 1rem;
}

.share-links .social-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.social-links span {
  color: var(--grayish-blue);
  letter-spacing: 0.5rem;
}

#share-button {
  position: relative;
  z-index: 3;
}

.hidden {
  display: none;
}

@media (min-width: 1440px) {
  #app {
    display: flex;
    max-width: 720px;
  }

  .banner-img {
    height: 100%;
    width: 840px;
  }

  #card-banner,
  .banner-img {
    border-radius: 1rem 0 0 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .share-links {
    top: 57.5%;
    left: 65%;
    border-radius: 1rem;
    width: 15%;
  }

  .share-links a {
    width: 15px;
    height: 15px;
  }

  .share-container {
    position: relative;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
  }

  .share-container::after {
    content: "";
    position: absolute;
    bottom: -23px;
    left: 47%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--very-dark-grayish-blue) transparent transparent
      transparent;
  }
}
