@font-face { font-family: "Jersey 25"; src: url("/assets/jersey25.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #0B1030; --night: #141C52; --line: #2B3780; --paper: #F4F4F4; --dim: #A3ACDD; --red: #F00020;
  --scouts: #6F86FF; --witness: #16A394; --judge: #F2334B;
  --px: "Jersey 25", ui-monospace, monospace;
  --u: 4px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; background: var(--ink); color: var(--paper); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--paper); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.px { font-family: var(--px); font-weight: 400; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); color: var(--ink); padding: 6px 10px; z-index: 10; }

/* Ticker: steps like the NinjaSaver clock (8 per second). */
.ticker { height: 40px; background: var(--night); border-bottom: 2px solid var(--line); overflow: hidden; display: flex; align-items: center; }
.ticker .label { flex: none; height: 100%; display: flex; align-items: center; padding: 0 12px; background: var(--red); font-size: 20px; }
.ticker .viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker .track { display: inline-flex; gap: 36px; white-space: nowrap; font-size: 20px; padding-left: 24px; animation: run var(--dur, 60s) steps(var(--steps, 480)) infinite; }
.ticker .track b { color: var(--red); font-weight: 400; margin-right: 8px; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
header.site { padding: 40px 0 8px; }
.brand { display: inline-block; text-decoration: none; font-size: clamp(54px, 11vw, 96px); line-height: .85; text-shadow: var(--u) var(--u) 0 var(--red); }
.brand:hover { color: var(--paper); }
.tagline { color: var(--dim); margin: 14px 0 0; max-width: 60ch; }
nav.main { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 21px; }
nav.main a { text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--red); }

main { padding-bottom: 72px; }
.meta { color: var(--dim); font-size: 15px; }
h1.issue { font-size: clamp(34px, 6vw, 52px); line-height: 1; margin: 44px 0 12px; text-wrap: balance; }
.issuemeta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 20px; color: var(--dim); }
.issuemeta .no { color: var(--paper); background: var(--red); padding: 0 8px; }
.intro { font-size: 20px; line-height: 1.55; margin: 18px 0 8px; max-width: 62ch; text-wrap: pretty; }

.toc { margin: 26px 0 8px; }
.toc > p { margin: 0 0 8px; font-size: 19px; color: var(--dim); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.toc li { counter-increment: n; border-top: 2px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: grid; grid-template-columns: 30px 108px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; text-decoration: none; }
.toc a::before { content: counter(n); font: 20px var(--px); color: var(--red); }
.toc .sec { font-size: 17px; color: var(--dim); }
.toc a:hover { color: #fff; }
@media (max-width: 560px) { .toc a { grid-template-columns: 26px 1fr; row-gap: 0; } .toc .sec { grid-column: 2; } .toc .hl { grid-column: 2; } }

.panel { background: var(--night); border: 2px solid var(--line); padding: 22px 24px; position: relative; }
.panel.strong { border-color: var(--paper); box-shadow: var(--u) var(--u) 0 var(--red); }
article.item { margin-top: 22px; scroll-margin-top: 20px; transition: border-color .12s steps(2), box-shadow .12s steps(2); }
article.item:target, article.item:hover { border-color: var(--paper); box-shadow: var(--u) var(--u) 0 var(--red); }
.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag { display: inline-block; background: var(--red); color: var(--paper); font-size: 18px; line-height: 1.25; padding: 1px 8px; }
.tag.update { background: var(--paper); color: var(--ink); }
.chip { display: inline-block; font-size: 17px; line-height: 1.2; padding: 1px 8px; border: 2px solid var(--line); color: var(--dim); }
article.item h2 { font-size: clamp(26px, 4.4vw, 32px); line-height: 1.05; margin: 0 0 12px; text-wrap: balance; }
article.item h2 a { text-decoration: none; }
article.item p { margin: 0 0 10px; }
.label { font-family: var(--px); font-size: 18px; color: var(--dim); display: block; margin-bottom: 2px; }
.means { border-top: 2px solid var(--line); padding-top: 12px; margin-top: 14px; }
.sources { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--dim); }
.sources li { margin: 3px 0; }
.sources a { color: var(--paper); }

.term { margin-top: 36px; }
.term h2 { font-size: 34px; line-height: 1; margin: 6px 0 12px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 21px; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; text-decoration-color: var(--red); }

/* Archive */
.issues { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.issues a.card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; text-decoration: none; }
.issues .num { font-size: 40px; line-height: 1; color: var(--red); }
.issues h2 { font-size: 26px; line-height: 1.05; margin: 0 0 6px; }
.issues p { margin: 0; color: var(--dim); font-size: 15px; }
.issues a.card:hover { border-color: var(--paper); box-shadow: var(--u) var(--u) 0 var(--red); }

/* Tokens */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 26px; }
.tile .v { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .k { color: var(--dim); font-size: 15px; margin-top: 6px; }
.chart { margin-top: 22px; }
.chart .plot { overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 560px; height: auto; overflow: visible; }
.chart .axis text { fill: var(--dim); font: 16px var(--px); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .bar rect { shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .hl, .chart .col:hover .hl { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--dim); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.tip { position: absolute; pointer-events: none; background: var(--ink); border: 2px solid var(--paper); padding: 8px 10px; font-size: 14px; line-height: 1.45; min-width: 180px; box-shadow: 3px 3px 0 var(--red); opacity: 0; transition: opacity .1s steps(1); z-index: 3; }
.tip.on { opacity: 1; }
.tip b { font-family: var(--px); font-weight: 400; font-size: 18px; display: block; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
th { font: 18px var(--px); color: var(--dim); }
td.n, th.n { text-align: right; }
details summary { cursor: pointer; font: 20px var(--px); margin-top: 24px; }

/* Prose pages */
.prose { max-width: 66ch; }
.prose h1 { font-size: clamp(38px, 7vw, 56px); line-height: 1; margin: 44px 0 16px; }
.prose h2 { font-size: 30px; line-height: 1.05; margin: 36px 0 10px; }
.prose li { margin: 4px 0; }
.court { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; counter-reset: s; }
.court li { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; }
.court .n { font: 20px var(--px); background: var(--red); text-align: center; padding: 4px 0; }
.court li:nth-child(2) .n { background: var(--scouts); }
.court li:nth-child(3) .n { background: var(--witness); }
.court li:nth-child(4) .n { background: var(--judge); }

footer.site { border-top: 2px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 15px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 19px var(--px); margin-bottom: 10px; }
footer.site nav a { text-decoration: none; color: var(--paper); }
footer.site nav a:hover { text-decoration: underline; text-decoration-color: var(--red); }

.empty { margin-top: 44px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tile .v { font-size: 32px; }
  .tile { padding: 16px 14px; }
  .panel { padding: 18px 16px; }
  .issues a.card { grid-template-columns: 1fr; gap: 6px; }
  .court li { grid-template-columns: 1fr; gap: 6px; }
  .ticker .label { font-size: 17px; padding: 0 8px; }
}
@media print { .ticker, nav.main, footer.site nav { display: none; } body { background: #fff; color: #000; } .panel { background: #fff; } }
article.item p, .means, .intro, .sources { overflow-wrap: anywhere; }
