/* Contemporary Art Gallery
   Type and layout matched to the two references (measured 2026-11-28, 1500px wide):
   Richard Beavers (Barlow, #2b2b2b) for header, home and artist pages;
   Joseph K. Levene (Inter, #231f20) for the artists list and work page.
   Site name stays Roboto 400 grey. White page, no pure black text. */
:root {
  --bg: #ffffff;
  --text: #2b2b2b;          /* RB body text */
  --text-strong: #292929;   /* RB headings, current menu item */
  --text-menu: #3b3b3b;     /* RB menu, slide title */
  --text-soft: #757575;     /* RB caption secondary */
  --jkl-text: #231f20;      /* Levene text */
  --jkl-light: #acacac;     /* Levene list names, rule */
  --site-name: #6b6b6b;
  --rule-header: #d9d9d9;
  --rule-section: #9a9a9a;
  --rule-section-2: #eeeeee;
  --rule-footer: #ebebeb;
  --panel: #fafafa;         /* was #f5f5f5 (design-3: lighter) */
  --frame: #fafafa;         /* was #f1f1f1: placeholders, tiles while loading */
  --gutter: 16px;
  --max: 1500px;            /* 1420 content + 2 x 40 margins */
  --header-h: 120px;
  --barlow: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--barlow);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
em { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.caps { text-transform: uppercase; }

/* ---------- Header (RB): 151px block, content-width rule, fixed on scroll ---------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 0 var(--gutter);
}
.header-inner {
  max-width: calc(var(--max) - 80px); margin: 0 auto;
  padding: 18px 0 12px;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--rule-header);
}
.site-name { font-family: "Roboto", var(--barlow); font-weight: 400; font-size: 20px; letter-spacing: .02em; color: var(--site-name); white-space: nowrap; }
.site-name:hover { text-decoration: none; color: var(--text); }
.site-nav {
  display: flex; gap: 22px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter);
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none; font-family: var(--barlow); font-size: 12.5px; font-weight: 300; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-menu); white-space: nowrap; line-height: 15px;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text-strong); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text-strong); font-weight: 400; }
/* Phones: tracking reduced from 2.5px only as far as needed so HOME..CONTACT fit at 375px (size/weight unchanged). */
@media (max-width: 599px) { .site-nav a { letter-spacing: 1px; } }

@media (min-width: 800px) {
  :root { --gutter: 40px; --header-h: 152px; }
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; height: 151px; padding: 0; }
  .site-name { font-size: 24px; }
  .site-nav { margin: 0; padding: 0; gap: 30px; overflow: visible; }
}

.site-main { width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 64px; min-height: 60vh; }
@media (min-width: 800px) { .site-main { padding-top: 60px; padding-bottom: 80px; } }

/* Footer: copyright only; RB type and rule */
.site-footer {
  margin: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + 40px));
  padding: 24px 0 32px; border-top: 1px solid var(--rule-footer);
  font-family: var(--barlow); font-size: 10px; letter-spacing: 1px; color: var(--text);
}
.site-footer span { display: block; }
.demo-note { margin-top: 6px; }

/* ---------- Shared ---------- */
.page-title { font-weight: 300; font-size: 28px; line-height: 1.2; margin: 0 0 28px; color: var(--text); }
.muted { color: var(--text-soft); }
.prose { max-width: 680px; font-size: 17px; }
.prose p { margin: 0 0 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.sold { font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-soft); }
.photo-missing { display: block; width: 100%; height: 100%; min-height: 120px; background: var(--frame); }

/* ---------- Home: slideshow (RB) ---------- */
/* Image 1020 of 1420 content (71.8%), centred, height follows the image; 60px under the header. */
.slideshow { position: relative; width: 100%; margin: 0 auto; }
@media (min-width: 800px) { .slideshow { width: 71.83%; } }
.slide { display: none; color: var(--text); }
.slide.is-active { display: block; }
.slide:hover { text-decoration: none; }
.slide-frame { display: block; width: 100%; }
.slide-frame img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.slide-caption { display: flex; flex-direction: column; align-items: center; margin-top: 18px; text-align: center; }
.slide-artist { font-size: 20px; font-weight: 400; letter-spacing: 4px; line-height: 24px; color: var(--text-strong); }
.slide-title { margin-top: 14px; font-size: 12.5px; font-weight: 400; letter-spacing: 2.5px; line-height: 15px; color: var(--text-menu); }
.slide-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 40px; height: 56px; font-size: 34px; line-height: 1; font-weight: 300;
  color: var(--jkl-light); background: rgba(255,255,255,.7);
}
.slide-arrow:hover, .slide-arrow:focus-visible { color: var(--text); }
.slide-prev { left: 0; }
.slide-next { right: 0; }
@media (min-width: 1100px) { .slide-prev { left: -56px; } .slide-next { right: -56px; } .slide-arrow { background: none; } }

