@font-face {
  font-family:PageSerif;
  src:local("Iowan Old Style"),local("Palatino");
  font-display:swap;
}

:root {
  --ink:#242221;
  --soft:#575451;
  --muted:#77716c;
  --accent:#7a1d2a;
  --accent-pale:#f5edef;
  --paper:#faf9f6;
  --line:#e7e3de;
  --serif:PageSerif,"Palatino Linotype",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:92px;
  -webkit-text-size-adjust:100%;
}

body {
  margin:0;
  color:var(--ink);
  background:#fff;
  font:18px/1.7 var(--serif);
  -webkit-font-smoothing:antialiased;
}

a {
  color:var(--accent);
  text-decoration:none;
}

a:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

button,input {
  font:inherit;
}

button,a,input,summary {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #a4485c;
  outline-offset:5px;
}

button {
  cursor:pointer;
}

svg {
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

h1,h2,h3,p,figure {
  margin:0;
}

p+p {
  margin-top:18px;
}

h1,h2,h3 {
  font-weight:600;
}

h2 {
  font-size:clamp(28px,3.3vw,36px);
  line-height:1.22;
  letter-spacing:-.025em;
  margin-bottom:26px;
}

h3 {
  font-size:23px;
  line-height:1.35;
  margin-bottom:14px;
}

strong {
  font-weight:700;
}

sup {
  font-size:.65em;
  margin-left:2px;
}

.container {
  max-width:1136px;
  padding:0 32px;
  margin:0 auto;
}

.narrow {
  max-width:820px;
  padding:0 32px;
  margin:0 auto;
}

.reading-width {
  max-width:780px;
}

.hero {
  text-align:center;
  padding:70px 0 44px;
  background:radial-gradient(ellipse at 50% 0,rgba(122,29,42,.055),transparent 70%);
}

.eyebrow {
  display:inline-flex;
  gap:10px;
  align-items:center;
  border:1px solid #eadadd;
  background:#f7f0f1;
  padding:5px 14px;
  border-radius:20px;
  color:var(--accent);
  font:500 11px/1.8 var(--sans);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:25px;
}

.eyebrow span {
  opacity:.5;
}

h1 {
  font-size:clamp(33px,4.3vw,49px);
  line-height:1.16;
  letter-spacing:-.028em;
}

h1 em {
  color:var(--accent);
  font-weight:500;
}

.subtitle {
  font-size:21px;
  line-height:1.5;
  color:var(--soft);
  margin:22px auto 0;
}

.authors {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px 24px;
  margin:28px 0 7px;
  font-size:17px;
}

.authors span {
  white-space:nowrap;
}

.affiliations {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px 22px;
  color:var(--soft);
  font:13px/1.65 var(--sans);
}

.author-note {
  font:12px/1.5 var(--sans);
  color:var(--muted);
  margin-top:9px;
}

.resource-links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:29px;
}

.button,.resource-status {
  display:inline-flex;
  align-items:center;
  gap:9px;
  font:500 13px/1.4 var(--sans);
  border:1px solid var(--line);
  padding:11px 18px;
  border-radius:24px;
  background:#fff;
  color:var(--ink);
}

.button {
  transition:transform .15s,background .15s;
}

.button:hover {
  transform:translateY(-2px);
  background:var(--paper);
  text-decoration:none;
}

.button.primary {
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}

.button.primary:hover {
  background:var(--accent);
  border-color:var(--accent);
}

.resource-status {
  color:#68605c;
  background:transparent;
  border-style:dashed;
}

.coming-soon {
  font-size:10px;
  color:var(--muted);
}

.section-nav {
  position:sticky;
  top:0;
  z-index:10;
  border-block:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  font:12px/1.5 var(--sans);
}

.nav-inner {
  max-width:1136px;
  padding:0 32px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:59px;
  gap:24px;
}

.nav-brand {
  font:600 20px/1 var(--serif);
  color:var(--ink);
}

.nav-brand span,.footer-brand span {
  color:var(--accent);
  margin-left:6px;
}

.nav-links {
  display:flex;
  gap:28px;
  overflow:auto;
}

.nav-links a {
  display:block;
  padding:20px 0;
  color:var(--soft);
  white-space:nowrap;
  border-bottom:2px solid transparent;
}

