:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #262722;
  --muted: #66665d;
  --rule: #d7d6ce;
  --red: #292929;
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --serif: var(--sans);
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
}
*, *::before, *::after {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased;}
a {color: inherit;}
a:focus-visible {outline: 2px solid var(--red); outline-offset: 4px; border-radius: 1px;}
.chapter:focus {outline: none;}
.skip {position: fixed; top: 5px; left: 5px; z-index: 10; background: var(--paper); padding: 12px; transform: translateY(-150%);}
.skip:focus {transform: none;}
.art-library {position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none;}
.site-header,.intro,.story,footer>div,.chapter-menu {width: min(calc(100% - clamp(40px,9vw,144px)),1180px); margin-inline: auto;}
.masthead {height: 73px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between;}
.brand {display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1.3 var(--sans); text-decoration: none;}
.brand img {display: block; width: 29px; height: 29px;}
.masthead nav {display: flex; gap: 28px;}
.masthead nav a {font-size: 13px; text-decoration: none; padding: 8px 0; color: var(--muted);}
.masthead nav a[aria-current] {color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;}
.masthead nav a:hover,.story-link:hover,footer a:hover {color: var(--red);}
.intro {padding-block: clamp(52px,8.8vh,108px) clamp(38px,6vh,81px);}
.plate-label,.chapter-id {font: 10px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase;}

