:root {
  color-scheme: light;
  --paper: #eeeeec;
  --ink: #292b2a;
  --muted: #747771;
  --line: #cccfca;
  --frame-width: 28px;
  --art-height: min(60svh, 660px, max(280px, calc(100svh - 430px)));
  --edge: max(calc(var(--frame-width) + 20px), clamp(22px, 3.8vw, 68px));
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 0; background: var(--paper); }
body { margin: 0; min-height: 100svh; padding: var(--frame-width) 0; display: flex; flex-direction: column; color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: wait; opacity: .45; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 1.5px solid #555b54; outline-offset: 6px; }
button:hover { color: #080b08; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { display: block; }
.window-frame { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.window-frame > span { position: absolute; display: block; background: #fff; }
.frame-top, .frame-bottom { width: 100%; height: var(--frame-width); transform: scaleX(0); }
.frame-right, .frame-left { height: 100%; width: var(--frame-width); transform: scaleY(0); }
.frame-top { top: 0; left: 0; transform-origin: left center; }
.frame-right { top: 0; right: 0; transform-origin: center top; }
.frame-bottom { bottom: 0; right: 0; transform-origin: right center; }
.frame-left { bottom: 0; left: 0; transform-origin: center bottom; }
.frame-ready .frame-top { animation: frame-grow-x 320ms ease-out 0ms both; }
.frame-ready .frame-right { animation: frame-grow-y 320ms ease-out 320ms both; }
.frame-ready .frame-bottom { animation: frame-grow-x 320ms ease-out 640ms both; }
.frame-ready .frame-left { animation: frame-grow-y 320ms ease-out 960ms both; }
@keyframes frame-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes frame-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.skip-link { position: absolute; top: -100px; left: var(--edge); z-index: 100; padding: 12px; background: var(--ink); color: white; }
.skip-link:focus { top: calc(var(--frame-width) + 10px); }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 14px var(--edge) 20px; min-height: 108px; }
.signature-button { width: 58px; height: 74px; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; justify-self: start; transition: opacity 180ms; }
.signature-button img { width: 48px; height: 62px; object-fit: contain; }
.signature-mark { width: 48px; height: 62px; fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.signature-button:hover { opacity: .58; }
.sound-toggle { justify-self: end; min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); padding: 8px 0 8px 10px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; justify-self: end; }
.share-toggle { width: 44px; height: 44px; padding: 10px; display: grid; place-items: center; color: var(--muted); }
.share-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.share-feedback { position: fixed; z-index: 100; top: calc(84px + env(safe-area-inset-top, 0px)); right: var(--edge); max-width: calc(100vw - 2 * var(--edge)); padding: 12px 18px; border: 1px solid #ffffffc2; border-radius: 22px; background: #f4f6f2ed; box-shadow: 0 4px 20px #27302417; font-size: 13px; pointer-events: none; }
.share-feedback:empty { opacity: 0; }
.share-dialog { width: 480px; }
.share-dialog input { width: 100%; min-height: 48px; padding: 12px; color: var(--ink); background: #ffffffa6; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.share-dialog-close { display: block; min-height: 44px; padding: 10px 20px; margin: 20px 0 0 auto; border: 1px solid var(--line); border-radius: 24px; font-size: 14px; }
@media (max-width: 1000px) { .header-actions .sound-toggle span { display: none; } }
.speaker { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sound-cross { display: none; }
.sound-toggle[aria-pressed="true"] .sound-wave { display: none; }
.sound-toggle[aria-pressed="true"] .sound-cross { display: initial; }
.gallery { flex: 1; width: 100%; outline: 0; padding: 0 var(--edge); }
/* Restored focus after a tap must not outline the full gallery container. */
html[data-focus-mode="pointer"] .gallery:focus { outline: none; }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 32px; min-height: 44px; margin: 0; }
.gallery-nav a { display: inline-flex; align-items: center; text-decoration: none; }
.gallery-wordmark { color: var(--ink); font-size: 25px; letter-spacing: -.035em; font-weight: 300; min-height: 44px; padding: 5px 0; }
.nav-link { font-size: 15px; color: #81847e; min-height: 44px; padding: 8px 0; white-space: nowrap; transition: color 180ms; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.work-section { text-align: center; }
.work-details { max-width: 620px; margin: 22px auto 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.work-details summary { cursor: pointer; width: fit-content; margin: auto; min-height: 44px; padding: 10px 8px; }
.work-details p { margin: 10px 0; }
.work-breadcrumb { margin-top: 8px; font-size: 12px; }
.work-breadcrumb a { color: inherit; text-underline-offset: 3px; }
.work-viewer { position: relative; touch-action: pan-y pinch-zoom; }
.stage { position: relative; height: var(--art-height); display: flex; justify-content: center; align-items: center; padding: 0 62px; }
.artwork { --art-ratio: .579831933; width: min(100%, calc(var(--art-height) * var(--art-ratio))); height: auto; max-height: var(--art-height); aspect-ratio: var(--art-ratio); min-width: 0; position: relative; display: grid; place-items: center; isolation: isolate; transition: opacity 220ms ease; user-select: none; -webkit-user-select: none; touch-action: pan-y pinch-zoom; }
.artwork > img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.artwork > svg { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: visible; }
.artwork.is-exploring { touch-action: none; }
.house-original { opacity: 1; transition: opacity .45s ease; pointer-events: none; }
.house-original.hidden-original { opacity: 0; transition: none; }
.piece { pointer-events: none; }
.piece-hit { fill: transparent; pointer-events: none; stroke: transparent; stroke-width: 2; }
.is-exploring .piece-hit { pointer-events: all; cursor: crosshair; }
.piece-hit:focus-visible { outline: none; stroke: #333; stroke-width: 2.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.is-exploring .piece-hit.audition { fill: #fff; fill-opacity: .18; transition: fill-opacity 420ms; }
.work-arrow { position: absolute; z-index: 2; top: calc(var(--art-height) / 2); transform: translateY(-50%); width: 58px; height: 126px; padding: 10px 13px; color: #343934; opacity: .68; transition: opacity .2s, transform .2s; }
.work-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .7; }
.work-arrow .mobile-chevron { display: none; }
.work-arrow:hover { opacity: 1; }
.previous { left: -10px; }
.next { right: -10px; }
.previous:hover { transform: translate(-3px, -50%); }
.next:hover { transform: translate(3px, -50%); }
.work-caption { display: flex; justify-content: center; align-items: center; margin: 16px 0 0; min-height: 28px; }
.caption-copy { display: flex; justify-content: center; align-items: baseline; gap: 14px; min-width: 0; }
.work-caption h1 { font-size: 21px; font-weight: 300; letter-spacing: .01em; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.work-counter { flex-shrink: 0; font-size: 10px; letter-spacing: .08em; color: #8a8d86; font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-counter span { margin: 0 3px; color: #aeb1aa; }
.interactive-controls { margin-top: 15px; }
.mode-switch { display: flex; justify-content: center; align-items: center; gap: 7px; }
.mode-button { font-size: 12px; color: #7c8178; min-height: 44px; padding: 8px 13px; border-radius: 12px; transition: background .18s, color .18s; }
.mode-button.active { color: #353b33; background: #ffffff85; font-weight: 500; }
.playback-row { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 51px; margin-top: 6px; }
.play-button { min-height: 44px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 20px; border: 1px solid #a8afa3; border-radius: 12px; font-size: 12px; font-weight: 400; transition: background .18s, border-color .18s; }
.play-button:hover { background: #e5e8e1; border-color: #6c7865; }
.play-button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1; }
.play-button .play-symbol { fill: currentColor; stroke: none; }
.pause-symbol { display: none; }
.reset-symbol { display: none; }
.play-button.is-reset .play-symbol, .play-button.is-reset .pause-symbol { display: none; }
.play-button.is-reset .reset-symbol { display: block; }
.play-button.is-playing .play-symbol { display: none; }
.play-button.is-playing .pause-symbol { display: block; }
.restart-button { width: 44px; height: 44px; padding: 12px; color: #626d5c; }
.restart-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.piece-progress { color: #777e72; font-size: 10px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: left; }
.archive-controls { min-height: 142px; padding-top: 17px; }
.archive-label { font-size: 12px; color: var(--muted); margin: 6px 0 23px; }
.text-link { font-size: 12px; color: #646e5d; min-height: 44px; padding: 8px 0; border-bottom: 1px solid #b7c0ae; }
.text-link span { margin-left: 8px; }
.footer-author { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.footer-author:hover { color: var(--ink); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--edge); min-height: 64px; font-size: 10px; color: #858a80; }
.footer-help { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; color: inherit; padding: 0; }
.footer-help > span[aria-hidden="true"], .menu-help > span[aria-hidden="true"] { display: inline-grid; flex: 0 0 15px; place-items: center; width: 15px; height: 15px; border: 1px solid #b4baaf; border-radius: 50%; font-size: 9px; }
.load-error { margin: 15px auto; font-size: 12px; line-height: 1.5; max-width: 420px; color: #7d4938; }
.load-error button { min-height: 44px; padding: 8px 0; text-decoration: underline; }
.screenreader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gallery-dialog { padding: 33px 40px 38px; border: 1px solid #d5d9d0; border-radius: 2px; background: #f4f4f0; color: var(--ink); max-width: min(790px, calc(100vw - 2 * var(--edge))); width: 100%; max-height: calc(100svh - 2 * var(--edge)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 80px #24292012; }
.gallery-dialog::backdrop { background: #e0e3dbba; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: 10px; color: #7c8476; }
.dialog-close { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; margin: -6px -9px -6px 0; padding: 0; color: #26302a; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.dialog-close svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html[data-focus-mode="pointer"] .dialog-close:focus { outline: none; }
html[data-focus-mode="keyboard"] .dialog-close:focus { outline: 1.5px solid #555b54; outline-offset: 4px; }
.gallery-dialog h2 { font-size: 30px; line-height: 1.2; font-weight: 300; margin: 24px 0 16px; letter-spacing: -.025em; }
.dialog-intro { color: #7c8475; font-size: 13px; line-height: 1.65; max-width: 440px; }
.help-dialog { max-width: min(560px, calc(100vw - 36px)); }
.help-dialog p { font-size: 14px; line-height: 1.85; color: #66705e; }
.help-section { margin-top: 25px; }
.help-section h3 { font-weight: 400; font-size: 15px; margin: 0 0 7px; }
.help-section p { margin: 0; }
.help-dialog .keyboard-hint { font-size: 11px; line-height: 1.8; margin-top: 30px; color: #8d9683; }
.site-menu-dialog {
  position: fixed;
  inset: calc(var(--frame-width) + 18px) auto auto var(--edge);
  margin: 0;
  width: 350px;
  max-width: calc(100vw - 2 * var(--edge));
  max-height: calc(100svh - 2 * var(--edge));
  padding: 25px 29px 24px;
  border: 0;
  border-radius: 26px;
  background: #f4f6f2d9;
  box-shadow: inset 0 1px 0 #fffffff0, inset 1px 0 0 #ffffff80, inset 0 -1px 0 #ffffff66, 0 12px 38px #27302417, 0 2px 8px #2730240a;
}
.site-menu-dialog::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-menu-dialog .dialog-close { margin: -6px 0 -6px -9px; }
.site-menu-dialog[data-focus-mode="pointer"] button:focus { outline: none; }
.site-menu-dialog[data-focus-mode="keyboard"] button:focus { outline: 1.5px solid #555b54; outline-offset: 4px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-menu-dialog {
    background: linear-gradient(135deg, #ffffff52, #f0f4ec2e);
    -webkit-backdrop-filter: blur(10px) saturate(1.35);
    backdrop-filter: blur(10px) saturate(1.35);
  }
}
/* Contrast and transparency are independent preferences. Keep the glass when
   stronger contrast is requested; only reduced transparency removes it. */
@media (prefers-contrast: more) {
  .site-menu-dialog { color: #111811; }
  .site-menu-dialog .menu-links > button { font-weight: 400; }
  .site-menu-dialog .language-switch button { color: #354031; }
  .site-menu-dialog .language-switch button[aria-pressed="true"] { color: #111811; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-menu-dialog { background: #f4f6f2; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.menu-wordmark { font-size: 25px; letter-spacing: -.035em; }
.menu-links { display: grid; margin: 32px 0 16px; gap: 3px; }
.menu-links > button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 47px; padding: 9px 0; text-align: left; font-size: 19px; font-weight: 300; }
.menu-links > button[aria-current="page"] { font-weight: 500; }
.menu-help { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 18px; padding: 8px 0; text-align: left; font-size: 13px; font-weight: 400; }
.menu-help > span[aria-hidden="true"] { border-color: currentColor; }
.language-switch { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.language-switch button { font-size: 12px; letter-spacing: .04em; min-width: 48px; min-height: 48px; padding: 8px 4px; color: #8a9182; }
.language-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
@media (min-height: 1050px) and (min-width: 701px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .interactive-controls { margin-top: 20px; }
}
@media (hover: none), (pointer: coarse) {
  :root { --frame-width: 0px; }
  .window-frame { display: none; }
  .is-line-art.is-exploring .piece-hit:not(:focus-visible),
  .is-exploring .piece-hit.has-drawing:not(:focus-visible) { stroke-width: 12; vector-effect: non-scaling-stroke; }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  :root { --frame-width: 0px; --art-height: min(60svh, max(220px, calc(100svh - 400px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))); --edge: 20px; }
  .window-frame { display: none; }
  .site-header { grid-template-columns: 92px minmax(0, 1fr) 92px; gap: 4px; min-height: 84px; padding: max(12px, env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right)) 18px max(var(--edge), env(safe-area-inset-left)); }
  .header-actions { gap: 4px; }
  .signature-button { width: 44px; height: 54px; }
  .signature-button img, .signature-mark { width: 35px; height: 48px; }
  .sound-toggle { width: 44px; height: 44px; justify-content: center; padding: 10px; }
  .sound-toggle span { display: none; }
  .gallery-nav { min-width: 0; min-height: 44px; gap: 0; }
  .gallery-wordmark { font-size: 25px; }
  .gallery-nav .nav-link { display: none; }
  .gallery { padding-left: max(var(--edge), env(safe-area-inset-left)); padding-right: max(var(--edge), env(safe-area-inset-right)); }
  .stage { height: auto; padding: 0; }
  .work-caption { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; min-height: 48px; margin-top: 18px; }
  .caption-copy { display: grid; gap: 4px; text-align: center; }
  .work-caption h1 { font-size: 20px; line-height: 1.35; }
  .work-counter { font-size: 11px; }
  .work-arrow, .work-arrow:hover { position: static; transform: none; width: 48px; height: 48px; padding: 12px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f5f5f1; opacity: 1; }
  .work-arrow svg { width: 22px; height: 22px; stroke-width: 1.3; }
  .work-arrow .desktop-chevron { display: none; }
  .work-arrow .mobile-chevron { display: block; }
  .interactive-controls { max-width: 440px; margin: 16px auto 0; }
  .mode-switch { gap: 3px; }
  .mode-button { flex: 1; min-width: 0; min-height: 48px; font-size: 12px; padding: 9px 6px; }
  .mode-button.active { background: #ffffff99; }
  .playback-row { min-height: 50px; gap: 8px; margin-top: 12px; }
  .play-button { flex: 1; min-width: 0; min-height: 50px; padding: 12px 14px; border-color: #343c2e; background: #343c2e; color: #fff; font-size: 13px; line-height: 1.35; }
  .play-button:hover { background: #242d1f; border-color: #242d1f; color: #fff; }
  .play-button svg { flex: 0 0 16px; width: 16px; height: 16px; }
  .restart-button { flex: 0 0 44px; border: 1px solid #c3ccba; border-radius: 2px; padding: 11px; }
  .piece-progress { min-width: 35px; font-size: 11px; }
  .archive-controls { min-height: 0; padding: 14px 0 20px; }
  .archive-label { font-size: 12px; line-height: 1.5; margin: 4px 0 12px; }
  .text-link { font-size: 12px; line-height: 1.5; }
  .site-footer { gap: 14px; font-size: 10px; line-height: 1.5; min-height: 64px; padding: 8px max(var(--edge), env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left)); }
  .footer-help { flex: 0 0 auto; min-height: 44px; font-size: 11px; }
  .gallery-dialog { padding: 24px; max-width: min(790px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); max-height: calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .help-dialog { max-width: min(560px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  .gallery-dialog h2 { font-size: 28px; }
  .site-menu-dialog { inset: max(12px, env(safe-area-inset-top)) auto auto max(var(--edge), env(safe-area-inset-left)); max-width: calc(100vw - 2 * var(--edge) - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 23px 25px; }
}
@media (max-width: 360px) {
  :root { --edge: 16px; }
  .work-caption { gap: 8px; }
  .work-caption h1 { font-size: 18px; }
  .mode-button { padding-left: 3px; padding-right: 3px; }
  .play-button { padding-left: 10px; padding-right: 10px; gap: 7px; font-size: 12px; }
}
@media (max-height: 680px) and (min-width: 701px) and (hover: hover) and (pointer: fine) {
  :root { --frame-width: 20px; --art-height: min(53svh, max(240px, calc(100svh - 350px))); }
  .site-header { min-height: 72px; padding-top: 8px; padding-bottom: 10px; }
  .signature-button { height: 54px; width: 44px; }
  .signature-button img, .signature-mark { height: 44px; width: 32px; }
  .work-caption { margin-top: 12px; }
  .interactive-controls { margin-top: 9px; }
  .site-footer { padding-top: 8px; padding-bottom: 8px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .window-frame > span { animation: none !important; transform: none; }
}

@media (min-width: 701px) {
  .gallery-nav > :not([aria-current="page"]) { font-size: 15px; color: #81847e; letter-spacing: 0; }
  .gallery-nav > [aria-current="page"] { font-size: 25px; color: var(--ink); letter-spacing: -.035em; }
  .gallery-nav > :first-child { order: 0; }
  .gallery-nav > :last-child { order: 2; }
  .gallery-nav > [aria-current="page"] { order: 1; }
  .author-page .gallery-nav > .gallery-wordmark { order: 2; }
  .collection-page .gallery-nav > .gallery-wordmark { order: 0; }
  .menu-links > button[aria-current="page"] { font-size: 25px; font-weight: 400; }
}