.nav-links a:hover,.nav-links a[aria-current="location"] {
  color:var(--accent);
  border-color:var(--accent);
  text-decoration:none;
}

.teaser {
  padding-top:40px;
}

.figure-card {
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:23px 24px;
  margin:30px 0 0;
  box-shadow:0 2px 8px #30201503;
}

.teaser .figure-card {
  margin:0;
}

.figure-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:23px;
}

.small-label,.section-label {
  font:600 11px/1.5 var(--sans);
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--accent);
}

.figure-topline .small-label {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.1em;
}

.figure-topline>a {
  font:11px/1.5 var(--sans);
  white-space:nowrap;
  color:var(--muted);
}

.figure-zoom {
  display:block;
  cursor:zoom-in;
  border-radius:3px;
}

.figure-zoom img {
  display:block;
  width:100%;
  height:auto;
}

figcaption {
  color:var(--soft);
  font:13px/1.7 var(--sans);
  margin:23px auto 0;
  max-width:850px;
}

figcaption strong {
  color:var(--ink);
}

.study-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:30px 0 33px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

.study-strip>div+div {
  border-left:1px solid var(--line);
}

.study-strip strong {
  display:block;
  font-size:24px;
  font-weight:500;
}

.study-strip span {
  display:block;
  font:11px/1.6 var(--sans);
  color:var(--muted);
  margin-top:3px;
}

section {
  padding:68px 0;
}

section+section {
  border-top:1px solid var(--line);
}

.section-label {
  margin-bottom:14px;
  font-size:11px;
}

.soft-section {
  background:var(--paper);
}

.tldr {
  border-left:3px solid var(--accent);
  padding:22px 27px;
  background:var(--paper);
  margin-bottom:30px;
  border-radius:0 6px 6px 0;
}

.tldr p {
  margin-top:8px;
  font-size:18px;
}

.finding-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin-top:34px;
}

.finding {
  display:flex;
  flex-direction:column;
  border-top:1px solid #d9c8c8;
  padding-top:21px;
}

.finding-number {
  font:11px/1.5 var(--sans);
  color:var(--accent);
  letter-spacing:.08em;
  margin-bottom:17px;
}

.finding h3 {
  font-size:24px;
  max-width:245px;
}

.finding p {
  font-size:16px;
  line-height:1.65;
  color:var(--soft);
  margin-bottom:24px;
}

.finding>a {
  margin-top:auto;
  font:500 12px/1.5 var(--sans);
}

.finding>a span {
  margin-left:4px;
}

.architecture-demo {
  border:1px solid var(--line);
  border-radius:10px;
  padding:26px 32px;
  background:var(--paper);
  margin-top:32px;
}

.architecture-demo>.small-label {
  color:var(--muted);
}

.architecture-flow {
  display:flex;
  justify-content:center;
  gap:17px;
  align-items:center;
  padding:48px 0 30px;
}

.block {
  min-width:116px;
  text-align:center;
  border:1px solid #dcd6d1;
  background:#fff;
  border-radius:6px;
  padding:18px 19px;
  font:500 14px/1.4 var(--sans);
  color:#79716c;
}

.block small {
  display:block;
  font-size:11px;
  font-weight:400;
  margin-top:7px;
}

.block.core {
  color:var(--accent);
  border:1.5px solid var(--accent);
  background:#f5edef;
  padding-inline:27px;
}

.recurrent-group {
  position:relative;
}

.loop-label {
  position:absolute;
  left:0;
  right:0;
  top:-27px;
  text-align:center;
  color:var(--accent);
  font:500 12px/1.5 var(--sans);
}

.input-token {
  font:12px/1.5 var(--sans);
  color:var(--muted);
}

.flow-arrow {
  color:#aca09b;
}

.budget-controls {
  border-top:1px solid var(--line);
  padding-top:22px;
  display:flex;
  align-items:center;
  gap:25px;
  font:12px/1.5 var(--sans);
}

.budget-controls label {
  white-space:nowrap;
}

.budget-controls label strong {
  display:inline-block;
  margin-left:8px;
  color:var(--accent);
  width:20px;
}

.budget-controls input {
  flex:1;
  min-width:80px;
  accent-color:var(--accent);
  cursor:pointer;
  height:24px;
}

