@font-face {
  font-family: 'Archivo Narrow';
  src: url('./assets/fonts/archivo-narrow-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fff;
  --ink: #111;
  --mid: #666;
  --light: #aaa;
  --hairline: .5px;
  --body: 14px;
  --brand-size: 22px;
  --nav-size: 20px;
  --side: 300px;
  --bar-h: 44px;
  --pad: clamp(16px, 2vw, 32px);
  --sans: 'Archivo Narrow', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: var(--body)/1.35 var(--sans);
}
button, input { font: inherit; color: inherit; }
button, a { color: inherit; }
a { text-underline-offset: 2px; }
.view[hidden], [hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: -60px;
  left: 12px;
  padding: 8px 11px;
  border: var(--hairline) solid var(--ink);
  background: var(--bg);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto var(--bar-h) 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-right: var(--hairline) solid #eee;
  background: var(--bg);
}
.brand-button, .main-nav button, .utility-links button, .legal-links button,
.drawer button, .back-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.brand-button { font-size: var(--brand-size); font-weight: 700; line-height: 1; }
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 34px;
}
.main-nav button { font-size: var(--nav-size); line-height: 1.32; }
.main-nav button[aria-current='page'], .main-nav button:hover,
.utility-links button:hover, .utility-links a:hover, .legal-links button:hover { text-decoration: underline; }
.sidebar-bottom { width: 100%; margin-top: auto; }
.utility-links {
  width: 100%;
  margin-bottom: 24px;
  padding-top: 10px;
  border-top: var(--hairline) solid var(--light);
  color: var(--mid);
  font-size: 12px;
}
.utility-links button, .utility-links a { display: block; text-decoration: none; line-height: 1.45; }
.legal-links { color: var(--light); font-size: 10px; white-space: nowrap; }
.legal-links button { color: inherit; font-size: inherit; }
.mobile-header, .drawer { display: none; }

