:root {
  --paper: #f4ede0;
  --ink: #1d1915;
  --red: #8a2a1e;
  --red-dark: #5e1a12;
  --orange: #e07b30;
  --brown: #3b3127;
  --muted: #5e554b;
  --rule: #d9cdb7;
  --rule-strong: #b9ac96;
  --cream-muted: #d8d1c0;
  --pause: #f0a06a;
  --panel-rule: rgb(244 237 224 / 0.25);
  --panel-edge: rgb(244 237 224 / 0.45);
  --robbers: #4b7330;
  --robbers-text: #3f6328;
  --cops: #2d5876;
  --adler: #8b1a1a;
  --display: "Old Standard TT", Georgia, serif;
  --body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
}

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

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

.wrap {
  max-width: 75rem;
  margin: 0 auto;
  padding-inline: 2rem;
}

.site-header {
  border-bottom: 3px double var(--ink);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.875rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav .button,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.375rem;
  border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.button:hover,
.site-nav .button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.button-large {
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1.25rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(27.5rem, 100%), 1fr));
  gap: 3.5rem 4.5rem;
  align-items: center;
  padding-block: 4.5rem 5.5rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts li {
  padding: 0 1rem;
  border-left: 1px solid var(--rule-strong);
}

.facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.title-line {
  display: block;
}

.title-accent {
  font-style: italic;
  color: var(--red);
}

.lede {
  margin: 0;
  max-width: 36em;
  text-wrap: pretty;
}

.question {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.funded {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 0.75rem;
}

.hero-art img {
  width: 100%;
  max-width: 26.25rem;
  box-shadow: 0 18px 40px rgb(29 25 21 / 0.3);
  transform: rotate(2deg);
}

.video {
  background: var(--brown);
}

.video-inner {
  max-width: 60rem;
  padding-block: 4rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rules {
  border-top: 3px double var(--ink);
}

.rules-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem 4.5rem;
  padding-block: 5rem 7.5rem;
}

.toc {
  flex: 1 1 13.75rem;
  max-width: 18.75rem;
}

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

.toc a {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  min-height: 44px;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--red);
}

.numeral {
  font-family: var(--display);
  font-style: italic;
  color: var(--red);
}

.toc .numeral {
  min-width: 2.125rem;
}

.rules-body {
  display: flex;
  flex: 999 1 35rem;
  flex-direction: column;
  gap: 5.5rem;
  min-width: 0;
}

.rule {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-margin-top: 1.5rem;
}

.rule > * {
  max-width: 47.5rem;
}

.rule > .script-panel,
.rule > .team {
  max-width: none;
}

.rule-head {
  display: flex;
  align-items: baseline;
  gap: 1.125rem;
  padding-bottom: 0.875rem;
  border-bottom: 3px double var(--ink);
}

.rule-head .numeral {
  font-size: 1.75rem;
}

.rule h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.1;
}

.rule h3 {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule-head + h3 {
  margin-top: 0.5rem;
}

.rule p {
  margin: 0;
  text-wrap: pretty;
}

.rule .note {
  font-size: 1.0625rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--muted);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cards img {
  width: 7.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgb(29 25 21 / 0.2);
}

.table-wrap {
  overflow-x: auto;
}

.points {
  border-collapse: collapse;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.points th {
  padding: 0.625rem 1.5rem 0.625rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.points td {
  padding: 0.625rem 1.125rem;
}

.points tr:first-child > * {
  border-bottom: 1px solid var(--ink);
}

.points tr:last-child td {
  font-weight: 700;
  color: var(--red);
}

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

.tips li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--rule);
}

.tips li:last-child {
  border-bottom: 1px solid var(--rule);
}

.tip-label {
  flex: 0 0 8rem;
  padding-top: 0.25rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.tip-text {
  flex: 1 1 22.5rem;
  line-height: 1.65;
}

.script-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 3px;
  background: var(--brown);
  color: var(--paper);
  scroll-margin-top: 1.5rem;
}

.rule .script-panel h3 {
  margin: 0;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
}

.rule .script-intro {
  max-width: 36em;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream-muted);
}

.picker {
  display: none;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.js .picker {
  display: flex;
}

.picker button {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--panel-edge);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.375rem;
  cursor: pointer;
}

.picker button:hover {
  border-color: var(--paper);
}

.picker button[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.script {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-rule);
  scroll-margin-top: 1.5rem;
}

.js .script:not(.is-active) {
  display: none;
}

.script-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.script h4 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.3;
}

.rule .script p {
  max-width: 34em;
  font-size: 1.3125rem;
  line-height: 1.55;
}

.rule .script .pause {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pause);
}

.pause::before {
  content: "";
  width: 28px;
  border-top: 1px solid currentColor;
}

.script-audio audio {
  display: block;
  width: 100%;
  max-width: 22rem;
}

.js .script-audio audio {
  display: none;
}

.listen {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0 1.375rem 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  cursor: pointer;
}

.js .listen {
  display: inline-flex;
}

.listen:hover {
  text-decoration: underline;
}

.listen svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.listen .icon-pause,
.listen[aria-pressed="true"] .icon-play {
  display: none;
}

.listen[aria-pressed="true"] .icon-pause {
  display: inline;
}

.team {
  display: flex;
  flex-direction: column;
}

.rule .team h3 {
  margin: 0 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 4px solid currentColor;
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
}

.team-robbers {
  --team: var(--robbers-text);
}

.team-cops {
  --team: var(--cops);
}

.team-adler {
  --team: var(--adler);
}

.rule .team h3,
.players {
  color: var(--team);
}

.rule .team-robbers h3 {
  border-top-color: var(--robbers);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21.25rem, 100%), 1fr));
  column-gap: 2.5rem;
}

.role {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.role img {
  flex: none;
  width: 104px;
  height: 129px;
}

.role-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.role-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.role h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4375rem;
  line-height: 1.15;
}

.players {
  padding: 1px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.role dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.role dt {
  font-weight: 700;
}

.role dd {
  margin: 0;
}

.rule .role p {
  font-size: 1rem;
  line-height: 1.55;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-block: 2.5rem;
}

.footer-mark {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
}

.footer-links a:hover {
  color: var(--pause);
}

@media (max-width: 37.5rem) {
  .wrap {
    padding-inline: 1rem;
  }

  .hero-inner {
    padding-block: 3rem 4rem;
  }

  .facts {
    column-gap: 1.25rem;
  }

  .facts li,
  .facts li:first-child {
    padding: 0;
    border-left: 0;
  }

  .rules-inner {
    padding-block: 3.5rem 5rem;
  }

  .rules-body {
    gap: 4rem;
  }

  .rule h2 {
    font-size: 2.25rem;
  }

  .rule .script p {
    font-size: 1.1875rem;
  }

  .role img {
    width: 84px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
