:root {
  --bg: #fbf7ee;
  --ink: #111111;
  --muted: #3a342c;
  --line: #000000;
  --mint: #7cffb2;
  --butter: #ffe566;
  --paper: #ffffff;
  --display: "Space Grotesk", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 4px 4px 0 #000;
  --border: 3px solid #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  padding-bottom: 128px;
}

body::before {
  content: "";
  display: block;
  height: 10px;
  background: var(--mint);
  border-bottom: var(--border);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--mint);
  color: #000;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--butter);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg);
  border-bottom: var(--border);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 14px 0 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mark {
  width: 36px;
  height: 36px;
  flex: none;
  border: var(--border);
  background: var(--mint);
}

.mast-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
}

.nav a {
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--butter);
}

.nav a:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
  padding-top: 32px;
}

.hero > * {
  min-width: 0;
}

.sheet,
.label-card,
.roll,
.uses,
.doc,
.mail-card,
.req {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
}

.sheet {
  padding: 26px 26px 24px;
}

.stamp {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 10px;
  background: var(--butter);
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.lead {
  margin: 16px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.form {
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.field {
  display: block;
  min-width: 0;
}

.field span,
.hint,
.cap,
.num,
.mast-meta,
.doc .meta,
.req dt,
.uses b + p {
  font-family: var(--mono);
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
}

.field input {
  width: 100%;
  border: var(--border);
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
}

.field input:focus {
  outline: none;
  background: var(--butter);
}

.btn {
  appearance: none;
  border: var(--border);
  background: var(--mint);
  color: #000;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn.ghost {
  background: #fff;
}

.hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #000;
}

.err {
  margin: 12px 0 0;
  padding: 8px 10px;
  background: var(--butter);
  border: var(--border);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}

.err:empty {
  display: none;
}

.thanks {
  margin-top: 22px;
  padding: 16px;
  background: var(--mint);
  border: var(--border);
}

.thanks h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.thanks p {
  margin: 0 0 10px;
}

.thanks p:last-of-type {
  margin-bottom: 14px;
}

#thanks-mail {
  overflow-wrap: anywhere;
}

.label-card {
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.label-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #000;
}

.label-head,
.label-body,
.cap {
  padding: 12px 14px;
}

.label-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--mint);
  border-bottom: var(--border);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.label-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.qr {
  width: 148px;
  height: 148px;
  border: var(--border);
  background: #fff;
}

.fields {
  margin: 0;
}

.fields div {
  padding: 8px 0;
  border-bottom: 3px solid #000;
}

.fields div:first-child {
  padding-top: 0;
}

.fields div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fields dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.fields dd {
  margin: 2px 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bars {
  height: 42px;
  border-top: var(--border);
  background: repeating-linear-gradient(
    90deg,
    #000 0 2px,
    #fff 2px 5px,
    #000 5px 7px,
    #fff 7px 9px,
    #000 9px 14px,
    #fff 14px 16px,
    #000 16px 18px,
    #fff 18px 22px,
    #000 22px 23px,
    #fff 23px 27px
  );
}

.cap {
  margin: 0;
  border-top: var(--border);
  background: var(--bg);
  font-size: 12px;
  line-height: 1.45;
}

.block-title {
  margin: 48px 0 14px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.roll {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.05fr;
}

.roll article {
  min-width: 0;
  padding: 20px 18px 22px;
  border-right: 3px dashed #000;
}

.roll article:last-child {
  border-right: 0;
  background: var(--butter);
}

.roll article:first-child {
  background: var(--mint);
}

.num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.ticket-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 40px;
}

.roll .num {
  margin-bottom: 0;
}

.roll h3,
.uses h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.roll h3 {
  margin: 0;
}

.roll p,
.uses p,
.band p,
.doc p,
.mail-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.band {
  margin-top: 22px;
  padding: 26px 24px;
  background: #000;
  color: #fbf7ee;
  border: var(--border);
  box-shadow: 4px 4px 0 #7cffb2;
}

.band strong {
  color: var(--butter);
  font-weight: 700;
}

.who {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.who .block-title {
  margin-top: 0;
}

.who-lead {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 28rem;
}

.uses {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}

.who .uses {
  margin-top: 0;
}

.uses li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 16px;
  border-bottom: var(--border);
}

.uses li:last-child {
  border-bottom: 0;
}

.uses .num {
  margin: 0;
  background: var(--mint);
  border: var(--border);
  padding: 4px 6px;
}

.uses p {
  margin-top: 4px;
  color: var(--muted);
}

.foot {
  margin-top: 56px;
  padding: 22px 0 8px;
  border-top: var(--border);
}

.foot-legal {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.foot nav a {
  font-size: 14px;
  font-weight: 600;
}

.doc {
  margin-top: 32px;
  padding: 32px 34px 28px;
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(34px, 4vw, 46px);
  margin-bottom: 8px;
}

.doc .meta {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.6;
}

.doc p + p,
.doc ul {
  margin-top: 12px;
}

.doc ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.doc h2 {
  margin: 22px 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.back {
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  padding-top: 32px;
}

.mail-card,
.req {
  padding: 24px;
}

.mail-card h1,
.about-lead {
  font-size: clamp(36px, 4vw, 52px);
}

.mail-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-underline-offset: 3px;
}

.req {
  margin: 0;
}

.req div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 3px solid #000;
}

.req div:first-child {
  padding-top: 0;
}

.req div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.req dt {
  font-size: 12px;
  font-weight: 500;
}

.req dd {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: #fff;
  border-top: var(--border);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.cookie .btn {
  flex: none;
  padding: 8px 16px;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .hero,
  .roll,
  .who,
  .contact-grid,
  .label-body {
    grid-template-columns: 1fr;
  }

  .mast-meta {
    text-align: left;
  }

  .roll article {
    border-right: 0;
    border-bottom: 3px dashed #000;
  }

  .roll article:last-child {
    border-bottom: 0;
  }

  .uses {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie {
    align-items: center;
  }

  .cookie .btn {
    width: auto;
  }

  .sheet,
  .doc,
  .mail-card,
  .req {
    padding: 18px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav a:hover,
  .btn:hover,
  .label-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