.regime {
  border-radius:4px;
  background:#eee7e4;
  min-width:137px;
  padding:6px 12px;
  text-align:center;
  color:var(--accent);
  font-size:11px;
}

.depth-readout {
  display:flex;
  gap:28px;
  margin-top:19px;
  font:11px/1.7 var(--sans);
  color:var(--soft);
}

.depth-readout strong {
  color:var(--ink);
  margin-left:5px;
  font-size:14px;
}

.demo-note {
  font:11px/1.7 var(--sans);
  color:var(--muted);
  margin-top:16px;
}

.setup-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:45px;
  margin-top:35px;
}

.setup-grid h3 {
  font-size:21px;
}

.setup-grid p {
  font-size:16px;
  color:var(--soft);
}

.equation {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:7px;
  margin-top:30px;
  padding:21px 25px;
  text-align:center;
  overflow-x:auto;
}

.equation>p {
  font-size:25px;
  margin-top:10px;
  white-space:nowrap;
}

.equation-sep {
  margin:0 24px;
  color:#b5a6a0;
}

.equation sub {
  font-size:.6em;
}

.equation small {
  display:block;
  font-size:13px;
  color:var(--soft);
  margin-top:14px;
}

.history-equation>p {
  font-size:24px;
}

.note {
  padding:20px 0 0;
  margin-top:28px;
  border-top:1px solid var(--line);
  font-size:17px;
  color:var(--soft);
}

.note strong {
  color:var(--accent);
}

.regime-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin-top:30px;
}

.regime-grid article {
  padding-top:18px;
  border-top:2px solid #e7d8d8;
}

.regime-grid h3 {
  font-size:21px;
  margin-top:9px;
}

.regime-grid p {
  font-size:16px;
  color:var(--soft);
}

.additional-figure {
  margin-top:21px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
}

.additional-figure summary {
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  padding:17px 22px;
  font:500 13px/1.6 var(--sans);
  color:var(--soft);
  list-style:none;
  gap:12px;
}

.additional-figure summary::-webkit-details-marker {
  display:none;
}

.additional-figure summary span {
  font-size:19px;
  color:var(--accent);
}

.additional-figure[open] summary span {
  transform:rotate(45deg);
}

.additional-figure .figure-card {
  margin:0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
}

.subsection {
  margin-top:45px;
}

.result-highlights {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin:35px 0;
  text-align:center;
}

.result-highlights>div+div {
  border-left:1px solid var(--line);
}

.result-highlights strong {
  font-size:43px;
  color:var(--accent);
  font-weight:500;
  line-height:1.2;
  letter-spacing:-.03em;
}

.result-highlights strong span {
  font-size:24px;
  letter-spacing:0;
}

.result-highlights p {
  font:12px/1.6 var(--sans);
  color:var(--soft);
  margin:9px 10px 0;
}

.table-wrap {
  margin-top:32px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}

table {
  border-collapse:collapse;
  width:100%;
  font:13px/1.6 var(--sans);
  text-align:left;
}

caption {
  text-align:left;
  padding:16px 20px;
  background:#f3f0ec;
  color:var(--soft);
  font-size:12px;
}

th,td {
  padding:15px 20px;
  border-top:1px solid var(--line);
}

thead th {
  font-size:11px;
  color:var(--muted);
  font-weight:500;
}

tbody th {
  font-weight:400;
}

tbody th span {
  font-size:11px;
  color:var(--muted);
  margin-left:10px;
}

td:last-child,thead th:last-child {
  text-align:right;
  white-space:nowrap;
}

.best {
  background:var(--accent-pale);
  color:var(--accent);
}

.best th {
  font-weight:600;
}

.table-note,.citation-note {
  font:12px/1.7 var(--sans);
  color:var(--muted);
  margin-top:12px;
}

.code-card {
  border:1px solid var(--line);
  border-radius:8px;
  background:#f6f4f0;
  margin-top:24px;
  overflow:hidden;
}

.code-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 20px;
  border-bottom:1px solid var(--line);
  font:10px/1.5 var(--sans);
  color:var(--muted);
  letter-spacing:.08em;
}

.code-toolbar button {
  border:1px solid #d7d1ca;
  background:#fff;
  border-radius:5px;
  padding:6px 12px;
  color:var(--soft);
  font:11px/1.5 var(--sans);
}

