:root {
  --paper: #f6f6f3;
  --ink: #191816;
  --faint: #d8d8d2;
  --muted: #656660;
  --red: #9d2d25;
  --header: 5.5rem;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }

.site-header {
  height: var(--header); display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 3.5vw, 4rem); border-bottom: 1px solid var(--ink); position: relative; z-index: 10;
}
.wordmark { font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-family: Arial, sans-serif; font-size: .42em; font-style: normal; font-weight: normal; letter-spacing: .16em; margin-left: .45em; text-transform: uppercase; vertical-align: .2em; }
nav { display: flex; gap: clamp(1.2rem, 3vw, 3.2rem); }
nav a { text-decoration: none; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; padding: .6rem 0; border-bottom: 1px solid transparent; }
nav a.active, nav a:hover { border-color: var(--ink); }
.menu-button { display: none; border: 0; background: none; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }

main { height: calc(100dvh - var(--header) - 2.3rem); overflow: hidden; }
.page { height: 100%; overflow: auto; scrollbar-width: thin; padding: clamp(1.5rem, 4vw, 4.5rem); animation: appear .32s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } }
.loading, .error { display: grid; height: 100%; place-items: center; color: var(--muted); }

.home { display: grid; place-items: center; text-align: center; overflow: hidden; position: relative; isolation: isolate; }
.home-slides { position: absolute; inset: 0; z-index: -2; }
.home-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.home-slide.active { opacity: 1; }
.home.has-slides::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 246, 243, .76); backdrop-filter: saturate(.7); }
.home-inner { max-width: 72rem; transform: translateY(-2vh); position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .68rem; margin-bottom: 1.6rem; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: normal; margin-top: 0; }
h1 { font-size: clamp(3rem, 7.7vw, 8.2rem); letter-spacing: -.055em; line-height: .86; margin-bottom: clamp(2rem, 5vh, 4rem); }
.announcement { font-family: Georgia, serif; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.55; }
.announcement-label { font-family: Arial, sans-serif; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; margin-right: .7rem; }
.announcement + .announcement { margin-top: .55rem; }

.page-heading { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.page-heading h2 { font-size: clamp(2.4rem, 5vw, 5.5rem); letter-spacing: -.045em; margin: 0; }
.page-heading p { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.exhibition-group { margin-bottom: 2.5rem; }
.exhibition-group > h3 { font-family: Arial, sans-serif; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.exhibition-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(8rem, .8fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--faint); text-decoration: none; }
.exhibition-row:last-child { border-bottom: 1px solid var(--faint); }
.exhibition-row:hover .arrow { transform: translateX(.3rem); }
.exhibition-row h4 { font-family: Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 2.25rem); font-weight: normal; margin: 0; }
.exhibition-row small { color: var(--muted); line-height: 1.5; }
.arrow { transition: transform .2s; }
.empty { color: var(--muted); font-family: Georgia, serif; font-size: 1.3rem; padding: 2rem 0; }

.detail { padding: 0; display: grid; grid-template-columns: minmax(18rem, 43%) 1fr; }
.detail-media { height: 100%; overflow: auto; background: #e8e8e3; }
.detail-media img { width: 100%; min-height: 35%; display: block; object-fit: cover; border-bottom: 1px solid var(--paper); }
.detail-media .image-placeholder { height: 100%; display: grid; place-items: center; font-family: Georgia, serif; color: var(--muted); }
.detail-copy { overflow: auto; padding: clamp(2rem, 5vw, 6rem); }
.back { display: inline-block; text-decoration: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 7vh; }
.detail h2 { font-size: clamp(3rem, 6vw, 7rem); line-height: .92; letter-spacing: -.05em; margin-bottom: 1.2rem; }
.artists { font-family: Georgia, serif; font-size: 1.4rem; font-style: italic; }
.metadata { margin: 2.5rem 0; padding: 1rem 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); display: grid; gap: .5rem; font-size: .8rem; }
.description, .about-copy { white-space: pre-line; font-family: Georgia, serif; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.6; }
.button { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: .9rem 1.2rem; text-decoration: none; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.button:hover { background: transparent; color: var(--ink); }

.text-page { display: grid; grid-template-columns: minmax(12rem, .6fr) minmax(18rem, 1fr); gap: 7vw; align-content: center; max-width: 90rem; margin: auto; }
.text-page h2 { font-size: clamp(3.5rem, 8vw, 8rem); letter-spacing: -.055em; }
.contact-list { display: grid; gap: 1.2rem; font-family: Georgia, serif; font-size: 1.3rem; }
.contact-page { max-width: 62rem; margin: auto; }
.contact-form { display: grid; gap: 1.5rem; max-width: 48rem; }
.contact-form textarea { min-height: 10rem; }
.honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.submit-page { max-width: 75rem; margin: auto; }
.submit-intro { max-width: 45rem; margin-bottom: 2.5rem; }
.submission-form { display: grid; gap: 2rem; padding-bottom: 4rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
label { display: grid; gap: .45rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
input, textarea, select { width: 100%; padding: .75rem .1rem; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; color: var(--ink); }
textarea { resize: vertical; min-height: 6rem; }
.work-card { border-top: 1px solid var(--ink); padding-top: 1.2rem; display: grid; gap: 1rem; }
.work-card header { display: flex; justify-content: space-between; }
.work-card h3 { font-size: 1.5rem; margin: 0; }
.remove-work { border: 0; background: transparent; text-decoration: underline; }
.form-actions { display: flex; gap: 1rem; align-items: center; }
.form-message { font-size: .85rem; }
.success { font-family: Georgia, serif; font-size: 1.5rem; border-top: 1px solid; padding-top: 1.5rem; }
footer { height: 2.3rem; padding: 0 clamp(1.2rem, 3.5vw, 4rem); display: flex; justify-content: space-between; align-items: center; font-size: .6rem; text-transform: uppercase; letter-spacing: .15em; border-top: 1px solid var(--faint); }

@media (max-width: 700px) {
  :root { --header: 4.4rem; }
  .menu-button { display: block; }
  nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 1.2rem; flex-direction: column; gap: .4rem; }
  nav.open { display: flex; }
  nav a { width: max-content; }
  .page { padding: 1.3rem; }
  .home { padding: 1.3rem; }
  .home-inner { transform: none; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .page-heading { align-items: start; flex-direction: column; gap: .5rem; }
  .exhibition-row { grid-template-columns: 1fr auto; }
  .exhibition-row small { grid-column: 1; }
  .detail { display: block; overflow: auto; }
  .detail-media { height: 42vh; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }
  .detail-media img { display: inline-block; width: 85vw; height: 100%; min-height: 0; border-bottom: 0; border-right: 1px solid var(--paper); }
  .detail-copy { overflow: visible; padding: 2rem 1.3rem 4rem; }
  .back { margin-bottom: 3rem; }
  .text-page { display: block; padding-top: 9vh; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
