/* Prose typography matched to codex_project_page/styles/text-page.css.
   Wide interactive figures retain their existing layout. */
:root {
  --text-ink: #20212b;
  --text-body: #41434f;
  --text-muted: #6a6978;
  --text-width: 840px;
  --text-gutter: clamp(16px, 4vw, 40px);
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body { font-family: var(--sans); font-size: 17px; line-height: 1.8; font-synthesis: none; }
section { padding: 65px 0 70px; }
section > .wrap:not(.wide) { padding-inline: var(--text-gutter); max-width: calc(var(--text-width) + 2 * var(--text-gutter)); }
section > .wrap > h2 {
  color: var(--text-ink); text-align: left; font-size: clamp(25px, 3vw, 32px);
  font-weight: 750; line-height: 1.3; letter-spacing: -.7px;
  margin: 0 0 25px; text-wrap: balance;
}
section > .wrap > .kicker {
  text-align: left; color: #6d28d9; font-size: 12px; line-height: 1.5;
  font-weight: 700; letter-spacing: .14em; margin-bottom: 13px;
}
section > .wrap > h3 {
  color: var(--text-ink); font-size: 21px; line-height: 1.45;
  letter-spacing: -.3px; font-weight: 700; margin: 39px 0 16px;
}
section .lead, section .prose, section p.section-copy {
  max-width: var(--text-width); margin-inline: auto; text-align: left;
}
section .lead, section > .wrap > p, section .prose p, section .card p {
  color: var(--text-body); font-size: 17px; line-height: 1.8;
  margin-top: 0; margin-bottom: 19px;
}
section .prose p:last-child { margin-bottom: 0; }
section .lead + p.section-copy { margin-top: 0; }
section .lead b, section .prose b, section .card b,
section .lead strong, section .prose strong { color: var(--text-ink); font-weight: 700; }
section .wrap figure > figcaption {
  max-width: var(--text-width); margin: 12px auto 0;
  color: var(--text-muted); font-size: 14px; line-height: 1.65; text-align: left;
}
header.hero { padding: 91px 0 88px; }
.hero h1 { font-size: clamp(42px, 6vw, 70px); line-height: 1.1; letter-spacing: -3px; color: var(--text-ink); }
.hero .subtitle { max-width: 700px; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.4; margin-top: 22px; letter-spacing: -.6px; color: var(--text-ink); }
.hero .blurb { max-width: 730px; margin-top: 26px; color: var(--text-muted); font-size: 17px; line-height: 1.85; }
@media (max-width: 800px) {
  section { padding: 45px 0 48px; }
  header.hero { padding: 62px 0 58px; }
}
@media (max-width: 480px) {
  body, section .lead, section > .wrap > p, section .prose p, section .card p { font-size: 16px; }
  section > .wrap > h2 { font-size: 25px; }
  section > .wrap > h3 { font-size: 20px; }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); letter-spacing: -1.7px; }
  .hero .subtitle { font-size: 22px; }
  .hero .blurb { font-size: 16px; }
}
/* Keep paired result captions within their columns on narrow screens. */
.occl .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.occl .pair > div { min-width: 0; }
.occl .pair .nm { flex-wrap: wrap; gap: 2px 6px; }
/* One overview figure with a subordinate patch detail and shared caption. */
.patch-inset { max-width: 680px; margin: 18px auto 0; padding: 18px 20px 14px; border-top: 1px solid var(--line); }
.patch-inset .pf-svg { max-width: 460px; }
.patch-inset p { margin: 8px 0 0; text-align: center; font-size: 13px; line-height: 1.65; color: var(--text-muted); }
section > .wrap > p.pointmap-fusion-copy { margin-top: 28px; }
.pointmap-details { margin: 28px 0 0; }
.pointmap-details > summary { max-width: var(--text-width); margin: auto; border-top: 1px solid var(--line); padding: 16px 0; cursor: pointer; color: var(--accent-ink); font-size: 15px; font-weight: 600; }
.pointmap-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.construction-copy { max-width: var(--text-width); margin: 18px auto 26px; color: var(--text-body); }
.construction-copy h3 { font-size: 21px; line-height: 1.45; letter-spacing: -.3px; margin: 32px 0 16px; }
@media (max-width: 650px) {
  .patch-inset { padding: 14px 0; }
  .patch-inset .pf-svg { min-width: 0; }
  .patch-inset p { text-align: left; }
}
/* Opt-in alternative below the existing figure, isolated by .fusion-demo. */
.fusion-demo { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.fusion-demo-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fusion-demo-label { font-size: 11px; color: var(--accent-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fusion-demo-header h3 { margin: 5px 0 0; font-size: 21px; line-height: 1.4; }
.fusion-demo button.fusion-demo-play { border: 1px solid #c4b5fd; background: #f4efff; color: var(--accent-ink); border-radius: 8px; padding: 9px 16px; font: 600 13px var(--sans); cursor: pointer; flex-shrink: 0; }
.fusion-demo-status { font-size: 14px; color: var(--text-muted); margin: 16px 0; min-height: 26px; }
.fusion-demo .paired-left { position: relative; }
.fusion-demo .paired-right { transition: opacity .4s; }
.fusion-zoom-panel { position: absolute; inset: 8px 0 30px; z-index: 5; background: #fff; border: 1px solid #c4b5fd; border-radius: 14px; padding: 16px 12px; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: scale(.3); transform-origin: 13% 85%; transition: transform .65s ease, opacity .4s, visibility .4s; pointer-events: none; box-shadow: 0 6px 24px #4c1d9510; }
.fusion-zoom-label { display: block; text-align: center; font-size: 12px; color: var(--accent-ink); margin-bottom: 12px; }
.fusion-zoom-detail { min-height: 0; }
.fusion-zoom-detail .pf-svg { max-width: 440px; max-height: 350px; }
.fusion-demo:is([data-phase="zoom"],[data-phase="encode"],[data-phase="add"],[data-phase="fused"]) .fusion-zoom-panel { visibility: visible; opacity: 1; transform: scale(1); }
.fusion-demo:is([data-phase="zoom"],[data-phase="encode"],[data-phase="add"],[data-phase="fused"]) .paired-right { opacity: .32; }
.fusion-zoom-detail .tok, .fusion-zoom-detail .ln, .fusion-zoom-detail .plus, .fusion-zoom-detail .pls { transition: opacity .4s, transform .7s; }
.fusion-demo[data-phase="zoom"] .fusion-zoom-detail :is(.tok,.ln,.plus,.pls) { opacity: .12; }
.fusion-demo[data-phase="encode"] .fusion-zoom-detail :is(.plus,.pls,.tok.fu) { opacity: .15; }
.fusion-demo[data-phase="encode"] .fusion-zoom-detail .tok:is(.rgb,.pm) { animation: fusion-feature-rise .7s both; }
.fusion-demo[data-phase="add"] .fusion-zoom-detail .tok.rgb { transform: translate(140px,-33px); }
.fusion-demo[data-phase="add"] .fusion-zoom-detail .tok.pm { transform: translate(-140px,-33px); }
.fusion-demo[data-phase="add"] .fusion-zoom-detail .tok.fu { opacity: 0; }
.fusion-demo[data-phase="fused"] .fusion-zoom-detail .tok:is(.rgb,.pm) { opacity: .2; }
.fusion-demo[data-phase="fused"] .fusion-zoom-detail .tok.fu { animation: fusion-feature-rise .65s both; }
@keyframes fusion-feature-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.fusion-demo .pms .pv-tok.in i.demo-token { background: #bda3fa !important; border: 2px solid #6d28d9 !important; animation: fusion-token-arrival .7s both; }
@keyframes fusion-token-arrival { from { transform: translateY(40px) scale(1.7); opacity: 0; } to { transform: none; opacity: 1; } }
.fusion-demo .phl { opacity: 0; }
.fusion-demo[data-phase="input"] .phl { opacity: 1; }
.fusion-demo .pv-grp.d { position: relative; }
.fusion-revisit { position: absolute; inset: 0; z-index: 3; opacity: 0; cursor: zoom-in; border: 2px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent-ink); font: 600 12px var(--sans); }
.fusion-revisit:focus-visible { opacity: .95; }
.fusion-demo.focus-running .fusion-revisit { pointer-events: none; }
.fusion-demo.focus-running .pms-bar { pointer-events: none; opacity: .35; }
.fusion-demo.focus-running:not([data-phase="predict"]) .pv-chunk { opacity: .35; }
.fusion-demo.focus-running:not([data-phase="predict"]) .pv-tok i:not(.demo-token) { background: #f4f0ff !important; border-color: #d6c8f3 !important; }
.fusion-demo.demo-paused *, .fusion-demo.demo-paused *::before { animation-play-state: paused !important; }
.fusion-demo.reduced-motion *, .fusion-demo.reduced-motion *::before { animation: none !important; transition: none !important; }
@media (max-width: 700px) {
  .fusion-demo-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fusion-demo-status { min-height: 75px; }
  .fusion-demo .paired-left { min-height: 380px; }
  .fusion-zoom-panel { inset: 0; padding: 10px 5px; }
  .fusion-zoom-label { font-size: 11px; }
}
/* user (2026-10-19): larger prose only; figures, widths and text inside figures unchanged */
section .lead, section > .wrap > p, section .prose p, section .card p, section p.section-copy, .construction-copy { font-size: 18.5px; }
section > .wrap > h3, .construction-copy h3, .fuse-sub > h3, .pm-sub > h3 { font-size: 23px; }
section .wrap figure > figcaption, .observation-figure figcaption, .pixel-inspector figcaption, .encoder-figure figcaption { font-size: 15px; }
.fuse-sub-code .fuse-txt { font-size: 16.5px; }
@media (max-width: 480px) { section .lead, section > .wrap > p, section .prose p, section .card p, section p.section-copy { font-size: 17px; } section > .wrap > h3 { font-size: 21px; } }
section .wrap p:not([class]):not(figure p):not(.pmx-steps p):not(.cons-right p) { font-size: 18.5px; }
section .metric-note { font-size: 15px; }
@media (max-width: 480px) { section .wrap p:not([class]):not(figure p):not(.pmx-steps p):not(.cons-right p) { font-size: 17px; } }
section > .wrap > p.metric-note { font-size: 15px; line-height: 1.6; }
/* user (2026-10-19): the section 1 / 2a paired players sit in the text column */
.observation-figure:has(#problem-stage), .observation-figure:has(#pm-stage-2a) { max-width: var(--text-width); margin-inline: auto; }
/* narrower paired players: one-line encoder label at a readable size; wider, shorter instruction box */
.paired .pv-fuse text.enc1 { font-size: 13px; font-weight: 600; }
.paired .pv-inputs.pm.rgbonly .pv-inrow { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr); gap: 10px; }
.paired .pv-inputs.pm:not(.rgbonly) .pv-inrow { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.45fr); gap: 10px; }
.paired .pv-inputs.pm.rgbonly .pv-inrow { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); }
.paired .pv-inputs.pm:not(.rgbonly) .pv-inrow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.9fr); }
.paired .pv-fuse text.enc1 { font-size: 15px; } .paired .pv-grp.c .pv-fuse text { font-size: 12.5px; }
/* user pick (2026-10-19): section 1 / 2a players at a middle width, between the 840 text column and the 1208 wide figures */
.observation-figure:has(#problem-stage), .observation-figure:has(#pm-stage-2a) { max-width: 1040px; }
.paired .pv-inputs.pm.rgbonly .pv-inrow { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); }
.paired .pv-inputs.pm:not(.rgbonly) .pv-inrow { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.6fr); }
.paired .pv-fuse text.enc1 { font-size: 12.5px; }
.fuse-sub { max-width: 1040px; margin-inline: auto; }
.paired .pv-fuse text.enc2 { font-size: 12px; }
/* user (2026-10-19): the closed "How pointmaps are constructed" bar sits in the text column; opened, it keeps the wide layout */
#pointmap-construction.pm-sub { max-width: var(--text-width); margin-left: auto; margin-right: auto; }
/* narrow construction box: compact step bar (arrow labels dropped; the step text says them) and smaller code */
#pointmap-construction .pmx-steps .flow { display: flex !important; flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
#pointmap-construction .pmx-steps .arrow { min-width: 14px !important; max-width: 34px !important; width: auto !important; flex: 1 1 14px !important; }
#pointmap-construction .pmx-steps .arrow em { display: none; }
#pointmap-construction .pmx-steps .node { font-size: 12.5px; padding: 4px 10px 4px 4px; white-space: nowrap; flex: none; }
#pointmap-construction .pmx-steps .node i { width: 20px; height: 20px; font-size: 11px; }
#pointmap-construction .cons-right .pm-code { font-size: 11px; }
#pointmap-construction .pmx-steps .node { white-space: normal; flex: 0 1 auto; min-width: 0; text-align: left; line-height: 1.25; border-radius: 16px; }
/* authors: two rows of four, personal pages linked (2026-10-19) */
.authors.grid4 { display: block; max-width: 920px; }
.authors.grid4 .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
.authors.grid4 .row + .row { margin-top: 8px; }
.authors.grid4 span { white-space: nowrap; text-align: center; }
.authors.grid4 a { color: var(--accent-ink); text-decoration: none; } .authors.grid4 a:hover { text-decoration: underline; }
@media (max-width: 560px) { .authors.grid4 .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .authors.grid4 .row + .row { margin-top: 6px; } }
