:root {
  --primary-color: hsl(0, 0%, 100%); /* White */
  --secondary-color: hsl(0, 0%, 42%); /* grey*/
  --text-color: hsl(0, 0%, 7%); /* black */
  --background-color: hsl(47, 88%, 63%); /* yellow */
  --paraText: 16px;
  --mobileWidth: 375px;
  --tabletWidth: 768px;
  --desktopWidth: 1440px;
}

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

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

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

body {
  background: var(--background-color);
  color: var(--text-color);
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "FigtreeMedium", sans-serif;
}

.container {
  max-width: 350px;
  width: 90%;
  height: auto;
  background: var(--primary-color);
  border-radius: 10px;
  box-shadow: 7px 5px rgba(0, 0, 0, 1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--secondary-color);
  gap: 10px;
  margin: 20px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.tag {
  background: var(--background-color);
  font-family: "FigtreeBold", sans-serif;
  width: fit-content;
  display: inline-block;
  line-height: 20px;
  font-size: 0.75rem;
  padding: 0px 10px;
  border-radius: 5px;
}

.dates {
  font-family: "FigtreeBold", sans-serif;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.5;
  color: var(--secondary-color);
  font-weight: 500;
}

.title {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.2;
}

.title:hover {
  color: var(--background-color);
  cursor: pointer;
}

.description {
  font-size: var(--paraText);
  color: var(--secondary-color);
  line-height: 1.5;
}

.bottom {
  display: flex;
  align-items: center;
  font-family: "FigtreeBold", sans-serif;
  gap: 10px;
}

.bottom img {
  width: 40px;
  height: 40px;
  /* font-weight: 800; */
  /* border-radius: 50%; */
}

.attribution {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(283, 75%, 40%);
}

@media (min-width: var(--tabletWidth)) {
  .container {
    max-width: 400px; /* Slightly larger on tablets and up */
  }
}
