/* Reading styles shared by the technical overview and node comparison. */
:root {
  --text: #334155;
  --muted: #526171;
  --ink: #17232e;
  --blue: #245b8e;
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0 0 1.15em; }
h1, h2, h3 {
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.03em;
}
h2 {
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 14px 0 22px;
}
h3 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
strong { font-weight: 650; }
.hero .intro, .lead { font-size: 20px; line-height: 1.75; }
.hero .support { font-size: 17px; line-height: 1.75; }
.section-head { max-width: 850px; }
.section > p, .prose, .wide-explanation { max-width: 74ch; }
.two { gap: 48px; }
.two > div, .three > div { min-width: 0; }
.feature p, .example-row p, .visual-copy p { font-size: 17px; line-height: 1.8; }
.label { font-size: 12px; line-height: 1.6; letter-spacing: .09em; font-weight: 650; }
.small-note, .aside-note, figcaption { font-size: 15px; line-height: 1.75; }
figcaption { max-width: 96ch; }
.technical-steps li { font-size: 17px; line-height: 1.7; margin: 12px 0; }
.memory-tier p, .principles small { font-size: 15px; line-height: 1.7; }
.research-links p { font-size: 17px; line-height: 1.75; }
.source-links { font-size: 15px; line-height: 1.7; }
nav { font-size: 15px; line-height: 1.5; }
nav a { font-weight: 500; }
.explore-nav { line-height: 1.7; }
.btn { font-size: 15px; font-weight: 600; line-height: 1.6; }
code { font-family: Consolas, "Cascadia Code", ui-monospace, monospace; }
p code, td code { font-size: .9em; line-height: inherit; }
p code { padding: 2px 5px; border-radius: 3px; color: #263b50; }
pre { font-size: 15px; line-height: 1.75; tab-size: 2; }
table { font-size: 16px; line-height: 1.65; }
th { font-weight: 650; }
caption { font-size: 15px; line-height: 1.6; }
.recorded-summary strong { font-variant-numeric: tabular-nums; line-height: 1.3; }
.recorded-summary span { font-size: 15px; line-height: 1.6; }
.dialog-header h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.015em; }
.dialog-body > p { font-size: 17px; line-height: 1.75; }
.dialog-body > .small-note { font-size: 15px; }
.dialog-body h3 { font-size: 19px; line-height: 1.4; }
.dialog-body pre {
  font: 14px/1.7 Consolas, "Cascadia Code", ui-monospace, monospace;
  color: #263442;
  padding: 20px;
  tab-size: 2;
}
.comparison-metrics td:not(:first-child), .comparison-metrics th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.comparison-metrics td:not(:first-child) { color: var(--ink); font-weight: 600; }
.reduction-note { line-height: 1.65; }
@media (max-width: 800px) {
  .two { gap: 28px; }
}
@media (max-width: 550px) {
  body { font-size: 17px; line-height: 1.75; }
  .hero h1 { font-size: clamp(33px, 8.5vw, 40px); }
  h2 { font-size: 29px; line-height: 1.3; }
  h3 { font-size: 20px; }
  .hero .intro, .lead { font-size: 19px; }
  .small-note, figcaption { font-size: 15px; }
  nav { font-size: 14px; }
  .recorded-summary span { font-size: 13px; }
  .dialog-header h2 { font-size: 21px; }
  .dialog-body pre { font-size: 13px; padding: 16px; }
  .comparison-metrics td, .comparison-metrics th { font-size: 15px; }
}

/* Homepage headings and calls to action. */
.hero { grid-template-columns: 1fr; gap: 36px; padding: 72px 0 48px; text-align: center; }
.hero-copy { max-width: none; width: 100%; }
.hero h1 { font-family: var(--sans); font-size: clamp(32px, 3.4vw, 46px); text-wrap: pretty; margin: 20px 0 24px; }
.hero .intro, .hero .support { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .actions, .homepage-closing .actions { justify-content: center; }
.principles > div > div { display: block; }
.principles b { display: block; margin-bottom: 4px; }
.section-head { max-width: 100%; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-family: var(--sans); font-size: clamp(28px, 3.3vw, 40px); text-wrap: pretty; }
.section-head .lead { max-width: 860px; margin-left: auto; margin-right: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 20px; background: #fff; border-radius: 7px; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--wash); border-color: var(--blue); box-shadow: 0 2px 6px #17232e0d; }
.btn.primary:hover { background: var(--blue); color: #fff; }
.btn.subtle { border-color: transparent; background: transparent; color: var(--blue); }
.btn.subtle:hover { background: var(--wash); }
nav { align-items: center; gap: 22px; }
nav .nav-explorer { padding: 0; border: 0; background: transparent; color: var(--text); font-size: inherit; font-weight: 500; }
nav .nav-explorer:hover { color: var(--blue); }
nav .nav-demo { padding: 9px 16px; min-height: 40px; font-size: 14px; }
.demo-showcase { padding: 54px 0 32px; }
.demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.demo-card .label { font-size: 10px; margin-bottom: 14px; }
.demo-card h3 { font-size: 20px; }
.demo-card p { font-size: 16px; line-height: 1.7; }
.demo-card .btn { margin-top: auto; font-size: 14px; width: 100%; padding: 10px 12px; }
.demo-caption { text-align: center; color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.homepage-closing { max-width: none; text-align: center; }
.homepage-closing h2 { font-family: var(--sans); }
/* Academic prose: aligned margins, left-aligned subsection titles and final lines. */
.section p, .section-head .lead, .hero .intro, .hero .support {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
.section > h3, .section > p.prose {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.section > h3 { text-align: left; }
figcaption { margin-left: auto; margin-right: auto; text-align: left; }
.demo-card p { text-align: left; }
.homepage-closing > p { max-width: 780px; margin-left: auto; margin-right: auto; text-align: left; }
@media (max-width: 900px) {
  .demo-cards { grid-template-columns: 1fr; }
  .demo-card { padding: 24px; }
  .demo-card .btn { width: auto; }
}
@media (max-width: 550px) {
  .nav .wrap { gap: 12px; }
  .nav nav { gap: 12px; overflow: visible; }
  .nav nav .nav-method, .nav nav .nav-explorer { display: none; }
  .nav nav a.nav-overview, .nav nav a.nav-demo { display: inline-flex; }
  .nav nav .nav-demo { font-size: 13px; padding: 8px 12px; }
  .hero { padding: 42px 0 36px; }
  .hero h1 { font-size: 34px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .section-head h2 { font-size: 28px; }
  .demo-showcase { padding-top: 36px; }
  .homepage-closing .actions { flex-direction: column; }
  .section p, .section-head .lead, .hero .intro, .hero .support { text-align: left; hyphens: manual; }
}

/* Image previews open on the page, with the complete image in view. */
button.figure-frame{width:100%;cursor:zoom-in;color:inherit;font:inherit}
.image-dialog{width:min(1680px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}
.image-dialog::backdrop{background:rgba(15,23,42,.72)}
.image-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;border-bottom:1px solid var(--line)}
.image-dialog-header h2{font-size:20px;line-height:1.4;margin:0;letter-spacing:0}
.image-dialog-header .btn{flex:none}
.image-dialog-body{display:flex;align-items:center;justify-content:center;padding:16px;cursor:zoom-out}
#image-preview{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);object-fit:contain;cursor:default}
@media(max-width:550px){.image-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.image-dialog-header{padding:12px}.image-dialog-header h2{font-size:18px}.image-dialog-body{padding:8px}#image-preview{max-height:calc(100dvh - 120px)}}
