/* Shared museum system. Room-specific objects own their transforms and motion. */
:root {
  --paper: #f4f4ef;
  --paper-fibres: url('assets/optimized/gallery-paper.webp');
  --paper-repeat: 760px;
  --paper-veil-amount: 0%;
  --ink: #242522;
  --muted: #65695f;
  --rule: #d3d4c9;
  --accent: #5b6151;
  --serif: Georgia,'Times New Roman','Songti SC',serif;
  --sans: Arial,'PingFang SC',sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --page-max: 1500px;
  --page-gutter: 4.2vw;
  --type-ui: 13px;
  --type-body: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.dark {
  --paper: #171918;
  --paper-veil-amount: 65%;
  --ink: #eceee5;
  --muted: #a3a69b;
  --rule: #3f423a;
  --accent: #c7cdb4;
}

h1,h2,h3,p,figure,blockquote {
  margin: 0;
}

button,input,textarea,select {
  font: inherit;
  color: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,canvas:focus-visible {
  outline: 2px solid #687c8a;
  outline-offset: 5px;
}

input,textarea,select {
  font-size: var(--type-body);
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
  max-width: 100%;
  padding: 12px;
}

textarea {
  resize: vertical;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

::selection {
  background: #cdd1b6;
  color: #222;
}

.sr-only,.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip-link:focus {
  z-index: 200;
  width: auto;
  height: auto;
  padding: 12px;
  clip-path: none;
  background: var(--paper);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font: 10px/1.4 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--serif);
}

.rule {
  border-top: 1px solid var(--rule);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page-max);
  margin: auto;
  padding: 20px var(--page-gutter);
  height: 87px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font: 20px var(--serif);
}

.logo-mark {
  width: 19px;
  height: 19px;
  display: inline-block;
  border: 1.5px solid;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: var(--type-ui);
}

.site-nav a {
  position: relative;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a:after {
  content: '';
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.site-nav a:hover:after,.site-nav a[aria-current=page]:after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* A single hit target, including the selected icon and the space between icons. */
.theme-switch {
  --slot: 33px;
  --disc: 26px;
  display: inline-grid;
  grid-template-columns: repeat(2, var(--slot));
  align-items: center;
  position: relative;
  isolation: isolate;
  flex: none;
  padding: 0 3px;
  height: 44px;
  border-radius: 24px;
}
.theme-switch::before, .theme-switch::after {
  content: '';
  position: absolute;
  top: 50%;
  border-radius: inherit;
  transform: translateY(-50%);
}
.theme-switch::before {
  inset-inline: 0;
  height: 32px;
  border: 1px solid var(--rule);
  transition: border-color .18s ease;
}
.theme-switch::after {
  z-index: -1;
  left: calc(3px + (var(--slot) - var(--disc)) / 2);
  width: var(--disc);
  height: var(--disc);
  background: var(--ink);
  transition: transform .28s var(--ease), background-color .18s ease;
}
.theme-switch[aria-checked="true"]::after {
  transform: translate(var(--slot), -50%);
}
.theme-switch [data-theme] {
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
  transition: color .18s ease;
}
.theme-switch[aria-checked="false"] [data-theme="light"],
.theme-switch[aria-checked="true"] [data-theme="dark"] {color: var(--paper);}
.theme-switch svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform .14s ease;
}
.theme-switch:active svg {transform: scale(.85);}
@media (hover: hover) {
  .theme-switch:hover::before {border-color: var(--ink);}
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  transition: transform 90ms ease-out;
}

.text-link {
  font-size: var(--type-ui);
  border-bottom: 1px solid;
  padding: 5px 0;
  display: inline-flex;
  gap: 30px;
  align-items: center;
  min-height: 44px;
}

.text-link .arrow {
  transition: transform .25s;
}

.text-link:hover .arrow {
  transform: translate(3px,-3px);
}

.pill {
  border: 1px solid var(--rule);
  border-radius: 40px;
  padding: 6px 12px;
  font-size: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.page {
  max-width: var(--page-max);
  margin: auto;
  padding: 50px var(--page-gutter) 90px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 45px;
}

.page-title {
  font: 400 clamp(46px,6vw,94px)/1.02 var(--serif);
  letter-spacing: -.06em;
  margin-top: 14px;
}

.page-caption {
  font-size: 14px;
  line-height: 1.9;
  max-width: 280px;
  color: var(--muted);
}

.primary,.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.primary:disabled {
  background: var(--paper);
  color: var(--muted);
  border-color: var(--rule);
  opacity: 1;
  transition: none;
}

.primary:hover:not(:disabled) {
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid var(--rule);
}

.secondary:hover:not(:disabled) {
  background: #8881;
}

.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.circle-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s, transform 90ms ease-out;
  flex-shrink: 0;
}

.circle-button:hover {
  background: #8882;
}

.footer {
  max-width: var(--page-max);
  padding: 25px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  margin: auto;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

#toast {
  position: fixed;
  z-index: 90;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,15px);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  padding: 13px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s,transform .2s;
  max-width: 90vw;
  text-align: center;
}

#toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}

dialog {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 35px;
  width: min(570px,92vw);
  max-height: 90svh;
}

dialog::backdrop {
  background: #171c1866;
}

dialog .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

dialog h2 {
  font: 32px var(--serif);
}

dialog .close {
  font-size: 25px;
  width: 44px;
  height: 44px;
}

dialog p {
  font-size: 14px;
  line-height: 1.9;
  margin: 12px 0;
}

dialog textarea {
  width: 100%;
  min-height: 150px;
  margin: 15px 0;
}

dialog video {
  max-width: 100%;
  display: block;
}

dialog input {
  width: 100%;
  margin: 8px 0;
}

#transition {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  display: none;
  transform-origin: 0 0;
  contain: strict;
}