/* ---------- Home sections (RB): double rule, heading 25px under it, tiles 38px under heading ---------- */
.home-section { position: relative; margin-top: 58px; padding-top: 25px; }
.home-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule-section); box-shadow: 0 1px 0 var(--rule-section-2); }
.section-heading { margin: 0 0 38px; font-size: 20px; font-weight: 400; letter-spacing: 4px; line-height: 24px; text-transform: uppercase; color: var(--text-strong); text-align: left; }

/* Square grid (RB): 5 across, 20px gaps, name 22px under the tile, row pitch 352 at 1500 */
.square-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 900px) { .square-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 42px 20px; } }
.tile { display: block; }
.tile:hover { text-decoration: none; }
.tile-square { display: block; aspect-ratio: 1 / 1; background: var(--frame); overflow: hidden; }
.tile-square picture { width: 100%; height: 100%; }
.tile-square img { width: 100%; height: 100%; object-fit: cover; }
.tile-caption { display: block; margin-top: 22px; font-size: 16px; font-weight: 400; letter-spacing: 2.5px; line-height: 20px; color: var(--text); }
.tile:hover .tile-caption, .tile:focus-visible .tile-caption { color: var(--text-strong); }
.tile .work-caption { margin-top: 22px; }

/* ---------- Artists list (Levene) ---------- */
/* Column 866 of 1420 (61%), centred; label row with rule; names 40px under the rule, 49px lines, 20px apart. */
.artists-page { width: 100%; margin: 0 auto; }
@media (min-width: 800px) { .artists-page { width: 61%; max-width: 866px; } .artists-page.is-thumbs { width: 100%; max-width: none; } }
.artists-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--jkl-light); padding-bottom: 7px; }
.small-label { margin: 0; font-family: var(--inter); font-size: 16px; font-weight: 500; line-height: 22px; color: var(--jkl-text); }
.view-switch { display: flex; gap: 14px; font-family: var(--inter); font-size: 13.3px; font-weight: 500; }
.view-switch button { color: var(--jkl-light); }
.view-switch button[aria-pressed="true"] { color: var(--jkl-text); }
.view-switch button:hover, .view-switch button:focus-visible { color: var(--jkl-text); }
.artist-names { list-style: none; margin: 40px 0 0; padding: 0; }
.artist-names li { margin: 0 0 14px; }
.artist-names a { display: inline-block; font-family: var(--inter); font-weight: 300; font-size: 28px; line-height: 35px; letter-spacing: -0.56px; color: var(--jkl-light); }
.artist-names a:hover, .artist-names a:focus-visible { color: var(--jkl-text); text-decoration: none; }
@media (min-width: 800px) {
  .artist-names li { margin-bottom: 20px; }
  .artist-names a { font-size: 39px; line-height: 49px; letter-spacing: -0.78px; }
}
.artists-thumbs { margin-top: 40px; }

