/* Join Queue — joinqueue.live
   Paper-and-ink. The product's own motif is an admission stub, so the site is
   printed matter: ticket stock, one ink colour, numerals in a monospace because
   printed ticket numerals genuinely are monospaced. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --paper:  #F1F0EC;
  --stub:   #F0DFA0;
  --ink:    #16161A;
  --red:    #B8332A;
  --rule:   #C9C7BF;
  --muted:  #6A6862;

  --measure: 34rem;
  --page: 60rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.masthead nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover,
.masthead nav a[aria-current] { color: var(--ink); text-decoration: underline; }

/* ---------- hero ---------- */

.hero { padding: 5rem 0 4.5rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.15rem;
  max-width: var(--measure);
  margin: 0 0 1rem;
}
.lede-sub {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0;
}

/* ---------- the stub ---------- */

.stub {
  background: var(--stub);
  color: var(--ink);
  border-radius: 4px;
  padding: 1.5rem 1.75rem 1.6rem;
  position: relative;
  transform: rotate(-1.6deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.14);
  max-width: 22rem;
  justify-self: end;
  width: 100%;
}
/* the perforation and its two punched notches */
.stub::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 4.35rem;
  border-top: 2px dashed rgba(22,22,26,0.3);
}
.notch {
  position: absolute;
  bottom: 3.8rem;
  width: 1.1rem; height: 1.1rem;
  background: var(--paper);
  border-radius: 50%;
}
.notch.left  { left: -0.55rem; }
.notch.right { right: -0.55rem; }

.stub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(22,22,26,0.62);
  margin-bottom: 1.4rem;
}
.stub-position {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.stub-position .hash {
  font-size: 1.6rem;
  color: rgba(22,22,26,0.45);
}
#position {
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stub-track {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.stub-artist {
  margin: 0.1rem 0 1.9rem;
  color: rgba(22,22,26,0.6);
  font-size: 0.95rem;
}
.stub-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  padding-top: 0.9rem;
}
.stub-foot .paid { color: rgba(22,22,26,0.62); font-size: 0.72rem; letter-spacing: 0.14em; }

/* ---------- sections ---------- */

section + section { border-top: 1px solid var(--rule); }

.band { padding: 3.5rem 0; }

h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.facts {
  columns: 2;
  column-gap: 3rem;
  max-width: 46rem;
}
.facts p {
  break-inside: avoid;
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--red);
  font-size: 0.97rem;
}
.facts strong { font-weight: 600; }

/* ---------- document pages ---------- */

.doc { padding: 3.5rem 0 5rem; }
.doc .wrap { max-width: 42rem; }
.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin-bottom: 0.5rem;
}
.updated {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}
.doc h2 {
  font-size: 1.15rem;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}
.doc p, .doc li { font-size: 1rem; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 0.5rem; }
.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.doc th { font-weight: 600; }
.note {
  background: rgba(184, 51, 42, 0.06);
  border-left: 2px solid var(--red);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.96rem;
}
.note p { margin: 0; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 46rem) {
  .hero { padding: 3rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.75rem; }
  .stub { justify-self: start; max-width: 20rem; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .facts { columns: 1; }
  .masthead .wrap { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* A filled link that reads as the one action on a page (join / connect bounce). */
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #5c95ff;
  color: #0b0b0f;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #7fabff; }
