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

:root {
  --ink: #111;
  --paper: #fafafa;
  --warn: #ffd400;
  --muted: #555;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --condensed: "Avenir Next Condensed", "Helvetica Neue Condensed", "Roboto Condensed", "sans-serif-condensed",
    "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", Impact, var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Warning strip */
.warning {
  background: var(--warn);
  color: #000;
  border-bottom: 0.75rem solid #000;
  padding: 2.5rem 0 2rem;
}

h1 {
  margin: 0;
  font-family: var(--condensed);
  font-stretch: condensed;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 13vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.sub {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 600;
  max-width: 34em;
}

main {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

/* QR */
.qr {
  margin: 0 auto 2rem;
  width: fit-content;
  text-align: center;
}

.qr img {
  display: block;
  width: min(240px, 70vw);
  height: auto;
  background: #fff;
  padding: 12px;
  border: 3px solid #000;
}

.qr figcaption {
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Address */
.address {
  text-align: center;
}

.label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.addr {
  display: block;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 3.6vw, 1.05rem);
  background: #fff;
  border: 2px solid var(--ink);
  padding: 0.75rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

button {
  margin-top: 1rem;
  font: inherit;
  font-weight: 700;
  color: #000;
  background: var(--warn);
  border: 3px solid #000;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  min-height: 44px;
}

button:hover {
  background: #ffe24d;
}

button:active {
  transform: translateY(1px);
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--warn);
}

.status {
  margin: 0.75rem 0 0;
  min-height: 1.5em;
  font-style: italic;
}

/* Counters */
.counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 34rem) {
  .counters {
    grid-template-columns: 1fr 1fr;
  }
}

.counter {
  border: 3px solid var(--ink);
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.value {
  display: block;
  font-family: var(--condensed);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.caption {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Questions */
.faq {
  margin-top: 3rem;
}

.faq h2 {
  margin: 0 0 0.5rem;
  font-family: var(--condensed);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  text-transform: uppercase;
  line-height: 1.1;
}

.faq h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.faq p {
  margin: 0;
  max-width: 38em;
}

/* 404 */
.notfound {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.notfound p {
  margin: 0 0 1rem;
}

.notfound a {
  color: var(--ink);
  font-weight: 700;
}

footer {
  padding-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  button:active {
    transform: none;
  }
}
