* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Figtree", sans-serif;
  background-color: hsl(47, 88%, 63%);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 50px;
}

.card {
  max-width: 335px;
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
  border: 1px solid hsl(0, 0%, 7%);
  box-shadow: 8px 8px 0px 0px hsl(0, 0%, 7%);
  padding-left: 25px;
  padding-right: 25px;
  width: 90%;
}
.card-image-container {
  width: 100%;
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
}
.card-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

#category {
  font-size: 13px;
  font-weight: 800;
  background-color: hsl(47, 88%, 63%);
  margin-top: 25px;
  padding: 6px 12px;
  width: fit-content;
  border-radius: 4px;
}

#date {
  font-weight: 800;
  font-size: 14px;
  color: hsl(0, 0%, 42%);
}

#title {
  font-size: 24px;
  font-weight: 800;
  width: fit-content;
}

#title:hover {
  color: hsl(47, 88%, 63%);
  cursor: pointer;
}

#description {
  font-size: 16px;
  font-weight: 500;
  color: hsl(0, 0%, 42%);
  line-height: 1.5;
}

.author {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  margin-top: 20px;
}

#author-image {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
#author-name {
  font-weight: 800;
  font-size: 15px;
}

.attribution {
  font-size: 0.6875rem;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 768px) {
  .card {
    max-width: 384px;
  }
  .card-image {
    height: auto;
    object-fit: fill;
  }
}
