:root {
  --yellow: hsl(47, 88%, 63%);
  --Gray-500: hsl(0, 0%, 42%);
  --Gray-950: hsl(0, 0%, 7%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  font-size: 62.5%;
}

body {
  background: hsl(47, 88%, 63%);
  font-size: 1.6rem;
  font-family: Figtree;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  width: min(100%, 382px);
  height: 520px;
  border: solid 1px;
  background: white;
  padding: 23px;
  box-shadow: 8px 8px black;
  border-radius: 20px;
}
.card-header {
  margin-bottom: 20px;
}
.card-header img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
}
.card-header .badge {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--yellow);
  width: 82px;
  height: 28px;
  padding: 1rem 1.3rem;
  font-weight: 800;
  border-radius: 10%;
  margin-bottom: 17px;
}
.card-header p {
  font-weight: 500;
}
.card-body {
  margin-bottom: 26px;
}
.card-body h1 {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 2.7rem;
  color: var(--Gray-950);
  width: 100%;
}
.card-body h1:hover {
  color: var(--yellow);
  cursor: pointer;
}
.card-body p {
  color: var(--Gray-500);
}
.card-footer {
  display: flex;
  align-items: center;
}
.card-footer img {
  width: 31px;
  margin-right: 12px;
}
.card-footer p {
  font-weight: 800;
}

@media screen and (max-width: 363px) {
  .card-body h1 {
    font-size: 2.2rem;
  }
  .card-body p {
    font-size: 1.4rem;
  }
}