.form-field {
  display: block;
  margin-bottom: 24px;
}

.form-field>span {
  display: block;
  font-size: var(--type-ui);
  margin-bottom: 9px;
}

.form-field input,.form-field textarea,.form-field select {
  width: 100%;
}

.small-note {
  font-size: var(--type-ui);
  color: var(--muted);
  line-height: 1.8;
}

.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--type-ui);
  line-height: 1.7;
  margin: 18px 0;
}

.check-label input {
  accent-color: var(--ink);
  width: 15px;
  height: 15px;
  margin: 3px 0 0;
}

.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.tabs button {
  font-size: var(--type-ui);
  padding: 12px 0;
  position: relative;
  color: var(--muted);
  min-height: 44px;
}

.tabs button.active {
  color: var(--ink);
}

.tabs button.active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: currentColor;
}

.empty-state {
  padding: 90px 20px;
  text-align: center;
}

.empty-state h2 {
  font: 38px var(--serif);
  margin-bottom: 15px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 25px;
}

#app, .type-loading-screen, .detail-page, #modal, dialog.collection-reader,
.site-header.menu-open .site-nav, .collection-room .collection-scatter.is-expanded,
.correspondence-reader .correspondence-reader-bar, .atelier-room .atelier-book,
.personal-preview-sheet, .mirror-story, .mirror-stage, .mirror-credit {
  /* The rooms share one sheet. Surfaces laid on top can use a different paper stock. */
  --stock: var(--paper);
  --paper-veil: color-mix(in srgb, var(--stock) var(--paper-veil-amount), transparent);
  background-color: var(--stock);
  background-image: linear-gradient(var(--paper-veil), var(--paper-veil)), var(--paper-fibres);
  background-size: auto, var(--paper-repeat);
  background-position: left top;
  background-blend-mode: normal, overlay;
}
#app {
  min-height: 100svh;
}
/* Blend two viewport snapshots on the same sheet. Matching complementary
   opacities and additive blending keep the paper's brightness constant. */
html.room-dissolve::view-transition {pointer-events:none;}
html.room-dissolve::view-transition-group(root),
html.room-dissolve::view-transition-group(museum-masthead),
html.room-dissolve::view-transition-group(museum-heading-out),
html.room-dissolve::view-transition-group(museum-heading-in) {animation:none;}
html.room-dissolve::view-transition-image-pair(root) {isolation:isolate;}
html.room-dissolve::view-transition-old(root),
html.room-dissolve::view-transition-new(root) {
  mix-blend-mode:plus-lighter;
  animation:museum-dissolve 260ms cubic-bezier(.35,0,.3,1) both;
}
html.room-dissolve::view-transition-old(root) {animation-name:museum-dissolve-out;}
@keyframes museum-dissolve {from {opacity:0;} to {opacity:1;}}
@keyframes museum-dissolve-out {from {opacity:1;} to {opacity:0;}}

