:root { color-scheme: dark; --wall: #171717; --paper: #e8e8df; --ink: #171817; }
@font-face { font-family: Inter; src: url('fonts/inter-light.ttf') format('truetype'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--wall); }
body { font-family: Arial, Helvetica, sans-serif; color: var(--paper); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 1px solid #e8e8df; outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { position: fixed; z-index: 3; inset: 0 0 auto; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; background: linear-gradient(#171717eb, #17171700); }
.home-link { pointer-events: auto; font-size: 13px; letter-spacing: -.04em; }
.home-link span, .edition { font: 9px/1.4 'Courier New', monospace; letter-spacing: .12em; }
.home-link span { margin-left: 8px; }
.edition { opacity: .55; }
#wall { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
#wall.dragging, #wall.dragging .poster { cursor: grabbing; }
.board { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.poster { position: absolute; width: 360px; height: 509px; padding: 0; border: 0; border-radius: 0; background: var(--paper); cursor: pointer; contain: layout paint; transition: box-shadow 180ms; }
.poster.dark { background: #151616; }
.poster:hover { box-shadow: 0 0 0 1px #ffffff30; }
.poster:focus-visible { outline: 2px solid var(--paper); outline-offset: 8px; }
.poster svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.artwork { color: #191a18; font-family: Inter, Arial, Helvetica, sans-serif; }
.artwork.dark { color: #e3e3db; }
.artwork .photo { filter: grayscale(1) contrast(1.35); mix-blend-mode: multiply; }
.artwork:not(.dark) .photo { filter: grayscale(1) contrast(1.35) sepia(.12) brightness(.91); }
.artwork.dark .photo { mix-blend-mode: screen; }
.artwork .on-dark { filter: grayscale(1) brightness(1.3) contrast(1.15) invert(1); }
.artwork:not(.dark) .photo.on-dark.from-dark { filter: grayscale(1) invert(1) contrast(1.6) sepia(.12) brightness(.91); }
.artwork .full-photo { filter: grayscale(1) contrast(1.15); }
.artwork .mono { font-family: 'Courier New', monospace; }
.artwork .big-type { font-weight: 300; letter-spacing: -.055em; }
.artwork .hairline { stroke: currentColor; stroke-width: .55; opacity: .45; }
.wall-tools { position: fixed; z-index: 3; inset: auto 0 0; padding: 28px 26px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; background: linear-gradient(#17171700, #171717ee); }
.wall-tools p { margin: 0; font: 10px/1.5 'Courier New', monospace; color: #c7c7bd; }
.wall-tools p span { padding: 0 8px; opacity: .4; }
.zoom-tools { display: flex; align-items: center; pointer-events: auto; background: #191919d9; border: 1px solid #ffffff22; border-radius: 3px; }
.zoom-tools button { background: none; border: 0; height: 34px; min-width: 34px; }
#reset { min-width: 48px; font: 10px 'Courier New', monospace; color: #aaa; }
#auto-pan { padding: 0 12px; border-right: 1px solid #ffffff22; font: 10px 'Courier New', monospace; white-space: nowrap; }
#auto-pan[aria-pressed="false"] { color: #888; }
.zoom-tools button:hover { color: white; background: #ffffff0d; }
dialog { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: transparent; color: var(--paper); overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; align-items: center; }
dialog::backdrop { background: #101010de; backdrop-filter: blur(3px); }
.viewer-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; height: 54px; flex: 0 0 54px; padding: 0 26px; font: 10px 'Courier New', monospace; letter-spacing: .08em; }
.viewer-bar button { border: 0; background: none; padding: 12px 0 12px 20px; font: 10px 'Courier New', monospace; }
.viewer-bar button span { margin-left: 14px; font-size: 20px; vertical-align: middle; }
.viewer-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 26px; pointer-events: none; }
.large-poster { height: 100%; max-height: 1100px; aspect-ratio: 600 / 848; max-width: calc(100vw - 150px); pointer-events: auto; }
.large-poster svg { width: 100%; height: 100%; display: block; box-shadow: 0 16px 60px #0003; }
.step { width: 38px; height: 48px; border: 0; padding: 0; flex-shrink: 0; background: none; opacity: .6; pointer-events: auto; font-size: 22px; }
.step:hover { opacity: 1; }
.viewer-footer { flex: 0 0 56px; min-height: 56px; display: flex; justify-content: center; align-items: center; gap: 24px; width: 100%; padding: 10px 26px; font: 10px/1.4 'Courier New', monospace; }
#poster-name { color: #94958e; }
#replay { padding: 10px 0; border: 0; background: none; font: inherit; }
.large-poster.is-building .build { animation: assemble 850ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--order, 0) * 80ms); transform-box: fill-box; transform-origin: center; }
.large-poster.is-building .build.type { animation-name: typeset; }
@keyframes assemble { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typeset { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(18px); } to { opacity: 1; clip-path: inset(0); transform: translateY(0); } }
.no-script { position: fixed; z-index: 10; top: 40%; width: 100%; text-align: center; padding: 25px; }
@media (max-width: 650px) {
  .masthead { padding: 18px; }
  .edition { display: none; }
  .wall-tools { padding: 26px 18px 16px; }
  .wall-tools p { max-width: 205px; font-size: 9px; }
  .wall-tools p span { padding: 0 4px; }
  .viewer-bar { padding: 0 18px; }
  .viewer-stage { gap: 0; }
  .large-poster { max-width: calc(100vw - 32px); height: auto; max-height: 100%; width: calc((100dvh - 112px) * .70755); }
  .step { position: absolute; bottom: 56px; z-index: 2; background: #171717cc; width: 36px; height: 36px; opacity: 1; }
  .previous { left: 16px; }
  .next { right: 16px; }
  .viewer-footer { gap: 18px; padding: 8px 16px; font-size: 9px; }
  #poster-name { max-width: 36%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (hover: none) and (pointer: coarse) { #auto-pan { display: none; } }
