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

  /* Card Styles */
  --radius-card: 1.25rem;
  --radius-img: 0.625rem;
  --shadow-card: 0 25px 25px rgba(0, 0, 0, 0.05);
  
  /* Layout */
  --card-width: 20rem; /* 320px */
}

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

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

/* Main Component */
.qr-container {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  
  /* Mobile Respomsive */
  width: 90%;           
  max-width: 20rem;      
  
  text-align: center;
  transition: background-color 0.3s ease;
}

.qr-container img {
  width: 100%;
  border-radius: var(--radius-img);
  display: block;
}

.qr-container h1 {
  margin: 1.5rem 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-slate-900);
  padding: 0 0.5rem;
}

.qr-container p {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-slate-500);
  padding: 0 1rem;
}

/* Attribution */
footer.attribution {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--color-slate-500);
  text-align: center;
}

footer.attribution a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-white: hsl(218, 44%, 15%);
    --color-slate-300: hsl(218, 44%, 12%);
    --color-slate-500: hsl(212, 45%, 70%);
    --color-slate-900: hsl(0, 0%, 100%);
    --shadow-card: 0 25px 25px rgba(0, 0, 0, 0.3);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}