@font-face {
  font-family: Figtree;
  src: url("./assets/fonts/Figtree-VariableFont_wght.ttf");
}

:root {
  --yellow: hsl(47, 88%, 63%);
  --white: hsl(0, 0%, 100%);
  --gray-500: hsl(0, 0%, 42%);
  --gray-950: hsl(0, 0%, 7%);
}

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

body {
  background-color: var(--yellow);
  color: var(--gray-950);
  font-family: Figtree;
  line-height: 150%;
  font-weight: 500;
  letter-spacing: 0px;
}

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

article {
  width: 27%;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-950);
  background-color: var(--white);
  box-shadow: 0.5rem 0.5rem var(--gray-950);
  min-width: 250px;
  max-width: 400px;
}

article:has(h2:hover) {
  box-shadow: 1rem 1rem var(--gray-950);
}

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

header > * {
  margin-bottom: 0.75rem;
}

h2 {
  padding: 0.25rem 0;
}

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

footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
}

.tag {
  background-color: var(--yellow);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.article-content {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* Typography Presets */

.text-preset-1 {
  font-size: 1.5rem;
  font-weight: 800;
}
.text-preset-2 {
  font-size: 1rem;
}
.text-preset-3 {
  font-size: 0.875rem;
}
.text-preset-3-bold {
  font-size: 0.875rem;
  font-weight: 800;
}