.code-toolbar button:hover {
  color:var(--accent);
  border-color:var(--accent);
}

pre {
  margin:0;
  padding:23px;
  overflow-x:auto;
  font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#53423b;
}

.copy-status {
  font:12px/1.6 var(--sans);
  color:var(--accent);
  min-height:20px;
  margin-top:8px;
}

footer {
  border-top:1px solid var(--line);
  background:var(--paper);
  padding:29px 0;
}

.footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.footer-brand {
  font-size:22px;
  font-weight:600;
  color:var(--ink);
}

footer p,footer .footer-inner>a:last-child {
  font:11px/1.6 var(--sans);
  color:var(--muted);
}

.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  background:var(--accent);
  padding:10px 15px;
  color:#fff;
  z-index:100;
}

.skip-link:focus {
  top:10px;
}

dialog {
  max-width:96vw;
  width:1600px;
  max-height:94dvh;
  padding:0;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 15px 70px #0003;
  color:var(--ink);
  background:#fff;
}

dialog::backdrop {
  background:#171316b8;
  backdrop-filter:blur(4px);
}

.dialog-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
  border-bottom:1px solid var(--line);
  gap:20px;
  font:13px/1.5 var(--sans);
}

.dialog-toolbar p {
  max-width:85%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.dialog-toolbar button {
  border:1px solid var(--line);
  border-radius:5px;
  background:#fff;
  padding:6px 10px;
  font:12px/1.5 var(--sans);
  white-space:nowrap;
}

.dialog-toolbar button span {
  margin-left:10px;
}

.dialog-image-wrap {
  overflow:auto;
  max-height:72dvh;
  padding:20px;
}

.dialog-image-wrap img {
  display:block;
  width:100%;
  min-width:1050px;
  height:auto;
}

.dialog-hint {
  padding:10px 20px;
  border-top:1px solid var(--line);
  font:11px/1.5 var(--sans);
  color:var(--muted);
}

body.modal-open {
  overflow:hidden;
}

@media(min-width:1450px) {
  .hero {
    padding-top:84px;
  }
  .container,.nav-inner {
    max-width:1180px;
  }
}

@media(max-width:800px) {
  .architecture-flow {
    gap:9px;
  }
  .block {
    min-width:90px;
    padding:15px 10px;
  }
  .block.core {
    padding-inline:16px;
  }
  .input-token {
    font-size:10px;
  }
  .setup-grid {
    gap:25px;
  }
  .finding-grid {
    gap:20px;
  }
  .finding h3 {
    font-size:21px;
  }
  .nav-links {
    gap:22px;
  }
  .depth-readout {
    gap:15px;
  }
  .study-strip strong {
    font-size:21px;
  }
  .history-equation>p {
    font-size:20px;
  }
  .footer-inner {
    flex-wrap:wrap;
  }
  .regime-grid {
    gap:20px;
  }
}

@media(max-width:600px) {
  body {
    font-size:17px;
  }
  .container,.narrow {
    padding-inline:20px;
  }
  .hero {
    padding:43px 0 31px;
  }
  .eyebrow {
    font-size:9px;
    margin-bottom:22px;
  }
  h1 {
    font-size:34px;
  }
  .desktop-break {
    display:none;
  }
  .subtitle {
    font-size:18px;
    max-width:350px;
    margin-top:18px;
  }
  .authors {
    font-size:15px;
    gap:6px 16px;
    margin-top:23px;
  }
  .affiliations {
    display:block;
    font-size:11px;
  }
  .affiliations span {
    display:block;
    margin-top:4px;
  }
  .resource-links {
    gap:7px;
    margin-top:24px;
  }
  .button,.resource-status {
    padding:9px 13px;
    font-size:12px;
  }
  .coming-soon {
    font-size:9px;
  }
  .nav-inner {
    padding:0 20px;
    gap:12px;
    min-height:51px;
  }
  .nav-brand {
    font-size:17px;
    flex-shrink:0;
  }
  .nav-links {
    gap:18px;
  }
  .nav-links a {
    font-size:10px;
    padding:17px 0;
  }
  .teaser {
    padding-top:24px;
  }
  .figure-card {
    padding:15px 12px;
    border-radius:6px;
    margin-top:23px;
  }
  .figure-topline {
    margin-bottom:16px;
    align-items:flex-start;
    gap:8px;
  }
  .figure-topline .small-label {
    font-size:8px;
  }
  .figure-topline>a {
    font-size:9px;
  }
  .figure-zoom {
    min-height:44px;
  }
  figcaption {
    font-size:11px;
    margin-top:16px;
  }
  .study-strip {
    grid-template-columns:repeat(2,1fr);
    row-gap:20px;
    padding:24px 0;
  }
  .study-strip>div:nth-child(3) {
    border-left:0;
  }
  .study-strip strong {
    font-size:23px;
  }
  .study-strip span {
    font-size:10px;
  }
  section {
    padding:45px 0;
  }
  h2 {
    font-size:29px;
    margin-bottom:22px;
  }
  .section-label {
    font-size:10px;
  }
  .tldr {
    padding:18px 20px;
  }
  .tldr p {
    font-size:17px;
  }
  .finding-grid,.setup-grid,.regime-grid {
    grid-template-columns:1fr;
    gap:26px;
  }
  .finding h3 {
    max-width:none;
    font-size:24px;
  }
  .finding p {
    margin-bottom:17px;
  }
  .finding-number {
    margin-bottom:10px;
  }
  .architecture-demo {
    padding:20px 16px;
  }
  .architecture-flow {
    display:grid;
    grid-template-columns:1fr auto 1.3fr auto 1fr;
    gap:5px;
    padding-top:44px;
  }
  .architecture-flow>.input-token,.architecture-flow>.flow-arrow:nth-child(2),.architecture-flow>.flow-arrow:nth-child(8) {
    display:none;
  }
  .block {
    min-width:0;
    font-size:11px;
    padding:14px 6px;
  }
  .block.core {
    padding-inline:7px;
  }
  .block small {
    font-size:9px;
  }
  .flow-arrow {
    font-size:14px;
  }
  .loop-label {
    font-size:11px;
  }
  .budget-controls {
    flex-wrap:wrap;
    gap:8px 12px;
  }
  .budget-controls label {
    font-size:11px;
  }
  .budget-controls input {
    flex-basis:45%;
  }
  .regime {
    margin-left:auto;
    font-size:10px;
  }
  .depth-readout {
    flex-wrap:wrap;
    gap:5px 15px;
    font-size:10px;
  }
  .demo-note {
    font-size:10px;
  }
  .equation {
    padding:18px 12px;
  }
  .equation>p {
    font-size:19px;
  }
  .equation-sep {
    margin:0 8px;
  }
  .history-equation {
    text-align:left;
  }
  .history-equation>p {
    font-size:18px;
  }
  .regime-grid h3 {
    margin-bottom:9px;
  }
  .additional-figure summary {
    padding:14px 16px;
    font-size:12px;
  }
  .result-highlights {
    margin:28px 0;
  }
  .result-highlights strong {
    font-size:31px;
  }
  .result-highlights strong span {
    font-size:17px;
  }
  .result-highlights p {
    font-size:10px;
    margin-inline:8px;
  }
  caption {
    font-size:10px;
    padding:12px;
  }
  th,td {
    padding:12px;
    font-size:11px;
  }
  thead th {
    font-size:9px;
  }
  tbody th span {
    display:block;
    margin-left:0;
    font-size:10px;
  }
  .table-note,.citation-note {
    font-size:11px;
  }
  pre {
    font-size:10px;
    padding:17px;
  }
  .footer-inner {
    gap:10px 20px;
  }
  footer p {
    order:3;
    width:100%;
    font-size:10px;
  }
  footer .footer-inner>a:last-child {
    margin-left:auto;
  }
  .dialog-image-wrap {
    padding:12px;
  }
  .dialog-toolbar p {
    font-size:11px;
  }
  .dialog-hint {
    font-size:10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
  }
}

@media print {
  .section-nav,.resource-links,.budget-controls,.figure-topline>a,.copy-status,footer .footer-inner>a:last-child,.code-toolbar button {
    display:none;
  }
  .hero {
    padding:20px 0;
  }
  section {
    padding:25px 0;
  }
  .figure-card {
    break-inside:avoid;
  }
  a {
    color:inherit;
  }
  .soft-section {
    background:#fff;
  }
}
