:root {
  --white-color: hsl(0, 0%, 100%);
  --light-gray-color: hsl(212, 45%, 89%);
  --grayish-blue-color: hsl(220, 15%, 55%);
  --dark-blue-color: hsl(218, 44%, 22%);
  --heading-1: clamp(1.25rem, 4vw, 1.75rem);
  /* --paragraph: 1rem; */
  --paragraph: clamp(0.9rem, 2vw, 1.15rem);
}

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

body {
  background-color: var(--light-gray-color);
  font-family: "Outfit", sans-serif;
  font-size: var(--paragraph);
  font-weight: 400;
  height: 100dvh;
  display: grid;
  align-content: center; /* Turns out this is not supported in block elements in some browsers. */
  color: var(--grayish-blue-color);
}

main {
  max-width: 20rem;
  background: var(--white-color);
  padding: 1rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0px 25px 25px rgb(0, 0, 0, 0.0477%);
}

h1 {
  color: var(--dark-blue-color);
  font-size: var(--heading-1);
}

.image-wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
}

img {
  max-width: 100%;

  @media screen and (max-width: 360px) {
    transform: scale(1.25);
  }
}

article {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  padding-block: 1em;
}

article > p {
  max-width: calc(18rem - 2rem);
}
