* { box-sizing: border-box; }
:root { color-scheme: light; --paper: #fcfbf6; --ink: #22352c; --muted: #526258; --rule: #c8d0c5; --green: #24583e; }
body { margin: 0; padding: 0; color: var(--ink); background: var(--paper); font: 17px/1.5 var(--font-ui); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #a66127; outline-offset: 3px; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; padding: .5rem 1rem; background: white; z-index: 3; }
.masthead, main, footer { width: min(1140px, calc(100% - 2 * clamp(16px, 5vw, 64px))); margin-inline: auto; }
.masthead, .masthead nav, footer, .links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.3rem; }
.masthead, footer { justify-content: space-between; border-color: var(--rule); }
.masthead { min-height: 70px; border-bottom: 1px solid var(--rule); }
.brand { font: 23px var(--font-main); color: var(--ink); text-decoration: none; }
.masthead nav a, footer a, .links a, summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
h1, h2 { margin: 0; color: var(--ink); font-family: var(--font-main); font-weight: 400; letter-spacing: -.038em; line-height: 1.09; }
h1 { padding-block: clamp(28px, 4vw, 58px); font-size: clamp(42px, 5.7vw, 78px); }
h2 { font-size: clamp(25px, 2.5vw, 37px); text-wrap: balance; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(28px, 4vw, 65px); }
article { border-top: 1px solid var(--rule); min-width: 0; scroll-margin-top: 18px; }
article > header { padding: 12px 0 17px; }
.kind { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
figure { margin: 0; }
figcaption, .poem-credit, .proof-plate p { font: 14px/1.5 var(--font-ui); }
.film figcaption, .plot figcaption { margin-top: 9px; color: var(--muted); }
.film video, .plot img { display: block; width: 100%; height: auto; }
.film video { background: #06100f; }
.plot img { border: 1px solid var(--rule); }
.plate, .poem-plate { padding: clamp(16px, 2vw, 30px); }
.plate > figcaption { padding-bottom: 9px; border-bottom: 1px solid currentColor; }
.current-plate { color: #eff3e6; background: #203c31; }
.current-plate canvas:not([hidden]) { display: block; width: 100%; max-height: 205px; object-fit: contain; }
.readout, .readout > span:last-child, .slider-label, .range-ends, .form-line, .error-metric { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.readout { padding: 7px 0; border-block: 1px solid #6e8575; font-size: 16px; flex-wrap: wrap; }
.readout > span:last-child { font-size: 12px; }
.readout strong { font: 500 22px/1.5 var(--font-mono); }
.slider-label { margin-top: 10px; font-size: 14px; }
.slider-label output, .range-ends { font: 13px/1.35 var(--font-mono); }
.range-ends { color: #d1dfce; }
input[type=range] { display: block; margin: 0; width: 100%; height: 34px; accent-color: #b8d8a9; }
.appointment-plate, .proof-plate { background: #e9ede3; }
.form-line, .check { margin-top: 10px; font-size: 14px; }
.form-line { flex-wrap: wrap; }
select { max-width: 100%; min-height: 44px; padding: 4px 8px; color: var(--ink); background: var(--paper); border: 1px solid #819185; border-radius: 2px; font: inherit; }
.check { display: flex; min-height: 44px; align-items: center; gap: 9px; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--green); }
table { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 14px; text-align: left; }
th, td { padding: 9px 8px 9px 0; border-bottom: 1px solid #bcc8ba; }
.error-metric { margin-top: 16px; font-size: 14px; flex-wrap: wrap; }
.error-metric small { display: block; color: var(--muted); }
.error-metric output { font: 500 clamp(17px, 1.5vw, 22px) var(--font-mono); }
.poem-plate { color: #362f26; background: #f1eadc; padding-inline: clamp(21px, 4vw, 52px); }
.verse { white-space: pre-line; margin: 0; font: 400 clamp(20px, 1.8vw, 25px)/1.48 var(--font-main); }
.poem-credit { margin: 18px 0 0; color: #605243; }
.proof-plate dl { margin: 0; }
.proof-plate dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #bdc8bb; }
.proof-plate dt { font-size: 15px; }
.proof-plate dd { margin: 0; font: 400 35px/1.15 var(--font-main); }
.proof-plate p { margin: 16px 0 0; }
.links { gap: 5px 10px; margin: 14px 0 4px; }
.links a { padding-inline: 12px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.links a:hover { border-color: var(--green); background: #edf1e8; }
details[data-work-sources]:not(:has(.source-records)) { display: none; }
summary { display: list-item; width: fit-content; cursor: pointer; color: var(--green); padding: 10px 0; }
.source-records { margin: 0; padding-left: 1.2em; font-size: 14px; }
.source-records li { margin: 8px 0; overflow-wrap: anywhere; }
.source-records p { margin: 0 0 5px; }
.source-records code { display: block; font: 12px/1.6 var(--font-mono); }
footer { margin-top: 48px; padding-block: 14px 30px; border-top: 1px solid var(--rule); }
@media (max-width: 700px) {
  .works-grid { grid-template-columns: 1fr; gap: 22px; }
  .masthead { min-height: 60px; }
  .masthead nav { gap: 0 12px; }
  h1 { padding-block: 24px; }
}
