:root {
    color-scheme: dark;
    --paper: #322521;
    --card: #3c2d26;
    --ink: #f6e7cb;
    --accent: #e6ca88;
    --muted: #d2bd9e;
    --line: #77614c;
    --wash: #47352c;
    --control-text: #322521;
    --gilt: #b59455;
    --mat: #241a17;
    --serif: Georgia, "Times New Roman", serif;
    --frame: min(1152px, calc(100% - 64px));
    font-family: system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: var(--frame); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font: 700 24px / 1.1 var(--serif);
}
.brand-mark { flex: none; width: 36px; height: 36px; border-radius: 6px; }
.header nav { display: flex; flex-wrap: wrap; gap: 21px; }
.header nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 650; }
.header nav a:hover, .crumbs a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header .site-languages { gap: 3px; flex-wrap: nowrap; }
.site-languages a {
    display: inline-grid;
    place-items: center;
    min-width: 39px;
    min-height: 39px;
    padding-inline: 5px;
    border: 1px solid transparent;
    border-radius: 6px;
}
.site-languages a[aria-current="page"] { color: var(--accent); border-color: var(--line); background: var(--card); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.032em; }
.home-search {
    display: grid;
    justify-items: center;
    padding-block: 24px 8px;
}
.wall-intro {
    display: grid;
    gap: 11px;
    padding-top: clamp(24px, 4.2vw, 52px);
    text-align: center;
}
.wall-intro .overline { color: var(--accent); }
.wall-intro h1 { font-size: clamp(2.45rem, 6.2vw, 4.75rem); line-height: .98; text-wrap: balance; }
.wall-gallery {
    display: grid;
    grid-template-columns: minmax(0, .81fr) minmax(0, 1.2fr) minmax(0, .99fr);
    align-items: center;
    gap: clamp(14px, 3vw, 34px);
    min-height: clamp(230px, 33vw, 420px);
    margin-top: 14px;
}
.wall-gallery .work-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.wall-gallery .work-card-image { aspect-ratio: auto; background: transparent; padding: 0; }
.wall-gallery .work-card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    margin-inline: auto;
    border: clamp(4px, .65vw, 8px) solid var(--gilt);
    background: var(--mat);
    box-shadow: 0 7px 16px #170f0ab0;
}
.wall-gallery .work-card > a:focus-visible { outline-offset: 5px; }
.wall-gallery .work-card-body { padding: 13px 0 0; }
.wall-gallery .work-card h3 { font-size: clamp(1rem, 2.5vw, 1.55rem); }
.button {
    display: inline-flex;
    align-items: center;
    min-height: 47px;
    justify-self: start;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--accent);
    color: var(--control-text);
    padding: 0 16px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}
