@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/newsreader-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F; }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/newsreader-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader Variable'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/newsreader-italic.woff2') format('woff2'); }
:root {
  --body-font: 'Newsreader Variable', Georgia, serif;
  --meta-font: 'IBM Plex Mono', monospace;
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  font-variation-settings: 'opsz' 16;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first;
}
[data-theme="light"] {
  color-scheme: light;
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --ink: #1c1a16;
  --ink-2: #4f4a41;
  --rule: #c9c0b0;
  --accent: #8a2a1e;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15140f; --paper-2: #1e1c16; --ink: #e6dfd1; --ink-2: #a39b8b; --rule: #3a362d; --accent: #d8917f;
}
* { box-sizing: border-box; }
body { margin: 0; }
[data-theme="light"] body::before {
  content: ''; position: fixed; inset: 0; z-index: 10; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 4px; }
.paper-grid { display: grid; grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 34rem) 15rem minmax(1.5rem, 1fr); column-gap: 3rem; }
.site-header, .site-footer { grid-column: 2 / 4; font-family: var(--meta-font); font-size: .8rem; font-variant-numeric: lining-nums; }
.site-header { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.site-header a { text-decoration: none; }
.site-header a[aria-current='page'], .site-header a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.availability { color: var(--ink-2); font-size: .7rem; }
.availability::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; vertical-align: middle; border-radius: 50%; background: var(--accent); }
nav { line-height: 2; }
nav a { white-space: nowrap; }
.theme-control { display: none; white-space: nowrap; }
[data-js] .theme-control { display: inline; }
#theme-toggle { appearance: none; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; text-underline-offset: .18em; text-decoration-thickness: 1px; }
#theme-toggle:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.separator { color: var(--rule); }
main { grid-column: 2; min-width: 0; padding-top: 4rem; counter-reset: section sidenote; }
h1, h2, h3 { font-weight: 500; }
h1 { font-size: 2.2rem; font-variation-settings: 'opsz' 72; line-height: 1.05; margin: 0 0 2rem; }
.home h1 { font-size: 3rem; margin: 1rem 0; }
.eyebrow, .affiliation { font-family: var(--meta-font); font-size: .8rem; color: var(--ink-2); font-variant-numeric: lining-nums; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.affiliation { margin: 1rem 0 1.5rem; }
.affiliation a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); width: 40%; margin: 1.5rem 0; }
p { margin: 0 0 1.5rem; }
.abstract { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
.abstract p:last-child { margin-bottom: 0; }
.abstract > p:first-child::before { content: 'Abstract.'; margin-right: .25em; font-style: italic; font-variant: small-caps; }
h2 { clear: both; counter-increment: section; font-size: 1.5rem; line-height: 1.25; margin: 4rem 0 1.5rem; scroll-margin-top: 2rem; }
h2::before { content: counter(section) '\2002\2002'; color: var(--accent); font: .8em var(--meta-font); font-variant-numeric: lining-nums; }
h3 { font-size: 1.15rem; font-style: italic; line-height: 1.4; margin: 2rem 0 1rem; }
strong { font-weight: 600; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1.5rem; }
li { padding-left: .25rem; margin-bottom: .5rem; }
.sidenote-anchor { counter-increment: sidenote; }
.sidenote-marker { color: var(--accent); font: .65rem var(--meta-font); vertical-align: super; line-height: 0; padding: .15rem; }
.sidenote-marker::after, .sidenote::before { content: counter(sidenote); }
.sidenote { float: right; clear: right; margin-right: -18rem; width: 15rem; color: var(--ink-2); font-size: .85rem; line-height: 1.4; margin-bottom: 1rem; position: relative; }
.sidenote::before { color: var(--accent); font: .75rem var(--meta-font); margin-right: .5rem; }
.sidenote a { color: inherit; }
.sidenote-toggle { display: none; }
.margin-note { float: right; clear: right; width: 15rem; margin: 4rem -18rem 0 0; color: var(--ink-2); font: .75rem/1.4 var(--meta-font); font-variant-numeric: lining-nums; }
.section-heading { clear: both; margin-top: 4rem; }
.section-heading h2 { clear: none; margin-top: 0; }
.section-heading .margin-note { margin-top: .2rem; }
.figures { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-variant-numeric: lining-nums; }
.figures th, .figures td { border-bottom: 1px solid var(--rule); padding: 1rem 0; vertical-align: baseline; }
.figures tr:first-child > * { border-top: 1px solid var(--rule); }
.figures th { font: 400 1.1rem/1.4 var(--meta-font); text-align: right; padding-right: 1.5rem; width: 1%; white-space: nowrap; }
blockquote { font-style: italic; color: var(--ink-2); margin: 2rem 0; position: relative; }
blockquote::before { content: '“'; position: absolute; left: -.65em; }
code { font: .85em var(--meta-font); background: var(--paper-2); padding: 2px; }
.site-footer { margin-top: 4rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); color: var(--ink-2); overflow-wrap: anywhere; }
.site-footer p { margin: 0 0 .5rem; }
.colophon { font-size: .7rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 20; background: var(--paper); padding: .5rem; }
@keyframes title-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.home .title-block > *, .home .abstract { animation: title-reveal 260ms ease-out both; }
.home .title-block > :nth-child(2) { animation-delay: 60ms; }
.home .title-block > :nth-child(3) { animation-delay: 120ms; }
.home .title-block > :nth-child(4) { animation-delay: 180ms; }
.home .abstract { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .home .title-block > *, .home .abstract { animation: none; } }
@media (max-width: 1099px) {
  .paper-grid { grid-template-columns: minmax(1.25rem, 1fr) minmax(0, 34rem) minmax(1.25rem, 1fr); column-gap: 0; }
  .site-header, .site-footer { grid-column: 2; }
  .site-header { display: block; }
  nav { margin-top: .5rem; }
  .sidenote-toggle { display: inline; position: absolute; width: 1px; height: 1px; opacity: 0; }
  .sidenote-marker { cursor: pointer; padding: .35rem; }
  .sidenote { display: none; float: none; width: auto; margin: 1rem 0; padding: .5rem 0 .5rem 1rem; border-left: 1px solid var(--accent); }
  .sidenote-toggle:checked ~ .sidenote { display: block; }
  .margin-note { display: block; float: none; width: auto; margin: 4rem 0 .5rem; }
  .section-heading .margin-note { margin-top: 0; }
  .section-heading h2 { margin-top: 0; }
}
@media (max-width: 767px) {
  :root { font-size: 17px; }
  main { padding-top: 3rem; }
  .home h1 { font-size: 2.2rem; }
  .identity { display: block; }
  .availability { display: block; margin-top: .5rem; }
  .figures th { font-size: 1.1rem; white-space: normal; padding-right: 1rem; min-width: 7rem; }
  .affiliation { overflow-wrap: anywhere; }
}
@media print {
  body::before, .sidenote-toggle { display: none; }
  .sidenote { display: block; float: none; width: auto; margin: 1rem 0; }
  .paper-grid { display: block; }
  .margin-note { float: none; width: auto; margin: 2rem 0 .5rem; }
}
/* d20 Bench: the interactive figures/explorer are the documented JS exception. */
.title-block h1 { margin: 1rem 0; }
.affiliation em { font-style: normal; }
.scroll { overflow-x: auto; max-width: 100%; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
caption { text-align: left; color: var(--ink-2); font-size: .85rem; margin: 0 0 .5rem; }
th, td { padding: .75rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
tr:first-child > * { border-top: 1px solid var(--rule); }
th { font-weight: 400; text-align: left; }
td { font: .75rem/1.5 var(--meta-font); text-align: right; }
thead th { font: .7rem/1.5 var(--meta-font); color: var(--ink-2); }
td:first-child, td:nth-child(2) { text-align: left; }
[data-report-table] th:first-child, [data-report-table] td:first-child { font: .7rem/1.5 var(--meta-font); }
[data-report-table] th:nth-child(n+3) { text-align: right; }
[data-report-table], .interactive-figure { width: calc(100% + 18rem); }
.interactive-figure { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 2rem 0; padding: .75rem 0; position: relative; }
.interactive-figure h3 { margin: 0 0 1rem; }
figcaption { color: var(--ink-2); font-size: .85rem; line-height: 1.4; margin-bottom: 1rem; max-width: 34rem; }
button, select { color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: .4rem .6rem; font: .75rem/1.5 var(--meta-font); max-width: 100%; }
button, summary { cursor: pointer; }
button:disabled { color: var(--ink-2); cursor: default; }
button:hover { border-color: var(--accent); }
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.figure-load { display: none; }
[data-js] .figure-load { display: inline-block; }
.figure-status { margin: .5rem 0; }
.figure-status:empty { display: none; }
.figure-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin: 1rem 0; }
.figure-chart { min-width: 0; }
.figure-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.figure-chart svg text { font: 11px var(--meta-font); fill: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.figure-chart .row-label { fill: var(--ink); }
.figure-chart .axis { stroke: var(--ink-2); stroke-width: 1; }
.figure-chart .grid, .figure-chart .tick { stroke: var(--rule); stroke-width: 1; }
.figure-chart .track { stroke: var(--rule); stroke-width: 1; }
.figure-chart .group-rule { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 1 3; }
.figure-chart .reference { stroke: var(--ink-2); stroke-dasharray: 3 4; stroke-width: 1; }
.figure-chart .reference.half { stroke-width: 1.5; stroke-dasharray: 6 4; }
.figure-chart .reference, .figure-chart .reference-label { pointer-events: none; }
.figure-chart .trace { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.figure-chart .trace.gemma { stroke: var(--accent); stroke-width: 1.6; }
.figure-chart .point { color: var(--ink); }
.figure-chart .gemma.point { color: var(--accent); }
.figure-chart .hit { fill: transparent; stroke: none; }
.figure-chart .point { cursor: default; }
.figure-chart .point:focus { outline: none; }
.figure-chart .point:focus-visible .hit { stroke: currentColor; stroke-width: 1.5; }
.figure-chart .point:focus .mark, .figure-chart .point:hover .mark { stroke-width: 3; }
.figure-chart .point, .figure-chart .trace, .figure-chart .track { transition: opacity .15s; }
.figure-chart svg.has-focus :is(.point, .trace, .track):not(.in-focus) { opacity: .2; }
@media (prefers-reduced-motion: reduce) { .figure-chart .point, .figure-chart .trace, .figure-chart .track { transition: none; } }
.figure-tip { position: absolute; z-index: 12; max-width: min(28rem,90%); padding: .75rem; border: 1px solid var(--ink-2); background: var(--paper); color: var(--ink); font: .7rem/1.5 var(--meta-font); overflow-wrap: anywhere; white-space: pre-line; pointer-events: none; }
.figure-tip[hidden] { display: none; }
.small { font-size: .75rem; color: var(--ink-2); }
.figure-legend { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; margin: 0 0 .75rem; font: .7rem/1.5 var(--meta-font); color: var(--ink-2); }
.figure-legend .break { flex-basis: 100%; height: 0; }
.figure-legend .key { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); }
.figure-legend .key svg { flex: none; overflow: visible; color: var(--ink); }
.figure-legend .gemma svg { color: var(--accent); }
.figure-readout { font: .7rem/1.5 var(--meta-font); color: var(--ink-2); overflow-wrap: anywhere; margin: .75rem 0 0; min-height: 6em; }
mark.check { color: var(--ink); background: var(--paper-2); text-decoration: underline wavy var(--accent); text-underline-offset: .2em; }
.notice { border-left: 1px solid var(--accent); padding-left: 1rem; color: var(--ink-2); }
section { margin: 2rem 0; }
section h2 { margin-top: 3rem; }
label { display: inline-block; margin: .5rem 1rem .5rem 0; font: .75rem/1.5 var(--meta-font); }
label select { display: block; margin-top: .25rem; }
.answer, .passage { white-space: pre-wrap; overflow-wrap: anywhere; }
.answer { border-top: 1px solid var(--rule); padding-top: 1rem; }
#answers > section { border-top: 1px solid var(--rule); }
#answers h3 { margin-top: 1rem; }
.score { font-variant-numeric: lining-nums; }
details { margin: 1rem 0; }
summary { color: var(--ink-2); font-size: .85rem; margin-bottom: .75rem; }
#data-view .scroll { width: calc(100% + 18rem); max-width: none; }
#summary td:nth-child(n+4) { text-align: right; white-space: nowrap; }
#summary td:nth-child(-n+3) { text-align: left; }
@media (max-width: 1099px) {
 [data-report-table], .interactive-figure, #data-view .scroll { width: 100%; }
}
@media (max-width: 399px) {
 .site-header, .site-footer { font-size: .7rem; }
 td, thead th { font-size: .65rem; }
}
@media print {
 .figure-load, .figure-controls, .figure-tip { display: none; }
 [data-report-table], .interactive-figure, #data-view .scroll { width: 100%; }
 details { display: block; }
}
[hidden] { display: none !important; }
label { max-width: 100%; }
#settings, #question, #reference, #topic { overflow-wrap: anywhere; }
.figure-plot label { margin: 0 0 .75rem; }
.figure-plot label select { display: inline-block; margin: 0 0 0 .5rem; }
.doc-back { font: .8rem var(--meta-font); margin: 0 0 1rem; }
.doc-back a { color: var(--ink-2); text-decoration: none; }
.doc-back a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
a.cite { color: var(--accent); text-decoration: none; font: .75em var(--meta-font); font-variant-numeric: lining-nums; }
a.cite:hover { text-decoration: underline; text-decoration-color: var(--accent); }
td.num, th.num { text-align: right; }
