* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'MyFont', sans-serif;
}
@font-face {
  font-family: 'MyFont';
  src: url('./assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
  font-weight: 500 800;
  font-style: normal;
}

body {
  background-color: hsl(47, 88%, 63%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.blog-card {
  background-color: hsl(0, 0%, 100%);
  width: 320px;
  border-radius: 15px;
  border: 1px solid hsl(0, 0%, 7%);
  box-shadow: 8px 8px 0px hsl(0, 0%, 7%);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
}
.blog-image {
  width: 100%;
  border-radius: 10px;
}
.blog-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-title {
  background-color: hsl(47, 88%, 63%);
  color: hsl(0, 0%, 7%);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 10px;
  border-radius: 5px;
  width: 100px;
}
.blog-date {
  font-size: 0.8rem;
  color: hsl(0, 0%, 42%);
}
.blog-subtitle {
  font-size: 1.2rem;
  font-weight: 800;
  color: hsl(0, 0%, 7%);
  cursor: pointer;
  transition: color 0.2s ease;
}

.blog-subtitle:hover {
  color: hsl(47, 88%, 63%);
}
.blog-description {
  font-size: 0.9rem;
  color: hsl(0, 0%, 42%);
  line-height: 1.4;
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 800;
}
.attribution {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 20px;
  color: hsl(0, 0%, 42%);
}

.attribution a {
  color: hsl(0, 0%, 7%);
  text-decoration: none;
  font-weight: 700;
}
@media (min-width: 768px) {
  .blog-card {
    width: 385px;
    padding: 24px;
    box-shadow: 10px 10px 0px hsl(0, 0%, 7%);
  }

  .blog-subtitle {
    font-size: 1.4rem;
  }

  .blog-description {
    font-size: 1rem;
  }
}