:root {
  /* Colors */
  --color-yellow: hsl(47, 88%, 63%);
  --color-white: hsl(0, 0%, 100%);
  --color-gray-500: hsl(0, 0%, 42%); /* Body Text */
  --color-gray-950: hsl(0, 0%, 7%); /* Heading Text */

  /* Spacing */
  --spacing-250: 1.25rem; /* 20px */

  /* Typography */
  --font-family: "Figtree", sans-serif;

  --h1-fs: 1.35rem;
  --p-fs: 1rem;

  --fw-normal: 500;
  --fw-bold: 800;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  font-weight: var(--fw-normal);
  color: var(--color-gray-950);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-yellow);
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  row-gap: var(--spacing-250);
  background-color: var(--color-white);
  width: clamp(20ch, 90%, 24rem);
  aspect-ratio: 1;
  padding: var(--spacing-250);
  border: 1px solid black;
  border-radius: 1.25rem;
  box-shadow: 8px 8px 0 0px rgba(0, 0, 0, 1);
}

.blog-thumbnail {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 0.75;
}

.blog-thumbnail img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.tag {
  background-color: var(--color-yellow);
  font-size: var(--p-fs);
  width: fit-content;
  padding: 0.5em 0.75em;
  border-radius: 0.4em;
  font-weight: var(--fw-bold);
}

.title {
  font-size: var(--h1-fs);
  font-weight: var(--fw-bold);
}

.blog-description {
  color: var(--color-gray-500);
}

.author {
  display: flex;
  column-gap: 0.5rem;
  align-items: center;
}

.author-picture {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1.25rem;
}

.author-name {
  font-weight: var(--fw-bold);
}

.date:hover,
.title:hover,
.blog-description:hover,
.author-name:hover {
  cursor: pointer;
  color: var(--color-yellow);
}

.attribution {
  font-size: 0.6rem;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}
