@font-face {font-family:Inter;src:url("./fonts/inter-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
:root {
  --ink: #191917;
  --subtle: #676760;
  --rule: #deded8;
  --surface: #f8f8f5;
  --sans: "Inter", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: white; font: 15px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #e3e7df; color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 4px;
}
main:focus, h1:focus { outline: none; }
.page-width { width: min(calc(100% - 2 * clamp(20px, 5vw, 84px)), 1640px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 6; padding: .6rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.masthead { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; border-bottom: 1px solid var(--ink); }
.artist-wordmark { text-decoration: none; font-size: 1.38rem; line-height: 1; font-weight: 640; letter-spacing: -.065em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 44px); }
.site-nav a, .site-footer a, .connection-link { color: var(--subtle); text-decoration: none; font-size: .86rem; }
.connection-link { padding: 4px 0; border: 0; background: none; }
.site-nav .current, .site-nav a:hover, .site-footer a:hover, .connection-link:hover { color: var(--ink); text-decoration: underline; }
.site-nav .current { text-underline-offset: .39em; }
.collection-heading { padding: clamp(46px, 5.6vw, 93px) 0 clamp(33px, 4vw, 66px); }
h1, h2, p, figure, dl, dd { margin: 0; }
h1 { font: 640 clamp(3.5rem, 7.05vw, 8.1rem)/1.02 var(--sans); letter-spacing: -.065em; }
.collection-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15em .9em; margin-top: clamp(11px, 1.45vw, 25px); font-size: clamp(.94rem, 1.2vw, 1.22rem); letter-spacing: -.025em; }
.collection-line span + span { color: var(--subtle); }
.collection-line span + span::before { content: "·"; margin-right: .9em; }
.catalog-controls { border-top: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.results-summary { font-weight: 560; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.control-group { display: flex; align-items: center; gap: 8px; }
.search-box, .filter-toggle { height: 38px; border: 1px solid var(--rule); border-radius: 4px; background: white; display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; }
.search-box { padding-left: 12px; gap: 0; }
.search-box:focus-within { border-color: var(--ink); }
.search-box input { background: transparent; border: 0; width: 92px; height: 100%; min-width: 0; padding: 0 8px 0 0; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: var(--subtle); opacity: 1; }
.search-box button { height: 100%; background: transparent; border: 0; border-left: 1px solid var(--rule); padding: 0 11px; }
.search-box button:hover { background: var(--surface); }
.filter-toggle { padding: 0 13px; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { border-color: var(--ink); }
.filter-mark { width: 15px; height: 12px; position: relative; background: linear-gradient(currentColor,currentColor) 0 2px / 15px 1px no-repeat, linear-gradient(currentColor,currentColor) 0 9px / 15px 1px no-repeat; }
.filter-mark::before, .filter-mark::after { content: ""; position: absolute; width: 3px; height: 5px; background: white; border: 1px solid currentColor; }
.filter-mark::before { left: 4px; top: 0; }
.filter-mark::after { right: 3px; top: 7px; }
.filter-panel { padding: 6px 0 21px; }
.filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px 14px; }
.filter-field { min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--subtle); font-size: .8rem; }
.filter-field select { appearance: auto; width: 100%; min-height: 37px; padding: 4px; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; background: white; font-size: .9rem; }
.selections { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 0 16px; }
.filter-chip { border: 1px solid var(--rule); border-radius: 24px; background: var(--surface); padding: 4px 10px; font-size: .79rem; }
.filter-chip:hover { border-color: var(--ink); }
.text-link { padding: 3px 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; font-size: .87rem; }
.selections .text-link { margin-left: 4px; }
.catalog-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: clamp(14px, 1.7vw, 31px); row-gap: clamp(25px, 3.15vw, 52px); }
.catalog-grid li { min-width: 0; }
.tile { display: block; text-decoration: none; }
.tile-art, .work-art { background: white; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.tile-art { border: 1px solid var(--rule); display: block; }
.tile-art > *, .work-art > * { display: block; width: 100%; height: 100%; border: 0; }
.tile-art, .tile-art * { pointer-events: none; }
.tile-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; line-height: 1.3; padding-top: 10px; }
.tile-id { font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tile-type { font-size: .81rem; color: var(--subtle); }
.tile:hover .tile-art, .tile:focus-visible .tile-art { border-color: #86867e; }
.tile:hover .tile-id { text-decoration: underline; text-underline-offset: .18em; }
.pagination { margin-top: clamp(34px,4.5vw,70px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--rule); }
.pager-link, .back-link { width: max-content; font-size: .88rem; text-decoration: none; }
.pager-link:hover, .back-link:hover { text-decoration: underline; }
.pager-link[aria-disabled="true"] { color: #93938a; pointer-events: none; }
.pager-link:last-child { justify-self: end; }
.pager-link span, .back-link span { display: inline-block; padding-inline: 1px; }
.page-number { color: var(--subtle); font-size: .85rem; font-variant-numeric: tabular-nums; }
.site-footer { border-top: 1px solid var(--ink); margin-top: clamp(40px,7vw,110px); min-height: 85px; display: flex; gap: 12px; align-items: center; justify-content: space-between; color: var(--subtle); font-size: .84rem; }
.footer-dot { margin-inline: .25rem; }
.empty-state { padding: 58px 0 75px; border-top: 1px solid var(--rule); }
.empty-state h2 { margin-bottom: 10px; font: 400 2rem/1.2 var(--sans); letter-spacing: -.035em; }
.work-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.neighbors { display: flex; align-items: center; gap: 20px; }
.work-heading { margin: clamp(13px,2vw,27px) 0 clamp(26px,3vw,46px); display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
#work-title { font-size: clamp(2.6rem,5.6vw,6.2rem); }
.version-picker { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: .81rem; }
.version-picker select { max-width: min(265px,68vw); min-height: 34px; background: white; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 6px; font-size: .88rem; }
.version-art-stage, .version-art-stage > * { display: block; width: 100%; height: 100%; border: 0; }
#edition-message { white-space: pre-line; overflow-wrap: anywhere; }
#edition-message:not([hidden]) { display: block; }
.work-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(215px,.78fr); align-items: start; gap: clamp(26px,4vw,75px); }
.work-art { border: 1px solid var(--rule); }
.work-figure figcaption { color: var(--subtle); margin-top: 10px; font-size: .81rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
#fullscreen-link { color:var(--ink); margin-left:auto; padding-block:.3em; }
.feature-panel { border-top: 1px solid var(--ink); }
.feature-panel h2, .work-records h2 { font-size: 1.03rem; font-weight: 560; letter-spacing: -.025em; }
.feature-panel h2 { padding: 11px 0 16px; }
.features-list > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding: 8px 0; font-size: .9rem; }
.features-list dt { color: var(--subtle); }
.features-list dd { text-align: right; }
.work-records { margin-top: clamp(35px,4.4vw,72px); padding-top: 13px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(145px,1fr) minmax(0,3fr); gap: 19px; }
.record-text { min-width: 0; }
.hash-line { font-size: .85rem; color: var(--subtle); }
.hash-line code { font: .82rem/1.5 var(--sans); color: var(--ink); margin-left: 8px; overflow-wrap: anywhere; }
.record-links { display: flex; flex-wrap: wrap; gap: 9px 19px; margin-top: 12px; font-size: .85rem; }
.notice { margin: 20px 0; }
@media (max-width: 1060px) {
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 730px) {
  .masthead { height: 62px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-layout, .work-records { grid-template-columns: 1fr; }
  .work-layout { gap: 28px; }
  .feature-panel h2 { padding-bottom: 12px; }
  .work-records { gap: 10px; }
  .hash-line code { display: block; margin: 5px 0 0; }
}
@media (max-width: 465px) {
  .page-width { width: calc(100% - 36px); }
  .artist-wordmark { font-size: 1.25rem; }
  .masthead, .site-nav { gap: 9px; }
  .site-nav a, .connection-link { font-size: .78rem; }
  h1 { font-size: clamp(2.75rem, 11.6vw, 3.5rem); }
  .collection-heading { padding: 43px 0 30px; }
  .catalog-controls { gap: 8px; padding: 12px 0; }
  .results-summary { font-size: .85rem; }
  .control-group { gap: 5px; }
  .search-box, .filter-toggle { gap: 7px; font-size: .8rem; height: 35px; }
  .search-box { gap: 0; padding-left: 9px; }
  .search-box input { width: 68px; padding-right: 2px; }
  .filter-toggle { padding: 0 9px; }
  .filter-mark { display: none; }
  .filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-grid { gap: 22px 10px; }
  .tile-caption { padding-top: 6px; }
  .tile-id { font-size: .87rem; }
  .tile-type { font-size: .75rem; }
  .site-footer { min-height: 68px; }
}

.collection-description, .release-note {white-space:pre-wrap;overflow-wrap:anywhere;max-width:64ch;color:var(--subtle);margin-top:.8rem}
.read-error {padding:1rem 0}
.read-actions,.connection-actions {display:flex;align-items:baseline;justify-content:inherit;flex-wrap:wrap;gap:.25rem 1.1rem}
.tile-art iframe,.work-art iframe {display:block;width:100%;height:100%;border:0}
.tile-art img {object-fit:contain}
.tile-art > .art-error,.work-art > .art-error {font-size:.86rem;display:grid;align-content:center;justify-items:center;gap:.5rem;padding:1rem;color:var(--subtle);text-align:center}
.art-error p {max-width:48ch}
.art-error .read-actions {justify-content:center}
#connection-dialog {color:var(--ink);width:min(28rem,calc(100% - 2rem));max-height:calc(100% - 2rem);padding:clamp(20px,4vw,32px);border:1px solid var(--rule);background:white}
#connection-dialog::backdrop {background:rgba(22,22,18,.22)}
.connection-heading {display:flex;align-items:center;justify-content:space-between;gap:1rem}
.connection-heading h2 {font-size:1.35rem;font-weight:600;letter-spacing:-.04em}
#rpc-mode {margin:.7rem 0 1.4rem;color:var(--subtle);overflow-wrap:anywhere}
#rpc-form label {font-weight:550}
#rpc-form {margin-top:1rem}
.remember-rpc {display:flex;align-items:center;gap:.4rem;font-size:.86rem}
#rpc-help,#rpc-status {margin:.25rem 0;color:var(--subtle);font-size:.86rem}
#rpc-status:empty {display:none}
#rpc-url {display:block;margin:.7rem 0;width:100%;padding:.65rem .75rem;border:1px solid var(--rule);border-radius:3px;background:white}
.connection-actions {margin-top:1rem}
#rpc-apply {padding:.55rem .85rem;background:var(--ink);border:1px solid var(--ink);border-radius:3px;color:white}
#rpc-form button:disabled {opacity:.55;cursor:wait}
@media(max-width:600px){.catalog-controls,.control-group {flex-wrap:wrap}.version-picker {width:100%}}
.gallery-exit {display:none}
.art-only {overflow:hidden}
.art-only .masthead,.art-only .site-footer,.art-only .skip-link,.art-only .work-nav,.art-only .work-heading,.art-only .feature-panel,.art-only .work-records,.art-only .work-figure figcaption {display:none}
.art-only #main {width:100%}
.art-only .work-layout {display:block}
.art-only .work-art {position:fixed;inset:0;width:100%;height:100%;height:100dvh;aspect-ratio:auto;border:0}
.art-only .original-player {background-color:var(--gallery-background,white)}
.art-only .gallery-exit {display:block;position:fixed;top:.75rem;right:.75rem;z-index:1;padding:.45rem .65rem;background:white;transform:translateY(calc(-100% - 2rem))}
.art-only .gallery-exit:focus-visible {transform:none}
