/* Mobile First! */

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

body {
  background-color: #F4D04E;
}

@font-face {
  font-family: 'Figtree-Medium';
  src: url('assets/fonts/Figtree-Medium.woff2') format('woff2'),
  url('assets/fonts/Figtree-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree-ExtraBold';
  src: url('assets/fonts/Figtree-ExtraBold.woff2') format('woff2'),
  url('assets/fonts/Figtree-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.blog-preview-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  width: 327px;
  height: 501px;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid #111;
  border-radius: 20px;
  box-shadow: 8px 8px #111;
}

.main-img {
  width: 279px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 19px;
}

.learning {
  background-color: #F4D04E;
  width: 73px;
  height: 26px;
  box-sizing: border-box;
  padding: 4px 12px;
  font-family: 'Figtree-ExtraBold', 'Segoe UI', Helvetica;
  font-weight: 800;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0;
  border-radius: 4px;
}

.published {
  font-family: 'Figtree-Medium', 'Segoe UI', Helvetica;
  font-weight: 500;
  color: #111;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0;
}

h1 {
  font-family: 'Figtree-ExtraBold', 'Segoe UI', Helvetica;
  font-weight: 800;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
  color: #111;
  margin-bottom: 0;
  transition: color 0.3s;
}

h1:focus,
h1:active {
  color: #F4D04E;
}

.description {
  font-family: 'Figtree-Medium', 'Segoe UI', Helvetica;
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
  color: #6B6B6B;
  margin-bottom: 14px;
  margin-top: 12px;
}

.div-for-avatar-and-name {
  display: flex;
  align-items: center;
}

.avatar-img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.name {
  display: inline-block;
  font-family: 'Figtree-ExtraBold', 'Segoe UI', Helvetica;
  font-weight: 800;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
  color: #111;
}


@media (min-width: 768px) {
  .blog-preview-card {
    width: 384px;
    height: 522px;
    transition: box-shadow 0.5s;
  }

  .blog-preview-card:hover {
    box-shadow: 15px 15px #111;
  }

  .blog-preview-card:hover h1 {
    color: #F4D04E;
  }

  .main-img  {
    width: 336px;
  }

  .learning {
    width: 82px;
    height: 29px;
    font-size: 14px;
  }

  .published {
    font-size: 14px;
    margin-top: 13px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 24px;
    margin-top: 0;
    cursor: pointer;
  }

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






