@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

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

:root {
  /* <========== Colors ==========> */
  --Yellow: hsl(47, 88%, 63%);
  --White: hsl(0, 0%, 100%);
  --Gray-500: hsl(0, 0%, 42%);
  --Gray-950: hsl(0, 0%, 7%);

  /* <========== font size ==========> */
  --normal: 1rem;
  --header: 2rem;
  --w-bold: 950;
  --w-normal: 500;
}

body {
  background-color: var(--Yellow);
  font-family: "Figtree", sans-serif;
}

#card {
  min-height: 100vh;
  display: flex;
  place-items: center;
  font-weight: var(--w-normal);
  font-size: var(--normal);
}

.card {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  max-width: 20rem;
  margin: auto;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid;
  box-shadow: 8px 8px;
  justify-content: space-between;
  align-content: center;

  @media (max-width: 340px) {
    max-width: 18rem;
  }
}

.card img {
  border-radius: 7px;
  margin-bottom: 1rem;
}

.card h1 {
  font-weight: var(--w-bold);
  margin: 0.7rem 0;
  &:hover {
    color: var(--Yellow);
    cursor: pointer;
  }
}

.btn {
  background: var(--Yellow);
  width: min-content;
  padding: 0.5rem 1rem;
  font-weight: var(--w-bold);
  color: var(--Gray-950);
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.date {
  font-weight: var(--w-normal);
  font-size: var(--normal);
  color: var(--Gray-500);
}

.author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.author p {
  font-size: var(--normal);
  font-weight: var(--w-bold);
}

.author img {
  max-width: 10%;
  margin: 0.3rem;
  aspect-ratio: 1;
  object-fit: cover;
}
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
