:root {
  --bg: #fafaf8;
  --fg: #1d1d1b;
  --muted: #6b6b66;
  --line: #deded8;
  --accent: #1d1d1b;
  color-scheme: light; /* always light, even when the visitor's device is in dark mode */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.5; }
a { color: inherit; }
.site-header, .filters, main, .site-footer { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-header { padding-top: 48px; padding-bottom: 8px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 2.2rem; margin: 0; letter-spacing: .01em; }
.logo { display: block; width: min(260px, 70vw); height: auto; }
.tagline { margin: 4px 0 0; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.filter-group { display: flex; gap: 6px; align-items: center; }
.filter-group span { color: var(--muted); font-size: .9rem; }
button, select { font: inherit; color: inherit; }
.filter-group button, select {
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
select { border-radius: 8px; padding: 6px 10px; background: var(--bg); }
.filter-group button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; align-items: start; }
.work { margin: 0; }
.work[hidden] { display: none; }
/* Square, center-cropped thumbnails; the lightbox shows the whole painting. */
.work img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.caption h2 { font-family: Georgia, serif; font-weight: 400; font-size: 1.1rem; margin: 10px 0 2px; }
.caption p { margin: 0; color: var(--muted); font-size: .9rem; }
.caption .status { margin-top: 4px; }
.caption .buy { margin-top: 6px; }
.caption .buy a { color: var(--fg); }
.caption .sold { color: #a33; }
.caption .hold { color: #a66a00; }
.empty { text-align: center; color: var(--muted); padding: 64px 0; }
.site-footer { padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: .85rem; }

dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #f2f2ee; }
dialog::backdrop { background: rgba(10, 10, 9, .92); }
dialog figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 64px 16px; }
dialog img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
dialog figcaption { text-align: center; padding-top: 12px; font-size: .9rem; }
dialog figcaption h2 { font-family: Georgia, serif; font-weight: 400; font-size: 1.1rem; margin: 0; }
dialog figcaption p { margin: 0; color: #b4b4ae; }
.lb-btn { position: absolute; background: none; border: 0; color: inherit; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 12px 16px; }
.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lb-close { right: 0; top: 0; }
@media (max-width: 600px) {
  dialog figure { padding: 48px 8px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}
