@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,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --bg-color: #f4d04e;
  --card-bg-color: #fff;
  --para-color: #6b6b6b;
  --font-bold: 800;
  --font-medium-bold: 500;
  --default-line-height: 150%;
  --med-font-responsive: clamp(0.75rem, 2.5vw, 1rem);
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-color);
  font-family: "Figtree", sans-serif;
}

.card-container {
  padding: 1.5rem;
  border-radius: 1.25rem;
  width: clamp(20.4375rem, 90%, 24rem);
  background-color: var(--card-bg-color);
  box-shadow: 0.5rem 0.5rem 0 0 #000;
  border: 1px solid #000;
}

.illustration {
  width: 100%;
  height: auto;
  border-radius: 0.625rem;
  margin-bottom: 1.5rem;
}

header {
  margin-bottom: 1.5rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill {
  background-color: var(--bg-color);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: var(--font-bold);
  font-size: var(--med-font-responsive);
  max-width: min-content;
}

.published {
  font-weight: var(--font-medium-bold);
  font-size: var(--med-font-responsive);
}

.card-title {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  line-height: var(--default-line-height);
  font-weight: var(--font-bold);
}

.card-title:hover {
  color: var(--bg-color);
}

.paragraph {
  font-size: var(--med-font-responsive);
  line-height: var(--default-line-height);
  color: var(--para-color);
}

footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
}

.name {
  font-weight: var(--font-bold);
}
