/* ZNA — strictly black & white, Cormorant Garamond. */
:root { --fg: #000; --bg: #fff; --gap: 28px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 500 20px/1.35 'Cormorant Garamond', Georgia, serif;
}
a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }

.wrap { padding: 30px 60px 90px; max-width: 1500px; }
.site-top { display: flex; align-items: stretch; gap: 18px; margin-bottom: 26px; }
.site-top .top-stack { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.site-top .top-nav { display: flex; align-items: flex-end; gap: 18px; }
.site-top .logo { display: inline-block; line-height: 0; }
.site-top img { width: 64px; height: 64px; }
.site-top .top-link { font-size: 16px; line-height: 1; padding-bottom: 4px; font-weight: 700; }
.site-top .sep { font-size: 16px; line-height: 1; padding-bottom: 4px; margin: 0 -7px; }
.about-btn { all: unset; cursor: pointer; font: inherit; font-size: 16px; line-height: 1; padding-bottom: 4px; font-weight: 700; }
.about-btn:hover { text-decoration: underline; }
.about-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.about-text { max-width: 520px; margin: 0 0 28px; font-size: 16px; line-height: 1.35; }
.about-text[hidden] { display: none; }
.artist-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.back { display: inline-block; }
.view-btn { border: 1px solid var(--fg); padding: 2px 16px; font-weight: 700; font-size: 18px; line-height: 1.5; text-decoration: none; }
.view-btn:hover, .view-btn:focus-visible { background: var(--fg); color: var(--bg); text-decoration: none; }

h1 { font-size: 46px; line-height: 1.05; margin: 0 0 6px; font-weight: 700; }
h1 .alias { font-weight: 500; font-size: 26px; }
h1.site-title { font-size: 26px; line-height: 1; margin: 2px 0 0; font-weight: 700; }
.sub-title { font-size: 22px; line-height: 1.2; font-weight: 700; margin: 0 0 4px; }
.lede { max-width: 640px; margin: 0 0 6px; }
.bio { max-width: 640px; margin: 14px 0 6px; white-space: pre-line; }
.meta { margin: 0 0 30px; }
.rule { border: 0; border-top: 1px solid var(--fg); margin: 30px 0; }

details.about { margin: 4px 0 18px; }
details.about summary { cursor: pointer; font-weight: 700; list-style: none; display: inline; }
details.about summary::-webkit-details-marker { display: none; }
details.about p { max-width: 560px; margin: 8px 0 0; }

/* ---- Home ---- */
.home-title { font-size: 25px; font-weight: 700; margin: 0 0 8px; }
.home-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
h1 a:hover { text-decoration: none; }
.section-title { font-weight: 700; margin: 0 0 18px; }

/* ---- Work tiles ---- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap) 22px; }
.works.big { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.works.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.phys-intro { max-width: 620px; margin: 0 0 8px; font-size: 17px; white-space: pre-line; }
.work { margin: 0; min-width: 0; }
.work .frame {
  all: unset; display: block; cursor: zoom-in; width: 100%; aspect-ratio: 1 / 1;
  border: 1px solid var(--fg); background: var(--bg); position: relative; overflow: hidden;
}
.work .frame:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.work .frame img, .work .frame video { width: 100%; height: 100%; object-fit: contain; }
.work .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px;
  background: repeating-linear-gradient(135deg, #fff 0 9px, #000 9px 10px);
}
.work .ph span { background: #fff; padding: 3px 12px; border: 1px solid #000; }
.work .badge {
  position: absolute; right: 8px; bottom: 8px; background: #000; color: #fff; padding: 0 8px; font-size: 15px; letter-spacing: .04em;
}
.work figcaption { margin-top: 8px; font-size: 18px; line-height: 1.25; }
.work figcaption .t { font-weight: 700; display: block; overflow-wrap: anywhere; }
.work figcaption .sub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.work figcaption .sub .ed { white-space: nowrap; margin-left: auto; }

/* ---- Collection index ---- */
.search { font: inherit; border: 0; border-bottom: 1px solid var(--fg); background: transparent; padding: 4px 0; width: 280px; max-width: 100%; border-radius: 0; }
.search::placeholder { color: #000; opacity: .45; }
.letters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 20px 0 6px; }
.letters a { font-weight: 700; }
/* Every column's first entry starts on one line; the first letter heading sits above that line. */
.artists { --lh: 38px; list-style: none; margin: 0; padding: var(--lh) 0 0; columns: 3 320px; column-gap: 50px; }
.artists li { break-inside: avoid; padding: 2px 0; }
.artists li.letter { font-weight: 700; font-size: 26px; line-height: 36px; height: var(--lh); margin-top: 18px; border-bottom: 1px solid var(--fg); }
.artists li.letter.first { margin-top: calc(-1 * var(--lh)); }
.artists .n { opacity: .55; font-size: 16px; }
.artists .alias { opacity: .7; }
.artists li:not(.letter) { display: flex; align-items: baseline; gap: .3em; }
.artists li .star { margin-left: auto; padding-left: .6em; }
.artists li[hidden] { display: none; }
#peek {
  position: fixed; z-index: 20; pointer-events: none; width: 190px; border: 1px solid var(--fg); background: #fff; display: none;
}
#peek img { width: 100%; height: auto; }

