:root {
  --bg: #fff;
  --fg: #111;
  --muted: #777;
  --rule: #e6e6e6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --fg: #eee; --muted: #999; --rule: #2a2a2a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); padding: 4px 8px; z-index: 10; }

.site-header { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; justify-content: space-between; padding: 28px var(--gutter); }
.site-name { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; font-weight: 500; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }

main { max-width: 900px; margin: 0 auto; padding: 24px var(--gutter) 80px; }
main.wide { max-width: 1400px; }
h1 { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 28px; }
h2 { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.prose { max-width: 640px; }
.prose p, .video p { margin: 0 0 1em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 28px; }
.tile { text-decoration: none; display: block; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--rule); transition: opacity .2s; }
.tile:hover img { opacity: .85; }
.tile-title { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tile-caption { display: block; font-size: 14px; color: var(--muted); }

.gallery { display: grid; gap: 40px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery img { margin: 0 auto; max-height: 90vh; width: auto; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

.videos { margin-top: 40px; display: grid; gap: 64px; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.embed { aspect-ratio: 16 / 9; margin: 0 0 18px; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.video > p:not(.meta) { max-width: 640px; }

.about { display: grid; gap: 32px; }
.about img { width: 100%; max-width: 420px; }
@media (min-width: 800px) { .about { grid-template-columns: 300px 1fr; gap: 56px; } }

.exhibits { margin-bottom: 40px; }
.exhibits h2 { margin-bottom: 16px; }
.exhibits dl { display: grid; grid-template-columns: 1fr; margin: 0; }
.exhibits dt { font-size: 13px; color: var(--muted); margin-top: 16px; }
.exhibits dd { margin: 0; max-width: 640px; }
@media (min-width: 700px) {
  .exhibits dl { grid-template-columns: 170px 1fr; column-gap: 24px; }
  .exhibits dt { margin-top: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
  .exhibits dd { padding: 12px 0; border-top: 1px solid var(--rule); max-width: none; }
}

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 24px var(--gutter) 40px; font-size: 12px; letter-spacing: .06em; color: var(--muted); border-top: 1px solid var(--rule); }

/* home hero */
.hero { display: grid; gap: 24px; align-items: center; padding: 8px 0 24px; }
.hero-title { font-size: clamp(26px, 4vw, 44px); font-weight: 300; font-style: normal; letter-spacing: -.01em; text-transform: none; line-height: 1.15; margin: 0; max-width: 14em; }
.hero-portrait { width: 100%; max-width: 220px; border-radius: 50%; }
@media (min-width: 800px) { .hero { grid-template-columns: 1fr 220px; } }
.hero-link { margin: 0 0 56px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.section-title { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 24px; }
.tiles { align-items: start; }
.tile { display: block; }
.tile-wide { grid-column: 1 / -1; max-width: 900px; }
.tile img { aspect-ratio: auto; object-fit: initial; }
.tile-caption { margin-top: 4px; }
div.tile .tile-title { margin-top: 12px; }
.still { margin: 0 0 18px; }
.poster { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; margin: 0 0 18px; }
.poster img { width: 100%; }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.55); }
.play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video h2 { font-weight: 600; }
.video .meta { font-style: italic; }

/* home tiles: rows where every image has the same height (flex share = aspect ratio) */
.tiles { display: block; }
.tile-row { display: flex; gap: 28px; align-items: flex-start; margin: 0 0 48px; }
.tile-row .tile { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.tile-row .tile-wide { flex: 0 1 900px; }
.tile img { width: 100%; aspect-ratio: auto; object-fit: initial; }
@media (max-width: 700px) {
  .tile-row { display: block; margin: 0; }
  .tile-row .tile { margin: 0 0 40px; }
}

.site-name { display: inline-flex; align-items: center; gap: 14px; }
.site-name img { width: 44px; height: 44px; object-fit: cover; }

figcaption strong { display: block; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
figcaption span { display: block; max-width: 560px; margin: 2px auto 0; }

/* image that is replaced by a movie while hovered */
.hv { position: relative; width: fit-content; margin: 0 auto; cursor: pointer; outline-offset: 4px; }
.hv img { margin: 0; }
.hv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.hv.playing video { opacity: 1; }

/* sound button on hover-video images */
.snd { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.hv:hover .snd, .hv.playing .snd, .hv:focus-within .snd { opacity: 1; }
.snd:hover { background: rgba(0,0,0,.85); }
.snd .on { display: none; }
.snd[aria-pressed="true"] .on { display: inline; }
.snd[aria-pressed="true"] .off { display: none; }
