/* ==========================================================================
   exhibit-page.css — shared stylesheet for the museum "exhibit room" subpages
   Watercolor art-museum design language (Monet-inspired).
   Self-sufficient: these pages rely on no other CSS file.
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d8;
  --ink: #2e3a48;
  --ink-soft: #5a6a79; /* 4.53:1 on --paper-deep, 4.94:1 on --paper (WCAG AA) */
  --pond: #7fa8c9;
  --pond-deep: #4a7299;
  --pond-ink: #456a8f; /* text-safe pond: 4.61:1 on --paper-deep, 5.03:1 on --paper */
  --wisteria: #a292c4;
  --sage: #93b48b;
  --rose: #d98ba0;
  --gold: #cdb878;

  --font-display: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-deep) 58%,
    var(--paper) 100%
  );
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* clip (with hidden fallback) keeps the layout viewport at device width
   even when decorative fixed washes overflow — hidden alone let an
   unbreakable inline run inflate phones to a 577px viewport. */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pond-ink);
}

::selection {
  background: rgba(127, 168, 201, 0.3); /* pond at 30% — ink stays 8.2:1 */
  color: var(--ink);
}

/* Visible focus states */
a:focus-visible {
  outline: 2px solid var(--pond-deep);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Paper grain (SVG feTurbulence noise overlay) ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- Watercolor wash blobs ----------
   .wash-field stays static (zero height, no stacking context) so each fixed
   .wash can multiply-blend against the paper itself. gallery.js writes a
   --parallax length onto each .wash on scroll; that translate lives on the
   element while the drift animation lives on ::before, so the keyframes
   never stomp the inline custom property. (Mirrors gallery.css.) */

.wash-field {
  pointer-events: none;
}

.wash {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  transform: translate(var(--wash-x, 0px), calc(var(--parallax, 0px) + var(--wash-y, 0px)));
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wash::before {
  content: "";
  position: absolute;
  inset: 0;
  /* organic resting silhouette; drift keyframes morph it from here. Also the
     shape washes freeze into under reduced motion. */
  border-radius: 52% 48% 55% 45% / 48% 56% 44% 52%;
  filter: blur(14px);
  opacity: 0.55;
  will-change: transform;
}

.wash--pond {
  top: -16vh;
  right: -14vw;
  width: 58vw;
  height: 58vw;
  min-width: 26rem;
  min-height: 26rem;
}
.wash--pond::before {
  background:
    radial-gradient(circle at 38% 42%, rgba(127, 168, 201, 0.55) 0%, rgba(127, 168, 201, 0) 62%),
    radial-gradient(circle at 64% 58%, rgba(74, 114, 153, 0.32) 0%, rgba(74, 114, 153, 0) 58%),
    radial-gradient(circle at 50% 70%, rgba(147, 180, 139, 0.22) 0%, rgba(147, 180, 139, 0) 55%);
  animation: drift-a 44s ease-in-out infinite alternate;
  animation-delay: -7s;
}

.wash--wisteria {
  top: 34vh;
  left: -20vw;
  width: 52vw;
  height: 52vw;
  min-width: 24rem;
  min-height: 24rem;
}
.wash--wisteria::before {
  background:
    radial-gradient(circle at 55% 45%, rgba(162, 146, 196, 0.5) 0%, rgba(162, 146, 196, 0) 60%),
    radial-gradient(circle at 35% 65%, rgba(217, 139, 160, 0.26) 0%, rgba(217, 139, 160, 0) 55%),
    radial-gradient(circle at 70% 30%, rgba(127, 168, 201, 0.22) 0%, rgba(127, 168, 201, 0) 50%);
  animation: drift-b 67s ease-in-out infinite alternate;
  animation-delay: -23s;
}

.wash--sage {
  bottom: -18vh;
  right: -10vw;
  width: 48vw;
  height: 48vw;
  min-width: 22rem;
  min-height: 22rem;
}
.wash--sage::before {
  background:
    radial-gradient(circle at 45% 50%, rgba(147, 180, 139, 0.48) 0%, rgba(147, 180, 139, 0) 60%),
    radial-gradient(circle at 62% 38%, rgba(205, 184, 120, 0.3) 0%, rgba(205, 184, 120, 0) 55%),
    radial-gradient(circle at 30% 65%, rgba(127, 168, 201, 0.2) 0%, rgba(127, 168, 201, 0) 52%);
  animation: drift-c 55s ease-in-out infinite alternate;
  animation-delay: -38s;
}

/* Living watercolor: each blob wanders a wide, slow path while it swirls
   (progressing rotation) and breathes (scale pulse + asymmetric border-radius
   morph). Transform + border-radius only, so it stays on the compositor.
   The three keyframe sets travel different directions and rotate opposite
   ways; per-wash durations/delays keep them perpetually out of phase. */
@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 52% 48% 55% 45% / 48% 56% 44% 52%;
  }
  20% {
    transform: translate3d(-6vw, 4vh, 0) rotate(8deg) scale(1.06);
    border-radius: 46% 54% 48% 52% / 56% 44% 58% 42%;
  }
  40% {
    transform: translate3d(-10vw, 9vh, 0) rotate(18deg) scale(0.95);
    border-radius: 58% 42% 50% 50% / 44% 58% 42% 56%;
  }
  60% {
    transform: translate3d(-4vw, 11vh, 0) rotate(28deg) scale(1.1);
    border-radius: 50% 50% 42% 58% / 54% 46% 56% 44%;
  }
  80% {
    transform: translate3d(3vw, 5vh, 0) rotate(15deg) scale(1.02);
    border-radius: 44% 56% 54% 46% / 50% 52% 48% 50%;
  }
  100% {
    transform: translate3d(-2vw, -3vh, 0) rotate(34deg) scale(0.98);
    border-radius: 54% 46% 47% 53% / 46% 54% 45% 55%;
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.05);
    border-radius: 48% 52% 46% 54% / 54% 46% 56% 44%;
  }
  20% {
    transform: translate3d(7vw, -4vh, 0) rotate(-10deg) scale(0.96);
    border-radius: 55% 45% 54% 46% / 44% 58% 42% 56%;
  }
  40% {
    transform: translate3d(11vw, -9vh, 0) rotate(-22deg) scale(1.08);
    border-radius: 45% 55% 48% 52% / 58% 42% 56% 44%;
  }
  60% {
    transform: translate3d(5vw, -12vh, 0) rotate(-32deg) scale(0.93);
    border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%;
  }
  80% {
    transform: translate3d(-3vw, -6vh, 0) rotate(-18deg) scale(1.04);
    border-radius: 47% 53% 45% 55% / 52% 48% 54% 46%;
  }
  100% {
    transform: translate3d(2vw, 3vh, 0) rotate(-38deg) scale(1.01);
    border-radius: 53% 47% 52% 48% / 48% 54% 46% 52%;
  }
}

