:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --ink: #202b28;
  --secondary: #52605a;
  --rule: #d6d8cc;
  --green: #215c4c;
  --bright: #bada91;
  --soft: #e9edde;
  --rust: #934934;
  --white: #fffcf5;
  font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
::selection { background: #c3d7ad; color: #17251e; }
.page { max-width: 1320px; margin: auto; padding: 0 48px; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 10px 18px; background: var(--ink); color: white; z-index: 5; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 100px; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; align-items: center; gap: .32em; font-size: 1.12rem; color: var(--ink); font-weight: 730; text-decoration: none; white-space: nowrap; letter-spacing: -.03em; }
.wordmark > span:last-child { font-weight: 420; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; margin-right: 6px; background: var(--green); color: var(--paper); font-size: 1.2rem; font-weight: 500; }
.site-header nav { display: flex; gap: 30px; align-items: center; font-size: .83rem; }
.site-header nav a { text-decoration: none; color: var(--secondary); }
.site-header nav a:hover { color: var(--green); text-decoration: underline; }
.site-header .source-link { border: 1px solid var(--rule); padding: 8px 13px; color: var(--ink); }
.eyebrow, .step-meta, .note-number, .table-tag { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.eyebrow { font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; line-height: 1.5; color: var(--green); }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; line-height: 1.05; }
h1 { font-size: clamp(3.25rem, 5.8vw, 5.3rem); }
h1 em { font-weight: 400; color: var(--green); }
h2 { font-size: clamp(2rem, 3.9vw, 3.25rem); }
h3 { line-height: 1.3; font-size: 1rem; letter-spacing: -.025em; }
.hero { display: grid; grid-template-columns: 1.48fr 1fr; gap: 74px; align-items: center; padding: 88px 0 76px; }
.hero > * { min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lede { max-width: 48ch; margin-top: 27px; color: var(--ink); font-size: 1.1rem; line-height: 1.6; }
.hero-note { max-width: 57ch; color: var(--secondary); font-size: .86rem; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 20px; text-decoration: none; font-size: .83rem; font-weight: 650; }
.button.primary { background: var(--green); color: var(--white); }
.button.primary:hover { background: #174535; text-decoration: none; }
.text-link { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.experiment-card { background: var(--soft); border: 1px solid #cdd5bf; padding: 25px 27px 20px; transform: rotate(1deg); box-shadow: 7px 8px 0 #e0e3d6; }
.experiment-card h2 { font-size: 2rem; }
.mini-flow { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 35px 0 22px; }
.frame-strip { display: flex; gap: 4px; }
.frame-strip i { display: block; width: 23px; height: 31px; border: 1px solid #779079; background: linear-gradient(to bottom, transparent 38%, #73917a 38%, #73917a 65%, transparent 65%); }
.frame-strip i:nth-child(2) { background-position: 1px 2px; }
.frame-strip i:nth-child(3) { background-position: 2px 4px; }
.frame-strip i:nth-child(4) { background-position: 3px 6px; }
.flow-arrow { font-size: 1.4rem; color: #6b7d67; }
.latent-symbol { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font: italic 1.8rem Georgia, serif; }
.latent-symbol.observed { background: var(--green); color: var(--soft); }
.experiment-card > p { color: #4e5e48; font-size: .77rem; line-height: 1.6; }
.experiment-facts { margin: 25px 0 17px; padding-top: 10px; border-top: 1px solid #c4cdb6; font-size: .72rem; }
.experiment-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.experiment-facts dt { color: #596a52; }
.experiment-facts dd { margin: 0; font-weight: 600; }
.experiment-card .card-footnote { margin: 0; font-size: .65rem; color: #62715c; }
.margin-note, .research-note { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: start; padding: 25px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.note-number { color: var(--green); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.margin-note p { max-width: 75ch; margin: 0; font-size: .91rem; color: var(--secondary); }
.section { padding: 77px 0; border-bottom: 1px solid var(--rule); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-heading > .text-link { flex-shrink: 0; padding-bottom: 5px; }
.section-intro { max-width: 80ch; font-size: .92rem; color: var(--secondary); }
.replay-shell { background: #0a111d; border: 1px solid #263c3b; border-radius: 4px; margin-top: 32px; overflow: hidden; }
iframe { display: block; border: 0; width: 100%; height: 1035px; }
.demo-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.demo-notes p { margin: 0; color: var(--secondary); font-size: .76rem; }
.demo-notes strong { font-weight: 650; color: var(--ink); }
.method-copy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 58px; color: var(--secondary); font-size: .92rem; }
.method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 34px 0; padding: 0; list-style: none; }
.method-steps li { padding: 0 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; align-items: start; }
.method-steps li:first-child { padding-left: 0; border-left: 0; }
.method-steps li:last-child { padding-right: 0; }
.step-index { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #b4c3aa; border-radius: 50%; background: #e8ecdf; color: var(--green); font: .72rem ui-monospace, monospace; margin-bottom: 20px; }
.method-steps h3 { margin-bottom: 12px; }
.method-steps p { color: var(--secondary); font-size: .8rem; }
.step-meta { color: var(--green); font-size: .56rem; margin-top: auto; }
.research-note { border-bottom: 0; padding-bottom: 0; }
.research-note p { margin: 0; color: var(--secondary); font-size: .8rem; }
.table-scroll { margin: 28px 0 0; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .78rem; font-variant-numeric: tabular-nums; text-align: left; }
caption { text-align: left; color: var(--secondary); caption-side: bottom; font-size: .69rem; padding: 13px 0 2px; max-width: 95ch; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th:first-child { padding-left: 0; }
td:last-child, thead th:last-child { padding-right: 0; }
thead th { font: 500 .63rem ui-monospace, monospace; color: var(--secondary); border-top: 1px solid var(--rule); }
tbody th { font-weight: 500; }
td { text-align: right; }
thead th:not(:first-child) { text-align: right; }
.model-row { background: #e5ecdc; }
.model-row th { font-weight: 700; }
.model-row th:first-child, .baseline-row th:first-child { padding-left: 13px; }
.baseline-row { background: #eceae0; }
.table-tag { display: inline-block; color: var(--green); font-size: .5rem; border: 1px solid #bcccb1; padding: 1px 4px; margin-left: 4px; vertical-align: middle; }
.metric-note { margin: 21px 0; color: var(--secondary); font-size: .77rem; max-width: 80ch; }
.metric-note summary { cursor: pointer; color: var(--green); font-weight: 600; width: fit-content; }
.metric-note > div { padding: 14px 0 1px 18px; border-left: 2px solid #c8d0b9; margin-top: 14px; }
.results-reading { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; margin: 35px 0; }
.results-reading h3 { margin-bottom: 12px; }
.results-reading p { color: var(--secondary); font-size: .86rem; margin-bottom: 0; }
.result-figure { margin: 30px 0 22px; }
.result-figure img { width: 100%; height: auto; display: block; border-radius: 3px; }
.result-figure figcaption { max-width: 90ch; color: var(--secondary); font-size: .72rem; margin-top: 12px; }
.small-print { max-width: 95ch; color: var(--secondary); font-size: .73rem; margin: 0; }
.reproduce-section { display: grid; grid-template-columns: .9fr 1.3fr; gap: 65px; align-items: start; }
.reproduce-section h2 { margin: 13px 0 24px; }
.reproduce-section > div > p:not(.eyebrow) { color: var(--secondary); font-size: .86rem; }
.run-card { min-width: 0; background: var(--white); border: 1px solid var(--rule); padding: 23px; }
.code-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.run-card pre { margin: 19px 0 18px; font-size: .65rem; line-height: 1.9; overflow-x: auto; }
.run-card > p { font-size: .74rem; color: var(--secondary); margin: 0; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.reading-section > div > h2 { margin: 12px 0 23px; max-width: 22ch; }
.reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 34px 0; }
.reading-card { border-top: 2px solid #b9c4ac; padding: 19px 0 6px; text-decoration: none; color: var(--ink); }
.reading-card h3 { display: flex; justify-content: space-between; gap: 10px; margin: 17px 0 13px; }
.reading-card p { margin: 0; font-size: .8rem; color: var(--secondary); }
.reading-card:hover h3 { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.reading-card .eyebrow { font-size: .57rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: .78rem; }
.site-footer { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 32px 0 35px; }
.site-footer p { font-size: .69rem; color: var(--secondary); margin: 8px 0 0; }
.site-footer .wordmark { font-size: .94rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 24px; font-size: .71rem; }
@media (max-width: 1050px) {
  .page { padding: 0 30px; }
  .hero { gap: 35px; }
  .experiment-card { padding: 22px; }
  .mini-flow { gap: 5px; }
  .frame-strip i { width: 18px; height: 27px; }
  .method-steps li { padding: 0 16px; }
  .reproduce-section { gap: 35px; }
  .section-heading { flex-wrap: wrap; align-items: start; }
  iframe { height: calc(820px + 16vw); }
}
@media (max-width: 760px) {
  .page { padding: 0 22px; }
  .site-header { min-height: 88px; gap: 20px; }
  .site-header nav { gap: 18px; }
  .site-header nav > a:nth-child(2) { display: none; }
  .site-header .source-link { padding: 0; border: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 54px 0 48px; gap: 40px; }
  h1 { font-size: clamp(3.2rem, 10vw, 4.3rem); }
  .experiment-card { transform: none; max-width: none; }
  .experiment-card .mini-flow { max-width: 350px; margin: 24px 0; }
  .frame-strip i { width: 26px; height: 30px; }
  .margin-note, .research-note { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 51px 0; }
  .section-heading { gap: 18px; }
  .section-heading > .text-link { padding: 0; }
  .demo-notes, .method-copy, .results-reading, .reproduce-section { grid-template-columns: 1fr; gap: 22px; }
  .method-copy { gap: 0; }
  .method-steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .method-steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .method-steps li:nth-child(even) { padding-right: 0; }
  .method-steps p { max-width: 32ch; }
  .reading-grid { grid-template-columns: 1fr; gap: 22px; }
  .reading-card { padding-top: 16px; }
  .reading-card h3 { margin: 10px 0; }
  iframe { height: calc(995px + 71vw); }
  .site-footer { align-items: start; flex-direction: column; padding: 28px 0; gap: 24px; }
  .footer-links { justify-content: start; }
}
@media (max-width: 420px) {
  .page { padding: 0 16px; }
  .site-header nav { gap: 15px; font-size: .75rem; }
  .site-header nav > a:nth-child(3) { display: none; }
  .wordmark { font-size: 1rem; }
  .brand-mark { width: 26px; height: 26px; margin-right: 3px; }
  h1 { font-size: 3.15rem; }
  .hero-copy .eyebrow { font-size: .61rem; }
  .experiment-card { padding: 21px; }
  .experiment-card h2 { font-size: 1.8rem; }
  .experiment-facts { font-size: .68rem; }
  .frame-strip { gap: 3px; }
  .frame-strip i { width: 20px; height: 26px; }
  .latent-symbol { width: 36px; height: 36px; font-size: 1.5rem; }
  .flow-arrow { font-size: 1.1rem; }
  iframe { height: calc(1880px - 101vw); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
