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

:root {
  --yellow: hsl(47, 88%, 63%);
  --white: hsl(0, 0%, 100%);
  --gray-500: hsl(0, 0%, 42%);
  --gray-950: hsl(0, 0%, 7%);
  --img-width: 336px;
  --col-link: hsl(228, 45%, 44%);
  font-family: figtree, sans-serif;
}

body {
  font-size: clamp(0.75rem, 3.82vw, 1rem);
  background: var(--yellow);
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-weight: 500;
  color: var(--gray-950);
}

.card {
  background: var(--white);
  width: var(--img-width);
  padding: 1.4em;
  border-radius: 1.25em;
  box-shadow: 0.625em 0.625em;
  outline: .1em solid;
  max-width: calc(100% - 2.8em);
}

.attribution {
  font-size: 0.7em;
  text-align: center;
  position: absolute;
  bottom: 0;
  padding: 0.6em;
  background: var(--white);
}

.attribution a {
  color: var(--col-link);
}

.card-img {
  border-radius: 0.625em;
  object-fit: cover;
  max-width: 100%;
  height: 201px;
}

button {
  padding: .5em 1em;
  background: var(--yellow);
  border: 0;
  border-radius: .5em;
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 1em;
  cursor: pointer;
  font-size: .84em;
}

button:hover {
  outline: 0.125em solid var(--yellow);
}

.date {
  font-size: .8em;
}

h1 {
  font-size: 1.6em;
  font-weight: 800;
  margin-bottom: 0.7em;
}

.author {
  font-weight: 800;
  display: flex;
  gap: 1em;
  align-items: center;
}

.author img {
  height: 2em;
}

.card p {
  color: var(--gray-500);
  line-height: 1.4em;
  margin-bottom: 1.7em;
}

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

main {
  max-width: calc(100vw - 3.5em)
}