@font-face {
  font-display: swap;
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/outfit-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/outfit-700.woff2") format("woff2");
}

/* || RESET */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style-type: none;
}

/* || VARIABLES */
:root {
  /* COLORS */
  --color-bg: hsl(212, 45%, 89%);
  --color-white: white;
  --color-title: hsl(218, 44%, 22%);
  --color-text: hsl(216, 15%, 48%);
  --color-link: hsl(228, 45%, 44%);

  /* SPACING - using rem for consistency */
  --spacing-xs: 0.5rem; /* 8px at base font size */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2.5rem; /* 40px */

  /* TYPOGRAPHY */
  --font-family: "Outfit", sans-serif;
  --font-size-base: 0.9375rem;
  --font-size-title: 1.47rem;
  --font-size-body: 1rem;
  --font-size-small: 0.6875rem; /* 11px */

  /* BORDERS */
  --radius-card: 1.25rem; /* 20px */
  --radius-image: 0.625rem; /* 10px */
}

html {
  font-size: var(--font-size-base);
  font-family: var(--font-family);
}

body {
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

.qr-card {
  width: 21.333rem;
  max-width: 90%;
  height: auto;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  margin: auto;
  text-align: center;
  border-radius: var(--radius-card);
}

.qr-card__image {
  margin: var(--spacing-sm);
  border-radius: var(--radius-image);
  max-width: calc(100% - calc(var(--spacing-sm) * 2));
  height: auto;
}

.qr-card__content {
  margin: var(--spacing-xs) var(--spacing-sm) var(--spacing-lg)
    var(--spacing-sm);
  padding: 0 var(--spacing-sm);
}

.qr-card__title {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-title);
  font-weight: 700;
  color: var(--color-title);
}

.qr-card__description {
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--color-text);
}

.attribution {
  font-size: var(--font-size-small);
  text-align: center;
}

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