/* quiet: near-black, so the photographs' blacks read as black. No accent colour:
   brightness does all the work. */
@font-face { font-family: "Cormorant"; src: url("cormorant.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root { --bg: #0c0c0d; --ink: #d9d6cf; --soft: #97948d; --line: #2a2a2b; --pad: clamp(1rem, 4vw, 3rem); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 Georgia, "Iowan Old Style", serif; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: var(--soft); }
a:hover { text-decoration-color: var(--ink); }
header { display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; align-items: baseline; padding: 1.5rem clamp(1rem, 4vw, 3rem); }
.name { margin: 0; font: 600 1.35rem/1.2 "Cormorant", Georgia, serif; }
.name a { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; color: var(--soft); }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
main { padding: 1rem var(--pad) 3rem; }
h1 { font: 500 clamp(2.2rem, 5vw, 3.4rem)/1.1 "Cormorant", Georgia, serif; margin: .5rem 0 1.5rem; }
.prose { max-width: 38rem; }
.home { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, 26rem) minmax(0, 38rem); justify-content: center; }
.poster img { width: 100%; height: auto; display: block; }
.byline { font-size: 1.15rem; margin: -.75rem 0 1.25rem; }
.visit { color: var(--soft); border-block: 1px solid var(--line); padding: .75rem 0; margin-bottom: 1.5rem; }
.visit p { margin: .2rem 0; }
/* Galleries: one work to a screen, with a sliver of the next one showing. */
.grid { display: flex; flex-direction: column; gap: 1.25rem; }
.cell { margin: 0; }
.panels { display: flex; justify-content: center; gap: .75rem; }
.panels > a { min-width: 0; max-width: 100%; }
.panels img { display: block; width: auto; height: auto; max-width: 100%; }
/* A definite width from the image's ratio (--r, set per image), so a lazy image holds
   its space before it loads and the page doesn't jump while scrolling. */
.grid .panels img { width: min(calc(100vw - 2 * var(--pad)), calc(88vh * var(--r))); width: min(calc(100vw - 2 * var(--pad)), calc(88svh * var(--r))); }
.grid .pair img { width: min(100%, calc(88vh * var(--r))); width: min(100%, calc(88svh * var(--r))); }
.pair > a { flex: 1 1 0; min-width: 0; display: flex; }
.pair > a:first-child { justify-content: flex-end; }
figcaption, .meta { color: var(--soft); font-size: .875rem; line-height: 1.5; }
figcaption b, .meta b { color: var(--ink); font-weight: 400; }
figcaption, .caps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2.5rem; margin: .5rem 0 0; text-align: center; }
/* Captions keep their place but stay hidden until the work is hovered or focused. A
   touchscreen can't hover, so there they simply show. */
@media (hover: hover) {
  figcaption { opacity: 0; transition: opacity .15s; }
  .cell:hover figcaption, .cell:focus-within figcaption { opacity: 1; }
}
.note { color: var(--soft); font-size: .875rem; max-width: 38rem; margin-top: 2rem; }
.sketch { color: var(--soft); font-size: .8125rem; }
/* A single work: arrows beside the image, everything inside the window. */
main:has(.detail) { padding-top: 0; }
.detail { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: stretch; }
.detail .panels { align-items: center; }
.detail .panels img { max-height: calc(100vh - 8.5rem); max-height: calc(100svh - 8.5rem); }
.arrow { display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--soft); text-decoration: none; }
.arrow:hover, .arrow:focus-visible { color: var(--ink); }
.meta { text-align: center; }
.meta .note { margin: .75rem auto 0; }
footer { padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem; color: var(--soft); font-size: .8125rem; border-top: 1px solid var(--line); }
footer p { margin: .2rem 0; }
@media (max-width: 760px) {
  .home { grid-template-columns: 1fr; }
  .panels.pair { flex-direction: column; align-items: center; }
  .pair > a { flex: none; width: 100%; justify-content: center; }
  main:has(.detail) { padding-inline: .25rem; }
  .detail { grid-template-columns: 2rem minmax(0, 1fr) 2rem; }
}