@keyframes drift-c {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 50% 50% 46% 54% / 46% 54% 48% 52%;
  }
  20% {
    transform: translate3d(-5vw, -5vh, 0) rotate(6deg) scale(1.07);
    border-radius: 58% 42% 52% 48% / 50% 48% 54% 46%;
  }
  40% {
    transform: translate3d(-9vw, -10vh, 0) rotate(16deg) scale(0.94);
    border-radius: 44% 56% 50% 50% / 56% 44% 52% 48%;
  }
  60% {
    transform: translate3d(-11vw, -4vh, 0) rotate(26deg) scale(1.12);
    border-radius: 52% 48% 44% 56% / 42% 58% 46% 54%;
  }
  80% {
    transform: translate3d(-4vw, 4vh, 0) rotate(12deg) scale(1.0);
    border-radius: 48% 52% 55% 45% / 54% 46% 50% 50%;
  }
  100% {
    transform: translate3d(3vw, -2vh, 0) rotate(30deg) scale(0.97);
    border-radius: 51% 49% 48% 52% / 49% 51% 47% 53%;
  }
}

/* ---------- Cursor paint canvas ----------
   gallery.js paints watercolor blooms here. Above the washes (z:0),
   below all content (z:2+). Mirrors gallery.css. */

#paint-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ---------- Golden-hour overlay ----------
   "monet" easter egg: gallery.js toggles html.golden for 6 seconds.
   The grain already owns body::after on these pages, so the golden wash
   rides body::before instead. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  background:
    radial-gradient(
      120% 90% at 50% 28%,
      rgba(255, 226, 158, 0.06) 0%,
      rgba(205, 170, 100, 0.26) 62%,
      rgba(152, 112, 72, 0.4) 100%
    ),
    linear-gradient(180deg, rgba(255, 214, 140, 0.16), rgba(217, 139, 160, 0.12));
  transition: opacity 1.2s ease;
}

html.golden body::before {
  opacity: 1;
}

/* ---------- Reveal-on-scroll ----------
   gallery.js adds .is-visible (with a staggered inline transition-delay).
   Hidden state only applies when JS is running (html.js is set by an
   inline script in <head>). Mirrors gallery.css. */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Visually hidden, available to assistive technology */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Top navigation ---------- */

