* {
  box-sizing: border-box;
}

body {
  font-family: "Figtree", sans-serif;
  margin: 0;
  padding: 0;
}

p {
  font-size: 16px;
  font-weight: 400;
  color: hsl(0, 0%, 42%);
}

h2 {
  font-weight: 800;
  font-size: 22px;
  margin: 1rem 0;
}

.container {
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(47, 88%, 63%);
}

.card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid black;
  padding: 1.25rem;
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
  box-shadow: 8px 8px hsla(0, 0%, 7%, 1);
}

.content {
  display: block;
}

.preview-image {
  width: 100%;
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 10px;
}

.pill {
  display: inline-block;
  background-color: hsl(47, 88%, 63%);
  padding: 4px 12px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 1rem;
}

.date {
  font-size: 14px;
  color: hsl(0, 0%, 7%);
}

.description {
  color: hsl(0, 0%, 42%);
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.author {
  display: flex;
  align-items: center;
  margin-bottom: 0
}

.avatar {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  display: block;
}

.authorname {
  margin: 0;
  padding: 0;
  font-weight: 800;
  color: hsl(0, 0%, 7%);
  font-size: 14px;
}

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

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