/* Bill Sullivan Art. Classic museum: Libre Caslon for titles and reading, Jost for labels and details.
   Every size is in rem so the Accessibility text-size slider scales the whole page. */
:root {
  --bg: #f4f0ea;
  --bg-deep: #e9e2d8;
  --paper: #faf8f4;
  --ink: #24201d;
  --stone: #6b625a;
  --rule: #dcd2c6;
  --frame: #1b1a19;
  --accent: #2f3b59;
  --accent-hover: #232d45;
  --on-accent: #f6f2ec;
  --sold: #8a4b3c;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3.5vw, 2.75rem);
  --max: 1440px;
  --head: 4.25rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--stone); }
.small { font-size: .875rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lining { font-variant-numeric: lining-nums tabular-nums; }
.eyebrow { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin: 0 0 .6rem; }
.more { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 240, 234, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--rule); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: var(--head); }
.nav-main { display: flex; gap: 1.5rem; }
.nav-main a, .menu-btn, .a11y-btn { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.nav-main a { padding: .3rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav-main a:hover, .nav-main a[aria-current="page"] { border-bottom-color: currentColor; color: var(--ink); }
.wordmark { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: .03em; text-decoration: none; white-space: nowrap; text-align: center; }
.bar-end { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.a11y-btn { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .4rem 0; cursor: pointer; }
.a11y-lang { border-left: 1px solid var(--rule); padding-left: .45rem; color: var(--stone); }
.menu-btn { display: none; align-items: center; gap: .55rem; background: none; border: 0; padding: .4rem 0; cursor: pointer; justify-self: start; }
.burger, .burger::before { display: block; width: 1.1rem; height: 1px; background: currentColor; position: relative; }
.burger { margin: .3rem 0; } .burger::before { content: ""; position: absolute; top: .35rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  padding: .95rem 1.4rem; min-height: 2.9rem; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.quiet { background: transparent; color: var(--accent); }
.btn.quiet:hover { background: var(--bg-deep); color: var(--accent); }
.btn.small { padding: .7rem 1rem; min-height: 2.5rem; }
.btn[disabled] { opacity: .55; cursor: default; }
@media (max-width: 980px) {
  .nav-main { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .a11y-label { display: none; }
  .a11y-lang { border: 0; padding: 0; }
  .menu-btn { font-size: 0; gap: 0; }
  .bar-end { gap: .7rem; }
  .bar-end .btn { padding: .6rem .7rem; font-size: .7rem; letter-spacing: .1em; }
  .wordmark { font-size: 1.2rem; }
}

/* Menu and accessibility panels */
.menu-panel { border: 0; padding: 0 0 2rem; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: var(--bg); color: var(--ink); }
.menu-panel[open] { display: flex; flex-direction: column; }
.menu-top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem var(--gutter); }
.menu-panel nav { display: flex; flex-direction: column; gap: .35rem; padding: 1rem var(--gutter) 2rem; }
.menu-panel nav a { font-family: var(--display); font-size: 2rem; text-decoration: none; }
.menu-panel .btn { margin: 0 var(--gutter); align-self: flex-start; }
.x { background: none; border: 0; color: var(--stone); cursor: pointer; padding: .3rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.x:hover { color: var(--ink); }
.a11y-panel { border: 0; padding: 1.4rem 1.5rem 1.1rem; width: min(22rem, calc(100% - 2rem)); margin: calc(var(--head) + .25rem) var(--gutter) auto auto;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(36, 32, 29, .45); }
.a11y-panel::backdrop { background: rgba(36, 32, 29, .18); }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.a11y-head h2 { font-size: 1.5rem; }
.a11y-group { border-top: 1px solid var(--rule); padding: .9rem 0 1rem; }
.a11y-group h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: .6rem; }
.a11y-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.a11y-langs a { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--rule); text-decoration: none; }
.a11y-langs a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ts { display: flex; align-items: center; gap: .6rem; }
.ts input { flex: 1; accent-color: var(--accent); min-width: 0; height: 2rem; }
.ts-step { background: none; border: 0; cursor: pointer; font-family: var(--display); width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; }
.ts-foot { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--stone); margin-top: .3rem; }
.credit { border-top: 1px solid var(--rule); margin: 0; padding-top: .9rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); text-align: center; }

/* Home: slideshow */
.slides { position: relative; }
.slides-track { position: relative; height: min(calc(100vh - var(--head) - 3rem), 64vw); min-height: 20rem; overflow: hidden; background: var(--bg-deep); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; text-decoration: none; color: var(--ink); }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.045); transition: transform 9s ease-out; }
.slide.is-on img { transform: scale(1); }
.slide-cap { position: absolute; left: var(--gutter); bottom: 1.4rem; display: grid; gap: .15rem; padding: .8rem 1.1rem; background: rgba(250, 248, 244, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: translateY(.4rem); transition: opacity .9s ease .7s, transform .9s ease .7s; }
.slide.is-on .slide-cap { opacity: 1; transform: none; }
.slide-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.slide-meta { font-size: .8rem; color: var(--stone); }
.slide:hover .slide-title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.slides-ui { display: flex; justify-content: space-between; align-items: center; padding-top: .9rem; padding-bottom: .2rem; }
.dots { display: flex; gap: .45rem; }
.dots button { background: none; border: 0; padding: .7rem 0; cursor: pointer; }
.dots span { display: block; width: 2.2rem; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.dots span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dots [aria-current="true"] span::after { transform: scaleX(1); transition: transform var(--slide-ms, 7000ms) linear; }
.slides.paused .dots [aria-current="true"] span::after { transition: none; }
.pause { background: none; border: 0; cursor: pointer; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; color: var(--stone); }
.pause span { width: .6rem; height: .7rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.slides.paused .pause span { border: 0; width: 0; height: 0; border-left: .6rem solid currentColor; border-top: .38rem solid transparent; border-bottom: .38rem solid transparent; }
.intro { text-align: center; padding-top: clamp(1.6rem, 4vw, 3rem); padding-bottom: clamp(1.8rem, 4vw, 3rem); }
.intro p { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.4; max-width: 32ch; margin: 0 auto 1.4rem; }
.section { padding-block: clamp(2rem, 4.5vw, 3.75rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.places { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.4rem, 2.6vw, 2.4rem) clamp(1rem, 2.4vw, 2.2rem); align-items: end; }
.place { text-decoration: none; display: block; }
.place:nth-child(4n+1) { grid-column: span 7; } .place:nth-child(4n+2) { grid-column: span 5; }
.place:nth-child(4n+3) { grid-column: span 5; } .place:nth-child(4n+4) { grid-column: span 7; }
.place .framed { margin-bottom: .8rem; }
.place h3 { font-size: 1.45rem; }
.meta { color: var(--stone); font-size: .85rem; margin: .15rem 0 0; }
.sale-band { background: var(--bg-deep); }
.sale-band .inner { display: grid; grid-template-columns: minmax(15rem, 1fr) 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.sale-band h2 { margin-bottom: .6rem; }
.row { display: flex; gap: clamp(.8rem, 2vw, 1.5rem); align-items: flex-end; }
.row a { flex: var(--ar) 1 0; text-decoration: none; min-width: 0; }
.friends-row .meta { display: block; margin-top: .6rem; }
.family-wrap { padding-top: 0; }
.family { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 40rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; justify-content: center; border-top: 1px solid var(--rule); padding-top: clamp(2rem, 4vw, 3rem); }
.family img { filter: grayscale(.15); }
.family blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }
@media (max-width: 760px) {
  .place:nth-child(n) { grid-column: span 12; }
  .sale-band .inner, .family { grid-template-columns: 1fr; }
  .family img { max-width: 12rem; }
  .row { flex-wrap: wrap; } .friends-row a { flex-basis: 40%; }
  .slides-track { height: 70vw; min-height: 15rem; }
  .slide-cap { left: .75rem; bottom: .75rem; padding: .55rem .75rem; }
  .slide-title { font-size: 1.05rem; }
}

/* The thin black frame used wherever a painting appears without a room */
.framed { position: relative; background: var(--frame); padding: clamp(4px, .5vw, 7px); box-shadow: 0 14px 22px -16px rgba(36, 32, 29, .5); }
.framed img { width: 100%; height: auto; background: var(--bg-deep); }

/* Lists */
.page-head { padding: clamp(1.4rem, 3.5vw, 2.6rem) 0 1rem; max-width: 48rem; }
.page-head p { font-family: var(--serif); font-size: 1.1rem; color: var(--stone); margin: .6rem 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; padding: .9rem 0 1.5rem; border-top: 1px solid var(--rule); align-items: center; }
.filters.slim { padding-bottom: 1.2rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; }
.filter-group > span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-right: .2rem; }
.chip { background: none; border: 0; padding: .2rem 0; cursor: pointer; color: var(--stone); border-bottom: 1px solid transparent; font-size: .95rem; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filter-end { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.count { color: var(--stone); font-size: .85rem; }
.grid { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 2.6vw, 2.4rem) clamp(1.1rem, 2.2vw, 2.1rem); align-items: flex-end; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.grid::after { content: ""; flex: 1e6 1 0; }
.card { flex: var(--ar) 1 calc(var(--ar) * 14rem); max-width: calc(var(--ar) * 25rem); text-decoration: none; display: block; }
.card .framed { margin-bottom: .75rem; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover .framed { transform: translateY(-3px); box-shadow: 0 20px 28px -18px rgba(36, 32, 29, .55); }
.card h3 { font-size: 1.1rem; line-height: 1.3; }
.card .price { font-size: .9rem; margin: .1rem 0 0; }
.card.is-hidden { display: none; }
.tag-sold { color: var(--sold); }
.empty { padding: 3rem 0; color: var(--stone); }
@media (max-width: 560px) { .card { flex-basis: 100%; max-width: none; } .filter-end { margin-left: 0; width: 100%; justify-content: space-between; } }

/* Map */
.map-dlg { border: 0; padding: 0; width: min(72rem, calc(100% - 2rem)); height: min(84vh, 48rem); background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -24px rgba(36, 32, 29, .5); }
.map-dlg[open] { display: flex; flex-direction: column; }
.map-dlg::backdrop { background: rgba(36, 32, 29, .45); }
.map-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.1rem 1.4rem .8rem; }
.map-head p { margin: .3rem 0 0; font-size: .9rem; }
.map { flex: 1; min-height: 0; background: var(--bg-deep); }
.pin { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pin.big { width: 22px; height: 22px; }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
.leaflet-popup-content { margin: .9rem 1rem; width: 16rem !important; }
.leaflet-popup-tip { background: var(--paper); }
.pop h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.pop .meta { margin: 0 0 .6rem; }
.pop-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .7rem; }
.pop-works a { display: block; aspect-ratio: 1; background: var(--frame); padding: 2px; }
.pop-works img { width: 100%; height: 100%; object-fit: cover; }
.pop .btn { width: 100%; font-size: .7rem; padding: .7rem; min-height: 0; }
.pop .list { list-style: none; padding: 0; margin: 0 0 .7rem; font-size: .85rem; max-height: 8rem; overflow: auto; }
.pop .list a { text-decoration: none; } .pop .list a:hover { text-decoration: underline; }

/* Painting page */
.work { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); padding-top: 1.2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.stage { position: relative; aspect-ratio: 3 / 2; background: var(--bg-deep); }
.stage .view { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; margin: 0; }
.stage .view.is-active { display: flex; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.stage .view.fill img { width: 100%; height: 100%; object-fit: cover; }
.stage .view > img { max-width: 92%; max-height: 92%; width: auto; height: auto; box-shadow: 0 18px 30px -22px rgba(36, 32, 29, .6); }
.zoomable { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: zoom-in; }
.zoomable img { max-width: 92%; max-height: 92%; width: auto; height: auto; box-shadow: 0 18px 30px -22px rgba(36, 32, 29, .6); }
.lens { position: absolute; width: 11rem; height: 11rem; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s;
  border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); background-repeat: no-repeat; background-color: var(--bg-deep); }
.zoomable.lensing .lens { opacity: 1; }
@media (hover: none) { .lens { display: none; } }
.views { display: flex; gap: 1.3rem; margin: .9rem 0 .4rem; overflow-x: auto; scrollbar-width: none; }
.views button { background: none; border: 0; padding: .3rem 0; cursor: pointer; color: var(--stone); border-bottom: 1px solid transparent; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.views button:hover { color: var(--ink); }
.views button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.view-note { color: var(--stone); font-size: .88rem; max-width: 48rem; margin: 0; }
.sub { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin: 1.6rem 0 .6rem; }
.details { display: flex; gap: .6rem; flex-wrap: wrap; }
.details button { padding: 0; border: 0; background: var(--bg-deep); cursor: zoom-in; height: 5.5rem; width: calc(5.5rem * var(--ar, 1.33)); }
.details img { width: 100%; height: 100%; object-fit: contain; }
.info { position: sticky; top: calc(var(--head) + 1.2rem); }
.back { display: inline-block; color: var(--stone); text-decoration: none; margin-bottom: 1rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.back::before { content: "← "; }
.info h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .4rem; }
.byline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 0 0 .4rem; }
.facts { margin: .6rem 0 1.4rem; display: grid; gap: .1rem; color: var(--stone); }
.price-block { border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-bottom: 1.2rem; }
.price-now { font-family: var(--display); font-size: 1.75rem; }
.price-was { color: var(--stone); font-size: .9rem; }
.actions { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.4rem; max-width: 22rem; }
details.how { border-top: 1px solid var(--rule); padding-top: .9rem; font-size: .92rem; color: var(--stone); }
details.how summary, .cv summary { cursor: pointer; list-style: none; }
details.how summary { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
details.how p { margin: .6rem 0 0; }
details summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; float: right; font-family: var(--sans); color: var(--stone); }
details[open] > summary::after { content: "−"; }
.work > * { min-width: 0; }
@media (max-width: 900px) { .work { grid-template-columns: minmax(0, 1fr); } .info { position: static; } }

/* Zoom viewer */
dialog.zoom { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #151311; color: #f3eee8; overflow: hidden; }
dialog.zoom::backdrop { background: #151311; }
.zoom-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; background: linear-gradient(rgba(21, 19, 17, .85), rgba(21, 19, 17, 0)); }
.zoom-hint { font-size: .8rem; color: #bdb4aa; }
.zoom-tools { display: flex; align-items: center; gap: .6rem; }
.zoom-tools button, .zoom-file { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #f3eee8; min-width: 2.4rem; height: 2.4rem; padding: 0 .8rem; cursor: pointer; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.zoom-file, .zoom-tools .x { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.zoom-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.zoom-view.dragging { cursor: grabbing; }
.zoom-view img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }
@media (max-width: 600px) { .zoom-hint { display: none; } }

/* Dialogs and forms */
dialog.sheet { border: 0; padding: 0; width: min(34rem, calc(100% - 2rem)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(36, 32, 29, .45); }
dialog.sheet::backdrop { background: rgba(36, 32, 29, .45); }
.sheet-inner { padding: clamp(1.3rem, 4vw, 2rem); }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .6rem; }
.sheet-head h2 { font-size: 1.6rem; }
form.inquiry { display: grid; gap: .9rem; }
form.inquiry label { display: grid; gap: .3rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 0; padding: .7rem .8rem; width: 100%; }
form.inquiry input:focus, form.inquiry textarea:focus, form.inquiry select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
form.inquiry textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-status { min-height: 1.4em; margin: 0; font-size: .95rem; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--sold); }
.inquire-page { max-width: 38rem; padding-bottom: 4rem; }
.notice { background: var(--bg-deep); padding: .9rem 1.1rem; margin: 0 0 1.5rem; max-width: 46rem; }

/* About */
.about { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.about-top { display: grid; grid-template-columns: minmax(12rem, 19rem) minmax(0, 44rem) minmax(14rem, 21rem); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; padding-top: clamp(1.4rem, 3.5vw, 2.6rem); padding-bottom: 2rem; }
.about-top .family-note { position: sticky; top: calc(var(--head) + 1.2rem); background: var(--bg-deep); padding: 1.3rem 1.4rem; margin: 0; border: 0; }
.family-note p { font-family: var(--serif); font-size: 1rem; line-height: 1.65; margin: 0; }
.family-note .eyebrow, .prose .eyebrow { font-family: var(--sans); font-size: .75rem; line-height: 1.4; margin-bottom: .6rem; }
@media (max-width: 1200px) { .about-top { grid-template-columns: minmax(12rem, 19rem) minmax(0, 1fr); } .about-top .family-note { grid-column: 2; position: static; } }
.about-top figure { margin: 0; position: sticky; top: calc(var(--head) + 1.2rem); }
.about-top figcaption { color: var(--stone); font-size: .8rem; margin-top: .5rem; }
.prose h1 { margin-bottom: 1rem; }
.prose p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
.cv { border-top: 1px solid var(--rule); padding-top: 1.6rem; }
.cv h2 { margin-bottom: 1rem; }
.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; align-items: start; }
.cv details { border-bottom: 1px solid var(--rule); }
.cv summary { font-family: var(--display); font-size: 1.3rem; padding: .85rem 0; }
.cv summary .n { font-family: var(--sans); font-size: .8rem; color: var(--stone); margin-left: .4rem; }
.cv ul { list-style: none; padding: 0 0 1rem; margin: 0; max-height: 26rem; overflow: auto; }
.cv li { display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; padding: .22rem 0; font-size: .92rem; line-height: 1.45; }
.cv li .yr { color: var(--stone); font-variant-numeric: lining-nums tabular-nums; }
.cv .plain li { display: block; }
@media (max-width: 760px) {
  .about-top { grid-template-columns: 1fr; } .about-top .family-note { grid-column: auto; }
  .about-top figure { position: static; max-width: 14rem; }
  .cv-grid { grid-template-columns: 1fr; }
}
.terms h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.terms p { font-family: var(--serif); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--bg-deep); padding: 2.4rem 0 1.4rem; font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; }
.foot nav { display: grid; gap: .25rem; align-content: start; }
.foot nav a, .foot nav .link { text-decoration: none; text-align: left; }
.foot nav .link:hover { color: var(--accent); }
.foot .wordmark { text-align: left; font-size: 1.5rem; margin-bottom: .3rem; }
.foot .rights { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; color: var(--stone); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: .4rem; font-size: .8rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
.not-found { padding: 6rem 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .slide img { transform: none !important; transition: none !important; }
}
@media print { .site-header, .site-footer, .actions, .views { display: none; } }
.terms, .page-terms .page-head { max-width: 46rem; }
.inquire-page .how { border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--stone); font-size: .92rem; }
.inquire-page .how h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .4rem; }

.site-header.compact .nav-main { display: none; }
.site-header.compact .menu-btn { display: inline-flex; }
.site-header.compact .a11y-label { display: none; }
.map .leaflet-tile { filter: grayscale(.8) sepia(.18) contrast(.92) brightness(1.04); }
.map .leaflet-tile-container img { width: 256.5px !important; height: 256.5px !important; }
@media (max-width: 1400px) { .nav-main { gap: 1.1rem; } .nav-main a, .a11y-btn { letter-spacing: .1em; } }

/* ===== Phones and small tablets. Everything below only applies to narrow screens; desktop is unchanged. ===== */
.m-head, .m-cta, .on-touch { display: none; }
@media (hover: none) { .on-hover { display: none; } .on-touch { display: inline; } }
@media (max-width: 900px) {
  /* Painting page: title first, then the picture, then price and buttons, then close-ups */
  .work { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: .5rem; padding-bottom: 6.5rem; }
  .work-media { display: contents; }
  .m-head { display: block; order: -1; margin-bottom: 1rem; }
  .m-head .back { margin-bottom: .7rem; }
  .m-title { font-family: var(--display); font-size: clamp(1.9rem, 8vw, 2.4rem); line-height: 1.08; margin: 0 0 .35rem; }
  .m-head .byline { margin-bottom: .2rem; }
  .m-meta { color: var(--stone); font-size: .9rem; margin: 0; }
  .stage { flex: none; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; }
  .zoomable img, .stage .view > img { max-width: 94%; max-height: 94%; }
  .views { flex-wrap: nowrap; gap: .45rem; overflow-x: auto; margin: .9rem calc(-1 * var(--gutter)) .6rem; padding: 0 var(--gutter) .2rem;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .views::-webkit-scrollbar { display: none; }
  .views button { flex: none; padding: .55rem .85rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .7rem; }
  .views button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .views button:last-child { margin-right: 2.5rem; }
  .info { order: 4; margin-top: 1.4rem; }
  .info > .back, .info > .byline { display: none; }
  .info > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .facts { margin-top: 0; }
  .actions { max-width: none; }
  .sub { order: 5; margin-top: 1.8rem; }
  .details { order: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .details button { width: auto; height: 24vw; }
  .m-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom)); background: rgba(250, 248, 244, .96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 -1px 0 var(--rule); transform: translateY(110%); transition: transform .3s ease; }
  .m-cta.show { transform: none; }
  .m-cta-price { font-family: var(--display); font-size: 1.3rem; }
  dialog.sheet { max-height: 92vh; max-height: 92dvh; overflow: auto; }
}
@media (max-width: 760px) {
  /* Home slideshow: taller frame on phones so the painting and room fill the screen */
  .slides-track { height: min(122vw, calc(100svh - var(--head) - 4.5rem)); }
  .slide img { object-position: 50% 30%; }
  .intro p { font-size: 1.4rem; }
  /* Swipeable rows instead of long stacks */
  .places, .friends-row, .sale-band .row {
    display: flex; flex-wrap: nowrap; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .6rem; scroll-padding-inline: var(--gutter); align-items: flex-end; }
  .places::-webkit-scrollbar, .friends-row::-webkit-scrollbar, .sale-band .row::-webkit-scrollbar, .filter-group::-webkit-scrollbar { display: none; }
  .place:nth-child(n) { flex: 0 0 80%; scroll-snap-align: start; }
  .place h3 { font-size: 1.3rem; }
  .friends-row a, .sale-band .row a { flex: 0 0 auto; width: min(calc(var(--ar) * 12rem), 78vw); scroll-snap-align: start; }
  .sale-band .inner { gap: 1.4rem; }
  .family { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .family img { max-width: 100%; }
  .family blockquote { font-size: 1.02rem; }
}
@media (max-width: 600px) {
  .a11y-lang { display: none; }
  .page-head { padding-top: 1.2rem; }
  .page-head p { font-size: 1rem; }
  /* Filters: one swipeable line each */
  .filters { gap: .7rem; padding-top: .8rem; }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; width: 100%; scrollbar-width: none; gap: .3rem 1rem; }
  /* Two-column gallery: every painting sits in the same size box, bottom-aligned, so rows line up */
  .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.9rem .9rem; align-items: start; }
  .grid::after { display: none; }
  .card { display: grid; grid-template-rows: 36vw auto; max-width: none; }
  .card .framed { align-self: end; justify-self: center; width: fit-content; max-width: 100%; margin-bottom: .6rem; padding: 3px; }
  .card .framed img { width: auto; max-width: 100%; max-height: calc(36vw - 6px); }
  .card h3 { font-size: .98rem; line-height: 1.25; }
  .card .meta, .card .price { font-size: .78rem; }
  .card .price .muted { display: block; }
  .card:hover .framed { transform: none; }
  .foot { gap: 1.2rem; }
}

.credit a, .credit-link { text-decoration: none; border-bottom: 1px solid var(--rule); }
.credit a:hover, .credit-link:hover { color: var(--accent); border-bottom-color: currentColor; }

.group + .group { margin-top: .5rem; }
.group-h { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: .4rem 0 1.2rem; }
.group-h .n { font-family: var(--sans); font-size: .85rem; color: var(--stone); margin-left: .35rem; }

/* Home: browse by size, paintings drawn at true relative scale */
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); align-items: end; }
.size-card { display: block; text-decoration: none; }
.size-art { height: 17rem; display: flex; align-items: flex-end; justify-content: center; margin-bottom: .9rem; border-bottom: 1px solid var(--rule); padding-bottom: .9rem; }
.size-art .framed { width: var(--w); max-width: 100%; }
.size-card h3 { font-size: 1.45rem; }
.size-card .meta + .meta { margin-top: 0; }
.size-card:hover .framed { transform: translateY(-3px); transition: transform .35s ease; }
@media (max-width: 760px) {
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
  .size-art { height: 9rem; }
  .size-art .framed { width: calc(var(--w) * .27); padding: 3px; }
  .size-card h3 { font-size: 1.05rem; }
  .size-card .meta { font-size: .72rem; }
}