.steady-masthead .site-header {view-transition-name:museum-masthead;}
html.room-dissolve::view-transition-old(museum-masthead) {animation:none;opacity:0;}
html.room-dissolve::view-transition-new(museum-masthead) {animation:none;opacity:1;}

/* Give each title its own position and let the outgoing letterforms clear
   before the new ones become legible. The artwork continues to dissolve. */
.room-dissolve #page-content h1 {view-transition-name:museum-heading-out;}
.room-dissolve.room-arrived #page-content h1 {view-transition-name:museum-heading-in;}
html.room-dissolve::view-transition-old(museum-heading-out) {
  animation:museum-dissolve-out 115ms ease-in-out both;
}
html.room-dissolve::view-transition-new(museum-heading-in) {
  animation:museum-dissolve 155ms 80ms ease-out both;
}
.exhibition {
  height: 100svh;
  min-height: 640px;
  position: relative;
  overflow: hidden;
}

.exhibition .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.gal-stage {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}

.gal-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline-offset: -5px;
  /* Fade the cards behind the controls while the underlying sheet stays visible. */
  mask-image: linear-gradient(to top, transparent 22px, #000 80px);
}

.gal-hero {
  position: absolute;
  z-index: 2;
  top: 12%;
  inset-inline: 0;
  width: clamp(280px,29%,475px);
  margin-inline: auto;
  text-align: center;
  pointer-events: none;
}

.gal-hero h1 {
  font: 400 clamp(72px,min(7.8vw,13svh),140px)/1.1 Palatino,'Palatino Linotype','Book Antiqua','Iowan Old Style',serif;
  letter-spacing: -.07em;
  margin-bottom: clamp(14px,1.45vw,22px);
}
.gal-hero h1 span {display:block;}
.gal-hero h1 span:first-child {letter-spacing:-.05em;}
.gal-hero h1:focus {outline:none;}
@media (min-width:801px) and (max-height:780px) {
  .gal-hero {top:max(75px,10%);}
  .gal-hero h1 {font-size:clamp(67px,min(7.8vw,11.8svh),110px);}
  .gal-hero .gal-search {margin-top:12px;}
}
@media (min-width:801px) and (max-height:690px) {
  .gal-hero h1 {font-size:clamp(65px,11svh,76px);margin-bottom:12px;}
  .gal-hero .gal-search {margin-top:6px;}
  .exhibition .gal-bottom {padding-bottom:12px;}
}
.gallery-search-empty {padding:12px;font-size:11px;}
.back-to-top {
  position:fixed;
  right:max(20px,env(safe-area-inset-right));
  bottom:max(20px,env(safe-area-inset-bottom));
  z-index:20;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--rule);
  border-radius:50%;
  color:var(--ink);
  background:var(--paper);
  box-shadow:0 2px 12px #0001;
  font:21px/1 var(--sans);
}
.back-to-top[hidden] {display:none;}
.gallery-paper + .footer {padding-right:max(var(--page-gutter),82px);}
.back-to-top span {transition:transform .18s ease-out;}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .back-to-top:hover span {transform:translateY(-2px);}
}

.gal-hero p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: .04em;
}

.gal-search {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  pointer-events: auto;
}

.gal-search input {
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  padding: 10px 0;
  flex: 1;
  min-width: 0;
  min-height: 44px;
}

.gal-search button {
  font-size: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  flex-shrink: 0;
}

.gal-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 10px;
  gap: 20px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 24px;
  pointer-events: none;
}

.gal-bottom .gal-label {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
}

.gal-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gal-controls .key-hint {
  color: var(--muted);
  font-size: 12px;
}

.gal-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  z-index: 15;
  border: 1px solid var(--rule);
  pointer-events: auto;
}

.gal-search-results:empty {
  display: none;
}

.gal-search-results button {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: left;
  font-size: var(--type-ui);
}

.gal-search-results button:hover {
  background: #8881;
}

.gal-loading {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .15em;
}

.gal-loading[hidden] {
  display: none;
}

.catalog-title {
  font: 400 clamp(50px,8.5vw,140px)/.93 var(--sans);
  letter-spacing: -.075em;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 38px 0 28px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
}

.filters {
  display: flex;
  gap: 20px;
  font-size: var(--type-ui);
}

.filters button {
  color: var(--muted);
  min-height: 44px;
}

.filters button.active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 45px 28px;
}

.art-tile {
  position: relative;
}

.art-tile>a {
  display: block;
}

