:root {
  --paper: #e6d2a8;
  --paper-deep: #d4bc86;
  --ink: #1a1714;
  --ink-soft: #4a433a;
  --tape: #c45c26;
  --tape-dark: #9a4519;
  --stamp: #2f6b4f;
  --stamp-ink: #f3eadb;
  --label: #f7f1e4;
  --rule: #1a1714;
  --danger: #8b1e1e;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { color-scheme: light; }

body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  background-image:
    radial-gradient(rgba(26, 23, 20, 0.035) 0.8px, transparent 0.8px);
  background-size: 7px 7px;
}

a { color: var(--tape-dark); }
a:hover { color: var(--ink); }

.tape {
  height: 28px;
  background:
    repeating-linear-gradient(
      -28deg,
      #d9a441 0 10px,
      #c45c26 10px 12px,
      #e0b45a 12px 22px,
      #c45c26 22px 24px
    );
  box-shadow: 0 4px 0 rgba(26, 23, 20, 0.18);
}

.wrap {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.mast {
  display: flex;
  justify-content: center;
  padding: 22px 16px 20px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 64px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 28px;
}

.label {
  background: var(--label);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 18px 16px;
  transform: rotate(-0.4deg);
}

.label-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px dashed var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
  gap: 12px;
}

.label-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.barcode {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 28px;
}

.barcode i {
  display: block;
  background: var(--ink);
  height: 100%;
  width: 2px;
}

.barcode i:nth-child(3n) { width: 1px; height: 70%; }
.barcode i:nth-child(4n) { width: 3px; }
.barcode i:nth-child(5n) { width: 1px; height: 85%; }

.field {
  margin-bottom: 12px;
}

.field span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 8px 0;
  color: var(--ink);
  border-radius: 0;
}

.field input:focus {
  outline: 2px solid var(--stamp);
  outline-offset: 4px;
}

.field input::placeholder { color: #9a8f7c; }

.err {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--danger);
  min-height: 1.2em;
  margin: 4px 0 10px;
}

a.stamp {
  text-align: center;
  text-decoration: none;
  color: var(--stamp-ink);
}
a.stamp:hover { color: var(--stamp-ink); }

.stamp {
  display: block;
  width: 100%;
  border: 0;
  background: var(--stamp);
  color: var(--stamp-ink);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 12px 12px;
  cursor: pointer;
  box-shadow: inset 0 0 0 3px rgba(243, 234, 219, 0.25);
}

.stamp:hover { filter: brightness(1.06); }
.stamp:active { transform: translateY(1px); }
.stamp:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.fine {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.fine p + p { margin-top: 6px; }

.steps {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.step b {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--tape);
}

.step p { color: var(--ink-soft); }

.foot {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.card {
  background: var(--label);
  border: 2px solid var(--ink);
  padding: 28px 22px;
}

.card h1 { font-size: clamp(36px, 9vw, 52px); margin-bottom: 12px; }

@media (max-width: 520px) {
  .wordmark { font-size: 34px; }
  .label { box-shadow: 4px 4px 0 var(--ink); }
  .stamp { font-size: 24px; }
}
