* { box-sizing: border-box; }
body { margin: 0; background: #f8f7f2; color: #263a30; font-family: system-ui, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; padding: 18px 6vw; border-bottom: 1px solid #d8ddd2; }
a { color: inherit; text-decoration: none; }
header a:first-child { font: 27px Georgia, serif; letter-spacing: .08em; }
main { margin: auto; max-width: 1500px; width: 88%; padding: clamp(34px, 7vw, 86px) 0 70px; }
h1, h2 { font: 400 clamp(36px, 6vw, 72px)/1.05 Georgia, serif; margin: 0 0 38px; letter-spacing: -.025em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 23px; }
button { color: inherit; font: inherit; cursor: pointer; }
.tile { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; }
.tile img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: contain; padding: 16px; background: #eaeae1; }
.tile span { display: block; margin-top: 11px; font: 20px/1.3 Georgia, serif; }
.tile:hover span { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 2px solid #984630; outline-offset: 4px; }
#more, #status button { margin: 24px 0 0; padding: 10px 16px; border: 1px solid #b8c1b3; background: transparent; }
dialog { width: min(92vw, 980px); max-height: 92vh; border: 0; background: #f8f7f2; color: inherit; padding: 0; }
dialog[open] { display: grid; grid-template-columns: 1.5fr 1fr; }
dialog::backdrop { background: #17251dd4; }
.art-image { background: #eaeae1; display: grid; place-items: center; }
.art-image img { width: 100%; max-height: 76vh; object-fit: contain; padding: 18px; }
.details { padding: 58px 24px 26px; }
.details h2 { font-size: clamp(25px, 4vw, 40px); margin: 20px 0 12px; }
.details p { line-height: 1.6; white-space: pre-wrap; }
#close, .nav button { border: 1px solid #b8c1b3; background: #f8f7f2; min-width: 44px; min-height: 44px; }
#close { position: absolute; right: 12px; top: 10px; font-size: 25px; }
.nav { display: flex; gap: 8px; }
.nav button:disabled { opacity: .35; cursor: default; }
@media(max-width: 730px) { .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; } .tile img { padding: 8px; } .tile span { font-size: 17px; } dialog[open] { grid-template-columns: 1fr; } .art-image img { max-height: 51vh; } .details { padding: 18px; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.toolbar label { display: grid; gap: 6px; font-size: 13px; }
.toolbar input, .toolbar select { font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #aab6a7; border-radius: 5px; background: #fffef9; min-height: 42px; }
.toolbar input { width: min(320px, 75vw); }
#status, #artwork-date { font-size: 13px; color: #4e6154; }
.details p:empty { display: none; }