.art-tile .tile-image {
  aspect-ratio: 1.02;
  overflow: hidden;
  background: #d8d5c6;
}

.art-tile:nth-child(3n+2) .tile-image {
  aspect-ratio: .83;
}

.art-tile img {
  transition: transform .65s var(--ease);
}

.art-tile>a:hover img {
  transform: scale(1.045);
}

.tile-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin: 16px 0 8px;
  color: var(--muted);
}

.art-tile h2 {
  font: 26px var(--serif);
  letter-spacing: -.04em;
}

.art-tile p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.save-icon {
  position: absolute;
  right: 11px;
  top: 11px;
  z-index: 1;
  border: 1px solid #fff5;
  background: #f4f4efde;
  color: #333;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  transition: background .2s, transform 90ms ease-out;
}

.save-icon.saved {
  background: #333;
  color: #fff;
}

.catalog-end {
  font: clamp(32px,5vw,70px)/1.1 var(--sans);
  letter-spacing: -.055em;
  margin: 100px 0 20px;
  max-width: 740px;
}

.detail-page {
  --rule: #0002;
  --muted: #41463c;
  --ink: #242522;
  --paper: var(--work-color);
  --paper-veil-amount: 78%;
  min-height: 100svh;
}

.dark .detail-page {
  --paper: #1c211c;
  --ink: #e4e8da;
  --rule: #fff2;
  --muted: #bec5b2;
  --paper-veil-amount: 65%;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.detail-top a {
  font-size: var(--type-ui);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.detail-heading {
  font: 400 clamp(48px,7.4vw,112px)/1.02 var(--serif);
  letter-spacing: -.065em;
  margin: 0 0 12px;
}

.detail-subtitle {
  font: italic 18px var(--serif);
  margin-bottom: 35px;
}

.work-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 6vw;
  align-items: start;
}

.work-image {
  position: relative;
  aspect-ratio: 1.03;
  overflow: hidden;
}

.work-image.lens-on {
  cursor: crosshair;
}

.image-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: var(--type-ui);
  gap: 15px;
}

.lens-trigger {
  border-bottom: 1px solid;
  padding-bottom: 3px;
  font-size: var(--type-ui);
  min-height: 44px;
}

.poem-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 15px;
  margin-bottom: 22px;
}

.poem-lines {
  font: 18px/1.9 var(--serif);
  letter-spacing: .025em;
}

.poem-lines span {
  display: block;
}

.poem-lines span:nth-child(4n) {
  margin-bottom: 12px;
}

.author-strip {
  margin-top: 35px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: var(--type-ui);
}

.author-avatar {
  height: 34px;
  width: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 17px var(--serif);
}

.author-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.work-story {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 9vw;
  padding: 85px 0 60px;
  margin-top: 60px;
  border-top: 1px solid var(--rule);
}

.work-story blockquote {
  font: clamp(26px,3.2vw,47px)/1.35 var(--serif);
  letter-spacing: -.03em;
}

.work-story p {
  font-size: var(--type-body);
  line-height: 1.9;
  max-width: 560px;
}

.work-related {
  margin-top: 50px;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}

.work-related h2 {
  font: 30px var(--serif);
  margin-bottom: 30px;
}

.work-related .tile-image {
  aspect-ratio: 1.3;
}

.work-related .art-tile h2 {
  font-size: 20px;
}

.zoom-lens {
  width: 230px;
  height: 230px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 35;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  display: none;
  border: 1px solid #fffa;
  box-shadow: 0 14px 28px #20201622;
  contain: strict;
  background: #f4f4ef;
  will-change: transform;
}

.zoom-lens canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.zoom-lens:after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 17px #30301f20,inset 5px 5px 9px #fff7,inset -5px -8px 12px #8e7e5730;
  background: radial-gradient(ellipse at 35% 30%,transparent 58%,#fff4 82%,#fff9 96%,#5552 100%);
}

.step-nav {
  display: flex;
  gap: 24px;
  font-size: 10px;
  margin: 20px 0 0;
  color: var(--muted);
}

.step-nav span {
  padding-bottom: 9px;
  border-bottom: 1px solid transparent;
}

.step-nav span.active {
  border-color: var(--ink);
  color: var(--ink);
}

.preview-art {
  position: relative;
  max-width: 550px;
  margin: auto;
  aspect-ratio: .95;
  overflow: hidden;
  background: #e6e7df;
}

