@font-face {
  font-family: 'Figtree';
  src: url('./assets/fonts/Figtree-VariableFont_wght.ttf')
    format('truetype-variations');
  font-weight: 100 900;
}

:root {
  /** Slate Colors */
  --gray-950: #111111;
  --gray-500: #6b6b6b;
  /* Yellow */
  --yellow: #f4d04e;

  /* White */
  --white: #ffffff;

  /** Spacing */
  --spacing-300: 2.4rem;
  --spacing-150: 1.2rem;
  --spacing-100: 0.8rem;
  --spacing-50: 0.4rem;
}

html {
  font-size: 62.5%;
}

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

/* Text Preset 1 - Figtree Extra Bold */
.text-preset-1 {
  font-family: 'Figtree';
  line-height: 150%;
  font-size: 2rem;
  font-weight: 800;
}

/* Text Preset 2 - Figtree Medium */
.text-preset-2 {
  font-family: 'Figtree';
  line-height: 150%;
  font-size: 1.4rem;
  font-weight: 500;
}

/* Text Preset 3 - Figtree Medium */
.text-preset-3 {
  font-family: 'Figtree';
  line-height: 150%;
  font-size: 1.4rem;
  font-weight: 500;
}

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

.card {
  max-width: 32.7rem;
  margin: 0 var(--spacing-150);
  display: flex;
  flex-direction: column;
  padding: var(--spacing-300);
  background-color: var(--white);
  border: 0.1rem solid var(--gray-950);
  border-radius: 1.6rem;
  box-shadow: 0.8rem 0.8rem 0rem var(--gray-950);
}

.card__image {
  width: 100%;
  height: 20rem;
  border-radius: 1rem;
  margin-bottom: var(--spacing-300);
}

.card__content {
  margin-bottom: var(--spacing-150);
}
.card_category {
  display: inline-block;
  padding: var(--spacing-50) var(--spacing-150);
  background-color: var(--yellow);
  margin-bottom: var(--spacing-150);
}

.card__title {
  margin-bottom: var(--spacing-150);
  color: var(--gray-950);
}

.card__description {
  margin-bottom: var(--spacing-300);
  color: var(--gray-500);
}

.card-publish-date {
  margin-bottom: var(--spacing-150);
}

.card__author {
  display: flex;
  align-items: center;
}

.card__avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  margin-right: var(--spacing-100);
}

.card__author-name {
  font-weight: 800;
  color: var(--gray-950);
}
@media screen and (min-width: 376px) {
  .card {
    max-width: 38.4rem;
    margin: 0;
  }

  .text-preset-1 {
    font-size: 2.4rem;
  }

  .text-preset-2 {
    font-size: 1.6rem;
  }
}
