/* Custom Properties */

:root {
  /* olors */
  --color-yellow: #f4d04e;
  --color-gray-950: #111111;
  --color-gray-500: #6b6b6b;
  --color-white: #ffffff;
  /* spacing */
  --spacing-200: 24px;
  --spacing-150: 12px;
  --spacing-100: 8px;
  --spacing-50: 4px;
}

/* Typography */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree.ttf");
}

/* Main */

main {
  /* layout */
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* style */
  background-color: var(--color-yellow);
}

/* Blog Preview Card */

.blog-preview-card {
  /* layout */
  display: flex;
  width: 327px;
  padding: var(--spacing-200);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-200);
  /* style */
  border-radius: 20px;
  border: 1px solid var(--color-gray-950);
  background: var(--color-white);
  box-shadow: 8px 8px 0 0 #000;
}

/* Illustration */

.illustration-article {
  width: 100%;
  border-radius: 10px;
}

/* Card Content */

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-150);
}

.card-category {
  /* typography */
  font-family: Figtree, sans-serif;
  color: var(--color-gray-950);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 150%; /* 18px */
  /* layout */
  display: flex;
  padding: var(--spacing-50) var(--spacing-150);
  justify-content: center;
  align-items: center;
  gap: var(--spacing-100);
  /* style */
  border-radius: 4px;
  background: var(--color-yellow);
}

.card-publish-date {
  font-family: Figtree, sans-serif;
  color: var(--color-gray-950);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 18px */
}

.card-title {
  color: var(--color-gray-950, #111);
  font-family: Figtree, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 150%; /* 30px */
}

.card-description {
  font-family: Figtree, sans-serif;
  color: var(--color-gray-500);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 21px */
}

/* Author */

.author {
  display: flex;
  align-items: center;
  gap: var(--spacing-150);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 32px;
}

.author-name {
  font-family: Figtree, sans-serif;
  color: var(--color-gray-950);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 150%; /* 21px */
}

/* DESKTOP (1440px and up) */
@media (min-width: 90em) {
  .blog-preview-card {
    width: 384px;
  }

  .card-category,
  .card-publish-date,
  .author-name {
    font-size: 14px;
  }

  .card-title {
    font-size: 24px;
  }

  .card-description {
    font-size: 16px;
  }

  /* Animation */

  @keyframes shadow-in {
    from {
      box-shadow: 0 0 0 0 #000;
    }
    to {
      box-shadow: 8px 8px 0 0 #000;
    }
  }

  .blog-preview-card {
    animation-name: shadow-in;
    animation-duration: 2s;
  }

  @media (prefers-reduced-motion: reduce) {
    .blog-preview-card {
      animation-duration: 0.01ms !important;
    }
  }
}

/* Utility */

.no-display {
  display: none;
}
