/* ---------- Design tokens ---------- */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #525252;
  --ink-3: #8a8a8a;
  --rule: #e8e6df;
  --accent: #b3553a;
  --accent-soft: #f4ebe6;
  --available: #2f7a4d;
  --held: #8a7438;
  --focus: #1a73e8;
  --shadow: 0 1px 2px rgba(20,20,20,.05), 0 8px 24px rgba(20,20,20,.08);
  --shadow-lg: 0 4px 12px rgba(20,20,20,.08), 0 24px 64px rgba(20,20,20,.12);
  --radius: 4px;
  --radius-lg: 8px;
  --content-max: 1280px;
  --serif: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--content-max); margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.1; }
.brand__logo {
  width: 38px; height: 38px; border-radius: 999px;
  object-fit: cover; object-position: center 30%;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}
.brand__name {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink);
}
.brand__sub {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  color: var(--ink); padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center; border-radius: var(--radius);
  text-decoration: none; font-size: 15px;
}
.nav__link:hover { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] {
  color: var(--accent); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: var(--radius); border: 0;
  min-height: 44px; font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; color: var(--surface); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { padding: 12px 16px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 10px; }

  .nav.nav--open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 8px 12px 16px;
    z-index: 49;
    box-shadow: 0 8px 24px rgba(20,20,20,.08);
  }
  .nav.nav--open .nav__link { width: 100%; justify-content: flex-start; }
  .nav.nav--open .nav-cta { margin-top: 6px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 15px;
  cursor: pointer; text-decoration: none;
}
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: var(--accent); text-decoration: none; color: var(--surface); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); text-decoration: none; }

/* ---------- Page intro ---------- */
.intro { padding: 56px 0 24px; }
.intro h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px; letter-spacing: -.01em;
}
.intro p {
  color: var(--ink-2); max-width: 60ch; margin: 0;
  font-size: 16px;
}

