:root {
  --room: #301b29;
  --room-deep: #25151f;
  --paper: #fbf2e4;
  --soft: #d8bfc8;
  --rose: #eda9b2;
  --rule: #745660;
}

* { box-sizing: border-box; }
html { background: var(--room); scroll-padding-top: 24px; scrollbar-color: var(--rule) var(--room); }
body { margin: 0; background: var(--room); color: var(--paper); font: 400 14px/1.6 'Inter', sans-serif; }
button, output { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { color: inherit; }
button { cursor: pointer; border-radius: 0; }
a { border: 0; text-underline-offset: 5px; }
a:hover { color: var(--rose); border: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
button:disabled { cursor: default; }
p { color: inherit; margin: 0; }
h1, h2, h3 { color: inherit; font-weight: 300; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: 0 0 auto; }
::selection { background: var(--rose); color: var(--room-deep); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 5; padding: 14px 20px; background: var(--paper); color: var(--room); }
.skip-link:focus { top: 20px; }

.site-header { min-height: 94px; padding: 22px 4.2vw; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark img { width: 38px; height: 44px; padding: 5px; object-fit: contain; background: var(--paper); }
.wordmark span { font-family: 'Fraunces', serif; font-size: 29px; letter-spacing: -.02em; }
.site-header nav { display: flex; gap: 38px; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.site-header nav span { color: var(--soft); font-size: 14px; }

main { max-width: 1720px; margin-inline: auto; padding: 0 4.2vw; }
.room-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; padding: 33px 0 31px; }
.room-heading h1 { font-size: clamp(38px, 4.25vw, 64px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.room-heading h1 span { color: var(--rose); }
.room-heading p { color: var(--soft); margin-right: 3px; }
.viewing-room { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: clamp(32px, 4vw, 68px); align-items: start; }
.photograph-column { min-width: 0; }
.artwork-frame { position: relative; overflow: hidden; background: var(--room-deep); aspect-ratio: 1.4995; width: 100%; }
.artwork-frame > img { display: block; height: 100%; width: 100%; object-fit: contain; }
body[data-view='detail'] .artwork-frame > img { object-fit: cover; transform: scale(1.7); transform-origin: var(--detail-origin, 50% 50%); }
.view-label { position: absolute; bottom: 16px; left: 16px; background: var(--room-deep); color: var(--paper); padding: 5px 10px; font-size: 14px; }
.photograph-navigation { min-height: 64px; display: flex; align-items: center; gap: 16px; }
.work-position { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.image-status { font-size: 14px; color: var(--soft); }
#retry-image { color: var(--paper); background: transparent; border: 1px solid var(--rule); min-height: 44px; padding: 0 12px; }
.arrows { display: flex; margin-left: auto; gap: 12px; }
.arrow-button { display: grid; place-items: center; width: 48px; height: 48px; background: transparent; border: 1px solid var(--rule); }
.arrow-button:hover { background: var(--paper); color: var(--room); border-color: var(--paper); }
.looking-column { padding-top: 2px; }
.work-caption h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 13px; }
#work-medium { max-width: 26ch; color: var(--soft); line-height: 1.6; }
.work-facts { color: var(--soft); display: flex; gap: 24px; margin-top: 8px; }
.looking-tools { margin-top: 38px; }
.looking-tools h3 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; margin-bottom: 11px; color: var(--soft); }
.prompt-buttons { border-top: 1px solid var(--rule); }
.prompt-buttons button { padding: 12px 0; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.prompt-buttons button svg { opacity: .7; }
.prompt-buttons button:hover, .prompt-buttons button[aria-pressed='true'] { color: var(--rose); }
.prompt-buttons button[aria-pressed='true'] { border-bottom-color: var(--rose); }
.prompt-response { margin-top: 22px; min-height: 114px; }
#prompt-copy { font-family: 'Fraunces', serif; font-size: 23px; line-height: 1.4; font-style: italic; text-wrap: pretty; }
#prompt-attribution { display: block; margin-top: 10px; font-size: 14px; color: var(--soft); }
body[data-view='note'] #prompt-copy { font-size: 20px; }
.whole-work { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 4px 0 14px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 5px; color: var(--rose); }
.whole-work:disabled { color: var(--soft); text-decoration: none; }
.timer, .work-details { border-top: 1px solid var(--rule); }
summary { min-height: 48px; cursor: pointer; padding: 12px 0; }
summary:hover { color: var(--rose); }
.timer > p, .work-details > p { font-size: 14px; color: var(--soft); margin: 0 0 14px; line-height: 1.6; }
.timer-controls { display: flex; gap: 10px; align-items: center; padding: 0 0 18px; }
.timer-controls output { font-family: 'Fraunces', serif; font-size: 32px; font-variant-numeric: tabular-nums; margin-right: auto; }
.timer-controls button { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: transparent; }
.timer-controls button:hover:not(:disabled) { background: var(--paper); color: var(--room); }
.timer-controls button:disabled { color: var(--soft); opacity: .6; }
.details-note { font-style: italic; }

.works-index { border-top: 1px solid var(--rule); margin-top: 68px; padding: 50px 0 70px; scroll-margin-top: 24px; }
.index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.index-heading h2 { font-size: 40px; letter-spacing: -.02em; }
.index-heading p { color: var(--soft); }
.work-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px; }
.work-choice { text-align: left; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.thumbnail { display: block; aspect-ratio: 1.4995; overflow: hidden; margin-bottom: 18px; }
.thumbnail img { width: 100%; height: 100%; display: block; object-fit: contain; }
.choice-title { font-family: 'Fraunces', serif; font-size: 22px; line-height: 1.2; }
.choice-facts { color: var(--soft); margin-top: 7px; font-size: 14px; }
.choice-action { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--soft); }
.work-choice[aria-pressed='true'] { border-color: var(--rose); }
.work-choice[aria-pressed='true'] .choice-action, .work-choice:hover .choice-title { color: var(--rose); }
footer { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding: 32px 4.2vw; border-top: 1px solid var(--rule); color: var(--soft); font-size: 14px; }
footer p span { color: var(--rose); }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
footer a { display: inline-flex; min-height: 44px; align-items: center; }
footer > p:first-child { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.prototype-note { flex-basis: 100%; font-size: 14px; }

@media (min-width: 1500px) { .viewing-room { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 1000px) {
  .viewing-room { grid-template-columns: minmax(0, 1fr) 235px; gap: 28px; }
  .room-heading { padding: 30px 0; }
  .room-heading p { max-width: 21ch; }
  .looking-tools { margin-top: 26px; }
  .work-rail { gap: 16px; }
  .choice-title { font-size: 20px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 78px; padding: 14px 20px; gap: 14px; }
  .wordmark { gap: 9px; }
  .wordmark img { width: 28px; height: 38px; padding: 4px; }
  .wordmark span { font-size: 23px; white-space: nowrap; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 14px; }
  .site-header nav a:last-child { display: none; }
  main { padding: 0 20px; }
  .room-heading { display: block; padding: 26px 0 25px; }
  .room-heading h1 { font-size: 43px; }
  .room-heading p { max-width: none; margin-top: 12px; font-size: 14px; }
  .viewing-room { display: flex; flex-direction: column; gap: 0; }
  .photograph-column { width: 100%; }
  .artwork-frame { width: calc(100% + 40px); margin-inline: -20px; aspect-ratio: 1.32; }
  .artwork-frame > img { object-fit: contain; }
  .photograph-navigation { min-height: 64px; }
  .image-status { max-width: 15ch; }
  .arrows { gap: 8px; }
  .arrow-button { width: 44px; height: 44px; }
  .looking-column { width: 100%; padding-top: 7px; }
  .work-caption h2 { font-size: 32px; margin-bottom: 10px; }
  #work-medium { max-width: none; }
  .work-facts { margin-top: 4px; }
  .looking-tools { margin-top: 29px; }
  .prompt-buttons button { min-height: 48px; }
  .prompt-response { min-height: 0; margin-top: 22px; }
  #prompt-copy { max-width: 26ch; font-size: 25px; }
  .whole-work { margin: 12px 0 16px; }
  .works-index { margin-top: 44px; padding: 34px 0 44px; }
  .index-heading { display: block; margin-bottom: 27px; }
  .index-heading h2 { font-size: 36px; }
  .index-heading p { margin-top: 7px; }
  .work-rail { display: flex; flex-direction: column; gap: 24px; }
  .work-choice { display: grid; grid-template-columns: 43% minmax(0, 1fr); column-gap: 18px; padding-bottom: 24px; align-content: start; }
  .thumbnail { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .choice-title { grid-column: 2; font-size: 25px; }
  .choice-facts, .choice-action { grid-column: 2; }
  .choice-facts { margin-top: 8px; }
  .choice-action { padding-top: 10px; margin-top: 0; }
  footer { display: block; padding: 25px 20px; }
  footer nav { margin: 10px 0 18px; gap: 4px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
/* Skip navigation has a light ground, unlike the room's ordinary links. */
.skip-link:hover{color:var(--room)}