.preview-art.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999b8f;
}

.preview-art.empty:before,.preview-art.empty:after {
  content: '';
  width: 50%;
  height: 65%;
  border: 1px solid #c7cbbe;
  position: absolute;
  transform: rotate(-8deg);
}

.preview-art.empty:after {
  transform: rotate(8deg);
}

.preview-art.empty span {
  font: 17px var(--serif);
  background: var(--paper);
  padding: 10px;
  z-index: 1;
}

.preview-art.frame-paper {
  padding: 22px 22px 46px;
  background: #e7e3d6;
  box-shadow: 0 6px 14px #2221;
}

.preview-art.frame-thin {
  padding: 5px;
  background: #37392d;
}

.preview-room {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8vw;
  align-items: center;
}

.preview-mount {
  padding: 40px 55px;
  background: #e9e6dc;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 80px #00000004;
}

.preview-mount .preview-art {
  width: 100%;
  max-width: 380px;
}

.museum-label {
  font: 10px/1.8 var(--sans);
  padding: 25px 0 0;
  width: 100%;
  max-width: 380px;
}

.museum-label h2 {
  font: 23px var(--serif);
  margin-bottom: 5px;
}

.preview-copy h2 {
  font: 38px/1.2 var(--serif);
  letter-spacing: -.04em;
  margin: 20px 0;
}

.preview-copy p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 25px;
}

.publish-controls {
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  padding-top: 20px;
}

.status-stamp {
  font-size: 10px;
  border: 1px solid;
  padding: 5px 10px;
  display: inline-block;
  transform: rotate(-4deg);
  color: var(--accent);
}

.about-hero {
  padding: 32px var(--page-gutter) 70px;
  min-height: calc(100svh - 87px);
  position: relative;
  overflow: hidden;
  max-width: var(--page-max);
  margin: 0 auto;
}

.about-title {
  font: 400 clamp(54px,7.75vw,126px)/1.04 Arial,sans-serif;
  letter-spacing: -.065em;
  white-space: pre;
  margin-bottom: 17vh;
}

.about-body {
  font: 24px/1.55 var(--serif);
  max-width: 600px;
  white-space: pre-line;
  letter-spacing: -.025em;
}

.about-lens-note {
  position: absolute;
  bottom: 35px;
  right: var(--page-gutter);
  font-size: 12px;
  color: var(--muted);
}

.about-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  border-top: 1px solid var(--rule);
  padding-top: 45px;
}

.about-notes h2 {
  font: 40px var(--serif);
  letter-spacing: -.04em;
}

.about-notes p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 25px;
}

.reading-dialog {
  max-width: 480px;
}

.reading-dialog .poem-lines {
  padding: 15px 25px;
  font-size: 19px;
}

.reading-dialog h2 {
  font-size: 36px;
}

.poem-heading button {
  font-size: var(--type-ui);
  min-height: 44px;
}

.primary:active:not(:disabled),.secondary:active:not(:disabled),.circle-button:active,.menu-button:active,.save-icon:active,.gal-search button:active,.filters button:active {
  transform: translateY(1px);
}

.text-link:active {
  opacity: .75;
}

@media(max-width:1100px) {
  .site-nav {
    gap: 20px;
  }

  .poem-lines {
    font-size: 16px;
  }

  .work-layout {
    gap: 5vw;
  }

  .preview-mount {
    padding: 35px;
  }

}

