@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-Regular.woff2") format("WOFF2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-ExtraBold.woff2") format("WOFF2");
  font-weight: 800;
  font-style: normal;
}


/* Reset some default styles */

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

:root {
  --primary-color: hsl(47, 88%, 63%);
  --secondary-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 7%);
  --text-secondary-color: hsl(0, 0%, 42%);
}

body {
  background-color: var(--primary-color);
  font-family: "Figtree", sans-serif;
  color: var(--text-color);
  /* Ensure the body takes full height */
  min-height: 100vh;
  /* center card */
  display: flex;
  align-items: center;
}

h1 {
  font-size: 2rem;
  margin-block: 0.5rem;
}

p {
  color: var(--text-secondary-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.container {
  max-width: 23.4rem;
  margin: 0 auto;
}

.card {
  background-color: hsl(0, 0%, 100%);
  padding: clamp(0.375rem, 0rem + 1.2vi, 0.5rem);
  border-radius: 16px;
  border: black solid 1px;
  box-shadow: 10px 10px hsl(0, 0%, 0%, 1);
}

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

.card__image {
  border-radius: 10px;
  margin: 10px;
}

.card__content {
  margin: 10px;
}

.card__content--tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: 800;
  margin-inline-end: 16px;
  margin-block-start: 10px;
  margin-block-end: 10px;
}

.card__content--tag:hover {
  background-color: hsl(47, 88%, 53%);
  cursor: pointer;
}

.card__content--title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 10px 0;
}
.card__content--title:hover {
  color: hsl(47, 88%, 53%);
  cursor: pointer;
}

.card__content--text {
  font-size: 1rem;
  margin: 26px 0;
}

.card__author {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 0.6rem;
}

.card__author--image {
  width: 3em;
  margin-inline-end: 1rem;
}
