@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --yellow: #f4d04e;
  --gray-950: #1f314f;
  --gray-500: #68778d;
  --white: #fff;
}
body {
  font-family: "Figtree", sans-serif;
  background-color: var(--yellow);
  color: var(--gray-950);
}
main {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: var(--white);
  width: 327px;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 10px 10px;
}
.card-img {
  width: 279px;
  border-radius: 20px;
}
.content {
  margin: 24px 0;
}

.badge-category {
  display: inline;
  background-color: var(--yellow);
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 950;
  font-size: 12px;
}
.publish-date {
  margin: 12px 0;
  font-size: 12px;
}

a:link,
a:visited,
a:hover,
a:active {
  color: unset;
}

.content a {
  text-decoration: none;
}
.content a:hover {
  color: var(--yellow);
}
h1 {
  margin: 0;
}
.title {
  font-size: 20px;
  font-weight: 950;
}
.description {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}
.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author img {
  width: 32px;
  height: 32px;
}

.author-name {
  font-size: 14px;
  font-weight: 950;
  color: var(--gray-950);
}

@media screen and (min-width:1440px) {
  .card {
    width: 384px;
  }

  .card-img {
    width: 336px;
  }
}
