@font-face {
  font-family: 'figtreelight';
  src: url('assets/fonts/figtree-variablefont_wght-webfont.woff2') format('woff2'),
       url('assets/fonts/figtree-variablefont_wght-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'figtreebold';
  src: url('assets/fonts/static/Figtree-ExtraBold.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
}

:root {
  --yellow: #F4D04E;
  --gray-500: #6B6B6B;
  --gray-950: #111111;
  --white: #FFFFFF;
  --spacing-50: 4px;
  --spacing-100: 8px;
  --spacing-150: 12px;
  --spacing-200: 24px;
  --text-large: 1.5rem;
  --text-medium: 1rem;
  --text-small: 0.875rem;
}  

body {
  font-family: 'figtreelight';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 10px;
  background-color: var(--yellow);
  color: var(--gray-950);
}

.container {
  max-width: 432px;
  padding-inline: var(--spacing-200);
  margin-inline: auto;
}

.card {
  background-color: var(--white);
  box-shadow: 8px 8px 0 0 black;
  border-radius: 20px;
  padding: var(--spacing-200);
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--spacing-200);
}

.background-image {
  width: 100%;
  height: 201px;
  background-image: url('assets/images/illustration-article.svg');
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
}

.content {
  display: flex;
  flex-direction: column;
  row-gap: var(--spacing-150);
}

.category {
  background-color: var(--yellow);
  border-radius: 4px;
  padding-inline: var(--spacing-150);
  padding-block: var(--spacing-50);
  font-size: var(--text-small);
  font-weight: bold;
  font-family: 'figtreebold';
}

.published {
  font-size: var(--text-small);
}

.title {
  font-size: var(--text-large);
  font-family: 'figtreebold';
}

.title:hover {
  color: var(--yellow);
  cursor: pointer;
}

.description {
  color: var(--gray-500);
}

.author {
  display: flex;
  align-items: center;
  column-gap: var(--spacing-150);
}

.author p {
  font-family: 'figtreebold';
  font-size: var(--text-small);
  font-weight: bold;
}

@media (max-width: 380px) {
  .title {
    font-size: 1.25rem;
  }

  .description {
    font-size: var(--text-small);
  }
}