:root {
  --white: hsl(0, 0%, 100%);
  --yellow: hsl(47, 88%, 63%);
  --gray500: hsl(0, 0%, 42%);
  --gray950: hsl(0, 0%, 7%);
  --link: hsl(228, 45%, 44%);
  --line-height: 150%;
  --letter-spacing: 0em;
  --extra-large: 1.5em;
  --medium: 1em;
  --small: 0.875em;
}

@font-face {
  font-family: Figtree;
  src: url(../assets/fonts/static/Figtree-Medium.ttf);
  font-weight: 500;
}

@font-face {
  font-family: Figtree;
  src: url(../assets/fonts/static/Figtree-ExtraBold.ttf);
  font-weight: 800;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--yellow);
}

main {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: inherit;
  letter-spacing: var(--letter-spacing);
  color: var(--gray950);
  line-height: var(--line-height);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24em;
  height: 32.625em;
  border-radius: 1.25em;
  box-shadow: 0.5em 0.5em var(--gray950);
  background-color: var(--white);
  border: 0.0625em solid var(--gray950);
}

.content {
  padding: 1.5em;
}

.content img {
  height: auto;
  border-radius: 0.625em;
}

.text-content #tag {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 0;
  padding: 0.25em 0.75em;
  border-radius: 0.25em;
  background-color: var(--yellow);
  font-size: var(--small);
}

.text-content #publish-date {
  font-size: var(--small);
}

.text-content #title {
  font-size: var(--extra-large);
}

#title a,
#title a:visited {
  color: var(--gray950);
  text-decoration: none;
}

#title a:hover {
  color: var(--yellow);
}

.text-content #description {
  font-size: var(--medium);
  color: var(--gray500);
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info img {
  width: 2em;
  height: 2em;
}

.user-info p {
  font-weight: bold;
  margin-left: 0.625em;
  font-size: var(--small);
}

footer {
  position: absolute;
  bottom: 0.625em;
}

.attribution {
  text-align: center;
  font-size: 0.6875em;
}
.attribution a {
  color: var(--link);
}
