@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

/* Config */

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

  --page-background: var(--pastel-blue);
}

/* Defaults */

h1 {
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 1.4rem;
}

p {
  font-size: 0.9375rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4rem;
}

html,
body {
  background-color: var(--page-background);
  font-family: "Outfit", sans-serif;
  padding: 0;
  margin: 0;
}

/* Components */

main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 5vw, 25px);
  min-height: 100svh;
}

.card {
  background-color: var(--white);
  border-radius: 2rem;
  max-width: 325px;
  padding: 1rem;
  box-shadow: 0 4px 40px hsl(212, 30%, 85%);
  text-align: center;

  .qr-code {
    width: 100%;
    height: auto;
    border-radius: 1.2rem;
  }

  .text-content {
    padding-inline-start: 10%;
    padding-inline-end: 10%;

    h1 {
      font-size: clamp(1rem, 5.5vw, 1.4rem);
      color: var(--slate-900);
    }

    p {
      color: var(--slate-500);
      font-size: clamp(0.75rem, 5.5vw, 0.9375rem);
    }
  }
}
