@font-face{font-family:Road;src:url("/silex.ttf") format("truetype");font-display:swap}
:root{
  color-scheme:dark; --bg:#09090c; --ink:#f2f2f4; --muted:#b4b5bd; --line:#393940; --accent:#ff5354;
  --gutter:clamp(1rem,4vw,3rem);
  background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  -webkit-text-size-adjust:100%;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);line-height:1.45}
button,select{font:inherit;color:inherit}
a{color:inherit;text-underline-offset:.22em}
a:focus-visible,button:focus-visible,select:focus-visible,h2:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px;
}
[hidden]{display:none!important}
.bar,.bar-inner,.footer-inner,main{min-width:0}
.bar{border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}
.bar-inner,.footer-inner,main{
  width:min(100%,81rem); margin-inline:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left)); padding-right:max(var(--gutter),env(safe-area-inset-right));
}
.bar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:3.6rem}
.wordmark,.open{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.wordmark img{display:block;width:5.7rem;height:auto}
.open{gap:.5rem;font-size:.93rem;font-weight:650}
.open span{font-size:1.1em;color:var(--accent)}
main{padding-block:clamp(1.6rem,5vh,3.5rem);display:grid;grid-template-columns:minmax(10rem,.7fr) minmax(0,1.5fr);gap:clamp(1.8rem,6vw,6rem)}
h1,h2,p{margin:0}
h1,h2{font-family:Road,"Arial Black",sans-serif;font-weight:400;line-height:1.03;text-transform:uppercase;overflow-wrap:anywhere}
h1{font-size:clamp(2.75rem,5.8vw,5.2rem);margin-bottom:clamp(1.25rem,4vh,2.5rem)}
h2{font-size:clamp(2.45rem,4.6vw,3.8rem);margin-bottom:clamp(.65rem,2vh,1.35rem)}
.summary{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.summary a{display:flex;align-items:center;min-height:44px;padding:.65em .1em;border-bottom:1px solid var(--line);color:var(--muted);text-decoration:none}
.summary a[aria-current=true]{color:var(--ink);font-weight:700;border-bottom-color:var(--accent)}
.chooser{display:flex;align-items:center;gap:.65rem;color:var(--muted);font-size:.87rem}
.chooser select{border:1px solid var(--line);border-radius:3px;background:#17171c;padding:.45rem .55rem;min-width:0;color:var(--ink);max-width:100%;font-size:1rem}
.document,.index,#reading,section,.copy{min-width:0}
.copy p{width:min(100%,54ch);font-size:clamp(1.05rem,1.6vw,1.28rem);line-height:1.57;overflow-wrap:anywhere}
section+section{margin-top:2rem}
.turner{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-top:1px solid var(--line);padding-top:.6rem}
.turner button{min-height:44px;border:0;background:transparent;padding:.35rem .25rem;font-weight:650;cursor:pointer}
.turner button:first-child{padding-left:0}.turner button:last-child{padding-right:0}
.turner button:disabled{color:#81818a;cursor:default}
.turner button span{color:var(--accent)}.turner button:disabled span{color:inherit}
#position{font:500 .8rem ui-monospace,monospace;text-align:center;color:var(--muted)}
footer{border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 1.2rem}
.footer-inner a{min-height:44px;display:inline-flex;align-items:center;font-size:.83rem;color:var(--muted)}
.footer-inner a[aria-current=page]{color:var(--ink)}
/* Without JS each original paragraph remains available in document order. */
.reader body{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.reader main,.reader .document,.reader #reading,.reader section,.reader .copy{min-height:0}
.reader .document{display:grid;grid-template-rows:minmax(0,1fr) auto;row-gap:1rem}
.reader section:not([hidden]){height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);margin:0}
.reader .copy{position:relative}
.probe{position:absolute;inset:0;contain:strict;visibility:hidden;pointer-events:none}
@media (hover:hover){.open:hover,.summary a:hover,.turner button:hover:enabled,.footer-inner a:hover{color:var(--accent)}}
@media(max-width:620px){
  main{display:block;padding-block:1.2rem}
  h1{font-size:clamp(2.35rem,7.8vw,3.4rem);margin:0 0 .6rem}
  .reader main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:clamp(1rem,3vh,1.8rem)}
  .reader .summary{display:none}
  h2{font-size:clamp(2rem,6.4vw,3rem)}
  .copy p{font-size:1.05rem;line-height:1.53}
  .footer-inner{justify-content:space-between;gap:0 .6rem}
}
@media(min-width:621px) and (min-height:501px){.reader .chooser{display:none}}
@media(min-width:621px) and (max-height:500px){
  main{gap:clamp(1.2rem,4vw,2.75rem);grid-template-columns:minmax(11rem,.68fr) minmax(0,1.3fr)}
  .reader .summary{display:none}
  h1{font-size:clamp(2.25rem,4.8vw,3.5rem);margin-bottom:.7rem}
  .chooser{align-items:flex-start;flex-direction:column;gap:.15rem}
}
@media(max-height:500px){
  .bar-inner{min-height:2.3rem}
  .wordmark,.open,.footer-inner a{min-height:32px}
  .wordmark img{width:4.6rem}
  main{padding-block:.75rem}
  .reader .document{row-gap:.45rem}
  h2{font-size:clamp(1.65rem,4.7vh,2.2rem);margin-bottom:.45rem}
  .copy p{font-size:1rem;line-height:1.4}
  .turner{padding-top:.15rem}.turner button{min-height:32px}
}
@media(max-width:620px) and (max-height:500px){
  .index{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
  h1{font-size:1.85rem;margin:0}
  .chooser{gap:.3rem}.chooser span{position:absolute;clip-path:inset(50%);width:1px;height:1px}
  .chooser select{font-size:.9rem;padding:.25rem}
  .reader main{gap:.55rem}
}
@media(max-width:355px){.footer-inner a{font-size:.74rem}.footer-inner{gap:0 .35rem}.turner{font-size:.92rem}}
@media(max-width:390px) and (max-height:310px){
  :root{--gutter:.6rem}
  .bar-inner{min-height:28px}.wordmark,.open,.footer-inner a{min-height:26px}
  .wordmark img{width:4.1rem}
  main{padding-block:.3rem}
  .reader main{gap:.4rem}
  .index{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
  h1{font-size:1.35rem}
  .chooser,.chooser select{display:block;width:100%}
  h2{font-size:1.45rem;margin-bottom:.2rem}
  .reader .document{row-gap:.3rem}
  .turner button{min-height:27px}
  .footer-inner{display:grid;grid-template-columns:auto auto minmax(0,1fr);column-gap:.55rem}
  .footer-inner a:last-child{justify-self:end}
}
/* Use the reader's actual text size when a large system font occupies a small screen. */
.tight .bar-inner{min-height:32px}
.tight .wordmark,.tight .open,.tight .footer-inner a{min-height:28px}
.tight .wordmark img{width:64px}
.tight main{padding-block:6px;gap:8px}
.tight .index{display:block}
.tight h1{font-size:1.35rem;margin:0 0 4px}
.tight .chooser span{position:absolute;clip-path:inset(50%);width:1px;height:1px}
.tight .chooser select{font-size:.87rem;padding:.12em .4em}
.tight h2{font-size:1.4rem;margin:0 0 4px}
.tight .document{row-gap:5px}
.tight .turner{padding-top:2px;gap:4px}
.tight .turner button{font-size:0;min-height:32px;min-width:36px}
.tight .turner button span{font-size:1.03rem}
.tight #position{font-size:.76rem}
.tight .footer-inner{gap:0 .65em}
.tight .footer-inner a{font-size:.72rem}
.selection{display:none}
.tight .chooser{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.4rem; align-items:center;
  position:relative; width:100%; border:1px solid var(--line); background:#17171c; padding:.18em .45em;
}
.tight .chooser .selection{
  display:block; position:static; clip-path:none; width:auto; height:auto; overflow-wrap:anywhere;
  color:var(--ink); font-size:.91rem; line-height:1.22;
}
.tight .chooser::after{content:"";width:.36em;height:.36em;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg)}
.tight .chooser select{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.tight .chooser:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.tight section:not([hidden]){grid-template-rows:minmax(0,1fr)}
/* The selected heading is already displayed in full in the section selector above it. */
.tight section h2{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;margin:0}
