@font-face {
  font-family: 'Figtree';
  src: url('./assets/fonts/static/Figtree-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Figtree';
  src: url('./assets/fonts/static/Figtree-ExtraBold.ttf') format('truetype'); 
  font-weight: 800; 
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

body {
  line-height: 1.5;
  background-color: #f4d04e;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  gap: 10px;
}

.card-wrapper {
  flex: 1;
  padding-top: 26.5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 384px;
  background-color: white;
  color: hsl(0, 0%, 7%);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #111111;
  box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.blog-img {
  border-radius: 10px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.category {
  background-color: #f4d04e;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 800;
}

.publish-date {
  font-size: clamp(12px, 2.5vw, 14px);
}

.title {
  font-size: clamp(20px, 4.2vw, 24px);
  font-weight: 800;
}

.title:hover,
.title:focus {
  color: #f4d04e;
  cursor: url(./assets/images/pointer.png), pointer;
}

.description {
  font-size: clamp(14px, 2.9vw, 16px);
  color: hsl(0, 0%, 42%);
}

.author {
  display: flex;
  gap: 12px;
  width: 129px;
  align-items: center;
}

.userpic {
  width: 32px;
  height: auto;
}

.authorname {
  font-size: 14px;
  font-weight: 800;
}