/* Reel Borough — tokens, reset, shared primitives */
:root {
  --paper: #f3f4ef;
  --paper-2: #e6e9e0;
  --ink: #121410;
  --ink-soft: #3d4138;
  --lime: #c6ff2e;
  --lime-ink: #162000;
  --gap: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --wrap: 70rem;
  --read: 66ch;
  --font-display: "Zilla Slab", "Pica", "Rockwell", serif;
  --font-body: "Public Sans", "Source Sans 3", "Segoe UI", sans-serif;
  --z-header: 20;
  --z-age: 30;
  --z-cookie: 40;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(18, 20, 16, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 20, 16, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" on, "tnum" on;
  padding-bottom: 5.5rem;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--lime);
  color: var(--lime-ink);
  padding: var(--space-2) var(--space-4);
  z-index: 50;
}

.skip:focus {
  top: var(--space-4);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.wrap > * {
  grid-column: 1 / -1;
}

.col-read {
  grid-column: 1 / -1;
  max-width: var(--read);
}

@media (min-width: 900px) {
  .col-read {
    grid-column: 2 / 10;
    max-width: none;
  }

  .col-wide {
    grid-column: 1 / -1;
  }

  .col-8 {
    grid-column: 1 / 9;
  }

  .col-4 {
    grid-column: 9 / 13;
  }
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.kicker--idx {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.kicker--idx .num {
  font-variant-numeric: tabular-nums;
  color: var(--lime-ink);
  background: var(--lime);
  padding: 0 0.4em;
}

.prose {
  max-width: var(--read);
}

.prose a,
.lnk {
  color: var(--lime-ink);
  background: var(--lime);
  text-decoration: none;
  font-weight: 650;
  padding: 0 0.15em;
}

.prose a::before,
.lnk::before {
  content: "[";
  font-weight: 500;
}

.prose a::after,
.lnk::after {
  content: "]";
  font-weight: 500;
}

.prose a:hover,
.lnk:hover {
  filter: brightness(0.96);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

@media (max-width: 699px) {
  .btn {
    width: 100%;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.5em;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
}

.badge::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  background: var(--lime);
}

.badge--lime {
  background: var(--lime);
  color: var(--lime-ink);
}

.badge--lime::before {
  background: var(--ink);
}

.badge--tint {
  background: var(--paper-2);
  color: var(--ink);
}

.badge--tint::before {
  background: var(--ink);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.list-check {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: var(--space-3);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7em;
  height: 0.7em;
  background: var(--lime);
  clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 18%, 84% 6%, 36% 70%);
}

.table-wrap {
  overflow-x: auto;
  margin: var(--space-5) 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border: 0;
  vertical-align: top;
}

.data-table th {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
}

.data-table th:not(:first-child),
.data-table td:not(:first-child) {
  text-align: right;
}

.data-table tbody tr:nth-child(odd) {
  background: rgba(18, 20, 16, 0.04);
}

.data-table tbody tr:nth-child(even) {
  background: transparent;
}

.score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.score small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.25em;
}

.fig {
  position: relative;
  margin: var(--space-6) 0;
}

.fig img,
.fig svg {
  width: 100%;
  display: block;
}

.fig--grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}

.fig__cap {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.band {
  padding-block: var(--space-8);
}

.band--tint {
  background: var(--paper-2);
}

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

.band--notch {
  clip-path: polygon(0 18px, 28px 0, calc(100% - 28px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 18px));
}

.is-anchored {
  outline: 3px solid var(--lime);
  outline-offset: 8px;
  background: color-mix(in srgb, var(--lime) 22%, transparent);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.tiny {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
