/* ===== Colours and spacing: change here ===== */
:root {
  --bg: #f6f4ef;
  --text: #1c1b19;
  --muted: #6e6a62;
  --line: #d8d4ca;
  --pad: clamp(1.25rem, 3.5vw, 3rem);
  --gap: clamp(1.5rem, 3vw, 3rem);
  --header-h: 4.5rem;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; padding-top: var(--header-h); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, p, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 50; }
.skip-link:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--header-h); background: var(--bg); padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-name { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-nav ul { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.site-nav a { text-decoration: none; padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.site-nav a:hover { border-bottom-color: var(--muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--text); }
.menu-toggle { display: none; font-size: 0.875rem; padding: 0.5rem 0; }
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 2rem var(--pad); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1.1rem; font-size: 1.25rem; }
}

/* Pages */
.page { padding: 1rem var(--pad) 5rem; }
.page.narrow { max-width: 40rem; }
.page.narrow p { margin-top: 1rem; }
.page-heading { font-size: 0.875rem; font-weight: 400; color: var(--muted); margin-bottom: 2.5rem; }
.empty { color: var(--muted); padding: 4rem 0; }

/* Artworks (images are never cropped) */
.thumb { display: block; width: 100%; transition: opacity 0.25s; }
.thumb:hover { opacity: 0.85; }
.thumb img { width: 100%; height: auto; }
.caption { margin-top: 0.7rem; font-size: 0.8125rem; line-height: 1.4; }
.meta { display: block; color: var(--muted); }
.grid { display: grid; gap: calc(var(--gap) * 1.4) var(--gap); align-items: end; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; padding: 1rem var(--pad); animation: fade 0.2s ease; }
.lightbox-bar, .lightbox-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; font-size: 0.875rem; }
.lightbox-bar { align-items: center; }
.lightbox-count { color: var(--muted); }
.lightbox button { padding: 0.5rem 0; text-decoration: underline; text-underline-offset: 0.2em; }
.lightbox button:hover { color: var(--muted); }
.lightbox-nav { display: flex; gap: 1.5rem; }
.lightbox-stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
.lightbox-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox .caption { margin-top: 0; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Information page: two columns */
.info-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem calc(var(--gap) * 2); align-items: start; }
.info-columns h2 { font-size: 0.875rem; font-weight: 400; color: var(--muted); margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.info-columns .column > section + section { margin-top: 3rem; }
.info-columns p { margin: 0 0 1rem; }
.entries li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; margin-bottom: 0.6rem; }
.entries .year { color: var(--muted); }
@media (max-width: 800px) { .info-columns { grid-template-columns: 1fr; } }