:root {
  --yellow: rgb(244, 208, 78);
  --dark-gray: rgb(17, 17, 17);
  --medium-gray: rgb(107, 107, 107);
  --white: #fff;
  --spacing-100: 8px;
  --spacing-150: 12px;
  --spacing-300: 24px;
}

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

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

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

* {
  margin: 0;
}

body {
  background-color: var(--yellow);
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  width: 384px;
  height: 522px;
  border-radius: 20px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 1);
  padding: var(--spacing-300);
  gap: var(--spacing-300);
  color: var(--dark-gray);


  @media only screen and (max-width: 375px) {
    width: 327px;
    height: 501px;
  }

  .image-wrapper {
    figure.image {
      background-image: url("assets/images/illustration-article.svg");
      background-size: cover;
      height: 200px;
      overflow: clip;
      width: auto;
      border-radius: 10px;
    }
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-150);

    .badge {
      background-color: var(--yellow);
      align-self: flex-start;
      padding: 4px var(--spacing-150);
      border-radius: 4px;
      font-family: "Figtree", sans-serif;
      font-size: 14px;
      line-height: 150%;
      letter-spacing: 0px;
      font-weight: 800;

      @media only screen and (max-width: 375px) {
        font-size: 12px;
      }
    }

    .date {
      font-family: "Figtree", sans-serif;
      font-size: 14px;
      line-height: 150%;
      letter-spacing: 0px;
      font-weight: 500;

      @media only screen and (max-width: 375px) {
        font-size: 12px;
      }
    }

    .title {
      font-family: "Figtree", sans-serif;
      font-size: 24px;
      line-height: 150%;
      letter-spacing: 0px;
      font-weight: 800;
      transition: all 0.25s ease;

      @media only screen and (max-width: 375px) {
        font-size: 20px;
      }

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

    .text {
      font-family: "Figtree", sans-serif;
      font-size: 16px;
      line-height: 150%;
      letter-spacing: 0px;
      font-weight: 500;
      color: var(--medium-gray);

      @media only screen and (max-width: 375px) {
        font-size: 14px;
      }
    }
  }

  .user {
    display: flex;

    .name {
      font-family: "Figtree", sans-serif;
      font-size: 14px;
      line-height: 150%;
      letter-spacing: 0px;
      font-weight: 800;
      padding-left: var(--spacing-150);
      align-self: center;
    }

    .profile {
      background-image: url("assets/images/image-avatar.webp");
      height: 32px;
      width: 32px;
      background-size: cover;
    }
  }
}