/* ---- Viewer ---- */
dialog#viewer { border: 0; padding: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #fff; color: #000; }
dialog#viewer::backdrop { background: #fff; }
.v { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.v .stage { display: flex; align-items: center; justify-content: center; padding: 56px 70px 8px; min-height: 0; }
.v .stage > * { max-width: 100%; max-height: 100%; }
.v .stage img, .v .stage video { max-height: 100%; width: auto; height: auto; object-fit: contain; }
.v .stage iframe { --ar: 1; aspect-ratio: var(--ar); width: min(100%, calc((100vh - 170px) * var(--ar))); height: auto; max-height: calc(100vh - 170px); border: 1px solid #000; }
.v .stage iframe.wide { width: 100%; height: 100%; aspect-ratio: auto; }
.v .stage model-viewer { width: min(100%, 900px); height: 100%; }
.v .cap { padding: 8px 70px 22px; display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.v .cap .t { font-weight: 700; }
.v button { all: unset; cursor: pointer; font-weight: 700; padding: 4px 10px; }
.v button:hover, .v button:focus-visible { background: #000; color: #fff; }
.v .x { position: fixed; top: 12px; right: 18px; font-size: 38px; line-height: 1; }
.v .prev, .v .next { position: fixed; top: 50%; transform: translateY(-50%); font-size: 34px; line-height: 1; }
.v .prev { left: 10px; } .v .next { right: 10px; }
.v .spacer { flex: 1; }

.foot { margin-top: 70px; font-size: 16px; }
.site-foot { margin-top: 60px; font-size: 16px; line-height: 1.35; }
.foot + .site-foot { margin-top: 14px; }

@media (max-width: 700px) {
  body { font-size: 18px; }
  .wrap { padding: 20px 18px 70px; }
  h1 { font-size: 36px; }
  h1.site-title { font-size: 21px; }
  .sub-title { font-size: 20px; }
  .works, .works.big, .works.small { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .work figcaption { font-size: 16px; }
  .v .stage { padding: 52px 10px 4px; }
  .v .cap { padding: 6px 14px calc(68px + env(safe-area-inset-bottom)); }
  .v .prev, .v .next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; }
  .v .prev { left: 4px; } .v .next { right: 4px; }
  .search { width: 100%; }
}
@media (max-width: 420px) { .works, .works.big, .works.small { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .work .frame video { transition: none; } }
@media print { .v { display: none; } }

/* ---- Grouped collections ---- */
.work.group .frame { box-shadow: 6px 6px 0 -1px #fff, 6px 6px 0 0 #000, 12px 12px 0 -1px #fff, 12px 12px 0 0 #000; overflow: visible; cursor: pointer; margin: 0 12px 12px 0; width: calc(100% - 12px); }
.work.group .frame img { position: absolute; inset: 0; }
.work.group .frame[aria-expanded="true"] { background: #000; }
.work.group .frame[aria-expanded="true"] img { opacity: .35; }
.gbody { grid-column: 1 / -1; border: 1px solid var(--fg); padding: 18px; margin: 4px 0 8px; }
.gbody[hidden] { display: none; }
.gbody .works { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ghead { display: flex; gap: 14px; align-items: baseline; margin-bottom: 16px; font-size: 22px; }
.ghead span { opacity: .6; font-size: 17px; }
.gclose { all: unset; cursor: pointer; margin-left: auto; font-size: 18px; font-weight: 700; padding: 2px 8px; }
.gclose:hover, .gclose:focus-visible { background: #000; color: #fff; }
@media (max-width: 700px) { .gbody { padding: 12px; } .gbody .works { grid-template-columns: 1fr 1fr; } }

/* ---- Viewer: full screen button ---- */
.v .fs { position: fixed; top: 14px; left: 18px; line-height: 0; padding: 9px 10px; }
.v .fs svg { display: block; width: 18px; height: 18px; }
.v .stage img:fullscreen, .v .stage video:fullscreen, .v .stage model-viewer:fullscreen {
  width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; background: #fff; border: 0;
}
.v .stage iframe:fullscreen { width: 100vw; height: 100vh; max-width: none; max-height: none; aspect-ratio: auto; border: 0; }
dialog#viewer.pfs .stage { position: fixed; inset: 0; padding: 0; background: #fff; z-index: 2; }
dialog#viewer.pfs .stage > * { width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; border: 0; aspect-ratio: auto; }
dialog#viewer.pfs .cap, dialog#viewer.pfs .prev, dialog#viewer.pfs .next { display: none; }
dialog#viewer.pfs .x, dialog#viewer.pfs .fs { z-index: 3; }

/* ---- /view: random work, full screen ---- */
body.view { background: #000; color: #fff; overflow: hidden; height: 100vh; height: 100dvh; }
body.view #stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
body.view #stage img, body.view #stage video { width: 100%; height: 100%; object-fit: contain; }
body.view #stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
body.view #stage model-viewer { width: 100%; height: 100%; }
body.view #stage .empty { max-width: 420px; padding: 20px; text-align: center; }
.vui { pointer-events: none; position: fixed; left: 0; right: 0; display: flex; gap: 18px; align-items: baseline; padding: 14px 20px; color: #fff; mix-blend-mode: difference; transition: opacity .4s; z-index: 5; }
.vui.top { top: 0; padding-top: 17px; } .vui.br { left: auto; bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); } .vui.bottom { bottom: 0; flex-wrap: wrap; padding-bottom: calc(14px + env(safe-area-inset-bottom)); padding-right: 86px; }
.vui a, .vui button { pointer-events: auto; }
.vui a { color: #fff; } .vui .t { font-weight: 700; }
.vui button { all: unset; pointer-events: auto; cursor: pointer; font-weight: 700; padding: 8px; line-height: 0; color: #fff; border: 1px solid #fff; }
.vui button[hidden] { display: none; }
.vui.top { gap: 10px; }
.vui button svg { display: block; width: 22px; height: 22px; }
.vui button:hover, .vui button:focus-visible { background: #fff; color: #000; }
.vlogo { position: fixed; left: 20px; top: 14px; z-index: 6; line-height: 0; mix-blend-mode: difference; transition: opacity .4s; }
.vlogo img { width: 44px; height: 44px; filter: invert(1); }
.vlogo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.idle .vui, body.idle .vlogo { opacity: 0; pointer-events: none; }
body.idle { cursor: none; }

/* ---- Artist page: previous / next artist ---- */
.artist-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 56px; }
.artist-nav .btn { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--fg); padding: 10px 16px; min-width: 0; max-width: 100%; text-decoration: none; justify-self: start; }
.artist-nav .btn[rel="next"] { text-align: right; justify-self: end; }
.artist-nav .to-top { justify-self: center; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; }
.artist-nav .to-top svg { width: 20px; height: 20px; display: block; }
.artist-nav .dir { font-size: 16px; opacity: .65; }
.artist-nav .who { font-weight: 700; font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.artist-nav .btn:hover, .artist-nav .btn:focus-visible { background: var(--fg); color: var(--bg); text-decoration: none; }
.artist-nav .btn:hover .dir, .artist-nav .btn:focus-visible .dir { opacity: 1; }
@media (max-width: 700px) { .artist-nav { gap: 8px; } .artist-nav .btn { padding: 8px 10px; } .artist-nav .who { font-size: 17px; } .artist-nav .to-top { width: 40px; height: 40px; padding: 0; } }
@media print { .artist-nav { display: none; } }

/* ---- Collection: favorites filter + thumbnail grid ---- */
.letters { align-items: center; }
.searchrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.searchrow .search { margin-right: 6px; }
.ltool { all: unset; cursor: pointer; box-sizing: border-box; border: 1px solid var(--fg); width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; font-weight: 700; }
.ltool:hover, .ltool:focus-visible { background: var(--fg); color: var(--bg); }
.ltool[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ltool[aria-pressed="true"]:hover { background: var(--bg); color: var(--fg); }
.ltool svg { width: 14px; height: 14px; display: block; }
.letters.grid-on { display: none; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; margin-top: 22px; }
.artist-grid[hidden], .gtile[hidden] { display: none; }
.gtile { display: block; min-width: 0; text-decoration: none; }
.gtile .gimg { display: block; position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--fg); background: var(--bg); overflow: hidden; }
.gtile .gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile .gimg .ph { position: absolute; inset: 0; }
.gtile .gname { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.gtile:hover .gname, .gtile:focus-visible .gname { text-decoration: underline; }
@media (max-width: 700px) { .artist-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 18px 10px; } }

/* ---- Viewer: info (i) button + panel ---- */
.v button[hidden] { display: none; }
.v .x, .v .fs, .v .info, .v .prev, .v .next { z-index: 3; }
.v .info { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); line-height: 0; padding: 9px 10px; }
.v .info svg { width: 18px; height: 18px; display: block; }
.v .info[aria-expanded="true"] { background: #000; color: #fff; }
.info-panel { position: fixed; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(580px, calc(100vw - 36px));
  max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); overflow: auto; background: #fff; color: #000;
  border: 1px solid #000; box-shadow: 7px 7px 0 #000; padding: 22px 26px 20px; text-align: left; }
.info-panel[hidden] { display: none; }
.info-panel h3 { margin: 0 34px 12px 0; font-size: 24px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.info-panel .idesc { margin: 0 0 16px; font-size: 18px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.info-panel .idesc a, .info-panel dd a { text-decoration: underline; }
.info-panel .irows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding-top: 12px; border-top: 1px solid #000; font-size: 16px; line-height: 1.3; }
.info-panel dt { opacity: .6; } .info-panel dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.info-panel .ix { position: absolute; top: 8px; right: 10px; font-size: 28px; line-height: 1; }
dialog#viewer.pfs .info, dialog#viewer.pfs .info-panel { display: none; }
@media (max-width: 700px) { .info-panel { padding: 18px 18px 16px; max-height: calc(100dvh - 220px); } .info-panel h3 { font-size: 21px; } .info-panel .idesc { font-size: 17px; } }

.info-panel .idesc.none { opacity: .6; margin-bottom: 4px; }

.info-panel dd.tok { user-select: all; -webkit-user-select: all; cursor: copy; font-size: 14px; line-height: 1.35; word-break: break-all; }

/* ---- Viewer top buttons: ✕, full screen and info are identical squares ---- */
.v .x, .v .fs, .v .info { box-sizing: border-box; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 0; }
.v .x svg, .v .fs svg, .v .info svg { width: 18px; height: 18px; display: block; }
.v .x { top: 14px; right: 18px; font-size: inherit; }

/* drawn "opens elsewhere" arrow */
.ext { width: .7em; height: .7em; margin-left: .32em; display: inline-block; vertical-align: .04em; flex: none; }
.info-panel dd a { text-decoration: underline; }

/* ---- Collection list: columns arranged in script (see arrange() in site.js) ---- */
.artist-cols { display: grid; gap: 0 50px; align-items: start; }
.artist-cols[hidden] { display: none; }
.artists.col { columns: auto; padding: 0; margin: 0; min-width: 0; }
.artists.col li.letter:first-child, .artists.col li.letter.first { margin-top: 0; }
.artists li.spacer { display: block; height: var(--lh, 38px); padding: 0; }

.artists li.letter { scroll-margin-top: 24px; }

.meta .updated { display: block; font-size: 15px; line-height: 1.3; margin-top: 3px; }

/* ---- /view slideshow: play button + speed panel (below the next arrow) ---- */
.vui.sub { top: 0; padding-top: 67px; gap: 10px; }
.vui button[aria-pressed="true"], .vui button[aria-expanded="true"] { background: #fff; color: #000; }
.vui button:not([aria-pressed="true"]) .i-pause, .vui button[aria-pressed="true"] .i-play { display: none; }
.vpanel { position: fixed; z-index: 6; right: 20px; top: 118px; width: min(300px, calc(100vw - 32px)); box-sizing: border-box;
  background: #fff; color: #000; border: 1px solid #000; box-shadow: 0 0 0 1px #fff; padding: 14px 16px 14px; font-size: 16px; line-height: 1.3; transition: opacity .4s; }
.vpanel[hidden] { display: none; }
.vpanel label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.vpanel input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: #000; display: block; }
.vpanel .vends { display: flex; justify-content: space-between; font-size: 13px; opacity: .65; margin-top: 2px; }
.vpanel .vnow { font-weight: 700; margin: 8px 0 14px; }
.vpanel input[type="text"] { width: 100%; box-sizing: border-box; font: 13px/1.3 Consolas, 'Courier New', monospace; border: 1px solid #000; background: #fff; color: #000; padding: 6px 7px; border-radius: 0; }
.vpanel .vhint { margin: 10px 0 0; font-size: 13.5px; opacity: .8; }
body.idle .vpanel { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .vpanel { right: 12px; } }

.vpanel .vhint b { white-space: nowrap; }

/* ---- /view: "fit to screen" toggle (stills and videos only) ---- */
.vui.br { flex-direction: column; align-items: flex-end; gap: 10px; }
.vui button:not([aria-pressed="true"]) .i-cover, .vui button[aria-pressed="true"] .i-contain { display: none; }
body.view.fit #stage img, body.view.fit #stage video { object-fit: cover; object-position: center; }
