:root {
  --white: hsl(0, 0%, 100%);
  --slate-300: hsl(212, 45%, 89%);
  --slate-500: hsl(216, 15%, 48%);
  --slate-900: hsl(218, 44%, 22%);
}

* {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--slate-300);
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
}

.qr-card {
  background-color: var(--white);
  width: clamp(10ch, 80%, 17rem);
  padding: 1em;
  border-radius: 1.25em;
}

.qr-code {
  width: 100%;
  border-radius: 0.5em;
}

.qr-info {
  margin: 1.25rem;
  text-align: center;
}

.qr-tag {
  font-size: 1.5rem;
  font-weight: 700;
}

.qr-description {
  margin-top: 1rem;
  color: var(--slate-500);
}

.home {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

.home img {
  width: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .home img {
    transition: transform 300ms;
    transform-origin: bottom right;
  }
  .home img:hover {
    transform: scale(2);
  }
}

.attribution {
  padding: 0.5em;
  font-size: 0.6rem;
  text-align: center;
}

.attribution a {
  color: var(--slate-900);
}
