* { box-sizing: border-box; }

:root {
  --ink: #111111;
  --muted: #666666;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --row-h: 280px;
}

html { background: #fff; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #555555; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.site-header__inner {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}
.site-header__brand { font-weight: 500; }
.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
}
.site-header__nav a { color: var(--muted); padding: 10px 0; }
.site-header__nav a:hover { color: var(--ink); }

.artwork { display: block; width: 100%; height: auto; background: #F2F2F2; }

/* Catalogue: justified rows */
.catalogue { flex: 1; padding-top: 72px; }
.place { padding-bottom: 96px; scroll-margin-top: 24px; }
.place__title {
  margin: 0 0 32px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.gallery {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 16px;
  align-items: flex-start;
}
.gallery::after { content: ""; flex: 999 1 0; }
.gallery li {
  flex: var(--ar) 1 calc(var(--ar) * var(--row-h));
  min-width: 0;
}
.work-card { display: flex; flex-direction: column; gap: 10px; }
.work-card__caption {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.45;
}
.work-card__artist { color: var(--muted); }

/* Work page */
.work {
  flex: 1;
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.work__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.5;
}
.work__title { margin: 0; font-size: 13px; font-weight: 400; }
.work__muted { color: var(--muted); }
.work__navwrap { padding-bottom: 48px; }
.work__nav {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}
.work__nav a { padding: 10px 0; }
.work__nav-next { text-align: right; }

/* Footer */
.site-footer { padding-bottom: 48px; }
.site-footer__inner {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
}
