:root {
  --field: #0E4D33;   /* deep green page */
  --paper: #FFFFFF;   /* label stock */
  --ink: #000000;     /* bars and label type */
  --text: #F3F6F1;    /* type on green */
  --muted: #B7CBBF;   /* secondary type on green */
  --laser: #E8202A;   /* scanner laser */
  --gutter: clamp(16px, 5vw, 64px);
}

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

html {
  background: var(--field);
  color: var(--text);
}

body {
  margin: 0;
  background: var(--field);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.wrap {
  width: 100%;
  max-width: 1184px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header { padding-block: 28px; }

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
}

/* Hero */
.hero {
  display: grid;
  gap: 16px 56px;
  align-content: center;
  padding-block: clamp(16px, 5vh, 64px);
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .label { grid-column: 1; grid-row: 1; }
  .label-note { grid-column: 1; grid-row: 2; }
  .aside { grid-column: 2; grid-row: 1; align-self: end; }
}

.label {
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(20px, 3vw, 32px);
}

h1 {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.75rem);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.barcode {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.barcode .bars { fill: var(--ink); }

.barcode .digit {
  font-family: "Archivo", sans-serif;
  font-size: 8.6px;
  font-weight: 500;
  fill: var(--ink);
  animation: digit-in 0.16s ease-out both;
  animation-delay: var(--d, 0s);
}

.barcode .laser {
  opacity: 0;
  animation: laser 1.1s 0.45s ease-out both;
}

@keyframes laser {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 0.55; }
  45%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes digit-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.label-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Aside */
.aside { padding-top: 16px; }

.lede {
  margin: 0 0 28px;
  max-width: 30em;
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact .verb {
  font-weight: 400;
  color: var(--muted);
}

.contact .value {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--muted);
}

.contact a:hover .value {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--text);
}

a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  padding-block: 24px 32px;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .barcode .laser { display: none; }
  .barcode .digit { animation: none; }
}
