/* challenge-defined rule sets */
.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* basic reset */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: hsl(0, 0%, 8%);
  color: hsl(0, 0%, 100%);
}

/* container */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-inline: 2rem;
}

/* card */

.card {
  /* custom property for p elements */
  --paragraph-size: clamp(12px, 3vw, 16px);

  width: clamp(280px, 80vw, 24rem);
  border-radius: 16px;
  /* padding: 3rem 0; */
  padding: clamp(1.5rem, 3.5vw, 4rem) 0;
  background-color: hsl(0, 0%, 12%);
}

.card-inside {
  text-align: center;
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* card items */
figure {
  margin: 0 auto;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
}

h1 {
  margin-bottom: calc(1rem - 8px);
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  font-size: clamp(18px, 6vw, 28px);
}

h1 + p {
  margin-bottom: calc(2rem - 2px);
  color: hsl(75, 94%, 57%);
  font-weight: 600;
  font-size: var(--paragraph-size);
}

.card-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

button {
  background-color: hsl(0, 0%, 20%);
  color: hsl(0, 0%, 100%);
  width: clamp(240px, 62vw, 320px);
  padding: clamp(0.92rem, 0.95vw, 1.2rem) 0;
  font-size: clamp(0.875rem, 1.1vw, 1.125rem);
  border: 0;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.8s ease-out;
}

button:hover {
  color: hsl(75, 94%, 57%);
  background-color: hsl(0, 0%, 30%);
}

.card-texts p + p {
  font-size: var(--paragraph-size);
}
