@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --color1: #f4d04e;
  --color2: #111111;
  --color3: #6b6b6b;
  --color4: #ffff;
  --shadow-default: 8px 8px rgb(17, 17, 17);
  --linkColor: hsl(228, 45%, 44%);
}

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

body {
  font-family: "Figtree", sans-serif;
  background-color: var(--color1);
  color: var(--color2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  line-height: 150%;
  font-size: clamp(0.75rem, 4vw, 0.87rem);
}

.card-container {
  background-color: var(--color4);
  border: 1px solid var(--color2);
  max-width: 24rem;
  max-height: 32.6rem;
  padding: clamp(1.2rem, 5vw, 1.5rem);
  border-radius: 20px;
  box-shadow: var(--shadow-default);
}

.card-container img {
  border-radius: 10px;
  margin-block-end: clamp(1.2rem, 4vw, 1.5rem);
}

section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

section span {
  align-self: flex-start;
  width: auto;
  font-weight: bold;
  background-color: var(--color1);
  padding: clamp(0.2rem, 2vw, 0.25rem) clamp(0.7rem, 4vw, 0.75rem);
  border-radius: 4px;
}

section h1 {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  cursor: pointer;
}

section h1:hover {
  color: var(--color1);
}

section p {
  font-size: clamp(0.87rem, 3.2vw, 1rem);
}

.text {
  color: var(--color3);
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: clamp(1.2rem, 4vw, 1.5rem);
}

.author img {
  margin: 0;
  height: 2rem;
  width: 2rem;
}

.author p {
  font-weight: bold;
}

footer {
  position: absolute;
  bottom: 1.8rem;
}

.attribution {
  font-size: clamp(0.5rem, 4vw, 0.68rem);
  text-align: center;
}
.attribution a {
  color: var(--linkColor);
}
