:root {
  --tc-white-100: hsl(0, 0%, 100%);
  --slate-300: hsl(212, 45%, 89%);
  --slate-500: hsl(216, 15%, 48%);
  --slate-900: hsl(218, 44%, 22%);
  --fw-400: 400;
  --fw-700: 700;
  --ff-outfit: "Outfit", sans-serif;
}

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

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}

/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* general styling */

body {
  font-family: var(--ff-outfit);
  font-weight: var(--fw-400);
  font-size: 0.875rem;
  background-color: var(--slate-300);

  display: grid;
  place-content: center;

  min-height: 100vh;
}

.bar_code {
  --content_padding: 1.5rem;
  --content_spacing: 1rem;

  background-color: var(--tc-white-100);
  margin: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  max-width: 375px;
}

.bar_code__image {
  border-radius: 0.5rem;
  overflow: hidden;
}

.bar_code__content {
  display: grid;
  gap: var(--content_spacing);
  padding: var(--content_padding);
}

.bar_code__content h3 {
  font-size: 1.35rem;
}

.bar_code__content p {
  color: var(--slate-500);
  text-align: center;
  font-size: 1rem;
}

.attribution {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
}
