:root {
  color-scheme: light;
  --paper: #fcfcfb;
  --ink: #222;
  --muted: #626262;
  --line: #dededd;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: clamp(3rem, 6vw, 5rem); }
.frame { width: min(86%, 60rem); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; aspect-ratio: var(--ratio); object-fit: cover; background: #efefed; }
figure, p, h1, h2, h3 { margin: 0; }
p { line-height: 1.65; }
h1, h2, h3 { line-height: 1.2; font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
h1[tabindex="-1"]:focus, main:focus { outline: none; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 1;
  left: 1rem;
  top: 1rem;
  padding: .75rem;
  background: var(--paper);
}

.site-header {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark { font-weight: 600; font-size: 1rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 1.75rem); }
.site-header nav a { padding: .55rem 0; font-size: .94rem; }
.site-header nav a:hover,
.site-header nav a[aria-current],
.back-link:hover { text-decoration: underline; text-underline-offset: .3em; }

.home-mosaic { padding-top: clamp(1rem, 4vw, 3.25rem); }
.mosaic-frame {
  display: block;
  border: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #efefed;
}
.home-mosaic figcaption { flex-wrap: wrap; gap: .35rem 1rem; }
.home-mosaic figcaption a:hover { text-decoration: underline; text-underline-offset: .25em; }
.text-link {
  color: var(--ink);
  font-size: .91rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.text-link:hover { color: var(--muted); }
figcaption { display: flex; gap: 1rem; justify-content: space-between; padding-top: .6rem; font-size: .87rem; }
figcaption span:last-child { color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); }
.card-image img, .photo-index img { aspect-ratio: 3 / 2; }
.project-card a:hover h2, .photo-index a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; margin-top: .8rem; }
.card-heading h2 { font-size: 1.2rem; }
.card-heading span { color: var(--muted); font-size: .87rem; text-align: right; }
.project-card p { color: var(--muted); margin-top: .5rem; }

.page-intro { padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(1.3rem, 2.6vw, 2rem); }
.page-intro h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.page-intro p { margin-top: .75rem; color: var(--muted); max-width: 35rem; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); }

.exhibition-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 3rem;
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
}
.exhibition-row h2 { font-size: 1.2rem; margin-top: .4rem; }
.exhibition-row .text-link { display: inline-block; margin-top: .7rem; }

.view-options { display: flex; gap: 1.2rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.view-options a { font-size: .93rem; padding: .65rem .15rem; }
.view-options a[aria-current] { box-shadow: inset 0 -1px var(--ink); }
.view-options a:hover, .photo-controls a:hover { color: var(--muted); }
.photo-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.25rem; }
.photo-index figcaption { display: grid; gap: .35rem; }
figcaption strong { font-weight: 600; }
.gallery-photo, .project-feature { max-width: 65rem; margin-inline: auto; }
.gallery-photo img { object-fit: contain; max-height: 73vh; background: transparent; }
.gallery-photo figcaption > div { display: grid; gap: .3rem; }
.photo-controls { display: flex; align-items: start; justify-content: end; gap: 1rem; }
.photo-controls a { text-decoration: underline; text-underline-offset: .25em; }
.photo-controls span { white-space: nowrap; }
.project-feature figcaption { align-items: baseline; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.about-copy > p { margin-bottom: 1.2rem; max-width: 37rem; }
.about-links { padding-top: 1.2rem; margin-top: 1.8rem; border-top: 1px solid var(--line); }
.about-links h2 { font-size: 1.1rem; margin-bottom: .65rem; }
.about-grid figure { align-self: start; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 950px) {
  .photo-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 2.25rem); }
  .site-header { min-height: 4rem; }
  .site-header nav { gap: clamp(.65rem, 3.5vw, 1rem); }
  .site-header nav a { font-size: .88rem; }
  .project-grid, .photo-index, .exhibition-row, .about-grid { grid-template-columns: 1fr; }
  .project-grid { gap: 2rem; }
  .gallery-photo figcaption { flex-direction: column; }
  .photo-controls { justify-content: space-between; }
}
