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

:root {
  --primary-color: hsl(47, 88%, 63%);
  --secondary-color: hsl(0, 0%, 7%);
  --grey: hsl(0, 0%, 42%);
  --white: hsl(0, 0%, 100%);
}

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

body {
  font-family: 'Figtree', sans-serif;
}

.container {
  height: 100vh;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1.2em;
  width: clamp(330px, 30%, 400px);
  border-radius: 20px;
  border: 2px solid var(--secondary-color);
  box-shadow: 7px 7px 0 rgba(0, 0, 0);
}

#card-img {
  border-radius: 10px;
  margin-bottom: 20px;
}

#label {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.3em 0.6em;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 2px;
  margin-bottom: 10px;
}

#date {
  font-size: 0.875rem;
  margin-bottom: 10px;
}

#label,
#title,
#description,
#date {
  display: inline-block;
  width: fit-content;
}

#title {
  font-weight: 800;
  margin-bottom: 10px;
  transition: all 0.4s ease-in-out;
}

#title:hover {
  color: var(--primary-color);
  cursor: pointer;
}

#description {
  color: var(--grey);
  font-weight: 500;
  margin-bottom: 20px;
  width: 100%;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
}

#author-img {
  width: 10%;
}

#author-name {
  font-weight: 800;
}
