:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #626875;
  --paper: #f7f4ee;
  --accent: #af3f33;
  --line: #ddd5c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.print-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.qr-sheet {
  width: min(8.5in, 100%);
  height: 11in;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.1in;
  padding: 0.26in;
  background: white;
}

.sheet-heading {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.03in;
  color: var(--accent);
  font-size: 0.12in;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 0.24in;
  line-height: 1;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.08in;
}

.qr-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 0.04in;
  padding: 0.08in;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
  break-inside: avoid;
}

.qr-meta,
.scan-note {
  margin: 0;
  font-size: 0.11in;
  font-weight: 850;
}

.qr-meta {
  color: var(--accent);
}

h2 {
  width: 100%;
  margin: 0;
  font-size: 0.12in;
  line-height: 1.15;
}

.qr-card img {
  width: min(1.05in, 90%);
  height: auto;
  image-rendering: pixelated;
}

.scan-note {
  color: var(--muted);
}

.single-qr {
  grid-template-columns: 1fr;
  place-items: center;
}

.single-qr .qr-card {
  width: min(6in, 100%);
  min-height: 7.5in;
}

.single-qr .qr-card img {
  width: min(4.8in, 80vw);
}

.single-qr h2 {
  max-width: 20ch;
  font-size: 0.34in;
}

.single-qr .qr-meta,
.single-qr .scan-note {
  font-size: 0.18in;
}

.print-button {
  justify-self: center;
  border: 0;
  border-radius: 7px;
  padding: 0.12in 0.18in;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  body {
    background: white;
  }

  .print-page {
    min-height: auto;
    padding: 0;
  }

  .qr-sheet {
    width: 8.5in;
    height: 11in;
    box-shadow: none;
  }

  .print-button {
    display: none;
  }
}