.exhibit-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 5vw, 3rem);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(46, 58, 72, 0.35);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.monogram:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.back-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(46, 58, 72, 0.18);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.back-link:hover {
  color: var(--pond-ink);
  border-color: var(--pond-ink);
}

/* ---------- Page header (room entrance) ---------- */

/* Content sits above the washes (z:0) and the paint canvas (z:1). */
.exhibit-room {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 8vw, 7rem);
}

.room-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.exhibit-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.9rem, 8.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.exhibit-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 2.4rem;
}

.exhibit-intro {
  max-width: 41rem;
}

.exhibit-intro p {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.exhibit-intro p:last-child {
  margin-bottom: 0;
}

/* Small painted rule between header and works */
.brushstroke-rule {
  display: block;
  width: 6.5rem;
  height: 3px;
  border: 0;
  border-radius: 3px;
  margin: clamp(2.8rem, 6vw, 4.5rem) 0;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--rose) 45%,
    rgba(217, 139, 160, 0) 100%
  );
  opacity: 0.8;
}

/* ---------- Exhibits: framed paintings with placards ---------- */

.exhibit-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 9vw, 7.5rem);
}

.exhibit {
  margin: 0;
}

/* The painted frame: off-white mat, thin double ink border, hung shadow */
.exhibit-frame {
  position: relative;
  background: #fbf7ee;
  padding: clamp(1.1rem, 3.5vw, 2.1rem);
  border: 1px solid rgba(46, 58, 72, 0.28);
  box-shadow:
    0 1px 2px rgba(46, 58, 72, 0.1),
    0 14px 28px -14px rgba(46, 58, 72, 0.3),
    0 34px 56px -28px rgba(74, 114, 153, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* inner line of the double border */
.exhibit-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(46, 58, 72, 0.14);
  pointer-events: none;
}

.exhibit:nth-child(odd) .exhibit-frame {
  transform: rotate(-0.35deg);
}

.exhibit:nth-child(even) .exhibit-frame {
  transform: rotate(0.35deg);
}

.exhibit-frame:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 1px 2px rgba(46, 58, 72, 0.1),
    0 20px 34px -14px rgba(46, 58, 72, 0.33),
    0 44px 66px -28px rgba(74, 114, 153, 0.32);
  /* faint brightening of the mat — watercolor catching the light */
  background: #fdfaf3;
}

.exhibit-frame img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(46, 58, 72, 0.12);
}

/* Museum placard */
.placard {
  max-width: 32rem;
  margin: 1.6rem auto 0;
  padding: 1.4rem 1.6rem 1.5rem;
  background: rgba(251, 247, 238, 0.85);
  border: 1px solid rgba(46, 58, 72, 0.16);
  box-shadow: 0 8px 20px -14px rgba(46, 58, 72, 0.35);
  text-align: center;
}

.placard-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.placard-medium {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.placard-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink);
  text-align: left;
}

.placard-desc + .placard-desc {
  margin-top: 0.7rem;
}

.placard-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pond-ink);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(74, 114, 153, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.placard-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Two images hung side by side inside one frame (diptych) */
.exhibit-frame--diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 2.5vw, 1.5rem);
}

.exhibit-frame--diptych::before {
  inset: 7px;
}

