/* Exhibit reimaginings: self-contained, locally styled, no CDN/fonts/images.
   Each exhibit is an honest reinterpretation of a 2018 idea, not a copy of
   the original historical page. See Git history for the initial source. */
@layer components {
  .exhibit-page { padding-block: 3rem 6rem; }
  .exhibit-heading { max-width: 920px; margin: 1rem 0 1.5rem; }
  .exhibit-lead { max-width: 790px; font-size: clamp(1.05rem,1.75vw,1.3rem); line-height: 1.75; color: var(--muted); }
  .exhibit-intro { display: grid; grid-template-columns: 1fr 270px; gap: clamp(1rem,5vw,4rem); align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 2.5rem; }
  .exhibit-side { padding: 1.25rem; background: #e5ebe2; border: 1px solid #adbaae; font-size: .88rem; }
  .exhibit-side p { margin-block: .7rem; }
  .exhibit-side a { display: inline-block; margin-block: .25rem; }
  .exhibit-studio { margin-block: 3rem; padding: clamp(1rem,3vw,2.4rem); background: #fffdf8; border: 1px solid var(--line); }
  .exhibit-studio h2 { margin-bottom: .75rem; }
  .exhibit-studio > p { max-width: 760px; margin-bottom: 1.5rem; }
  .scene-guide { margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--line); }
  .scene-guide > p { max-width:78ch; margin-block:.85rem; }
  .scene-guide-layers { display:grid; grid-template-columns:9rem minmax(0,1fr); gap:.85rem 1.5rem; margin-block:1.25rem; max-width:85ch; }
  .scene-guide-layers dt { font-weight:750; }
  .scene-guide-layers dd { margin:0; color:var(--muted); }
  .exhibit-footnotes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-bottom: 4rem; }
  .exhibit-footnotes article { padding: 1.6rem; border: 1px solid #b7c1b7; background: #e7ebe3; }
  .exhibit-footnotes h3 { font-size: 1.3rem; margin-bottom: .6rem; }
  .exhibit-footnotes p { color: var(--muted); }
  .exhibit-footnotes pre { margin-top: .8rem; }
  .exhibit-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.4rem; font-weight: 800; }
  .exhibit-artwork { border: 9px solid #203831; background: #203831; min-height: 440px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); grid-template-rows: repeat(6, minmax(50px,1fr)); gap: 8px; }
  .exhibit-artwork > span { display: block; min-width: 0; }
  .exhibit-artwork > span:nth-child(1) { grid-area: 1/1/4/3; background: #d2aa5a; }
  .exhibit-artwork > span:nth-child(2) { grid-area: 1/3/3/7; background: #e7e0ca; }
  .exhibit-artwork > span:nth-child(3) { grid-area: 1/7/5/9; background: #c35c47; }
  .exhibit-artwork > span:nth-child(4) { grid-area: 4/1/7/4; background: #a9c2bc; }
  .exhibit-artwork > span:nth-child(5) { grid-area: 3/3/5/5; background: #dd907c; }
  .exhibit-artwork > span:nth-child(6) { grid-area: 3/5/6/7; background: #d0c9b7; }
  .exhibit-artwork > span:nth-child(7) { grid-area: 5/7/7/9; background: #87a9bb; }
  .exhibit-artwork > span:nth-child(8) { grid-area: 6/4/7/7; background: #e3ba5f; }
  .exhibit-artwork > span:nth-child(9) { grid-area: 5/4/6/5; background: #eae4d5; }
  .exhibit-flex-art { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1rem; }
  .exhibit-flex-art > a { flex: 1 1 195px; min-height: 245px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; background: #e2c17c; color: #20332e; border: 1px solid #8e8d73; text-decoration: none; transition: transform .18s ease; }
  .exhibit-flex-art > a:nth-child(2) { background: #c5d3c7; }
  .exhibit-flex-art > a:nth-child(3) { background: #e3a28f; }
  .exhibit-flex-art > a:nth-child(4) { background: #aec7d2; }
  .exhibit-flex-art > a:hover, .exhibit-flex-art > a:focus-visible { transform: translateY(-5px); }
  .exhibit-flex-art > a strong { font: 500 clamp(1.45rem,2vw,2rem) var(--display); }
  .exhibit-flex-art > a span { font-size: .84rem; text-decoration: underline; text-underline-offset: .2em; font-weight: 800; }
  .exhibit-flex-art > a i { font-style: normal; font-size: 3rem; }
  .depth-settings { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin-bottom:1.1rem; }
  .depth-settings label { font-weight:750; }
  .depth-settings input { width:20px; height:20px; accent-color:#286d69; }
  .depth-scene {
    position:relative; isolation:isolate; overflow:hidden; width:100%;
    aspect-ratio:1.72; min-height:230px; max-height:600px;
    border:1px solid #4b8a83; border-radius:15px; background:#083742;
    box-shadow:0 18px 46px #0a333544,inset 0 1px 0 #c4f0d933;
  }
  .depth-scene .scene-art { display:block; width:100%; height:100%; }
  .exhibit-ui-demo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
  .exhibit-ui-demo article { border: 1px solid #b4bdb1; background: #e9eee5; padding: 1.4rem; }
  .exhibit-ui-demo h3 { font-size: 1.4rem; margin-bottom: 1rem; }
  .sample-button { display: inline-block; border: 1px solid #2460a0; border-radius: .35rem; background: #0d6efd; color: white; text-decoration: none; font-size: .93rem; font-weight: 700; padding: .65rem .9rem; min-height: 44px; }
  .sample-button:hover { background: #084cba; color: white; }
  .sample-button-native { background: #214e43; border-color: #214e43; border-radius: 0; }
  .sample-button-native:hover { background: #12382f; }
  .exhibit-ui-demo pre { margin-top: 1rem; }
  .exhibit-history { color: var(--muted); border-left: 4px solid #b78356; padding: .4rem 1rem; margin-block: 1rem 2rem; }
}
@media (max-width: 750px) {
  .exhibit-intro, .exhibit-footnotes, .exhibit-ui-demo { grid-template-columns: minmax(0,1fr); }
  .exhibit-artwork { border-width: 5px; gap: 4px; min-height: 340px; }
  .exhibit-page { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .exhibit-flex-art > a { transition: none !important; }
}
:root[data-reduce-motion="true"] .exhibit-flex-art > a { transition: none !important; }
@media (forced-colors: active) {
  .exhibit-artwork > span { border: 2px solid CanvasText; }
  .exhibit-flex-art > a, .exhibit-ui-demo article { border: 2px solid CanvasText; }
  .depth-scene { border: 2px solid CanvasText; }
}

/* Painterly contours are inline SVG paths. CSS, not JavaScript, controls
   their depth transforms, cloud wisps and a single masked star shimmer.
   Unequal contours and pale facets keep the depth planes visually distinct. */
.depth-label-out{display:none}
.exhibit-studio:has(#depth-toggle:checked) .depth-label-in{display:none}
.exhibit-studio:has(#depth-toggle:checked) .depth-label-out{display:inline}
@layer components {
  .depth-scene .scene-layer {
    transition:transform 1.45s cubic-bezier(.24,.68,.17,1);
    transform-box:fill-box;
    transform-origin:50% 75%;
    will-change:auto;
  }
  /* The landmark stays anchored to its ridge. Only its scale and detail
     change with the native checkbox; the lamp never flashes or flickers. */
  .depth-scene .scene-watchtower {
    transform-box:fill-box;transform-origin:50% 100%;transform:scale(.55);
    transition:transform 1.45s cubic-bezier(.24,.68,.17,1);
  }
  .depth-scene .scene-watchtower-frame {opacity:.08;transition:opacity 1.45s ease;}
  .exhibit-studio:has(#depth-toggle:checked) .scene-watchtower {transform:scale(1.25);}
  .exhibit-studio:has(#depth-toggle:checked) .scene-watchtower-frame {opacity:1;}
  .depth-scene .scene-star-shimmer {
    pointer-events:none;
    animation:scene-star-shimmer 22s linear -8s infinite;
  }
  @keyframes scene-star-shimmer {
    from {transform:translateX(0);}
    to {transform:translateX(1500px);}
  }
  .depth-scene .scene-cloud {
    opacity:.8;
    transition:opacity 1.1s ease;
    transform-box:fill-box;
    transform-origin:center;
    pointer-events:none;
    animation:scene-cloud-drift 30s ease-in-out infinite;
  }
  .depth-scene .scene-cloud-back { animation-duration:34s; animation-delay:-13s; opacity:.65; }
  .depth-scene .scene-cloud-front { animation-duration:27s; animation-delay:-7s; opacity:.72; }
  .depth-scene .scene-cloud-middle { animation-duration:41s; animation-delay:-25s; opacity:.5; }
  @keyframes scene-cloud-drift {
    0%,100% { transform:translate(-12px,1px); opacity:0; }
    12% { opacity:0; }
    46% { transform:translate(0,-2px); opacity:.72; }
    78% { transform:translate(16px,-5px); opacity:0; }
  }
  .exhibit-studio:has(#depth-toggle:checked) .scene-layer-far { transform:translateY(-1%) scale(1.05); }
  .exhibit-studio:has(#depth-toggle:checked) .scene-layer-mid { transform:translateY(1%) scale(1.09); }
  .exhibit-studio:has(#depth-toggle:checked) .scene-layer-wave-a { transform:translateY(2%) scale(1.12); }
  .exhibit-studio:has(#depth-toggle:checked) .scene-layer-wave-b { transform:translateY(4%) scale(1.14); }
  .exhibit-studio:has(#depth-toggle:checked) .scene-layer-wave-c { transform:translateY(6%) scale(1.16); }
  .exhibit-studio:has(#depth-toggle:checked) .scene-layer-near { transform:translateY(7%) scale(1.19); }
  .exhibit-studio:has(#depth-toggle:checked) .scene-cloud { opacity:0; animation:none; }
}
@media (prefers-reduced-motion:reduce) {
  .depth-scene .scene-star-shimmer { animation:none!important; display:none; }
  .depth-scene :is(.scene-layer,.scene-watchtower,.scene-watchtower-frame) { transition:none!important; }
  .depth-scene .scene-cloud { animation:none!important; transition:none!important; opacity:.5; }
}
:root[data-reduce-motion="true"] .depth-scene .scene-star-shimmer { animation:none!important; display:none; }
:root[data-reduce-motion="true"] .depth-scene :is(.scene-layer,.scene-watchtower,.scene-watchtower-frame) { transition:none!important; }
:root[data-reduce-motion="true"] .depth-scene .scene-cloud { animation:none!important; transition:none!important; opacity:.5; }
@media (forced-colors:active) {
  .depth-scene { border:2px solid CanvasText; }
  .depth-scene :is(.scene-cloud,.scene-stars) { display:none; }
}

@media (max-width:600px) {
  .scene-guide-layers { grid-template-columns:minmax(0,1fr); gap:.3rem; }
  .scene-guide-layers dd { margin-bottom:.9rem; }
}
