:root {
  --primary-color: hsl(0, 0%, 7%);
  --secondary-color: hsl(0, 0%, 42%);
  --background-color: hsl(47, 88%, 63%);
  --container-color: hsl(0, 0%, 100%);
  --shadow-color: rgba(0, 0, 0, 1);
  --font-family: "Figtree", sans-serif;
  --font-size: 16px;
  --header-font-size: 22px;
  --paragraph-font-size: var(--font-size);
}

body {
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-size: var(--font-size);
  min-height: 98vh;
}

h1 {
  color: var(--primary-color);
  transition: color 0.2s ease;
  font-size: var(--header-font-size);
  margin-top: 20px;
  margin-bottom: 0;
}

h1:hover {
  color: var(--background-color);
  cursor: pointer;
}

p {
  color: var(--secondary-color);
  font-size: var(--paragraph-font-size);
  margin-bottom: 0;
}

.card__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.card {
  background-color: var(--container-color);
  box-shadow: 10px 10px 0px var(--shadow-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--shadow-color);
  border-radius: 20px;
  max-width: 320px;
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.card__category {
  display: inline-block;
  color: var(--primary-color);
  background-color: var(--background-color);
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.card__text {
  line-height: 1.5;
}

.card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.card__author-image {
  width: 30px;
  height: 30px;
}

.card__author-text {
  font-size: 12px;
  font-weight: 900;
}
