@import "./fonts.css";
@import "./normalize.css";

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

*:focus {
  outline: 2px dotted blue;
  outline-offset: 3px;
}

a {
  text-decoration: none;
  display: inline-block;
}

html {
  height: 100%;
}

body {
  height: 100%;
  display: flex;
  background-color: #f4d04e;
  font-family: "Figtree";
}

.main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.card {
  width: 384px;
  height: 522px;
  border-radius: 20px;
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  box-shadow: 8px 8px 0px 0px #000000;
  background-color: #ffffff;

  /* gap:24px; */
}

.card__image {
  display: flex;
  margin-bottom: 24px;
}

.card__type {
  padding: 4px 12px;
  border-radius: 4px;
  background-color: #f4d04e;
  color: #111111;
  font-weight: 800;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 82px;
  height: 29px;
  margin-bottom: 12px;
}

.card__date {
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #111111;
  width: 143px;
  height: 21px;
  margin-bottom: 12px;
}

.card__title-link {
  width: 336px;
  height: 36px;
  margin-bottom: 12px;
}

.card__link {
  font-weight: 800;
  font-size: 24px;
  line-height: 150%;
  color: #111111;
  letter-spacing: 0%;
}

.card__title-link:active .card__link {
  color: #f4d04e;
}

.card__title-link:active .card {
  box-shadow: 16px 16px 0px 0px #000000;
}

.card__description {
  width: 336px;
  height: 72px;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #7f7f7f;
  margin-bottom: 24px;
}

.card__user {
  display: flex;
  align-items: center;
}

.card__avatar {
 margin-right: 5.5px; 
}

.card__author {
  font-size: 14px;
  font-weight: 800;
  line-height: 150%;
  letter-spacing: 0%;
  color: #111111;
}
