:root {
  --bg: #FBFAF7;
  --bg-alt: #F1EEE7;
  --ph: #E9E5DD;
  --ink: #1C1B19;
  --text: #4A463F;
  --muted: #6B655C;
  --line: #DDD8CE;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.section { padding-bottom: 112px; }

.label {
  margin: 0 0 40px; padding-top: 20px; border-top: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.05; }
.sub-display { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--text); }
.eyebrow { margin: 0 0 16px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { border-bottom: 1px solid var(--line); }
.lede { margin: 24px 0 0; max-width: 720px; font-size: 20px; line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.link-line { display: inline-block; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }

.prose { max-width: 720px; }
.prose p { margin: 0 0 1.2em; font-size: 18px; line-height: 1.75; color: var(--text); }
.prose a { border-bottom: 1px solid var(--line); color: var(--ink); }

/* Placeholders — removed once real images are in */
.ph {
  background: var(--ph); color: var(--muted);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.r45 { aspect-ratio: 4 / 5; }
.r11 { aspect-ratio: 1 / 1; }
.r34 { aspect-ratio: 3 / 4; }
.r43 { aspect-ratio: 4 / 3; }
/* A filled photo slot keeps its slot's shape; the photo is cropped to fit. */
img.r45, img.r11, img.r34, img.r43, img.portrait, img.hero-img { object-fit: cover; }

/* Header + navigation */
.site-header {
  position: relative; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding-top: 32px; padding-bottom: 32px;
}
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: 0.02em; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.nav a { display: block; padding: 8px 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a.active { border-bottom: 1px solid var(--ink); }
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 10px; }
.sub {
  display: none; position: absolute; left: -16px; top: 100%; z-index: 10; min-width: 230px;
  background: var(--bg); border: 1px solid var(--line); padding: 8px 16px;
}
.sub a { text-transform: none; letter-spacing: 0.02em; font-size: 16px; padding: 10px 0; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.menu-toggle {
  display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}

/* Hero */
.hero { padding-top: 24px; padding-bottom: 96px; }
.hero-img { height: min(640px, 70vh); }
.hero img { height: min(640px, 70vh); object-fit: cover; }
.hero-text { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.hero h1 { margin: 0; max-width: 760px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.statement { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--text); }

.page-head { padding-top: 48px; padding-bottom: 64px; }

/* Cards (series) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card .ph, .card img { margin-bottom: 8px; }
.card-title { font-family: var(--serif); font-size: 26px; }
.card-meta { font-size: 14px; color: var(--muted); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Works gallery */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 48px 32px; }
.work { margin: 0; }
.work-open { all: unset; display: block; width: 100%; cursor: zoom-in; }
.work-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.work figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.work .title { font-family: var(--serif); font-style: italic; font-size: 22px; }
.work .meta { font-size: 14px; color: var(--muted); }

/* Curator band on home */
.band { background: var(--bg-alt); margin-bottom: 112px; }
.band-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.band-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.band-text p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text); }
.band-text .sub-display { margin: 0; }
.band-img { flex: 1 1 320px; max-width: 460px; background: #E2DDD3; }
.intro .lede { margin: 0 0 24px; }

/* About */
.about-page { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.portrait { flex: 1 1 300px; max-width: 420px; aspect-ratio: 4 / 5; background: #E2DDD3; }
.about-page .prose { flex: 1 1 420px; }

/* Exhibitions */
.show-feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.show-feature .ph, .show-feature img { flex: 1 1 360px; max-width: 640px; min-width: 0; }
.show-feature-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.show-feature .show { font-family: var(--serif); font-size: 36px; line-height: 1.15; }
.show-feature .year, .show-feature .venue { color: var(--muted); font-size: 16px; }
.show-feature .link-line { margin-top: 12px; }
.show-feature:hover .show { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.shows { list-style: none; margin: 0; padding: 0; }
.shows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.shows .year { width: 80px; color: var(--muted); }
.shows .show { flex: 1 1 320px; font-family: var(--serif); font-size: 24px; }
.shows .venue { color: var(--text); }

/* Contact */
.contact-page .lede { margin: 0 0 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-list .muted { width: 120px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); }
.site-footer a:hover { color: #CFC9BD; }
.footer-inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-name { margin: 0; font-family: var(--serif); font-size: 32px; }
.footer-inner .muted { margin: 8px 0 0; color: #CFC9BD; }
.contact-links { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.copy { margin: 0; padding-bottom: 40px; font-size: 13px; color: #9C968A; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 19, 18, 0.92); }
.lightbox-body img { max-width: 92vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox-body .ph { width: min(70vw, 600px); }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px;
  border: 0; background: transparent; color: #FBFAF7; font-size: 32px; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 14px 0; }
  .nav a.active { border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
  .has-sub > a::after { content: ""; }
  .sub { display: block; position: static; border: 0; padding: 0 0 8px 16px; min-width: 0; background: transparent; }
  .sub a { padding: 8px 0; font-size: 16px; color: var(--text); }
}

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .logo { font-size: 22px; }
  .hero { padding-bottom: 64px; }
  .section { padding-bottom: 72px; }
  .band { margin-bottom: 72px; }
  .band-inner { padding-top: 64px; padding-bottom: 64px; }
  .page-head { padding-top: 24px; padding-bottom: 40px; }
  .display { font-size: 44px; }
  .sub-display { font-size: 24px; }
  .lede { font-size: 18px; }
  .show-feature .show { font-size: 30px; }
  .footer-inner { padding-top: 56px; }
}