@media (max-width: 600px) {
  .exhibit-frame--diptych {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.exhibit-footer {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  margin: 0 auto;
  padding: 2.4rem clamp(1.25rem, 5vw, 3rem) 3rem;
  border-top: 1px solid rgba(46, 58, 72, 0.16);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.exhibit-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 107, 122, 0.35);
  padding-bottom: 0.15rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.exhibit-footer a:hover {
  color: var(--pond-ink);
  border-color: var(--pond-ink);
}

.exhibit-footer .sep {
  color: var(--gold);
}

/* Flex-wrap so the credit line breaks gracefully instead of forcing the
   layout viewport wide on phones. */
.exhibit-footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.55em;
}

/* Page-scoped hangs: tall near-identical posters hang smaller (SunBasket),
   letterboxed desktop captures crop to their subject (JavaProjects). */
.room--narrow .exhibit-frame {
  max-width: 26rem;
  margin-inline: auto;
}


/* ---------- Reduced motion ---------- */

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

  /* The compound selectors out-rank the per-wash rules
     (.wash--pond::before etc.), which would otherwise keep animating. */
  .wash,
  .wash::before,
  .wash--pond::before,
  .wash--wisteria::before,
  .wash--sage::before {
    animation: none;
  }

  /* No eased cursor-follow parallax under reduced motion */
  .wash {
    transition: none;
  }

  /* Reveal targets show instantly; gallery.js never hides the canvas
     paint loop under reduced motion (it skips init / clears blooms). */
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .exhibit-frame,
  .exhibit-frame:hover,
  .skip-link,
  body::before {
    transition: none;
  }

  .exhibit:nth-child(odd) .exhibit-frame:hover {
    transform: rotate(-0.35deg);
  }

  .exhibit:nth-child(even) .exhibit-frame:hover {
    transform: rotate(0.35deg);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .monogram {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1rem;
  }

  .back-link {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .placard {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}

/* ==========================================================================
   EVENING EXHIBITION — dark theme. html.evening is applied pre-paint by an
   inline <head> script (localStorage 'sh-theme', else prefers-color-scheme).
   The museum after hours: slate walls, lamplit ink, a moonlit pond.
   ========================================================================== */

html.evening {
  color-scheme: dark;
  --paper: #232936;
  --paper-deep: #1c212c;
  --ink: #e9e3d3;
  --ink-soft: #b3ac9a;
  --pond-ink: #9fc2e0;
  --mat: #2b3140;
  --hairline: rgba(233, 227, 211, 0.16);
}

/* Deep variant of the wall gradient — darkest at the foot of the wall */
html.evening body {
  background-image: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-deep) 58%,
    #181d27 100%
  );
}

html.evening ::selection {
  background: rgba(159, 194, 224, 0.32); /* moonlit pond */
  color: var(--ink);
}

html.evening a:focus-visible {
  outline-color: var(--pond-ink);
}

/* Grain reads as paper tooth, not soot, against the night walls */
html.evening body::after {
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

/* Washes glow out of the dark instead of staining the paper */
html.evening .wash {
  mix-blend-mode: screen;
}

html.evening .wash::before {
  opacity: 0.34;
}

/* Cursor blooms become lamplight */
html.evening #paint-canvas {
  mix-blend-mode: screen;
}

/* Golden-hour easter egg, evening variant: a low gas-lamp warmth rather
   than late sun — screened on, and gentler. */
html.evening body::before {
  mix-blend-mode: screen;
  background:
    radial-gradient(
      120% 90% at 50% 28%,
      rgba(255, 214, 140, 0.3) 0%,
      rgba(205, 170, 100, 0.12) 55%,
      rgba(20, 16, 10, 0) 100%
    ),
    linear-gradient(180deg, rgba(255, 214, 140, 0.1), rgba(217, 139, 160, 0.07));
}

html.evening.golden body::before {
  opacity: 0.6;
}

/* ---------- Evening chrome: nav, links ---------- */

html.evening .monogram {
  border-color: rgba(233, 227, 211, 0.32);
}

html.evening .monogram:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

html.evening .back-link {
  border-bottom-color: var(--hairline);
}

html.evening .back-link:hover {
  border-bottom-color: var(--pond-ink);
}

/* ---------- Evening frames, mats & placards ---------- */

html.evening .exhibit-frame {
  background: var(--mat);
  border-color: rgba(233, 227, 211, 0.22);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 14px 28px -14px rgba(0, 0, 0, 0.55),
    0 34px 56px -28px rgba(6, 10, 18, 0.6);
}

html.evening .exhibit-frame::before {
  border-color: rgba(233, 227, 211, 0.12);
}

html.evening .exhibit-frame:hover {
  /* deeper, black-based shadows so the lift reads on the slate walls */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 20px 34px -14px rgba(0, 0, 0, 0.65),
    0 44px 66px -28px rgba(6, 10, 18, 0.7);
  /* faint brightening of the mat — lamplight catching the frame */
  background: #333a4b;
}

html.evening .exhibit-frame img {
  border-color: rgba(233, 227, 211, 0.14);
}

html.evening .placard {
  background: rgba(43, 49, 64, 0.9);
  border-color: var(--hairline);
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.7);
}

html.evening .placard-link {
  border-bottom-color: rgba(159, 194, 224, 0.45);
}

html.evening .placard-link:hover {
  border-bottom-color: var(--ink);
}

/* ---------- Evening footer ---------- */

html.evening .exhibit-footer {
  border-top-color: var(--hairline);
}

html.evening .exhibit-footer a {
  border-bottom-color: rgba(179, 172, 154, 0.4);
}

html.evening .exhibit-footer a:hover {
  border-bottom-color: var(--pond-ink);
}
