:root {
    --paper: #f5f0e6;
    --ink: #253128;
    --gold: #b58a45;
    --line: #d8cbb6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 Georgia, serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 5%; border-bottom: 1px solid var(--line); }
.brand { font-size: 28px; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; font-size: 11px; text-align: center; color: #88622e; margin-top: 7px; }
nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: #86602d; text-decoration: underline; text-underline-offset: 7px; }
.intro { background: #202e26; color: #f5efdf; display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding: 65px 8%; align-items: center; }
.eyebrow { font: 11px/1.5 Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #906c37; }
.intro .eyebrow { color: #e0bd80; }
h1 { font-size: clamp(48px, 6.8vw, 106px); line-height: .98; font-weight: normal; margin: 22px 0; }
.intro-copy > p:not(.eyebrow) { max-width: 450px; font-size: 20px; }
.gold-button { display: inline-block; border: 1px solid #dfb978; color: #f3d69f; padding: 12px 22px; margin-top: 18px; }
.gold-button:hover { background: #dfb978; color: #202e26; }
figure { margin: 0; }
figure img { display: block; width: 100%; aspect-ratio: 1.45; object-fit: cover; border: 7px double #b58a45; }
figcaption { font-size: 12px; color: #d8cbb6; padding-top: 12px; }
.catalogue { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 60px 6%; max-width: 1500px; margin: auto; }
aside { border-right: 1px solid var(--line); padding-right: 24px; }
h2 { font-size: 32px; font-weight: normal; margin: 8px 0 25px; }
.filters { display: grid; gap: 7px; }
.filters button { text-align: left; border: 0; background: transparent; padding: 10px; color: var(--ink); }
.filters button:hover, .filters button[aria-pressed=true] { background: #e6dcc8; }
.muted { color: #70695c; font-size: 13px; }
aside .muted { margin-top: 36px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; }
.toolbar p { margin-right: auto; }
input, select { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 9px; max-width: 100%; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
article { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.artwork { display: block; width: 100%; border: 0; padding: 12px; background: #e8e0d1; position: relative; }
.artwork img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; border: 3px double var(--gold); }
.view { display: block; padding-top: 8px; font-size: 13px; color: var(--ink); }
.artwork:hover { background: #d9c9aa; }
article h3 { font-size: 26px; font-weight: normal; margin: 0; }
article p { margin: 8px 0; }
footer { background: #202e26; color: #f5efdf; padding: 35px 6%; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
footer small { display: block; }
dialog { width: min(800px, 92vw); max-height: 90vh; padding: 30px; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #101710cc; }
dialog img { width: 100%; max-height: 55vh; object-fit: contain; }
#close { display: block; margin-left: auto; font-size: 28px; border: 0; background: transparent; }
:focus-visible { outline: 2px solid #a77529; outline-offset: 3px; }
@media (max-width: 850px) {
    .header { align-items: flex-start; flex-direction: column; }
    .intro, .catalogue { grid-template-columns: 1fr; padding: 32px 5%; gap: 28px; }
    aside { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .filters { display: flex; flex-wrap: wrap; }
}
@media (max-width: 520px) {
    .grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; align-items: flex-start; }
}