.button:hover { filter: brightness(1.13); }
.section { margin-block: clamp(30px, 4.3vw, 52px); }
.home #museums { margin-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 11px 20px; margin-bottom: 16px; }
.section h2 { font-size: clamp(30px, 4.1vw, 42px); line-height: 1.06; }
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding-inline: 17px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 99px;
    width: min(100%, 550px);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.search input { width: 100%; min-width: 0; min-height: 44px; background: transparent; outline: 0; border: 0; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search-icon { width: 15px; height: 15px; border: 1.8px solid var(--muted); border-radius: 50%; position: relative; flex: 0 0 15px; margin: 0 4px 3px 0; }
.search-icon::after { content: ""; position: absolute; bottom: -3px; right: -5px; width: 7px; height: 1.8px; background: var(--muted); transform: rotate(47deg); }
.museum-grid, .work-grid { display: grid; gap: 15px; }
.museum-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.listing-actions button { cursor: pointer; }
.listing-actions button[aria-disabled="true"] { opacity: .65; cursor: progress; }
.museum-card, .work-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.museum-card > a, .work-card > a { display: block; height: 100%; text-decoration: none; }
.museum-card > a:focus-visible, .work-card > a:focus-visible { outline-offset: -3px; }
.museum-card a:hover h3, .work-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.museum-card-image { aspect-ratio: 1.69; background: var(--wash); }
.museum-card img, .work-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; }
.museum-card-body, .work-card-body { padding: 14px; }
.museum-card-body { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.museum-card-body h3 { overflow-wrap: anywhere; }
.overline {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .083em;
    text-transform: uppercase;
}
.museum-card h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; }
.museum-card-body > p:not(.overline), .card-count, .work-card-body p, .subtitle { color: var(--muted); font-size: 14px; line-height: 1.4; }
.card-count { margin-top: 4px; }
.work-card-image { aspect-ratio: 1.36; background: var(--mat); padding: 10px; }
.work-card img { object-fit: contain; object-position: center; }
.work-card h3 { font-size: 21px; line-height: 1.18; margin-bottom: 5px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 18px 0; }
.footer { border-top: 1px solid var(--line); margin-top: 58px; }
.footer-inner { padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-brand { font-size: 20px; }
.footer-inner p { font-size: 14px; color: var(--muted); }
.crumbs { display: flex; gap: 9px; flex-wrap: wrap; margin-block: 23px 17px; color: var(--muted); font-size: 14px; }
.crumbs a, .sources a, .source-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 620; }
.museum-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 5vw, 55px); align-items: center; }
.museum-hero h1, .artwork-copy h1 { font-size: clamp(39px, 6vw, 64px); line-height: 1.025; margin: 8px 0 10px; }
.museum-hero h2 { font-size: clamp(26px, 3.4vw, 37px); line-height: 1.12; margin-bottom: 12px; }
.museum-hero p:not(.overline), .history p, .artwork-copy > p:not(.overline) { line-height: 1.62; }
.museum-hero .button { margin-top: 17px; }
.facade img { border-radius: 14px; max-height: 420px; aspect-ratio: 1.65; object-fit: cover; background: var(--wash); }
.facade figcaption, .reproduction figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.museum-visit { margin-top: clamp(23px, 4vw, 36px); padding: clamp(15px, 3vw, 23px); border: 1px solid var(--line); border-radius: 14px; }
.museum-visit h2 { font-size: clamp(23px, 3vw, 29px); }
.visit-note { margin-top: 8px; color: var(--muted); }
.visit-locations { list-style: none; padding: 0; margin: 6px 0 0; }
.visit-locations li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; padding-top: 8px; }
.visit-locations li + li { margin-top: 9px; border-top: 1px solid var(--line); }
.visit-locations a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.visit-address { overflow-wrap: anywhere; }
.history { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(17px, 5vw, 55px); padding: 27px 0; border-block: 1px solid var(--line); }
.history p + p { margin-top: 10px; }
.sources { display: flex; flex-wrap: wrap; gap: 7px 19px; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.filters button, .labels a { border: 1px solid var(--line); border-radius: 20px; padding: 7px 12px; background: var(--card); color: var(--accent); font-size: 14px; font-weight: 650; }
.filters button { cursor: pointer; min-height: 39px; }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--control-text); border-color: var(--accent); }
.artwork-page { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(22px, 4vw, 46px); align-items: start; }
.reproduction > div { min-height: 290px; border: 5px solid var(--gilt); border-radius: 13px; background: var(--mat); display: grid; place-items: center; padding: 16px; }
.reproduction img { max-height: 68vh; width: 100%; object-fit: contain; }
.reproduction figcaption { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.artwork-byline { margin-bottom: 20px; color: var(--muted); font-weight: 650; }
.artwork-byline a { color: var(--accent); text-underline-offset: 3px; }
.observation { margin-top: 23px; border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.observation summary { padding: 13px 14px; cursor: pointer; list-style: none; font: 700 20px / 1.3 var(--serif); }
.observation summary::-webkit-details-marker { display: none; }
.observation .overline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font: 750 12px / 1.3 system-ui, sans-serif;
}
.observation .overline::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}
.observation[open] .overline::before { transform: rotate(45deg); }
.observation p { padding: 0 14px 14px; line-height: 1.5; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 15px 0; }
.labels a { display: inline-block; text-decoration: none; }
.labels a:hover { border-color: var(--accent); }
.tag-results h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.artwork-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 29px; border-top: 1px solid var(--line); padding-top: 15px; }
.artwork-nav a { display: grid; gap: 4px; text-decoration: none; padding-block: 6px; }
.artwork-nav a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.artwork-nav span { color: var(--muted); font-size: 14px; }
@media (max-width: 935px) {
    :root { --frame: min(1152px, calc(100% - 40px)); }
    .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    :root { --frame: calc(100% - 28px); }
    .header-inner { min-height: 64px; gap: 9px 12px; flex-wrap: wrap; padding-block: 13px 9px; }
    .header nav { gap: 7px 11px; }
    .header nav a { font-size: .875rem; }
    .brand { font-size: 20px; gap: 8px; }
    .brand-mark { width: 32px; height: 32px; }
    .museum-hero, .history, .artwork-page { grid-template-columns: minmax(0,1fr); }
    .visit-locations li { display: block; }
    .wall-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 13px; }
    .wall-gallery .work-card:nth-child(2) { grid-column: 1 / -1; grid-row: 1; width: min(100%, 340px); justify-self: center; }
    .wall-gallery .work-card-body { padding-top: 9px; }
    .museum-grid { grid-template-columns: minmax(0, 1fr); }
    .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .museum-card-image { aspect-ratio: 1.9; }
    .work-card-body { padding: 10px; }
    .work-card h3 { font-size: 18px; }
    .search { width: 100%; }
    .history { padding: 19px 0; }
    .artwork-copy h1 { font-size: 38px; }
    .reproduction > div { min-height: 0; padding: 10px; }
    .artwork-nav { gap: 7px 18px; }
    .footer { margin-top: 33px; }
}
