@font-face {
  font-family: Instrument;
  src: url(fonts/instrument.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(fonts/instrument-italic.ttf) format("truetype");
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f8f7f3;
  --ink: #222621;
  --muted: #5c6159;
  --line: #cecec3;
  --red: #a83c2a;
  --dark: #242d28;
  --serif: Instrument, Georgia, "Songti SC", STSong, serif;
  --pad: clamp(1.25rem, 4.7vw, 6rem);
  --row-gap: clamp(1.25rem, 2.6vw, 3rem);
  --wall-height: min(62vh, 37rem);
  --shadow: 0 1px 2px #24241929, 1px 6px 9px -5px #24241936;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #ba583d;
  outline-offset: 4px;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
img { display: block; max-width: 100%; }
a, button, figure { -webkit-tap-highlight-color: #a83c2a20; }
body:has(dialog[open]) { overflow: hidden; }
#skip { position: absolute; left: 1rem; top: -6rem; padding: .6rem 1rem; background: white; z-index: 5; }
#skip:focus { top: .6rem; }
main:focus, .biography:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 114rem; margin-inline: auto; padding-inline: var(--pad); }
.inner { padding-block: clamp(1.8rem, 3.6vw, 4.3rem) clamp(3.5rem, 6vw, 6.5rem); }
.textlink, .back, .breadcrumbs a, .source a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .27em;
}
.textlink { font-size: .94rem; }
.textlink:hover, .back:hover, .breadcrumbs a:hover, .source a:hover { color: var(--red); }
.back, .breadcrumbs { font-size: .91rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: 1.15rem; }
.eyebrow { font-size: .79rem; font-weight: 600; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.count, .piece-info { color: var(--muted); font-size: .9rem; }
.count { white-space: nowrap; }

#header, #footer { padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
#header { min-height: 4.7rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 2.08rem/1 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.seal { display: grid; place-items: center; width: 1.85rem; height: 2.05rem; border-radius: 2px; background: var(--red); color: #fff8ed; font: 1.35rem/1 "Songti SC", STSong, serif; }
.nav, .tools, .langs, .spot-nav, .viewer-controls { display: flex; align-items: center; }
.nav { gap: clamp(1.2rem, 2.4vw, 2.65rem); }
.nav a { padding-block: .4rem; border-bottom: 1px solid transparent; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { border-color: var(--red); }
.tools { gap: 1.25rem; }
.langs { gap: .45rem; font-size: .85rem; }
.langs button { padding-block: .5rem; }
.langs button[aria-pressed="true"] { color: var(--red); font-weight: 650; }
.langs > span { color: #85857a; }
.search-button { display: inline-flex; gap: .6rem; align-items: center; padding: .4rem 0 .4rem 1.2rem; border-left: 1px solid var(--line); font-size: .9rem; }
.magnifier { position: relative; display: inline-block; width: 1rem; height: 1rem; border: 1.6px solid currentColor; border-radius: 50%; }
.magnifier::after { content: ""; position: absolute; width: .45rem; height: 1.6px; right: -.32rem; bottom: -.12rem; background: currentColor; transform: rotate(45deg); }
#footer { padding-block: 2.1rem; background: #eeede7; border-top: 1px solid var(--line); flex-wrap: wrap; }
#footer .brand { font-size: 1.72rem; }
#footer small { font-size: .84rem; color: var(--muted); }

.spotlight {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  background: var(--dark);
  color: #faf8ee;
}
.spot-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 0 .7rem;
  padding: clamp(2.4rem, 4vw, 5.5rem) clamp(1.4rem, 3vw, 4.5rem) clamp(2.4rem, 4vw, 5.5rem) var(--pad);
}
.spot-type .eyebrow, .spot-type h1, .spot-native, .spot-copy { grid-column: 1 / -1; }
.accent { display: flex; align-items: center; gap: .65rem; }
.accent::before { content: ""; width: 1.75rem; height: 2px; background: #dc917b; }
.spot-type h1 { margin: 1.4rem 0 .5rem; font-size: clamp(4.65rem, 7.55vw, 8.4rem); letter-spacing: -.045em; line-height: .88; }
.spot-type h1 em { color: #edb8a4; }
.spot-native { color: #e0dcd0; font: 1.4rem/1.4 var(--serif); }
.spot-copy { max-width: 31em; font-size: clamp(1rem, 1.12vw, 1.16rem); line-height: 1.55; color: #e2e4d9; margin: 1.3rem 0 1.75rem; }
.spot-enter { border: 1px solid #c8cec2; font-size: .94rem; font-weight: 550; padding: .59rem .96rem; justify-self: start; }
.spot-enter:hover { background: #faf8ee; color: var(--dark); }
.spot-nav { justify-self: end; gap: .6rem; }
.circle, .close { border: 1px solid currentColor; display: grid; place-items: center; border-radius: 50%; flex: none; }
.circle { height: 2.27rem; width: 2.27rem; color: inherit; border-color: #ffffff65; }
.circle:hover { background: #ffffff19; border-color: #ffffffb5; }
.chev { display: block; width: .47rem; height: .47rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateX(-1px) rotate(45deg); }
.prev .chev { transform: translateX(1px) rotate(-135deg); }
.spot-page, #viewer-position { font-size: .83rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spot-page span { opacity: .55; margin-inline: .1rem; }

.spotlight:has(.gallery-cover) { grid-template-columns: 40% minmax(0,1fr); background: #202721; }
.cover-type { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cover-type h1 { font-size: clamp(5.1rem, 7.8vw, 9.5rem); line-height: .85; margin: 1.35rem 0 1.25rem; }
.cover-type .spot-copy { max-width: 25rem; margin: 0 0 1.6rem; }
.cover-type .textlink:hover { color: #edb8a4; }
.gallery-cover { position: relative; min-height: clamp(440px, 35.6vw, 615px); overflow: hidden; background: #52594a; }
.cover-picture { position: absolute; inset: 0; }
.cover-picture img { width: 100%; height: 100%; object-fit: cover; }
.cover-picture:focus-visible { outline-offset: -4px; }
.cover-foot {
  position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; padding: 3.5rem clamp(1.2rem, 2.8vw, 3.2rem) 1.55rem;
  background: linear-gradient(transparent, #0c110dd4); pointer-events: none;
}
.cover-foot > * { pointer-events: auto; }
.cover-credit { display: flex; flex-direction: column; text-shadow: 0 1px 6px #333; }
.cover-credit cite { font: italic clamp(1.5rem, 2.25vw, 2.5rem)/1.1 var(--serif); }
.cover-credit small { margin-top: .2rem; font-size: .85rem; }
.cover-credit a:hover { text-decoration: underline; text-underline-offset: .15em; }
.cover-foot .spot-page { order: -1; }

.spot-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.55vw, 3.4rem);
  padding: clamp(2rem, 3.55vw, 4.5rem) clamp(1.35rem, 3.6vw, 4.6rem);
  color: #242923;
  --picture-height: clamp(18.5rem, 27vw, 31.5rem);
}
.tone-wang { background: #d6d7cb; }
.tone-ma { background: #ded7c9; }
.tone-he { background: #d4d5d0; }
.spot-wall figure { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.spot-wall figure > a { max-width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.spot-wall img { width: auto; height: auto; max-height: var(--picture-height); box-shadow: 1px 2px 3px #28282142, 2px 12px 20px -9px #2828216b; }
.spot-wall figcaption { margin-top: .85rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; justify-content: center; text-align: center; }
.spot-wall figcaption a { font: italic clamp(1.2rem, 1.52vw, 1.64rem)/1.12 var(--serif); }
.spot-wall figcaption a:hover { text-decoration: underline; text-underline-offset: .15em; }
.spot-wall figcaption span { font-size: .82rem; color: #434a40; }

.home-section { padding-block: clamp(2.65rem, 4.25vw, 5rem); }
.home-works { border-top: 1px solid var(--line); }
.section-head, .room-heading, .room-label, .room-heading-name, .room-tools, .result-line, .filterbar {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem 1.25rem;
}
.section-head { margin-bottom: clamp(1.4rem, 2.4vw, 2.3rem); }
.section-head h2, .biography h2 { font-size: clamp(2.7rem, 4.15vw, 5rem); letter-spacing: -.038em; }
.section-head .textlink { flex: none; }
.page-title { font-size: clamp(3.7rem, 6.4vw, 7.2rem); line-height: 1; letter-spacing: -.048em; }
.ruled { align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }

.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(2rem, 3.6vw, 3.6rem) clamp(1rem, 2vw, 2rem); }
.room-card { min-width: 0; }
.room-plate {
  display: flex; align-items: center; justify-content: center; gap: 5%;
  aspect-ratio: 1.72; padding: 6% 7%; background-color: #e3e2d9;
}
.room-plate.tone-wang { background-color: #dedfd3; }
.room-plate.tone-ma { background-color: #e6dfd3; }
.room-plate.tone-he { background-color: #dedfda; }
.plate-painting { height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.room-plate img { max-height: 100%; width: auto; height: auto; box-shadow: var(--shadow); }
.room-label { margin-top: .82rem; justify-content: flex-start; flex-wrap: wrap; gap: .1rem .7rem; }
.room-label h3 { font-size: clamp(1.85rem, 2.55vw, 3.15rem); letter-spacing: -.03em; }
.native-name { color: var(--muted); font-family: var(--serif); font-size: 1.13rem; }
.room-card:hover h3, .piece-title:hover, .piece-info a:hover { text-decoration: underline; text-underline-offset: .18em; }
.room-card > .piece-info { display: block; margin-top: .25rem; }

.room-heading { padding-bottom: clamp(1.3rem, 2.4vw, 2.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(1.6rem, 2.8vw, 3rem); flex-wrap: wrap; }
.room-heading-name { justify-content: flex-start; flex-wrap: wrap; gap: .25rem 1.5rem; }
.room-native { font: clamp(1.55rem, 2.5vw, 2.65rem)/1.15 var(--serif); color: var(--muted); }
.room-tools { font-size: .9rem; flex-wrap: wrap; }
.wall { display: grid; gap: clamp(2.6rem, 4.5vw, 5.3rem); }
.wall-row { display: flex; gap: var(--row-gap); margin-inline: auto; width: min(100%, calc(var(--wall-height) * var(--total) + var(--row-gap) * var(--gaps))); }
.wall-piece { flex: var(--ratio) 1 0; min-width: 0; }
.piece-picture { display: block; width: 100%; }
button.piece-picture { cursor: zoom-in; }
.piece-picture img { width: 100%; height: auto; box-shadow: var(--shadow); }
.wall-piece figcaption { margin-top: .8rem; }
.piece-title { display: inline; font: clamp(1.55rem, 2.1vw, 2.42rem)/1.12 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.piece-info { display: block; margin-top: .25rem; }
.sep { margin-inline: .15em; }
.biography { padding-block: clamp(2rem, 3.5vw, 3.7rem); margin-top: clamp(2.7rem, 4.5vw, 5rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: .9fr 1.3fr; gap: var(--row-gap); }
.biography > div { max-width: 43rem; }
.biography > div > p:first-child, .reading p { font-size: 1.13rem; line-height: 1.72; }
.source, .credits, .translation, .work-note { font-size: .93rem; color: var(--muted); }
.source { margin-top: .8rem; }

.catalogue .page-title { margin-bottom: 1.6rem; }
.filterbar { border-block: 1px solid var(--line); padding-block: .86rem; align-items: center; flex-wrap: wrap; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.filter { padding: .35rem .85rem; border-radius: 3rem; border: 1px solid var(--line); font-size: .9rem; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter:hover:not([aria-pressed="true"]) { background: #e9e8e1; }
.artist-select { position: relative; }
.artist-select::after { content: ""; position: absolute; right: .9rem; top: 43%; width: .45rem; height: .45rem; border: solid var(--ink); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.artist-select select { appearance: none; border: 1px solid var(--line); border-radius: 0; background: transparent; padding: .45rem 2.25rem .45rem .8rem; cursor: pointer; font-size: .91rem; }
.result-line { margin-block: 1.1rem 1.5rem; flex-wrap: wrap; }
.empty { min-height: 12rem; padding: 1.3rem 0; }
.empty .textlink { margin-top: .75rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: clamp(1.4rem, 2.4vw, 2.7rem); }
.breadcrumbs span { color: #98998e; }
.detail { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(2rem, 4.7vw, 5rem); align-items: start; }
.art-view { width: 100%; display: grid; place-items: center; position: relative; cursor: zoom-in; background: #e8e7de; padding: clamp(.8rem, 2vw, 2rem); }
.art-view img { width: auto; height: auto; max-height: 70vh; box-shadow: var(--shadow); }
.view-hint { position: absolute; bottom: .75rem; right: .75rem; background: #fbfaf5f2; border: 1px solid #9e9e9188; padding: .22rem .55rem; font-size: .84rem; }
.work-label { padding-block: .25rem; }
.work-label .eyebrow { display: inline-block; color: var(--red); }
.work-label .eyebrow:hover { text-decoration: underline; }
.work-label h1 { font-size: clamp(2.9rem, 4.7vw, 5.9rem); letter-spacing: -.04em; margin: .55rem 0; overflow-wrap: anywhere; }
.othername { font: 1.5rem/1.28 var(--serif); color: var(--muted); }
.work-label dl { margin: 1.6rem 0 1.25rem; }
.work-label dl div { display: grid; grid-template-columns: 6.8rem 1fr; gap: .6rem; border-top: 1px solid var(--line); padding-block: .63rem; }
.work-label dt { color: var(--muted); }
.work-note { margin-bottom: .9rem; }
.translation { margin-top: .6rem; }
.work-label > .textlink { display: inline-block; margin-top: 1.4rem; }
.related { margin-top: clamp(3rem, 5.2vw, 6rem); border-top: 1px solid var(--line); padding-top: 2.4rem; }
.reading { max-width: 45rem; }
.reading h2 { font-size: 2.4rem; margin: 2rem 0 .65rem; }
.reading p { margin: 1.15rem 0; }

dialog { color: var(--ink); background: var(--paper); border: 0; }
dialog::backdrop { background: #111913b8; }
#search-box { width: min(92vw, 43rem); max-height: 89vh; padding: 1.6rem; }
.dialog-head, .viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-head { margin-bottom: 1rem; }
.dialog-head h2 { font-size: 2.6rem; }
.close { width: 2.55rem; height: 2.55rem; font: 1.8rem/1 Arial, sans-serif; border-color: var(--line); }
.close:hover { background: #8882; }
.query { width: 100%; border: 1px solid #8b8d80; padding: .75rem; background: #fff; border-radius: 0; }
.results { margin-top: 1rem; max-height: 52vh; overflow-y: auto; }
.results a { display: flex; align-items: center; gap: .85rem; padding: .5rem; border-top: 1px solid var(--line); }
.results a:hover { background: #eaeae3; }
.results img { width: 3rem; height: 3rem; object-fit: contain; background: #e6e5de; }
.results small { display: block; font-size: .82rem; color: var(--muted); }

#viewer { inset: 0; margin: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; overflow: hidden; background: #181d1a; color: #faf8ef; padding: 1rem clamp(1rem, 3vw, 3rem); }
#viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: .65rem; }
.viewer-top { color: #deded3; font-size: 1rem; }
.viewer-top .close { border-color: #ffffff66; }
.viewer-stage, #viewer-picture { min-width: 0; min-height: 0; height: 100%; }
.viewer-stage { touch-action: pan-y pinch-zoom; }
#viewer-picture img { width: 100%; height: 100%; object-fit: contain; }
.viewer-dock { padding-top: .65rem; border-top: 1px solid #ffffff30; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 1.5rem; align-items: center; }
.viewer-caption h2 { font-size: clamp(1.45rem,2.15vw,2.65rem); line-height: 1.1; }
.viewer-caption p { font-size: .9rem; color: #c2c7bb; margin-top: .22rem; }
.viewer-controls { justify-content: center; gap: .75rem; }
#viewer-details { justify-self: end; white-space: nowrap; }
#viewer-details:hover { color: #efb9a2; }

:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3 { line-height: 1.2; }
:lang(zh-CN) .spot-type h1 { font-size: clamp(3.8rem, 6.3vw, 7.2rem); }
:lang(zh-CN) .cover-type h1 { font-size: clamp(2.5rem, 5.4vw, 6.5rem); }
:lang(zh-CN) .section-head h2, :lang(zh-CN) .biography h2 { font-size: clamp(2.2rem, 3.35vw, 3.85rem); }
:lang(zh-CN) .page-title { font-size: clamp(3rem, 5.45vw, 6rem); }
:lang(zh-CN) .eyebrow { letter-spacing: .1em; }
:lang(zh-CN) .spot-wall figcaption a { font-style: normal; }
:lang(zh-CN) .room-label h3, :lang(zh-CN) .piece-title { letter-spacing: 0; }
:lang(zh-CN) .piece-title { font-size: clamp(1.35rem, 1.78vw, 2rem); line-height: 1.35; }

@media (max-width: 1000px) {
  .spotlight { grid-template-columns: 38% minmax(0,1fr); }
  .spot-type { padding-right: 1.35rem; }
  .spot-wall { padding-inline: 1.5rem; gap: 1.2rem; }
  .spot-type h1 { font-size: clamp(4.55rem, 8.1vw, 6rem); }
  .spot-nav { gap: .4rem; }
  .room-grid { gap: 2rem 1rem; }
  .room-label { align-items: baseline; }
  .room-heading { align-items: end; }
}
@media (max-width: 740px) {
  :root { --pad: clamp(1.15rem, 4.5vw, 1.9rem); }
  #header { gap: .5rem 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .52rem; }
  .brand { font-size: 1.9rem; }
  .seal { width: 1.55rem; height: 1.8rem; font-size: 1.2rem; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 1.55rem; }
  .nav a { padding-block: .12rem; font-size: .9rem; }
  .tools { gap: .7rem; }
  .search-button { padding-left: .85rem; min-height: 2.15rem; }
  .search-label { display: none; }
  .spotlight { display: flex; flex-direction: column; }
  .spot-wall { order: -1; gap: 5%; padding: 1.45rem var(--pad) 1rem; --picture-height: min(45vw, 32vh); }
  .spot-wall.one img { max-height: min(53vw, 35vh); }
  .gallery-cover { min-height: 180px; aspect-ratio: 1.88; }
  .cover-foot { gap: .5rem; padding: 2.5rem var(--pad) .9rem; }
  .cover-foot .spot-nav { gap: .3rem; }
  .cover-foot .spot-page { display: none; }
  .cover-credit cite { font-size: 1.5rem; }
  .cover-type .spot-copy { margin-bottom: .9rem; }
  .spot-wall figcaption { margin-top: .65rem; }
  .spot-wall figcaption a { font-size: 1.17rem; }
  .spot-wall figcaption span { font-size: .78rem; }
  .spot-type { padding: 1.38rem var(--pad) 1.5rem; }
  .spot-type h1 { font-size: clamp(3.7rem, 12.4vw, 5rem); margin: .8rem 0 .3rem; }
  .spot-type h1 br { display: none; }
  .spot-type h1 em::before { content: " "; }
  :lang(zh-CN) .cover-type h1 { font-size: clamp(2.25rem, 8.6vw, 3.9rem); }
  :lang(zh-CN) .cover-type h1 em::before { content: none; }
  .spot-native { font-size: 1.1rem; }
  .spot-copy { margin: .65rem 0 1rem; max-width: 36rem; }
  .spot-enter { padding: .48rem .8rem; }
  .circle { width: 2.5rem; height: 2.5rem; }
  .spot-nav { gap: .55rem; }
  .section-head { align-items: end; }
  .section-head h2, .biography h2 { font-size: clamp(2.3rem, 7.5vw, 3rem); }
  .section-head .textlink { font-size: .87rem; }
  .page-title { font-size: clamp(3.15rem, 10.3vw, 4.5rem); }
  .room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-plate { aspect-ratio: 1.36; }
  .room-label { gap: .15rem .45rem; }
  .room-label h3 { font-size: 1.8rem; }
  .native-name { font-size: 1rem; }
  .room-heading { align-items: start; gap: .75rem; }
  .room-heading-name { gap: .25rem .7rem; }
  .room-native { font-size: 1.35rem; }
  .room-tools { gap: .8rem; }
  .wall { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.8rem 1rem; align-items: end; }
  .wall-row { display: contents; }
  .wide-picture, .wall-piece:only-child { grid-column: 1 / -1; }
  .wall-piece:only-child img { max-height: 65vh; object-fit: contain; }
  .piece-title { font-size: clamp(1.42rem, 4.1vw, 1.8rem); }
  .piece-info { font-size: .83rem; }
  .wall-piece figcaption { margin-top: .55rem; }
  .biography, .detail { grid-template-columns: 1fr; gap: 1.3rem; }
  .detail h1 { font-size: 3rem; }
  .biography > div > p:first-child, .reading p { font-size: 1.03rem; }
  .filterbar { gap: .7rem; }
  .filter { padding: .31rem .67rem; font-size: .84rem; }
  .breadcrumbs { margin-bottom: 1rem; }
  .related { margin-top: 2.4rem; }
  .work-label dl div { grid-template-columns: 5.6rem 1fr; }
  #footer { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .viewer-dock { grid-template-columns: minmax(0,1fr) auto; gap: .55rem 1rem; }
  .viewer-caption { grid-column: 1 / -1; }
  .viewer-controls { justify-content: flex-start; }
  .viewer-top .close, .viewer-controls button { width: 2.75rem; height: 2.75rem; }
  #search-box { padding: 1rem; }
}
@media (max-width: 460px) {
  .home-section .room-grid { grid-template-columns: 1fr; }
  .home-section .room-card { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: .15rem 1rem; align-content: center; }
  .home-section .room-plate { grid-row: span 2; aspect-ratio: 1.75; }
  .home-section .room-label { display: block; align-self: end; margin-top: 0; }
  .home-section .room-card > .piece-info { align-self: start; margin-top: 0; }
  .home-section .room-grid { gap: 1.1rem; }
  .room-native { font-size: 1.25rem; }
  .room-heading-name { flex-basis: 100%; }
  .section-head h2 { font-size: 2.45rem; }
  .room-label h3 { font-size: 1.65rem; }
  #viewer { padding: .7rem .9rem max(.7rem, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
