:root {
  --bg: #ffffff;
  --text: #141414;
  --muted: #77736f;
  --line: #dedbd7;
  --soft: #f4f1ed;
  --sidebar: 230px;
  --gutter: clamp(20px, 3vw, 48px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -50px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  transition: top 180ms ease;
}
.skip-link:focus { top: 16px; }

.site-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 42px 34px 28px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.96);
  border-right: 1px solid transparent;
  z-index: 20;
}

.brand {
  display: inline-block;
  width: fit-content;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .105em;
  white-space: nowrap;
}

.nav { margin-top: 56px; }
.nav a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  font-size: 12px;
  letter-spacing: .05em;
  color: #3d3a38;
  transition: opacity 160ms ease;
}
.nav a:hover { opacity: .55; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .035em;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 4px 0;
  line-height: 1.2;
  white-space: nowrap;
  color: #4b4845;
  transition: color 160ms ease, opacity 160ms ease;
}
.social-link:hover { color: var(--text); opacity: .58; }
.social-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-bar { display: none; }

main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 38px var(--gutter) 34px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 24px;
}
.page-title {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-note {
  font-size: 10px;
  letter-spacing: .04em;
  color: #96918c;
}

.gallery-layout {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 29vw);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 5vw, 82px);
  row-gap: 25px;
}

.art-stage {
  position: relative;
  min-width: 0;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.art-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}
.art-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  user-select: none;
}

.art-info {
  align-self: center;
  max-width: 470px;
  padding-right: clamp(0px, 2vw, 20px);
}
.art-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-title {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 37px);
  font-weight: 400;
  line-height: 1.13;
}
.art-meta {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .018em;
}
.art-description {
  max-height: min(46vh, 560px);
  overflow: auto;
  padding-right: 10px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.72;
}
.art-description p { margin: 0 0 1em; }
.art-description p:last-child { margin-bottom: 0; }

.gallery-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 10px;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.control-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 3px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  opacity: .78;
}
.control-btn:hover { opacity: .42; }
.control-btn:disabled { opacity: .2; cursor: default; }
.control-btn.next { justify-self: end; }
.gallery-count { color: var(--muted); }

.fade-target { transition: opacity 170ms ease, transform 220ms ease; }
.fade-target.is-changing { opacity: 0; transform: translateY(4px); }

.about-layout {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(260px, 42vw) minmax(290px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding: 30px 0 60px;
}
.about-image img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}
.about-copy {
  font-family: var(--serif);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.7;
}
.about-copy p { margin: 0 0 1.2em; }
.about-copy .small-note {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.mural-page {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
}
.mural-page .art-frame { width: min(1120px, 100%); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(255,255,255,.97);
}
.modal.is-open { display: grid; }
.modal-inner {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}
.modal img {
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  object-fit: contain;
}
.modal-close {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,.85);
  padding: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.image-placeholder-note {
  position: absolute;
  right: 9px;
  bottom: 8px;
  padding: 4px 6px;
  background: rgba(255,255,255,.78);
  color: #777;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
  }
  .mobile-bar .brand { font-size: 16px; }
  .menu-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    padding: 10px 6px;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 1px;
    margin: 6px 0;
    background: #111;
  }
  .mobile-menu {
    position: fixed;
    inset: 62px 0 auto;
    z-index: 39;
    display: none;
    padding: 24px 20px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a {
    display: block;
    padding: 9px 0;
    font-size: 13px;
  }
  main { margin-left: 0; padding: 26px 20px 24px; }
  .gallery-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 24px;
  }
  .art-stage { min-height: 54vh; }
  .art-frame { min-height: 54vh; }
  .art-frame img { max-height: 67vh; }
  .art-info { max-width: 680px; padding-right: 0; }
  .art-description { max-height: none; overflow: visible; }
  .gallery-controls { grid-column: auto; }
  .about-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    padding-top: 10px;
  }
  .about-image { max-width: 620px; }
  .about-copy { max-width: 680px; }
}

@media (max-width: 520px) {
  .page-head { margin-bottom: 12px; }
  .page-note { display: none; }
  .art-stage, .art-frame { min-height: 48vh; }
  .art-frame img { max-height: 58vh; }
  .art-title { font-size: 28px; }
  .art-description { font-size: 15px; }
  .gallery-controls { grid-template-columns: auto 1fr auto; gap: 12px; }
  .gallery-count { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Real artwork assets */
.art-frame img,
.about-image img {
  background: #f7f6f3;
}
.about-image img {
  aspect-ratio: auto;
  object-position: center;
}

/* Scrolling works page */
.works-main {
  padding-bottom: 0;
}

.works-page-head {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.works-scroll {
  width: 100%;
}

.work-entry {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw);
  align-items: center;
  column-gap: clamp(30px, 6vw, 100px);
  padding: clamp(52px, 8vh, 100px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.work-entry:last-child {
  border-bottom: 0;
}

.work-image-wrap {
  min-width: 0;
  display: grid;
  place-items: center;
}

.work-image-button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.work-image-button img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #f7f6f3;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.work-image-button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 8px;
}

.work-copy {
  align-self: center;
  max-width: 470px;
  padding-right: clamp(0px, 2vw, 20px);
}

.work-number {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-title {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 37px);
  font-weight: 400;
  line-height: 1.13;
}

.work-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .018em;
}

.work-description {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.72;
}

.work-description p {
  margin: 0 0 1em;
}

.work-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .works-main {
    padding-bottom: 0;
  }

  .work-entry {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding: 42px 0 64px;
  }

  .work-image-wrap {
    justify-items: start;
  }

  .work-image-button {
    justify-items: start;
  }

  .work-image-button img {
    max-height: 75vh;
  }

  .work-copy {
    max-width: 680px;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .works-page-head {
    padding-bottom: 12px;
  }

  .work-entry {
    row-gap: 22px;
    padding: 30px 0 52px;
  }

  .work-image-button img {
    width: 100%;
    max-height: none;
  }

  .work-title {
    font-size: 28px;
  }
}

/* Social link refinements */
.social-link:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}
.mobile-menu .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