.chapter-nav {position: sticky; top: 0; z-index: 3; background: var(--paper);}
.chapter-menu {position: relative; border-block: 1px solid var(--rule);}
.chapter-menu summary {display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 48px; cursor: pointer; font: 500 14px/1.4 var(--sans); list-style: none;}
.chapter-menu summary::-webkit-details-marker {display: none;}
.chapter-menu summary:focus-visible {outline: 2px solid var(--ink); outline-offset: -2px;}
.chapter-menu summary>svg {flex: none; transition: transform .15s ease;}
.chapter-menu[open] summary>svg {transform: rotate(180deg);}
.chapter-position {margin-inline-start: auto; display: inline-flex; align-items: baseline; gap: 12px; font-weight: 400;}
.current-count,.jump-number {font: 12.5px/1.4 var(--mono); color: var(--muted);}
.chapter-menu nav {position: absolute; top: 100%; inset-inline: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 9px 18px #00000009; max-height: 60svh; overflow-y: auto; overscroll-behavior: contain;}
.chapter-menu nav a {display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--ink); font: 400 14px/1.35 var(--sans); text-decoration: none;}
.chapter-menu nav a:is(:hover,[aria-current="step"]) .jump-label {text-decoration: underline; text-underline-offset: 4px;}
.chapter-position {visibility: hidden;}
.enhanced .chapter-position {visibility: visible;}
.progress-track {position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(calc(100% - clamp(40px,9vw,144px)),1180px); height: 1px;}
.progress-track i {display: block; width: 100%; height: 100%; background: var(--red); transform: scaleX(var(--read,0)); transform-origin: left;}
.story {position: relative; scroll-margin-top: 60px;}
.pinned {display: none;}
.chapter {scroll-margin-top: 54px; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(25px,8vw,124px); min-height: 460px; padding-block: 54px; border-bottom: 1px solid var(--rule);}
.chapter-inner {position: relative;}
.chapter-id {display: flex; flex-wrap: wrap; gap: 9px; align-items: center; line-height: 1.6; color: var(--muted); letter-spacing: .09em;}
.chapter-id span:nth-child(2) {color: var(--red);}
.id-separator {opacity: .7;}
.point {background: var(--red); width: 5px; height: 5px; border-radius: 50%; margin-right: 3px;}
.chapter h2 {margin: 17px 0 17px; max-width: 14em; font: 400 clamp(34px,3.7vw,55px)/1.02 var(--serif); letter-spacing: -.05em; text-wrap: balance;}
.chapter p {margin: 0; font-size: 16px; line-height: 1.65; color: #4e5048; max-width: 45ch; text-wrap: pretty;}
.chapter p + p {margin-top: 14px;}
.story-links {display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 24px;}
.story-link {display: inline-block; margin-top: 22px; font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: #aaa99f;}
.field-plate {margin: 0; width: 100%;}
.plate-label {color: var(--muted); display: flex; gap: 10px; align-items: center; letter-spacing: .09em; font-size: 9px;}
.plate-rule {height: 1px; background: var(--rule); flex: 1;}
.field-plate>svg {display: block; width: 100%; height: auto; max-height: 47vh;}
.field-plate figcaption {font: italic 16px/1.4 var(--serif); text-align: center; color: #64655b;}
.object {fill: none; stroke: #3e4039; stroke-linejoin: round; stroke-linecap: round; stroke-width: 1.45;}
.object .paper {fill: var(--paper);}
.object .fine {fill: none; stroke-width: 1;}
.object .hatch {fill: none; stroke-width: .75; stroke: #807e71;}
.object .mesh {fill: var(--paper); stroke-width: .95;}
.object .mesh-line {stroke-width: .95;}
.object .guide {fill: none; stroke: #88887c; stroke-width: .8; stroke-dasharray: 2 3;}
.object .accent {fill: none; stroke: var(--red); stroke-width: 1.35;}
.object .accent-fill {stroke: var(--red); fill: #e6b7a3; stroke-width: 1.2;}
.object .dot {fill: var(--red); stroke: none;}
footer>div {padding: 30px 0 36px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px;}
footer a {text-underline-offset: 3px;}
@media (min-width: 761px) {
 .enhanced .story {display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); gap: clamp(62px,9vw,147px); padding-left: clamp(0px,1vw,20px);}
 .enhanced .pinned {position: relative; display: block;}
 .enhanced .pinned-inner {position: sticky; top: max(80px,calc(50svh - min(16vw, 190px))); padding: clamp(30px,4vw,56px) 0;}
 .enhanced .chapter {display: flex; min-height: clamp(520px,79svh,840px); padding: max(80px,9svh) 0; align-items: center;}
 .enhanced .chapter:first-child {min-height: clamp(390px,62svh,680px);}
 .enhanced .chapter:last-child {min-height: max(560px,87svh);}
 .enhanced .chapter>.field-plate {display: none;}
 .enhanced .chapter[data-active] .point {box-shadow: 0 0 0 4px #29292912;}
}
@media (max-width: 760px) {
 .masthead {height: 61px;}
 .masthead nav {gap: 22px;}
 .intro {padding: 43px 0 30px;}
 .chapter-menu nav {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px;}
 .chapter {display: flex; flex-direction: column; gap: 23px; align-items: stretch; min-height: auto; padding: 38px 0 32px; scroll-margin-top: 54px;}
 .chapter h2 {margin: 13px 0; font-size: clamp(32px,6.8vw,43px);}
 .chapter p {font-size: 16px;}
 .story-link {margin-top: 13px;}
 .field-plate {max-width: 370px; margin: 0 auto;}
 .field-plate>svg {max-height: 215px;}
 .field-plate figcaption {font-size: 14px;}
}
@media (max-width: 500px) {
 .chapter-menu nav {grid-template-columns: 1fr; max-height: 58svh;}
 .chapter-position {gap: 8px;}
 .chapter-menu summary {gap: 8px;}
}
@media (prefers-reduced-motion: reduce) {
 html {scroll-behavior: auto;}
 .chapter-menu summary>svg {transition: none;}
}
@media print {
 .site-header,.chapter-nav,.pinned,.skip,footer {display: none!important;}
 .enhanced .story,.story {display: block;}
 .chapter,.enhanced .chapter {display: grid; grid-template-columns: 3fr 2fr; gap: 28px; padding: 18px 0; min-height: auto!important; break-inside: avoid;}
 .enhanced .chapter>.field-plate {display: block;}
 .intro {padding: 20px 0;}
 .story-link {font-size: 12px;}
}

/* Match the landing page typography and quiet monochrome artwork. */
:root {--ink:#252525;--muted:#666;--rule:#dedede;}
.chapter h2{font-weight:500;line-height:1.15;letter-spacing:-.035em;}
.plate-label,.chapter-id{font-family:var(--sans);font-size:12.5px;letter-spacing:0;text-transform:none;}
.field-plate figcaption{font-family:var(--sans);font-style:normal;font-size:14px;}
.field-plate>svg{filter:grayscale(1);}
