:root {
  --counter: #CFE6DA;
  --counter-2: #B9D6C7;
  --paper: #FBFBF8;
  --ink: #101310;
  --ink-2: #434A43;
  --stamp: #E5392A;
  --stamp-ink: #B8281A;
  --mark: #FFE14D;
  --line: rgba(16, 19, 16, 0.18);
  --bar-off: rgba(16, 19, 16, 0.3);
  --stamp-wash: rgba(229, 57, 42, 0.06);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--counter);
  background-image: radial-gradient(var(--counter-2) 1.4px, transparent 1.8px);
  background-size: 22px 22px;
}

button,
input,
select,
textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

img,
svg { max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: background 150ms;
}

a:hover { background: var(--mark); }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { top: 16px; }

/* ---------- header ---------- */

.bar { border-bottom: 1.5px dashed var(--ink); }

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo:hover { background: transparent; }

.logo-hl {
  padding: 0 6px;
  border-radius: 3px;
  background: var(--mark);
}

.bar-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; }

.bar-nav a { text-decoration: none; border-bottom: 1.5px solid transparent; }
.bar-nav a:hover { background: transparent; border-bottom-color: var(--ink); }

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

.hero { padding-top: 48px; padding-bottom: 24px; }

.kicker {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.h1-sm { font-size: 48px; }

.hl {
  padding: 0 8px;
  background: var(--mark);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 48ch;
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}

.bench { padding-top: 16px; padding-bottom: 32px; }

/* ---------- section scaffolding ---------- */

.h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.h3 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
}

.section-intro { max-width: 62ch; margin: 12px 0 0; color: var(--ink-2); }

.fine {
  max-width: 70ch;
  margin: 24px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ledger,
.bands,
.sins,
.compare,
.history,
.faq { padding-top: 64px; padding-bottom: 16px; }

.history-body { margin-top: 20px; }

.bands-more { max-width: 62ch; margin: 20px 0 0; }

/* paper sheet with a torn edge */

.sheet-wrap { padding-top: 32px; padding-bottom: 16px; }

.sheet {
  max-width: 880px;
  padding: 40px 40px 64px;
  background: var(--paper);
  box-shadow: 0 8px 24px var(--line);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 100% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 100% repeat-x;
}

.prose { max-width: 880px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 40px 0 12px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.2; }
.prose p { max-width: 70ch; margin: 0 0 16px; }
.prose ul,
.prose ol { max-width: 70ch; margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose strong { font-weight: 800; }
.prose code { padding: 0 4px; background: var(--counter); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 15px; }
.prose a { overflow-wrap: anywhere; }

/* ---------- scoring ledger ---------- */

.ledger { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.ledger-head { position: sticky; top: 24px; }

.steps { margin: 0; padding: 0; list-style: none; }

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1.5px dashed var(--ink);
}

.step:last-child { border-bottom: 1.5px dashed var(--ink); }

.step-n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}

.step-b p { max-width: 62ch; margin: 0; }

/* ---------- bands ---------- */

.band-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.band { padding: 24px 24px 24px; border-left: 1.5px dashed var(--ink); }
.band:first-child { border-left: 0; padding-left: 0; }

.band-r {
  display: block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.band-l {
  display: inline-block;
  margin: 8px 0 8px;
  padding: 0 6px;
  background: var(--mark);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.band p { margin: 0; font-size: 16px; }

/* ---------- the seven sins ---------- */

.menu {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 40px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.menu-list { margin: 24px 0 0; }

.menu-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1.5px dotted var(--ink);
}

.menu-row dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-row dd { margin: 0; }

/* ---------- compare ---------- */

.tickets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ticket {
  position: relative;
  padding: 24px 24px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.ticket:nth-child(2) { transform: translateY(16px); }

.ticket p { margin: 0; font-size: 16px; }

.ticket-n {
  display: inline-block;
  margin: 0 0 12px;
  padding: 0 8px;
  border: 2px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.compare .fine { margin-top: 40px; }

/* ---------- faq ---------- */

.faq-list { margin: 32px 0 0; border-top: 2px solid var(--ink); }

.faq-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 40px;
  padding: 20px 0;
  border-bottom: 1.5px dashed var(--ink);
}

.faq-q {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
}

.faq-a { margin: 0; max-width: 62ch; }

/* ---------- closing call to action ---------- */

.cta { padding-top: 64px; padding-bottom: 80px; }

.cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 32px 40px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mark);
}

.cta-t {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-btn {
  display: inline-block;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--stamp);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  transition: transform 150ms, box-shadow 150ms;
}

.cta-btn:hover {
  background: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--stamp);
}

/* ---------- inner pages ---------- */

.legal { padding-top: 48px; padding-bottom: 80px; }
.legal-head { margin-bottom: 32px; }
.legal .sheet { margin: 0; }
.legal .faq-inner { max-width: 880px; padding-top: 56px; padding-bottom: 0; }
.legal .cta-inner { max-width: 880px; padding-top: 48px; padding-bottom: 0; }
.back { margin: 32px 0 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; }

.nf { padding-top: 64px; padding-bottom: 96px; }

.nf-slip {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 28px 40px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.nf-code { margin: 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; letter-spacing: 0.1em; color: var(--ink-2); }
.nf-h { margin: 8px 0 12px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.1; }
.nf-p { margin: 0 0 24px; color: var(--ink-2); }

.nf-a {
  display: inline-block;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nf-a:hover { background: var(--stamp-ink); }

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

.foot { margin-top: 32px; padding-top: 48px; background: var(--ink); color: var(--counter); }

.foot a { color: var(--counter); }
.foot a:hover { background: transparent; color: var(--mark); }

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  padding-bottom: 32px;
}

.foot-name { margin: 0 0 8px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 22px; color: var(--paper); }
.foot-text { max-width: 44ch; margin: 0; font-size: 15px; color: var(--counter-2); }

.foot-col { display: flex; flex-direction: column; gap: 8px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; }
.foot-h { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--counter-2); }

.foot-legal { padding-top: 16px; padding-bottom: 32px; border-top: 1.5px dashed var(--counter-2); }
.foot-legal p { margin: 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--counter-2); }

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  .ledger { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ledger-head { position: static; }
  .band-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band:nth-child(3) { border-left: 0; padding-left: 0; }
  .band:nth-child(n+3) { border-top: 1.5px dashed var(--ink); }
  .tickets { grid-template-columns: minmax(0, 1fr); }
  .ticket:nth-child(2) { transform: none; }
  .faq-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bar-in { flex-direction: column; align-items: flex-start; }
  .bar-nav { gap: 4px 12px; font-size: 13px; }
  .hero { padding-top: 28px; padding-bottom: 8px; }
  .h1 { font-size: 40px; }
  .h1-sm { font-size: 34px; }
  .lede { margin-top: 12px; font-size: 18px; }
  .h2 { font-size: 28px; }
  .ledger,
  .bands,
  .sins,
  .compare,
  .faq { padding-top: 48px; }
  .sheet { padding: 24px 20px 48px; }
  .prose h2 { font-size: 26px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .step-n { font-size: 32px; }
  .band-row { grid-template-columns: minmax(0, 1fr); }
  .band { padding-left: 0; border-left: 0; }
  .band + .band { border-top: 1.5px dashed var(--ink); }
  .menu { padding: 24px 20px; box-shadow: 5px 5px 0 var(--ink); }
  .menu-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cta-in { padding: 24px 20px; }
  .cta-t { font-size: 26px; }
  .cta-btn { width: 100%; text-align: center; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a,
  .cta-btn { transition: none; }
}