/* ---------- Artist page (RB) ---------- */
/* Name 125px below the header; "Available" heading; 3 columns of square boxes, 60px gaps. */
.artist-name { margin: 32px 0 0; font-size: 25px; font-weight: 400; letter-spacing: 4px; line-height: 30px; color: var(--text); }
@media (min-width: 800px) { .artist-name { margin-top: 65px; } }
.artist-intro { display: grid; gap: 24px; margin-top: 40px; }
.artist-intro .prose { font-size: 14.5px; color: var(--text); }
.artist-photo { max-width: 300px; }
@media (min-width: 800px) { .artist-intro.has-photo { grid-template-columns: 300px 1fr; gap: 40px; } }
.artist-intro > * { min-width: 0; }
.artist-works { margin-top: 56px; }
@media (min-width: 800px) {
  .artist-name + .artist-works, .artist-name + .muted { margin-top: 139px; }
  .artist-works { margin-top: 80px; }
}
.group-heading { margin: 0 0 39px; font-size: 18px; font-weight: 400; letter-spacing: 3.5px; line-height: 22px; color: var(--text); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 28px; }
@media (min-width: 600px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 40px; } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 70px 60px; } }
.work-tile { display: flex; flex-direction: column; }
.work-tile:hover { text-decoration: none; }
/* Equal-height square box; artwork fully visible, bottom-aligned so captions line up. */
.work-box { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.work-box picture { width: 100%; height: 100%; }
.work-box img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
/* Phones (one column): natural height, no empty band above landscape pictures. */
@media (max-width: 599px) {
  .work-box { aspect-ratio: auto; }
  .work-box picture { height: auto; }
  .work-box img { height: auto; }
}
.work-caption { display: flex; flex-direction: column; margin-top: 33px; font-size: 12.5px; font-weight: 400; letter-spacing: 2.5px; line-height: 18px; color: var(--text-soft); }
.cap-artist { font-weight: 700; color: var(--text); }
.work-caption em { font-style: italic; font-weight: 400; color: var(--text-soft); }

/* ---------- Work page (Levene / Alice Baber) ---------- */
/* Left half: #f5f5f5 panel from the window edge, 152px top/bottom padding, image inset 20px.
   Right half: text column 105px in, 540px wide. */
.page-work .site-main { max-width: none; padding: 0; }
.work { display: grid; grid-template-columns: minmax(0, 1fr); }
.work > * { min-width: 0; }
.work-media { background: var(--panel); padding: 24px var(--gutter); }
.work-main img { width: 100%; height: auto; }
.work-info { padding: 32px var(--gutter) 64px; font-family: var(--inter); }
@media (min-width: 900px) {
  .work { grid-template-columns: 50% 50%; align-items: stretch; }
  .work-media { padding: 152px 20px; }
  .work-info { padding: 104px 0 80px; margin-left: 14%; width: min(540px, 72%); }
}
.thumbs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { display: block; width: 72px; height: 72px; border: 1px solid transparent; padding: 2px; }
.thumb.is-current { border-color: var(--jkl-text); }
.thumb img, .thumb picture { width: 100%; height: 100%; }
.thumb img { object-fit: cover; }
.work-artist { margin: 0 0 4px; font-size: 18px; font-weight: 400; letter-spacing: 0.9px; line-height: 27px; color: #5b5b5b; }
.work-artist a:hover { color: var(--jkl-text); }
.work-title { margin: 0 0 20px; font-weight: 300; font-style: normal; font-size: 34px; line-height: 42px; letter-spacing: -0.68px; color: var(--jkl-text); }
@media (min-width: 900px) { .work-title { font-size: 39px; line-height: 49px; letter-spacing: -0.78px; } }
.work-lines p { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: -0.14px; line-height: 24px; color: #4a4a4a; }
.inquire { margin-top: 41px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.inquire-button {
  display: flex; align-items: center; justify-content: center;
  width: 277px; height: 57px;
  background: #333333; border: 1px solid var(--jkl-text); border-radius: 0; color: #ffffff;
  font-family: var(--inter); font-size: 16px; font-weight: 700;
}
@media (max-width: 599px) { .inquire-button { width: 100%; } }
.inquire-button:hover, .inquire-button:focus-visible { background: var(--jkl-text); text-decoration: none; }
.inquire-text { font-family: var(--inter); font-size: 14px; color: #555555; text-decoration: underline; text-underline-offset: 3px; }
.inquire-text:hover { color: var(--jkl-text); }
.sold-large { margin-top: 41px; font-family: var(--inter); font-size: 14px; letter-spacing: 1px; color: #555555; }

/* ---------- Contact ---------- */
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 32px 0 0; font-size: 17px; }
.contact-list dt { color: var(--text-soft); }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Journal ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 900px; }
.post-list a { display: grid; gap: 14px; }
@media (min-width: 800px) { .post-list a { grid-template-columns: 240px 1fr; gap: 28px; } }
.post-list a:hover { text-decoration: none; }
.post-text { display: flex; flex-direction: column; }
.post-text time { font-size: 13px; color: var(--text-soft); }
.post-title { font-size: 20px; font-weight: 300; }
.post-list a:hover .post-title { text-decoration: underline; text-underline-offset: 3px; }
.post { max-width: 800px; }
.post-hero { margin-bottom: 28px; }
