:root {
  --page: #fbfbfa;
  --ink: #1c1c1c;
  --muted: #505050;
  --accent: #89370f;
  --accent-hover: #6c2b0b;
  --accent-tint: #f8efe9;
  --mount: #f0f0ee;
  --rule: #d1d1cf;
  --input-border: #686868;
  --section-padding: clamp(1.5rem, 3vw, 2.5rem);
  --section-gap: clamp(2.5rem, 5vw, 4rem);
  --heading-gap: clamp(1rem, 2vw, 1.5rem);
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1rem;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    1.1875rem/1.5 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #171819;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #ffdd00;
}
.skip,
.skip-pages:not(:focus),
.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  overflow: visible;
  clip-path: none;
  width: auto;
  height: auto;
  left: 1rem;
  top: 1rem;
  background: #ffdd00;
  padding: 0.6rem;
  z-index: 3;
}
header {
  border-bottom: 1px solid var(--rule);
}
main,
.bar,
footer {
  width: min(1460px, 91%);
  margin: auto;
}
main {
  flex: 1 0 auto;
  container-type: inline-size;
  overflow-wrap: anywhere;
}
.bar,
footer,
.bar nav,
.brand,
.sectionhead,
.tags,
.pager {
  display: flex;
  align-items: center;
}
.bar {
  justify-content: space-between;
  min-height: 80px;
  flex-wrap: wrap;
  column-gap: 0.75rem;
}
.brand {
  max-width: 100%;
  font:
    600 2.0625rem/1.1 Georgia,
    serif;
  letter-spacing: -1.7px;
  text-decoration: none;
  color: var(--ink);
  gap: 12px;
}
.bar .brand { min-height: 44px; }
.bar nav {
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.bar nav a,
.sectionhead a,
footer a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
}
.bar nav a[aria-current],
.bar nav a:hover,
.sectionhead a:hover,
footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border: solid var(--muted);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  margin-right: .65rem;
}
.bar .breadcrumbs a { font-weight: 400; text-decoration: underline; }
.intro {
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(1rem, 2vw, 2rem);
}
.intro h1 {
  color: var(--ink);
}
.intro .lede {
  margin-bottom: 1.3rem;
  text-wrap: balance;
}
.example-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1rem;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--muted);
}
.example-searches a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.intro + .section {
  padding-top: 1rem;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.lede,
.description {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.description {
  max-width: 56ch;
}
.field-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.searchform {
  display: flex;
  align-items: center;
  max-width: 39rem;
  padding: 4px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: #fff;
}
.searchform input {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 0.7rem;
  color: inherit;
  font: inherit;
  border: 0;
  background: transparent;
}
.searchform input:focus-visible {
  outline-offset: -3px;
  box-shadow: inset 0 0 0 5px #ffdd00;
}
.button {
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font: 600 1rem/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.button:not([hidden]) { display: inline-flex; }
.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.button:focus-visible {
  border-color: var(--ink);
  background: #ffdd00;
  color: var(--ink);
}
.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.section {
  padding-block: var(--section-padding);
}
.detail ~ .section {
  padding-block-start: var(--section-gap);
}
.section > h2:not(.sr) + .grid {
  margin-block-start: var(--heading-gap);
}
.sectionhead {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: var(--heading-gap);
}
h2 {
  font-size: clamp(1.6875rem, 1.2rem + 1.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.sectionhead a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem);
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card h3 {
  text-decoration: underline;
  text-decoration-color: #767676;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.card:hover h3, .card:focus-visible h3 {
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.1em;
}
.mount {
  aspect-ratio: 1/0.98;
  display: grid;
  place-items: center;
  background: var(--mount);
  padding: 14px;
}
.mount img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.grid h3 {
  font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 0.25rem;
}
.caption {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}
footer {
  border-top: 1px solid var(--rule);
  justify-content: space-between;
  padding: 28px 0;
  margin-top: 22px;
}
footer .brand {
  font: 1.5rem Georgia, serif;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "plate title" "plate notes";
  grid-template-rows: auto 1fr;
  column-gap: 5%;
  align-items: start;
  padding-top: var(--section-padding);
}
.art-heading {
  grid-area: title;
  overflow-wrap: anywhere;
}
.artwork {
  grid-area: plate;
  min-width: 0;
}
.plate > a {
  display: block;
}
.full-image {
  display: block;
  margin-top: 0.75rem;
}
.art-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
  padding-top: 0.25rem;
  font-size: 1rem;
}
.download-action { min-width: 0; max-width: 100%; }
.art-tools .download-action { width: 100%; }
.art-tools .file-size { margin-top: .4rem; }
.byline { margin: 0 0 1rem; }
.notes .reuse-note { margin: .25rem 0 1rem; }
.byline a { text-underline-offset: .15em; }
.file-size { margin: 0; font-size: .9375rem; color: var(--muted); }
.art-tools [data-manual], .art-tools [role="status"] {
  width: 100%;
  margin: 0;
}
.text-action {
  appearance: none;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.text-action:not([hidden]) { display: inline-flex; }
.text-action:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 0.14em;
}
.text-action:focus-visible {
  background: #ffdd00;
  color: var(--ink);
  text-decoration: none;
}
.art-tools details[data-manual] { border: 0; margin: 0; }
.art-tools [data-manual] summary { font-size: 1rem; font-weight: 400; }
.card:target { scroll-margin-block: 1rem; }
.art-tools input {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 44px;
  padding: 0.4rem;
  border: 1px solid var(--input-border);
  font: inherit;
  color: var(--ink);
  background: white;
}
.plate {
  background: var(--mount);
  text-align: center;
  padding: 20px;
}
.plate img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  vertical-align: middle;
}
.notes {
  grid-area: notes;
}
.art-heading h1 {
  font-size: clamp(2rem, 1.25rem + 2.25vw, 3.5rem);
}
.art-heading .long-title {
  font-size: clamp(1.5rem, 1.1rem + 1.35vw, 2.5rem);
  line-height: 1.2;
  text-wrap: pretty;
}
.notes dl {
  margin: 0.75rem 0 0;
}
.notes details > p { margin: 0.25rem 0 1rem; }
.notes dt {
  font-size: 1rem;
  color: var(--muted);
}
.notes dd {
  margin: 0.25rem 0 1rem;
}
.notes dd:last-child { margin-bottom: 0; }
.tags {
  margin-top: 0.5rem;
  gap: 0 1rem;
  flex-wrap: wrap;
  font-size: 1rem;
}
.notes details {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}
.notes summary {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0.75rem 0;
  cursor: pointer;
  font-weight: 600;
}
.notes > .button { margin: 16px 0; }
.pager {
  justify-content: center;
  padding-block-start: var(--section-padding);
}
.pager a {
  padding: 12px;
}
.results {
  margin: var(--heading-gap) 0;
}
.empty {
  padding-block: var(--section-padding);
}
.section > h1 {
  margin-bottom: var(--heading-gap);
}
.section > h1:has(+ .caption) { margin-bottom: 0.5rem; }
.notes {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .brand {
    font-size: 1.8125rem;
  }
}
@media (max-width: 48rem) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "plate" "notes";
    grid-template-rows: auto;
  }
  .notes {
    padding-block-start: 1rem;
  }
}
@media (max-width: 680px) {
  main,
  .bar,
  footer {
    width: 92%;
  }
  .bar {
    min-height: 65px;
  }
  .brand {
    font-size: 1.5625rem;
    gap: 7px;
  }
  .bar nav {
    gap: 15px;
  }
  .intro h1 {
    font-size: clamp(2.35rem, 8vw, 3rem);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mount {
    padding: 7px;
  }
  .plate {
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .bar nav {
    gap: 8px;
  }
  .brand {
    font-size: 1.375rem;
  }
}
.lens {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.lens:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
}
.searchform .lens {
  flex: 0 0 15px;
  margin: 0 0.3rem 0 0.75rem;
  color: var(--muted);
  pointer-events: none;
}
@media (max-width: 680px) {
  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}
.searchform {
  position: relative;
}
.searchform ul {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 4px) 0 auto;
  max-height: min(18rem, 45vh);
  max-height: min(18rem, 45dvh);
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px #00000020;
  text-align: left;
}
.searchform li {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.searchform li:hover,
.searchform li[aria-selected="true"] {
  background: var(--accent-tint);
  box-shadow: inset 3px 0 var(--accent);
}
.results {
  overflow-wrap: anywhere;
}
@media (forced-colors: active) {
  .searchform li[aria-selected="true"] {
    outline: 2px solid Highlight;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.5rem;
}
.pager {
  flex-wrap: wrap;
  gap: 4px 12px;
}
.pager .page-number {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
}
.pager [aria-current="page"] {
  background: var(--accent);
  color: white;
  border-radius: 4px;
}
.pager-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
/* Keep the focused shortcut beside the results it skips. */
.skip-pages {
  position: absolute;
  z-index: 1;
  padding: 0.6rem;
  background: var(--page);
}
.pager:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .pager {
    flex-direction: column;
    align-items: flex-start;
  }
  .pager-pages {
    justify-content: flex-start;
  }
}
footer {
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}
.about-page {
  max-width: 63ch;
  padding-block: var(--section-padding);
}
.about-page h1 { margin: 0 0 .5rem; }
.about-page h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.2;
  margin: 1.6em 0 .4em;
}
.about-page p { margin: 0 0 .65em; }

/* Keep controls usable when enlarged text leaves little space per line. */
@container (max-width: 12em) {
  .grid {
    grid-template-columns: 1fr;
  }
  .searchform {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .searchform button {
    grid-column: 1 / -1;
  }
}

.image-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  flex: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  background: var(--mount);
}
.viewer-controls {
  display: flex;
  justify-content: flex-end;
  padding: max(0.375rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.375rem 1rem;
}
.viewer-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.875rem;
  font: 600 1rem/1.3 Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--input-border);
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
}
.viewer-close:hover { text-decoration: underline; }
.viewer-canvas {
  min-width: 0;
  min-height: 0;
  padding: 0 max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
}
.viewer-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}
dialog.image-viewer {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
}
dialog.image-viewer:not([open]) { display: none; }
html:has(dialog.image-viewer[open]) { overflow: hidden; }
