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

/* ------------------- */
/* Variables           */
/* ------------------- */

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

  --font-weight-regular: 400;
  --font-weight-bold: 700;
}

/* ------------------- */
/* Reset               */
/* ------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

html {
  font-size: 10px;
}

/* ------------------- */
/* Styling             */
/* ------------------- */

body {
  background-color: var(--color-slate-300);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100vh;
}

main {
  background-color: var(--color-white);
  width: 320px;
  padding: 1.6rem 1.6rem 4rem;
  margin: 15.6rem 2.75rem;
  border-radius: 2rem;
  box-shadow: 0 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.25);
  align-self: center;
  justify-self: center;
}

.qr-code-image {
  width: 288px;
  height: 288px;
  border-radius: 1rem;
}

.title {
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  line-height: 120%;
  color: var(--color-slate-900);
  text-align: center;
  margin: 2.4rem 1.6rem 1.6rem;
}

.description {
  font-size: 1.5rem;
  font-weight: var(--font-weight-regular);
  line-height: 140%;
  letter-spacing: 0.02rem;
  color: var(--color-slate-500);
  text-align: center;
  margin: 0 1.6rem;
}

footer {
  font-size: 1.3rem;
  align-self: end;
  justify-self: center;
  text-align: center;
}

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

footer a:is(:hover, :focus) {
  color: var(--color-slate-500);
}
