:root {
  color-scheme: dark;
  --background: #080808;
  --text: #f0f0f0;
  --muted: #969696;
  --line: #303030;
  --panel: #161616;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--text); outline-offset: 5px; }
button, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 24px; z-index: 10; padding: 12px; background: var(--text); color: var(--background); }
.skip-link:focus { top: 16px; }

.page-header { height: 76px; margin-inline: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.signature { font-size: 16px; font-weight: 500; letter-spacing: -.035em; }
.signature span { margin-left: 8px; color: var(--muted); font-weight: 400; }
.header-links { display: flex; gap: 28px; font-size: 12px; }
.header-links a, .footer-links > a, .controls summary { display: inline-flex; align-items: center; min-height: 44px; }
.header-links span { margin-left: 5px; }
.gallery { margin-inline: 16px; }
.viewer { position: relative; height: calc(100svh - 234px); min-height: 360px; background: #030915; overflow: hidden; outline: none; }
.viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: inherit; }
.loading-note { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; background: #080808; color: var(--muted); font-size: 13px; pointer-events: none; }
.work-caption { min-height: 100px; padding: 22px 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.work-copy h1 { margin: 0 0 7px; font-size: 28px; font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.work-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.work-actions { display: flex; align-items: center; gap: 26px; font-size: 12px; white-space: nowrap; }
.work-actions a { display: inline-flex; align-items: center; min-height: 40px; }
.work-actions span { margin-left: 6px; }
.open-link { color: var(--muted); }
.download-link { padding-bottom: 5px; border-bottom: 1px solid #6c6c6c; }
.download-link:hover { text-decoration: none; border-color: var(--text); }

.page-footer { min-height: 58px; margin-inline: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.artwork-list { display: flex; align-self: stretch; gap: 28px; }
.artwork-list button { position: relative; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.artwork-list button[aria-selected="true"] { color: var(--text); }
.artwork-list button[aria-selected="true"]::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--text); }
.artwork-list button:hover { color: var(--text); }
.footer-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 11px; }
.controls { position: relative; }
.controls summary { list-style: none; cursor: pointer; }
.controls summary::-webkit-details-marker { display: none; }
.controls summary:hover, .controls[open] summary { color: var(--text); }
.controls-content { position: absolute; z-index: 4; bottom: calc(100% + 8px); right: 0; width: 270px; padding: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 12px; line-height: 1.6; }
.controls-content p { margin: 0 0 18px; }
.controls-content dl { margin: 0; }
.controls-content dl div { display: flex; align-items: center; justify-content: space-between; margin-block: 8px; }
.controls-content dt, .controls-content dd { margin: 0; }
.controls-content dd { color: var(--muted); }
.controls-content kbd { font: 11px "Courier New", monospace; }
.controls-content .controls-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.noscript-note { padding-inline: 16px; color: var(--muted); font-size: 13px; }
.noscript-note a { text-decoration: underline; }

@media (min-width: 1800px) {
  .page-header { height: 88px; }
  .viewer { height: calc(100svh - 258px); }
  .work-caption { min-height: 110px; }
  .page-footer { min-height: 60px; }
}
@media (max-width: 700px) {
  .page-header { height: 64px; margin-inline: 20px; gap: 12px; }
  .signature { font-size: 14px; }
  .signature span { margin-left: 4px; }
  .header-links { gap: 18px; font-size: 11px; }
  .header-links span { margin-left: 2px; }
  .gallery { margin-inline: 0; }
  .viewer { height: 59svh; min-height: 300px; }
  .work-caption { padding: 23px 20px 24px; align-items: flex-start; flex-direction: column; gap: 20px; }
  .work-copy h1 { margin-bottom: 9px; font-size: 29px; }
  .work-copy p { font-size: 12px; }
  .work-actions { gap: 24px; font-size: 12px; }
  .page-footer { min-height: 62px; margin-inline: 20px; gap: 12px; }
  .artwork-list { gap: 22px; }
  .footer-links { gap: 18px; font-size: 10px; }
  .artwork-list button { font-size: 11px; }
  .controls-content { right: -60px; width: 260px; }
}
@media (max-width: 380px) {
  .page-header, .page-footer { margin-inline: 16px; }
  .header-links { gap: 14px; font-size: 10px; }
  .work-caption { padding-inline: 16px; }
  .footer-links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
