@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --Yellow: #f4d04e;
  --White: #ffffff;
  --Gray-500: #6b6b6b;
  --Gray-950: #121212;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Figtree";
  background-color: var(--Yellow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: var(--Gray-950);
  padding: 1.5rem;
  text-align: center;
  color: var(--White);
}

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

.card-component {
  background-color: var(--White);
  border-radius: 2rem;
  max-width: 35rem;
  border: solid 1px var(--Gray-950);
  box-shadow: 10px 10px 1px 2px var(--Gray-950);
}

.image-box {
  padding: 2rem 2rem 0 2rem;
}

.image-box {
  text-align: center;
}

.image-box img {
  border-radius: 2rem;
  width: 95%;
}

.text-box {
  padding: 2rem;
}

.tag {
  display: inline-block;
  background-color: var(--Yellow);
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.8rem;
}

.detail-info p {
  font-size: 1.5rem;
  color: var(--Gray-950);
  margin-bottom: 2rem;
}

.descriptive-text {
  margin-bottom: 2rem;
}

.descriptive-text h2 {
  font-size: 2.4rem;
  color: var(--Gray-950);
  margin-bottom: 2rem;
}

.descriptive-text p {
  font-size: 1.6rem;
  color: var(--Gray-500);
  line-height: 1.4;
}

.author {
  display: flex;
  align-items: center;
}

.author img {
  width: 3rem;
}

.author p {
  font-size: 1.5rem;
  color: var(--Gray-950);
  font-weight: 700;
  margin-left: 1.5rem;
}

.attribution {
  text-align: center;
  font-size: 1.6rem;
  padding: 2rem;
}

/* continued development: Use CSS Grid in the next iteration */