#main {
  margin-left: var(--side);
  min-height: 100svh;
  padding: 20px var(--pad) 0;
}
.view { min-height: 55vh; padding-bottom: 110px; }
.view > h1 {
  margin: 0 0 64px;
  padding-top: 7px;
  border-top: var(--hairline) solid var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.home-view { padding-bottom: 82px; }
.home-upcoming {
  min-height: calc(100svh - var(--bar-h) - 40px);
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 48px 20px 88px;
  text-align: center;
}
.home-upcoming-label {
  margin: 0 0 18px;
  color: var(--light);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-upcoming-artists {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.018em;
}
.home-upcoming-artists span { display: block; }
.home-upcoming-opening { margin: 22px 0 0; color: var(--light); font-size: 12px; }
.hero-route { display: block; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.hero-image {
  display: block;
  width: 100%;
  height: calc(100svh - var(--bar-h) - 88px);
  min-height: 360px;
  object-fit: cover;
  background: #f2f2f2;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-bottom: var(--hairline) solid #ddd;
}
.hero-caption-left { display: flex; gap: 7px; min-width: 0; }
.hero-caption strong { font-weight: 700; }
.hero-caption span { color: var(--mid); }
.hero-caption > span:last-child { flex: 0 0 auto; text-align: right; }

.exhibition-list, .artist-list { padding-bottom: 20px; }
.list-section { margin-bottom: 54px; }
.list-section h2, .index-label {
  margin: 0;
  padding: 7px 0;
  border-top: var(--hairline) solid var(--ink);
  color: var(--mid);
  font-size: 13px;
  font-weight: 400;
}
.artist-index { margin: 0; }
.index-label { margin: 0; }
.no-exhibition {
  margin: 0;
  padding: 10px 0;
  border-top: var(--hairline) solid #ddd;
  border-bottom: var(--hairline) solid #ddd;
  color: var(--light);
  font-style: italic;
}
.text-row, .name-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 28px;
  border: 0;
  border-top: var(--hairline) solid #ddd;
  background: none;
  padding: 10px 0;
  text-align: left;
  cursor: default;
}
.list-section .text-row:last-child, .artist-list .name-row:last-child { border-bottom: var(--hairline) solid #ddd; }
.text-row > span { display: flex; gap: 8px; min-width: 0; }
.text-row strong, .name-row { font-weight: 700; }
.text-row small { color: var(--mid); font-size: inherit; }
.text-row > time, .text-row > span:last-child { flex: 0 0 auto; color: var(--mid); text-align: right; }
.text-row.is-link, .name-row { cursor: pointer; }
.text-row.is-link:hover strong, .name-row:hover { text-decoration: underline; }

.detail-view { padding-bottom: 130px; }
.detail-view > .back-link,
.detail-view > .detail-header,
.detail-view > .detail-section,
.detail-view > #exhibitionTextLink { width: 100%; max-width: 820px; }
.back-link { display: block; padding-bottom: 18px; color: var(--light); }
.back-link:hover { text-decoration: underline; }
.media-stack { display: block; width: 100%; max-width: none; }
.gallery-main { width: 100%; height: clamp(260px, 42svh, 380px); aspect-ratio: auto; margin: 0; overflow: hidden; background: #f2f2f2; }
.gallery-main .detail-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.gallery-viewport { width: 244px; overflow: hidden; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
  gap: 8px;
  transition: transform 180ms ease;
  will-change: transform;
}
.gallery-thumbnail {
  width: 76px;
  aspect-ratio: 1;
  border: 0;
  background: #f2f2f2;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnail[aria-selected='true'] { outline: 1px solid var(--ink); outline-offset: -1px; }
.gallery-thumbnail:focus-visible, .gallery-arrow:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.gallery-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 76px;
  flex: 0 0 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.gallery-arrow:disabled { color: #ccc; cursor: default; }
.detail-header { margin-top: 28px; padding-bottom: 24px; }
.artist-header { padding-bottom: 44px; }
.detail-header h1 {
  margin: 0 0 5px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.018em;
}
.artist-header h1 {
  margin: 0 0 5px;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.detail-header p, .artist-header p { margin: 0; color: var(--mid); }
.detail-person { font-size: 14px; }
.detail-date { color: var(--light) !important; font-size: 12px; }
.detail-section { margin-top: 0; }
.detail-section h2 {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  color: var(--light);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.work-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
  border: 0;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-top: var(--hairline) solid #ddd;
}
.history-row:last-child { border-bottom: var(--hairline) solid #ddd; }
.work-row strong { font-weight: 700; }
.work-row span:last-child, .history-row span:last-child { color: var(--light); text-align: right; }
.pdf-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding: 10px 0;
  border-top: var(--hairline) solid var(--ink);
  border-bottom: var(--hairline) solid #ddd;
  text-decoration: none;
}
.pdf-link span { color: var(--light); }
.pdf-link:hover { text-decoration: underline; }
#exhibitionTextLink .pdf-link { display: inline-block; margin-top: 22px; padding: 0; border: 0; color: var(--light); text-decoration: underline; }
#exhibitionTextLink .pdf-link span { display: none; }
#exhibitionTextLink .pending-status { margin-top: 22px; }
.pending-status { min-height: 1.2em; margin: 6px 0 0; color: var(--mid); font-size: 11px; }

.sparse-view .content-state {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 10px 0;
  border-top: var(--hairline) solid #ddd;
  border-bottom: var(--hairline) solid #ddd;
  color: var(--light);
}
.copy { max-width: 690px; }
.copy p { margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.contact-layout { display: flex; gap: clamp(28px, 5vw, 90px); }
.contact-details { flex: 0 0 min(320px, 36%); display: flex; flex-direction: column; gap: 24px; margin: 0; font-style: normal; }
.contact-details p { margin: 0; }
.map-frame { flex: 1; min-width: 0; aspect-ratio: 16 / 10; border: var(--hairline) solid #ddd; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }

.text-view > p { max-width: 600px; color: var(--mid); }
.page-newsletter-form { max-width: 720px; margin-top: 42px; }
.page-newsletter-form label { display: block; border-top: var(--hairline) solid var(--ink); padding: 8px 0; }
.page-newsletter-form input { display: block; width: 100%; border: 0; background: transparent; padding: 7px 0; outline: none; }
.page-newsletter-form .consent-row { display: flex; align-items: flex-start; gap: 8px; border-top-color: #ddd; font-size: 12px; }
.page-newsletter-form .consent-row input { flex: 0 0 auto; width: 14px; margin: 2px 0 0; }
.page-newsletter-form button { border: 0; background: var(--ink); color: var(--bg); padding: 9px 14px; cursor: pointer; }
.page-newsletter-form button:disabled, .newsletter-bar button:disabled { cursor: wait; opacity: .58; }
.page-newsletter-form .form-note { max-width: 520px; margin: 10px 0; color: var(--mid); font-size: 11px; }
.status { color: var(--mid); font-size: 11px; }
.status[data-state='error'] { color: #8a2020; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.legal-view > h1 { margin-bottom: 42px; }
.legal-copy { max-width: 780px; }
.legal-copy section { margin-bottom: 38px; }
.legal-copy h2 { margin: 0 0 10px; padding-top: 7px; border-top: var(--hairline) solid #ddd; font-size: 14px; font-weight: 700; }
.legal-copy p, .legal-copy ul { margin: 0 0 12px; }
.legal-copy ul { padding-left: 18px; }
.legal-copy li { margin-bottom: 3px; }
.newsletter-bar {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar-h);
  border-top: var(--hairline) solid var(--ink);
  background: var(--bg);
}
.newsletter-bar-form { display: flex; height: 100%; align-items: stretch; }
.newsletter-bar-form > strong { display: flex; align-items: center; width: var(--side); padding: 0 24px; border-right: var(--hairline) solid #ddd; }
.newsletter-bar label { display: flex; align-items: center; flex: 1; min-width: 0; padding: 0 12px; border-right: var(--hairline) solid #ddd; }
.newsletter-bar label span { flex: 0 0 auto; margin-right: 8px; color: var(--mid); font-size: 12px; }
.newsletter-bar input { width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; }
.newsletter-bar input::placeholder { color: transparent; }
.newsletter-bar .consent-compact { flex: 0 0 auto; gap: 5px; padding: 0 9px; }
.newsletter-bar .consent-compact input { width: 13px; height: 13px; margin: 0; }
.newsletter-bar .consent-compact span { margin: 0; font-size: 10px; }
.newsletter-bar label:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }
.newsletter-bar button { border: 0; background: var(--ink); color: var(--bg); padding: 0 22px; cursor: pointer; }
.newsletter-bar .status { position: absolute; right: 8px; bottom: calc(100% + 6px); padding: 4px 7px; border: var(--hairline) solid var(--ink); background: var(--bg); }

@media (max-width: 820px) {
  :root { --side: 250px; }
  .sidebar { padding: 18px; }
  #main { padding-left: 22px; }
  .newsletter-bar-form > strong { padding-left: 18px; }
  .contact-layout { gap: 32px; }
  .contact-details { flex-basis: 220px; }
}

@media (max-width: 700px) {
  :root { --bar-h: 48px; }
  body { font-size: 13px; }
  .sidebar { display: none; }
  .mobile-header {
    display: flex;
    position: relative;
    z-index: 60;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    margin: 0 12px;
    border-bottom: var(--hairline) solid var(--ink);
  }
  .mobile-brand, .menu-toggle { border: 0; background: none; padding: 0; cursor: pointer; }
  .mobile-brand { font-size: 18px; }
  .menu-toggle { width: 32px; text-align: right; font-size: 18px; }
  .drawer { position: fixed; z-index: 50; inset: 44px 0 var(--bar-h); padding: 14px 12px; background: var(--bg); }
  .drawer.open { display: block; }
  .drawer-links button, .drawer-utility button, .drawer-utility a { display: block; width: 100%; min-height: 38px; border: 0; background: none; padding: 0; text-align: left; text-decoration: none; }
  .drawer-links button { font-size: 18px; }
  .drawer-utility { margin-top: 8px; padding-top: 8px; border-top: var(--hairline) solid var(--light); color: var(--mid); }
  .drawer-legal { position: absolute; left: 12px; bottom: 14px; color: var(--light); font-size: 10px; }
  .drawer-legal button { color: inherit; font-size: inherit; }
  #main { margin-left: 0; padding: 14px 8px 0; }
  .view { padding-bottom: 82px; }
  .view > h1 { margin-bottom: 42px; }
  .home-view { padding-bottom: 58px; }
  .home-upcoming { min-height: calc(100svh - 44px - var(--bar-h) - 28px); padding: 36px 12px 70px; }
  .home-upcoming-artists { font-size: clamp(28px, 9vw, 38px); }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; }
  .hero-caption { gap: 14px; padding: 8px 0; }
  .hero-caption-left { display: block; }
  .hero-caption-left strong, .hero-caption-left span { display: block; }
  .hero-caption > span:last-child { max-width: 42%; }
  .list-section { margin-bottom: 42px; }
  .text-row { gap: 12px; }
  .text-row > span { display: block; }
  .text-row strong, .text-row small { display: block; }
  .back-link { padding-bottom: 18px; }
  .detail-header h1 { font-size: 26px; }
  .artist-header h1 { font-size: 34px; }
  .gallery-main { height: auto; aspect-ratio: 16 / 9; }
  .detail-section { margin-top: 0; }
  .contact-layout { display: block; }
  .contact-details { margin-bottom: 36px; }
  .map-frame { width: 100%; aspect-ratio: 1 / 1; }
  .copy p { font-size: 14px; }
  .legal-copy section { margin-bottom: 32px; }

  .newsletter-bar-form > strong { display: none; }
  .newsletter-bar label { padding: 0 7px; }
  .newsletter-bar label span { display: none; }
  .newsletter-bar input::placeholder { color: var(--mid); }
  .newsletter-bar .consent-compact { padding: 0 6px; }
  .newsletter-bar .consent-compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .newsletter-bar button { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
