@font-face {
  font-family: "Barlow Condensed";
  src: url("./media/barlow-condensed-bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
:root {
  --paper: #f6f3ea;
  --ink: #212721;
  --deep: #23352c;
  --teal: #29564c;
  --rust: #94422a;
  --muted: #535e54;
  --rule: #c2c6b8;
  --acid: #eeeb81;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --outer: min(100% - 2 * var(--gutter), 87rem);
}
a { text-decoration-thickness: .07em; }
:focus-visible { outline: 3px solid #aa521c; outline-offset: 3px; }
.skip { z-index: 20; }
.mast { color: var(--paper); background: var(--deep); border: 0; }
.mast-in { width: var(--outer); padding: 0; min-height: 3.45rem; max-width: none; }
.mast a { color: var(--paper); }
.brand { font-size: 1.55rem; }
.brand span { color: var(--acid); }
.pub { font-size: 1.03rem; }
.mast-rule { height: 1.1rem; border-color: #7c897c; }
.edition { color: #e6e8d8; font: .72rem var(--mono); }
.front-inner { width: var(--outer); margin: auto; }
.front-date { padding: 1.3rem 0 .62rem; display: flex; align-items: baseline; justify-content: space-between; column-gap: 1rem; color: var(--muted); border-bottom: 1px solid var(--ink); font: .74rem/1.4 var(--mono); }
.front-date span:first-child { color: var(--ink); }
.front h1 { margin: .1em 0 .18em; max-width: none; display: flex; align-items: baseline; column-gap: .16em; flex-wrap: wrap; text-wrap: initial; font: 700 clamp(5.2rem,10.8vw,10.8rem)/.95 var(--display); letter-spacing: -.042em; }
.front h1 b { font: inherit; }
.front h1 em { font: italic normal .46em/1.13 var(--serif); letter-spacing: -.055em; }
.front-picture { position: relative; background: var(--deep); }
.harbor { position: relative; }
.harbor img { width: 100%; height: clamp(17rem,25vw,25rem); display: block; object-fit: cover; object-position: 50% 52%; }
.harbor figcaption { position: absolute; left: .9rem; bottom: .65rem; padding: .2rem .48rem; font: .7rem/1.45 var(--mono); background: #19261fdd; color: #fff; }
.harbor a { color: inherit; }
.cover-ledger { position: absolute; right: clamp(1rem,2.4vw,2.75rem); bottom: clamp(1rem,2vw,2rem); width: 17.8rem; padding: .88rem 1rem .75rem; color: #fbfaed; background: #1a2b22; border-top: .25rem solid var(--acid); box-shadow: .3rem .35rem 0 #17221c40; }
.snapshot,.cover-ledger-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.snapshot { color: var(--acid); font: .67rem/1.4 var(--mono); letter-spacing: .03em; }
.cover-readout p { margin: .6rem 0 0; color: #e2e7da; font: .76rem/1.35 var(--sans); }
.cover-readout strong { display: block; font: 700 2.9rem/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cover-ledger [data-single] { font-size: 2.32rem; min-height: 3.045rem; }
.balance-bars { display: flex; justify-content: stretch; align-items: stretch; height: 2.25rem; margin: .3rem 0 .45rem; border-bottom: 1px solid #8a997d; }
.balance-bars button { display: flex; flex: 1 1 0; min-width: 0; position: relative; align-items: end; height: 100%; border: 0; padding: 0 2px; background: transparent; cursor: pointer; }
.balance-bars button::after { content: ""; position: absolute; bottom: -3px; left: 25%; width: 50%; border-bottom: 3px solid transparent; }
.balance-bars button:hover,.balance-bars button[aria-pressed=true] { background: #3c5143; }
.balance-bars button[aria-pressed=true]::after { border-color: white; }
.balance-bars button span { display: block; width: 100%; height: var(--balance); background: var(--acid); }
.cover-ledger-foot { min-height: 1.45rem; }
.cover-ledger-foot a,.cover-ledger-foot button { color: var(--acid); font: .76rem var(--sans); }
.cover-ledger-foot button { background: none; border: 0; padding: .2rem 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.opening { display: grid; grid-template-columns: minmax(12rem,1fr) minmax(25rem,2.85fr); column-gap: 2rem; padding: clamp(1.4rem,2.8vw,2.65rem) 0; }
.author { line-height: 1.5; border-left: 3px solid var(--rust); padding-left: .8rem; align-self: start; }
.author>* { display: block; }
.author strong { font-size: .92rem; }
.author span { color: var(--muted); font-size: .75rem; }
.opening>p { max-width: 50rem; font: 400 clamp(1.22rem,1.85vw,1.7rem)/1.38 var(--serif); letter-spacing: -.018em; }
.opening strong { font-weight: 700; }
.folio-nav { position: sticky; top: 0; z-index: 8; background: #f6f3eaf9; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.folio-inner { max-width: 87rem; width: var(--outer); margin: auto; display: flex; min-height: 2.9rem; align-items: center; gap: 1.2rem; }
.contents { position: relative; }
.contents summary { list-style: none; cursor: pointer; font: 680 .88rem var(--sans); display: flex; align-items: center; gap: .65rem; min-height: 2.85rem; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary::before { content: ""; display: inline-block; width: .93rem; height: .5rem; border-block: 1.5px solid currentColor; background: linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat; }
.contents[open] summary { color: var(--rust); }
.contents ol { position: absolute; z-index: 1; top: 100%; left: 0; margin: 0; padding: .4rem 1.1rem .65rem; width: min(19rem,86vw); list-style: none; background: var(--paper); border: 1px solid var(--ink); box-shadow: .3rem .35rem 0 #202c2433; max-height: 70vh; overflow: auto; }
.contents li + li { border-top: 1px solid var(--rule); }
.contents a { display: block; padding: .56rem 0; font: .88rem/1.25 var(--sans); color: var(--ink); text-decoration: none; }
.contents a:hover,.contents [aria-current] { color: var(--teal); text-decoration: underline; }
.reading-section { padding-left: 1rem; border-left: 1px solid var(--rule); font: italic .98rem/1.1 var(--serif); }
.folio-source { margin-left: auto; white-space: nowrap; color: var(--ink); font-size: .8rem; }
.reading-track { position: absolute; width: 100%; height: 2px; bottom: -1px; background: transparent; }
.reading-track i { display: block; height: 100%; background: var(--rust); transform: scaleX(0); transform-origin: left; }
.body { width: min(100% - 2 * var(--gutter), 70rem); }
.body section { padding-block: clamp(2.6rem,6vw,5.6rem); scroll-margin-top: 3rem; }
.body section > * { max-width: 46rem; margin-inline: auto; }
.body section > :is(.screening,.ledger,.route-browser,.daily,.where-plot,.source-desk,.wide-table,.trace-result,.full-first,.route) { max-width: 65rem; }
.body h2 { font: 700 clamp(3.1rem,5.8vw,5.55rem)/.99 var(--display); letter-spacing: -.025em; margin-bottom: 1.5rem; text-wrap: balance; }
.body section > p { font: 1.18rem/1.65 var(--serif); }
.body section > p a { font: 600 .91rem/1.5 var(--sans); }
.body section > h3 { font-family: var(--serif); font-weight: normal; }
.body section > .revision { margin-top: 2rem; margin-bottom: 1rem; }
.body .article-end { max-width: 46rem; }
.screening { margin-block: 2rem; background: var(--deep); color: #faf8ec; padding: clamp(.85rem,2.5vw,1.9rem); }
.screening figcaption { display: flex; justify-content: space-between; gap: .7rem; align-items: end; margin-bottom: .85rem; }
.screening figcaption span,.screening figcaption small { font: .73rem/1.4 var(--mono); color: #e4e8d3; }
.screening figcaption h3 { font: 700 clamp(2.15rem,4vw,3.25rem)/1.05 var(--display); letter-spacing: -.015em; margin: .2rem 0 0; }
.screening figcaption small { white-space: nowrap; }
.film-grid { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(13.7rem,1fr); align-items: start; gap: clamp(.9rem,2.5vw,1.7rem); }
.screening video { background: #17261e; width: 100%; height: auto; display: block; border: 1px solid #8c9789; }
.shot-list p { color: #e3e9d5; font: .73rem/1.3 var(--mono); padding-bottom: .55rem; }
.shot-list ol,.transcript ol { list-style: none; padding: 0; margin: 0; }
.shot-list li { display: flex; align-items: center; justify-content: space-between; column-gap: .45rem; border-top: 1px solid #71816f; padding: .34rem 0; }
.shot-list button { flex: 1; cursor: pointer; padding: .15rem .45rem; background: transparent; color: #f7f5e9; border: 0; border-left: 3px solid transparent; text-align: left; }
.shot-list button:hover,.shot-list button[aria-pressed=true] { background: #35493a; border-left-color: var(--acid); }
.shot-list time,.step-print { display: block; font: .72rem/1.4 var(--mono); color: #e0e6d9; }
.shot-list strong { display: block; font: 700 1.38rem/1.18 var(--display); }
.shot-list a { color: var(--acid); font-size: .77rem; white-space: nowrap; padding-block: .5rem; }
.transcript { margin-top: .8rem; border-top: 1px solid #768370; padding-top: .55rem; font-size: .82rem; }
.transcript summary { cursor: pointer; width: fit-content; }
.transcript li { padding-top: .45rem; }
.source-desk { margin-block: 2.25rem; border-block: 2px solid var(--ink); padding-block: 1.2rem; }
.desk-title,.viewer-head,.viewer-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.desk-title { align-items: end; margin-bottom: 1.1rem; }
.desk-title h3 { font: 700 clamp(1.9rem,4vw,2.8rem)/1.05 var(--display); letter-spacing: -.015em; margin: 0; }
.desk-title span { font: .7rem/1.3 var(--mono); color: var(--muted); }
.desk-items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.desk-items .document { margin: 0; }
.enlarge { display: block; position: relative; cursor: zoom-in; }
.enlarge span { position: absolute; right: .45rem; bottom: .45rem; color: white; background: var(--deep); font: 1.3rem/1 var(--sans); padding: .25rem; }
.document figcaption { line-height: 1.5; }
.document figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.document figcaption a { font-weight: 600; }
#source-view { width: min(66rem,94vw); max-height: 93dvh; box-sizing: border-box; border: 1px solid var(--ink); padding: clamp(.7rem,2vw,1.4rem); color: var(--ink); background: var(--paper); overflow: auto; }
#source-view::backdrop { background: #101912d9; }
#source-view img { width: 100%; object-fit: contain; height: auto; display: block; max-height: 70dvh; margin-block: .6rem; background: #e9e8e1; }
.viewer-head h2 { margin: 0; font: 700 2rem/1.1 var(--display); }
#source-view button { cursor: pointer; font: 600 .86rem var(--sans); border: 1px solid var(--rule); color: var(--ink); padding: .55rem .65rem; background: none; }
.viewer-foot span { font: .8rem var(--mono); }
.ledger,.daily,.route-browser { border-top: 3px solid var(--deep); }
.ledger-head strong { font-family: var(--display); font-size: clamp(2.5rem,5.8vw,4.8rem); letter-spacing: -.01em; }
.where-plot figcaption { font-family: var(--serif); font-size: 1.15rem; }
.route { border-left: 3px solid var(--teal); }
@media (max-width: 800px) {
  .front-date { padding-top: .9rem; }
  .front h1 { margin-block: .16em .2em; }
  .front h1 em { font-size: .43em; }
  .opening { grid-template-columns: 1fr; gap: .9rem; }
  .author { display: flex; flex-wrap: wrap; gap: .15rem .8rem; align-items: baseline; }
  .film-grid { grid-template-columns: 1fr; }
  .shot-list ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: .9rem; }
  .cover-ledger { width: 14.5rem; }
}
@media (max-width: 600px) {
  :root { --gutter: 1rem; }
  .mast-in { min-height: 2.85rem; }
  .edition { font-size: .62rem; }
  .front-date { font-size: .62rem; align-items: center; }
  .front-date span:last-child { max-width: 13rem; text-align: right; }
  .front h1 { gap: .055em .18em; font-size: clamp(4.8rem,18vw,6.6rem); margin: .12em 0 .23em; }
  .front h1 em { display: block; flex-basis: 100%; font-size: .46em; letter-spacing: -.045em; }
  .front-picture { margin-inline: calc(-1 * var(--gutter)); }
  .harbor img { height: clamp(12rem,51vw,17rem); object-position: 50% 53%; }
  .harbor figcaption { left: .5rem; bottom: .4rem; font-size: .6rem; }
  .cover-ledger { position: relative; inset: auto; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: .8rem; padding: .6rem var(--gutter) .7rem; box-shadow: none; border-top-width: 2px; }
  .snapshot { grid-column: 1/-1; }
  .cover-readout p { margin-top: .3rem; font-size: .7rem; }
  .cover-readout strong { font-size: 2.15rem; }
  .cover-ledger [data-single] { font-size: 1.7rem; min-height: 2.255rem; }
  .balance-bars { align-self: end; margin: .18rem 0; height: 2rem; }
  .cover-ledger-foot { grid-column: 1/-1; min-height: 1rem; }
  .cover-ledger-foot a,.cover-ledger-foot button { font-size: .69rem; }
  .opening { padding-block: 1rem 1.2rem; }
  .opening>p { font-size: 1.12rem; }
  .reading-section { font-size: .78rem; padding-left: .6rem; }
  .folio-inner { gap: .55rem; }
  .folio-source { font-size: .71rem; }
  .contents summary { font-size: .79rem; gap: .38rem; }
  .body section > p { font-size: 1.08rem; line-height: 1.65; }
  .body h2 { font-size: clamp(2.75rem,11.5vw,4rem); }
  .screening { margin-inline: calc(-1 * var(--gutter)) !important; padding-inline: var(--gutter); }
  .screening figcaption span,.screening figcaption small,.shot-list p { font-size: .63rem; }
  .shot-list ol { column-gap: .6rem; }
  .shot-list li { column-gap: .2rem; }
  .shot-list button { padding-left: .25rem; }
  .shot-list strong { font-size: 1.03rem; }
  .shot-list a { font-size: .68rem; }
  .desk-items { grid-template-columns: 1fr; gap: 1.1rem; }
  .desk-title span { display: none; }
}
@media(max-width:380px) { .folio-source { display: none; } .shot-list a { font-size: .65rem; } }
@media (prefers-reduced-motion:no-preference) {
  .balance-bars button span { animation: balance-in .6s ease-out both; transform-origin: bottom; }
  @keyframes balance-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .enlarge img { transition: filter .18s; }
  .enlarge:hover img { filter: contrast(1.06); }
}
@media print {
  .folio-nav,.harbor figcaption,.shot-list button,.balance-bars,.cover-ledger-foot,.viewer-foot,.enlarge span,.contents,.screening video,.transcript { display: none !important; }
  .front-inner,.body { width: 100%; }
  .front-picture { background: none; }
  .harbor img { height: 10rem; }
  .cover-ledger { position: static; background: white; color: black; }
  .cover-ledger *, .screening * { color: black !important; }
  .front h1 { font-size: 5rem; }
  .body section { padding: 1rem 0; }
  .screening { background: white; border: 1px solid #666; break-inside: avoid; }
  .film-grid { display: block; }
  .step-print { display: inline !important; }
}
.screening figcaption h3 { color: #faf8ec; }
:is(.cover-ledger,.screening) :focus-visible { outline-color: var(--acid); }
.film-player { position: relative; }
.film-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; cursor: pointer; background: #192820; border: 1px solid #909a88; color: var(--deep); overflow: hidden; }
.film-play img { width: 100%; height: 100%; object-fit: contain; display: block; }
.film-play span { display: inline-flex; align-items: center; gap: .55rem; position: absolute; right: .8rem; bottom: .7rem; background: var(--acid); font: 650 .82rem/1.3 var(--sans); padding: .55rem .75rem; }
.film-play i { border-block: .32rem solid transparent; border-left: .5rem solid currentColor; }
.film-play:focus-visible { outline-offset: 2px; }
.film-play:hover span { background: white; }
.viewer-actions { display: flex; align-items: center; gap: .35rem; }
.viewer-canvas { overflow: auto; max-height: 68dvh; margin-block: .65rem; overscroll-behavior: contain; }
#source-view .viewer-canvas img { margin: 0 auto; }
#source-view .viewer-canvas.expanded img { width: max(1200px,100%); max-height: none; }
#source-view [aria-pressed=true] { background: var(--deep); color: white; }
@media(max-width: 600px) {
  .film-play span { font-size: .7rem; padding: .4rem .55rem; right: .4rem; bottom: .4rem; }
  .viewer-head { gap: .35rem; }
  .viewer-head h2 { font-size: 1.55rem; }
  #source-view button { padding: .45rem .5rem; font-size: .73rem; }
}
@media(max-width: 380px) {
  .cover-ledger { grid-template-columns: minmax(0,1.4fr) minmax(0,.7fr); }
  .front h1 { font-size: clamp(4.1rem,22vw,4.95rem); }
}
@media print { .film-player { display: none; } }
