body {
  max-width: 800px;
}

main {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  padding: 2rem 0.75rem;
}

main > div:first-of-type {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  column-gap: 1rem;
  align-items: center;
}

h3 {
  grid-column: span 3;
  text-align: start;
  letter-spacing: 0.3px;
}

a {
  grid-column: span 1;
}

img {
  width: 32px;
  padding: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease-in-out;
}
img:hover {
  background-color: var(--action-color);
}

main > div:last-of-type {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

@media screen and (min-width: 481px) {
  main > div:first-of-type {
    grid-template-columns: repeat(3, 1fr);
  }
  h3 {
    grid-column: span 2;
  }
}