@media(max-width:800px) {
  :root {
    --page-gutter: 5vw;
  }

  .site-header {
    height: 75px;
    padding: 12px var(--page-gutter);
    gap: 10px;
  }

  .logo {
    font-size: 18px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 12px var(--page-gutter);
    background-color: var(--paper);
    border-bottom: 1px solid var(--rule);
    z-index: 40;
    gap: 8px;
    font-size: 13px;
  }

  .site-header.menu-open .site-nav {
    display: flex;
    justify-content: space-between;
  }

  .menu-button {
    display: grid;
    font-size: 18px;
  }

  .header-tools {
    gap: 6px;
  }

  .page {
    padding: 35px var(--page-gutter) 60px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .page-title {
    font-size: 51px;
  }

  .page-caption {
    font-size: 14px;
  }

  .footer {
    padding: 25px var(--page-gutter);
    font-size: 12px;
    gap: 14px;
    align-items: flex-start;
  }

  .footer-links {
    gap: 4px 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .exhibition {
    min-height: 620px;
  }

  .gal-hero {
    top: clamp(88px,14svh,140px);
    width: min(84%,290px);
  }

  .gal-hero h1 {
    font-size: clamp(64px,min(20vw,12svh),108px);
  }

  .gal-hero p {
    font-size: 13px;
  }

  .gal-bottom {
    gap: 12px;
  }

  .gal-controls {
    gap: 8px;
  }

  .gal-controls .key-hint {
    display: none;
  }

  .gal-bottom .gal-label {
    max-width: 130px;
    font-size: 11px;
  }

  .gal-bottom .text-link {
    font-size: 12px;
  }

  .gal-search {
    max-width: 290px;
    margin-top: 15px;
  }

  .gal-search input {
    font-size: var(--type-body);
  }

  .art-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 32px 18px;
  }

  .art-tile h2 {
    font-size: 21px;
  }

  .catalog-title {
    font-size: 58px;
  }

  .catalog-toolbar {
    margin-top: 20px;
  }

  .filters {
    gap: 15px;
    font-size: 13px;
  }

  .work-layout {
    grid-template-columns: 1fr;
  }

  .detail-heading {
    font-size: 54px;
  }

  .detail-subtitle {
    font-size: 14px;
  }

  .work-image {
    aspect-ratio: 1.04;
  }

  .work-poem {
    padding-top: 25px;
  }

  .poem-lines {
    font-size: 18px;
  }

  .work-story {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 35px;
    padding-top: 40px;
  }

  .work-story blockquote {
    font-size: 30px;
  }

  .work-related .art-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .work-related .art-tile:last-child {
    display: none;
  }

  .step-nav {
    gap: 18px;
    font-size: 9px;
  }

  .preview-art.frame-paper {
    padding: 12px 12px 30px;
  }

  .preview-room {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .preview-mount {
    min-height: 400px;
    padding: 25px 35px;
  }

  .preview-copy h2 {
    font-size: 32px;
  }

  .about-hero {
    padding: 30px var(--page-gutter) 80px;
  }

  .about-title {
    font-size: 9.55vw;
    line-height: 1.1;
    margin-bottom: 19vh;
  }

  .about-body {
    font-size: 20px;
    max-width: 95%;
    line-height: 1.6;
  }

  .about-lens-note {
    font-size: 12px;
    right: var(--page-gutter);
    bottom: 25px;
  }

  .about-notes {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .zoom-lens {
    width: 180px;
    height: 180px;
  }

  .catalog-end {
    font-size: 38px;
  }

  .primary,.secondary {
    min-height: 44px;
    padding: 11px 18px;
  }

  .footer>span {
    max-width: 160px;
  }

  .gal-bottom>div:first-child {
    max-width: 135px;
  }

  .gal-controls {
    flex-shrink: 0;
  }

  .gal-controls .text-link {
    white-space: nowrap;
    gap: 10px;
  }


}

@media (max-width:800px) and (max-height:740px) {
  .gal-hero {top:max(76px,10%);}
  .gal-hero h1 {font-size:clamp(60px,min(18.5vw,9.8svh),82px);}
  .gal-search {margin-top:8px;}
  .gal-bottom {padding-bottom:16px;}
}

@media(max-width:420px) {
  .art-grid {
    gap: 27px 12px;
  }

  .art-tile h2 {
    font-size: 19px;
  }

  .tile-meta {
    font-size: 9px;
  }

  .preview-art {
    max-width: 330px;
  }

  .step-nav {
    gap: 14px;
  }

  .page-title {
    font-size: 46px;
  }

  .site-header .logo {
    font-size: 16px;
  }

  .catalog-toolbar>span {
    display: none;
  }

  .gal-bottom>div:first-child {
    flex: 1;
    min-width: 0;
  }

  .gal-bottom .gal-label {
    max-width: 100px;
  }

}

@media (max-width:560px) and (max-height:740px) {
  .gal-bottom {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"visit visit" "caption actions";
    gap:0 12px;
  }
  .gal-bottom > div:first-child {display:contents;}
  .gal-bottom .gal-scroll-link {grid-area:visit;justify-self:start;}
  .gal-bottom .gal-label {grid-area:caption;align-self:start;max-width:none;margin-top:3px;}
  .gal-bottom .gal-controls {grid-area:actions;align-self:end;}
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
  }

}

.gal-bottom button,.gal-bottom a {
  pointer-events: auto;
}
