@font-face {
  font-family: "Medium-Figtree";
  src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
}
@font-face {
  font-family: "Bold-Figtree";
  src: url(./assets/fonts/static/Figtree-ExtraBold.ttf);
}

:root {
  --yellow-color: #f4d04e;
  --black-color: #111111;
  --gray-color: #6b6b6b;
  --white-color: #ffffff;
}

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

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

main {
  background-color: var(--white-color);
  max-width: 384px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--black-color);
  box-shadow: 9px 9px var(--black-color);
  margin: 20px;
  cursor: pointer;
}

main > img {
  width: 100%;
  border-radius: 10px;
}

h1 {
  font-family: "Bold-Figtree";
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0px;
  color: var(--black-color);
}

p {
  color: var(--gray-color);
  font-family: "Medium-Figtree";
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0px;
}

.description {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.type {
  width: 82px;
  height: 29px;
  background-color: var(--yellow-color);
  color: var(--black-color);
  display: flex;
  justify-content: center;
  font-family: "Bold-Figtree";
  align-items: center;
  border-radius: 4px;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0px;
}

.publish-date {
  font-family: "Medium-Figtree";
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0px;
  color: var(--black-color);
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.profile > img {
  width: 32px;
}

.profile > h2 {
  font-family: "Bold-Figtree";
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0px;
}

main:hover {
  transition: 0.5s;
  box-shadow: 18px 18px var(--black-color);
}

main:hover h1 {
  cursor: pointer;
  color: var(--yellow-color);
}