/* ---------- Filters ---------- */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter {
  background: transparent; border: 1px solid transparent;
  padding: 10px 14px; min-height: 44px;
  border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
.filter:hover { background: var(--accent-soft); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.filter .count {
  font-weight: 400; opacity: .65; margin-left: 6px; font-variant-numeric: tabular-nums;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 24px;
  padding-bottom: 64px;
}
.card {
  background: transparent; border: 0; padding: 0;
  text-align: left; width: 100%; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.card__media {
  background: #efece4;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__media { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card:hover .card__media img { transform: scale(1.02); }
.card__title {
  font-family: var(--serif);
  font-size: 17px; font-weight: 500; color: var(--ink);
  margin: 0; line-height: 1.25;
}
.card__meta {
  font-size: 13px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.card__meta > span { white-space: nowrap; }
.card__meta .dot { color: var(--rule); }
.card__price { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.card__price .amount {
  font-size: 15px; color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card__price .status {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.card__price .status.available { background: #e6f1ea; color: var(--available); }
.card__price .status.held { background: #f5efe2; color: var(--held); }

/* ---------- Detail dialog ---------- */
dialog.detail {
  border: 0; padding: 0; background: transparent;
  width: min(1100px, 96vw); max-width: 96vw; max-height: 92vh;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
dialog.detail::backdrop { background: rgba(20,18,16,.78); backdrop-filter: blur(2px); }
.detail__inner {
  background: var(--surface);
  display: grid; grid-template-columns: 1.4fr 1fr;
  max-height: 92vh;
}
.detail__media {
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px; overflow: hidden;
}
.detail__media img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.detail__body { padding: 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.detail__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.92); color: var(--ink);
  border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.detail__close:hover { background: var(--surface); }
.detail__eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}
.detail__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 28px; line-height: 1.15; margin: 4px 0 0;
}
.detail__specs {
  display: grid; grid-template-columns: max-content 1fr;
  column-gap: 24px; row-gap: 8px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 16px 0; font-size: 14px;
}
.detail__specs dt {
  color: var(--ink-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px; align-self: center;
}
.detail__specs dd { margin: 0; color: var(--ink); }
.detail__price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.detail__price {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.detail__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail__note { font-size: 13px; color: var(--ink-3); margin-top: auto; }
.detail__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.92); color: var(--ink);
  border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.detail__nav:hover { background: var(--surface); }
.detail__nav--prev { left: 12px; }
.detail__nav--next { left: calc(100% * 1.4 / 2.4 - 22px); }
@media (max-width: 880px) {
  .detail__inner { grid-template-columns: 1fr; }
  .detail__media { min-height: 240px; max-height: 50vh; }
  .detail__nav--next { left: auto; right: 12px; }
  .detail__body { padding: 20px; }
  .detail__title { font-size: 22px; }
}

/* ---------- Status pills (shared) ---------- */
.status {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.status.available { background: #e6f1ea; color: var(--available); }
.status.held { background: #f5efe2; color: var(--held); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 32px 0;
  color: var(--ink-3); font-size: 13px;
}
.site-footer__inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.socials { display: flex; gap: 6px; }
.socials a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px;
}
.socials a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Home page ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 57px);
}
.hero__media {
  background: #111;
  overflow: hidden;
  position: relative;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: .88;
  transition: opacity .4s ease;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg));
  pointer-events: none;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px;
}
.hero__eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 20px;
}
.hero__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 8px;
}
.hero__role {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--accent); margin: 0 0 28px; font-weight: 400;
}
.hero__bio {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-2); max-width: 46ch;
  margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { height: 60vw; min-height: 280px; max-height: 420px; }
  .hero__media::after { display: none; }
  .hero__text { padding: 40px 24px 48px; }
}

.home-section { padding: 72px 0; border-top: 1px solid var(--rule); }
.home-section__header {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 16px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.home-section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0; letter-spacing: -.01em;
}
.home-section__link { font-size: 14px; font-weight: 500; white-space: nowrap; }

.practice__cols {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px 64px;
  align-items: start;
}
.practice__stats { display: flex; flex-direction: column; gap: 28px; }
.practice__stat-num {
  font-family: var(--serif); font-size: 48px; font-weight: 500;
  color: var(--accent); line-height: 1; display: block;
}
.practice__stat-label { font-size: 13px; color: var(--ink-3); display: block; margin-top: 4px; }
.practice__body { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.practice__body p { margin: 0 0 18px; }
.practice__body p:last-child { margin: 0; }

@media (max-width: 680px) {
  .practice__cols { grid-template-columns: 1fr; gap: 32px; }
  .practice__stats { flex-direction: row; flex-wrap: wrap; gap: 20px 40px; }
}

.featured-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 36px;
}
.featured-card { display: block; text-decoration: none; color: var(--ink); }
.featured-card__media {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; background: #efece4;
  margin-bottom: 12px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.featured-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.featured-card:hover .featured-card__media { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.featured-card:hover .featured-card__media img { transform: scale(1.02); }
.featured-card__title { font-family: var(--serif); font-size: 16px; font-weight: 500; margin: 0 0 3px; }
.featured-card__sub { font-size: 13px; color: var(--ink-3); }
.featured-cta { text-align: center; }

@media (max-width: 680px) {
  .featured-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (min-width: 481px) and (max-width: 680px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

.exhibit-list { list-style: none; margin: 0; padding: 0; }
.exhibit-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.exhibit-item:first-child { border-top: 1px solid var(--rule); }
.exhibit-year { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.exhibit-title { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--ink); }
a.exhibit-title:hover { color: var(--accent); }
.exhibit-venue { font-size: 13px; color: var(--ink-3); text-align: right; }
.exhibit-type {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); display: block; margin-top: 2px;
}

@media (max-width: 600px) {
  .exhibit-item { grid-template-columns: 48px 1fr; }
  .exhibit-venue { display: none; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
