/* A Compendium of the Ancient Gods: the gallery.
   Nine painted rooms. Plates hang in gilt fillets under picture lights; placards are printed on the wall.
   One dark world by design: every colour is set explicitly, on every page. */

:root {
  color-scheme: dark;
  --parchment: #f2e8d2;
  --parchment-dim: #cfc2a4;
  --gold: #c9a24a;
  --gold-light: #e8cc84;
  --card: #efe5cc;
  --card-ink: #2a2015;
  --card-dim: #5d4c36;
  --stone: #1f1b17;
  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --text: 'EB Garamond', Garamond, 'Iowan Old Style', Georgia, serif;
  --bar: 60px;
  --floor: 0px;
  --gutter: clamp(16px, 3.2vw, 56px);
  --plate-h: min(85vw, 560px);
  --plaster: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paint, var(--stone));
  color: var(--parchment);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-color: rgb(201 162 74 / .75); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--card); color: var(--card-ink); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ the wall surface */
.panel, .room, .work-page, .exhibit {
  background-color: var(--paint);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(255 236 205 / .08), transparent 70%),
    linear-gradient(180deg, rgb(0 0 0 / .30) 0, transparent 16%, transparent 78%, rgb(0 0 0 / .34) 100%),
    var(--plaster);
}
.room, .work-page, .exhibit { background-attachment: fixed, fixed, scroll; }
/* The picture lights spill wider than their frames; walls clip them so no page ever scrolls sideways. */
.panel, .room, .work-page, .exhibit { overflow-x: clip; }

/* ------------------------------------------------------------------ top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: linear-gradient(rgb(12 10 8 / .72), rgb(12 10 8 / .38) 70%, rgb(12 10 8 / 0));
}
.bar-name { font-family: var(--display); font-size: clamp(12px, 1vw, 16px); letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
/* once the page moves, the bar becomes a solid strip so text never runs underneath it (the hall's walk keeps its open top) */
html.scrolled:not(.walk) .bar { background: rgb(18 15 12 / .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgb(201 162 74 / .22); }
.bar { transition: background .25s ease, box-shadow .25s ease; }
.bar-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.bar-nav a, .bar-nav button {
  font: inherit; font-size: 17px; color: var(--parchment); background: none; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: none; border-bottom: 1px solid transparent;
}
.bar-nav a:hover, .bar-nav button:hover { border-bottom-color: var(--gold); }
@media (max-width: 720px) { .bar-nav a:not(.keep) { display: none; } .bar-name { white-space: normal; max-width: 11em; line-height: 1.25; } }
@media (max-width: 1100px) and (min-width: 721px) { .bar-nav a[href$="/about/"] { display: none; } }

/* ------------------------------------------------------------------ frames, lights, placards */
.hang { position: relative; display: block; text-decoration: none; color: inherit; isolation: isolate; }
.hang:focus-visible { outline-offset: 12px; }
.light {
  position: absolute; z-index: -1; left: 50%; top: -34%; width: 200%; height: 120%; transform: translateX(-50%);
  /* the whole ellipse sits inside the box, so the glow fades to nothing before any edge (no seams) */
  background: radial-gradient(ellipse 46% 40% at 50% 44%, rgb(255 222 160 / .24), rgb(255 222 160 / .09) 45%, rgb(255 222 160 / 0) 100%);
  opacity: .85; pointer-events: none; transition: opacity .6s ease;
}
html.js .light { opacity: 0; }
html.js.lit .light { opacity: .85; transition: opacity 1.8s ease .15s; }
.hang:hover .light, .hang:focus-visible .light { opacity: 1; }

.frame {
  position: relative; display: block; width: fit-content; max-width: 100%; padding: 7px;
  background: linear-gradient(145deg, #6f5220 0%, #d9b866 20%, #8a6827 42%, #e6cb7e 66%, #7b5b22 100%);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / .55),
    inset 0 0 0 1px rgb(255 240 200 / .35),
    0 32px 40px -20px rgb(0 0 0 / .8),
    0 12px 18px -8px rgb(0 0 0 / .5);
  transition: transform .35s ease, box-shadow .35s ease;
}
.frame::after { content: ''; position: absolute; inset: 6px; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .6), inset 0 2px 7px rgb(0 0 0 / .5); }
.frame img { display: block; height: var(--plate-h); width: auto; aspect-ratio: 3 / 4; background-color: #2b241c; background-size: cover; }
.hang:hover .frame, .hang:focus-visible .frame { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 240 200 / .4), 0 40px 48px -20px rgb(0 0 0 / .85), 0 16px 22px -8px rgb(0 0 0 / .5); }

.frame.empty {
  display: grid; place-items: center; height: calc(var(--plate-h) + 14px); aspect-ratio: 3 / 4.02;
  background: rgb(0 0 0 / .16); box-shadow: inset 0 0 0 1px rgb(201 162 74 / .55), inset 0 0 0 7px rgb(0 0 0 / .08), inset 0 0 0 8px rgb(201 162 74 / .25);
}
.frame.empty::after { display: none; }
.await { font-style: italic; color: var(--parchment-dim); font-size: 15px; text-align: center; padding: 0 16px; }

.placard { display: grid; gap: 1px; margin: 20px 0 0; max-width: calc(var(--plate-h) * .75 + 14px); }
.placard .name { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.15; letter-spacing: .03em; }
.say { font-variant: small-caps; font-size: 16px; letter-spacing: .05em; color: var(--parchment-dim); }
.say b { font-weight: 600; color: var(--gold-light); }
.say .hy { opacity: .55; }
.placard .desc { font-style: italic; font-size: 16px; line-height: 1.35; color: var(--parchment-dim); }
.placard .ask { font-style: italic; font-size: 15.5px; line-height: 1.35; color: var(--gold-light); margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease; }
.work:hover .ask, .work:focus-within .ask { max-height: 5em; opacity: 1; }
@media (hover: none) { .placard .ask { max-height: none; opacity: 1; } }

/* ------------------------------------------------------------------ hall */
.hall .room-panel .wall-text, .hall .exit .wall-text { max-width: 36rem; }
.vol { margin: 0 0 6px; font-variant: small-caps; letter-spacing: .08em; font-size: 17px; color: var(--parchment-dim); }
.room-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.3vw, 92px); line-height: 1.02; letter-spacing: .01em; }
.room-name a { text-decoration: none; }
.room-name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.region { margin: 14px 0 0; font-style: italic; font-size: 20px; color: var(--parchment-dim); }
.intro { margin: 18px 0 0; font-size: 19px; line-height: 1.55; }
.count { margin: 14px 0 0; font-size: 17px; color: var(--parchment-dim); }
.enter { display: inline-block; margin-top: 22px; font-size: 19px; }

.hall-title { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; }
.hall-title span { display: block; }
.hall-title span:first-child { font-size: clamp(22px, 2.1vw, 44px); letter-spacing: .12em; color: var(--parchment-dim); margin-bottom: .3em; }
.hall-title span:last-child { font-size: clamp(54px, 5.2vw, 118px); letter-spacing: .02em; }
.lede { margin: 26px 0 0; font-size: clamp(19px, 1.25vw, 23px); line-height: 1.5; max-width: 30em; }
.how { margin: 26px 0 0; font-style: italic; color: var(--gold-light); }
.walk-only { display: none; }
html.walk .walk-only { display: block; }

.today-label { margin: 0 0 20px; font-variant: small-caps; letter-spacing: .08em; font-size: 17px; color: var(--gold-light); }
.today-room { margin: 10px 0 0; font-size: 16px; font-style: italic; color: var(--parchment-dim); }

.door {
  flex: none; display: grid; place-items: center; text-align: center; text-decoration: none;
  width: calc(var(--plate-h) * .5); height: calc(var(--plate-h) + 14px); padding: 28px 22px 0;
  border: 1px solid rgb(201 162 74 / .6); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .42));
  font-family: var(--display); font-size: 16px; letter-spacing: .04em; line-height: 1.35;
}
.door:hover { background: linear-gradient(180deg, rgb(255 236 205 / .06), rgb(0 0 0 / .3)); }

.exit-links { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 20px; }

/* phone and narrow screens (and no JS): rooms stack; each room's works swipe sideways */
.panel { position: relative; padding: calc(var(--bar) + 32px) var(--gutter) 56px; }
.panel + .panel { border-top: 1px solid rgb(201 162 74 / .35); }
.works { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 30px calc(var(--gutter) * -1) 0; padding: 20px var(--gutter) 12px; scrollbar-width: thin; }
.works .work { flex: none; scroll-snap-align: center; margin: 0; }
.today .work { margin: 0; }
.door { margin-top: 28px; height: auto; min-height: 160px; width: 100%; max-width: 360px; padding: 32px 20px 20px; }
.entrance { display: grid; gap: 40px; }
.floor { display: none; }

/* wide screens with JS: one continuous wall you walk along by scrolling */
html.walk { --floor: 46px; --plate-h: clamp(260px, calc(100svh - 410px), 640px); }
html.walk .corridor { position: relative; overflow-x: clip; }
html.walk .strip { position: sticky; top: 0; height: 100svh; display: flex; width: max-content; will-change: transform; }
html.walk .panel {
  flex: none; height: 100%; display: flex; align-items: center; gap: clamp(56px, 6vw, 132px);
  padding: calc(var(--bar) + 3vh) clamp(56px, 6vw, 132px) calc(var(--floor) + 8vh);
  border-top: 0;
}
html.walk .panel::before { /* picture rail */
  content: ''; position: absolute; left: 0; right: 0; top: calc(var(--bar) + 1.2vh); height: 4px;
  background: linear-gradient(rgb(255 240 210 / .1), rgb(0 0 0 / .4)); box-shadow: 0 1px 0 rgb(0 0 0 / .25);
}
html.walk .panel::after { /* skirting board */
  content: ''; position: absolute; left: 0; right: 0; bottom: var(--floor); height: 6.5vh;
  background: linear-gradient(180deg, rgb(0 0 0 / .22), rgb(0 0 0 / .46)); border-top: 1px solid rgb(255 240 210 / .08);
}
html.walk .panel + .panel { box-shadow: inset 14px 0 18px -12px rgb(0 0 0 / .7); } /* the corner where rooms meet */
html.walk .wall-text { flex: none; width: clamp(340px, 29vw, 600px); }
html.walk .entrance .wall-text { width: clamp(440px, 44vw, 980px); }
html.walk .works { display: flex; gap: clamp(64px, 6.5vw, 150px); overflow: visible; margin: 0; padding: 0; align-items: flex-start; }
html.walk .entrance { gap: clamp(64px, 7vw, 160px); }
html.walk .door { margin: 0; width: calc(var(--plate-h) * .52); height: calc(var(--plate-h) + 14px); max-width: none; min-height: 0; padding: 28px 22px 0; align-self: center; margin-bottom: 118px; }
html.walk .exit .wall-text { width: clamp(420px, 36vw, 720px); }
html.walk .exit { padding-right: 12vw; }

html.walk .floor {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: var(--floor);
  background: #100d0a; border-top: 1px solid rgb(201 162 74 / .4);
}
.floor ol { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.floor li { flex: 1 1 0; min-width: 0; background: color-mix(in srgb, var(--paint) 72%, #000); border-right: 1px solid rgb(0 0 0 / .5); }
.floor a { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 8px; font-size: 14px; color: var(--parchment-dim); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor a:hover { color: var(--parchment); }
.floor li[aria-current] a { color: var(--parchment); box-shadow: inset 0 3px 0 var(--gold); }
.floor-mark { position: absolute; top: -1px; left: 0; height: 3px; width: 40px; background: var(--gold-light); transform: translateX(var(--mx, 0)); width: var(--mw, 40px); }

/* ------------------------------------------------------------------ room */
.room { padding: calc(var(--bar) + 7vh) var(--gutter) 6vh; }
.room-head { max-width: 62rem; margin-bottom: 7vh; }
.room-head .room-name { font-size: clamp(44px, 6vw, 120px); }
.room-head .intro { max-width: 40em; font-size: clamp(19px, 1.2vw, 22px); }
.bays ol { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 18px; }
.bays span { color: var(--parchment-dim); font-size: 15px; margin-left: 4px; }
.bay { padding-top: 5vh; margin-top: 4vh; border-top: 1px solid rgb(201 162 74 / .35); scroll-margin-top: calc(var(--bar) - 3vh); }
.bay-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 4vh; }
.bay-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.5vw, 48px); line-height: 1.1; }
.bay-head p { margin: 0; font-style: italic; color: var(--parchment-dim); font-size: 17px; }
.hang-grid {
  --cell: clamp(146px, 16.5vw, 320px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr));
  gap: clamp(40px, 4.4vw, 84px) clamp(22px, 3vw, 60px); align-items: start;
}
.hang-grid .work { margin: 0; }
.hang-grid .frame { width: 100%; }
.hang-grid .frame img { width: 100%; height: auto; }
.hang-grid .frame.empty { width: 100%; height: auto; }
.hang-grid .placard { max-width: none; }
@media (max-width: 480px) { .hang-grid .placard .name { font-size: 17px; } .hang-grid .placard .desc { font-size: 15px; } }

.room-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; max-width: 1400px; margin: 12vh auto 0; padding-top: 32px; border-top: 1px solid rgb(201 162 74 / .35); }
.room-foot a { display: grid; gap: 2px; text-decoration: none; font-family: var(--display); font-size: clamp(20px, 1.6vw, 28px); }
.room-foot a span { font-family: var(--text); font-size: 16px; font-style: italic; color: var(--parchment-dim); }
.room-foot a:hover { color: var(--gold-light); }

/* ------------------------------------------------------------------ one work */
.work-page { padding-bottom: 8vh; }
.hang-wall {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  grid-template-columns: 1fr; gap: 32px; padding: calc(var(--bar) + 24px) var(--gutter) 40px;
}
.solo { position: relative; isolation: isolate; margin: 0; justify-self: center; }
.solo .frame img { width: min(100%, 600px); height: auto; }
.solo.unhung .frame.empty { width: min(78vw, 520px); height: auto; }
.label .name { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3vw, 60px); line-height: 1.05; letter-spacing: .02em; }
.label .say { margin: 8px 0 0; font-size: 19px; }
.label .desc { margin: 10px 0 0; font-style: italic; font-size: 21px; line-height: 1.35; color: var(--parchment-dim); }
.facts { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgb(201 162 74 / .45); display: grid; gap: 8px; font-size: 16.5px; }
.facts div { display: grid; grid-template-columns: 8.2em 1fr; gap: 12px; }
.facts dt { color: var(--parchment-dim); font-style: italic; }
.facts dd { margin: 0; }
.fact { margin: 18px 0 0; font-size: 18px; line-height: 1.5; }
.label-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 0; font-size: 18px; }
.neighbour { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--parchment-dim); font-size: 14px; text-align: center; }
.neighbour .frame { padding: 4px; }
.neighbour .frame::after { inset: 3px; }
.neighbour .frame img, .kin .frame img, .echo .frame img { height: 124px; }
.neighbour .frame.empty, .kin .frame.empty, .echo .frame.empty { height: 132px; }
.neighbour .await, .kin .await, .echo .await { font-size: 12px; }
.nb-dir { font-style: italic; margin-top: 8px; }
.nb-name { font-family: var(--display); color: var(--parchment); font-size: 15px; }
.neighbour:hover .nb-name { color: var(--gold-light); }
.neighbours-row { display: flex; justify-content: space-between; }

@media (min-width: 900px) {
  .hang-wall { grid-template-columns: minmax(90px, 1fr) auto minmax(300px, 410px) minmax(90px, 1fr); gap: clamp(28px, 3.4vw, 72px); padding: calc(var(--bar) + 2vh) clamp(20px, 2.4vw, 48px) 4vh; }
  .solo .frame img { width: auto; height: min(1000px, calc(100svh - var(--bar) - 11vh)); }
  .solo.unhung .frame.empty { width: auto; height: min(1000px, calc(100svh - var(--bar) - 11vh)); }
  .neighbour.prev { justify-self: start; }
  .neighbour.next { justify-self: end; }
}
@media (max-width: 899px) {
  .hang-wall { grid-template-areas: "solo solo" "label label" "prev next"; grid-template-columns: 1fr 1fr; }
  .solo { grid-area: solo; }
  .label { grid-area: label; }
  .neighbour.prev { grid-area: prev; justify-self: start; }
  .neighbour.next { grid-area: next; justify-self: end; }
}

.story { width: min(36em, 100% - 2 * var(--gutter)); margin: 8vh auto 0; font-size: clamp(19px, 1.2vw, 22px); line-height: 1.7; }
.story p { margin: 0 0 1.05em; }
.story .first::first-letter { float: left; font-family: var(--display); font-size: 3.6em; line-height: .82; padding: .1em .12em 0 0; color: var(--gold-light); }

.note {
  width: min(40em, 100% - 2 * var(--gutter)); margin: 8vh auto 0; padding: clamp(26px, 3.6vw, 56px);
  background: var(--card) linear-gradient(160deg, rgb(255 255 255 / .35), rgb(0 0 0 / .05)); color: var(--card-ink);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08), 0 26px 40px -20px rgb(0 0 0 / .75), 0 8px 14px -6px rgb(0 0 0 / .35);
}
.note h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; }
.note-lede { margin: 6px 0 18px; font-style: italic; color: var(--card-dim); }
.note p:last-child { margin: 0; font-size: 18.5px; line-height: 1.62; }
.note a { text-decoration-color: rgb(42 32 21 / .5); }

.kin, .echo, .time { width: min(1320px, 100% - 2 * var(--gutter)); margin: 10vh auto 0; }
.kin h2, .echo h2, .time h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2vw, 36px); }
.section-lede { margin: 6px 0 28px; font-style: italic; color: var(--parchment-dim); font-size: 17px; }
.kin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 40px; margin: 0; padding: 0; list-style: none; }
.kin-list li { display: grid; gap: 10px; }
.kin-work { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; text-decoration: none; }
.kin-work .frame { padding: 4px; }
.kin-work .frame::after { inset: 3px; }
.kin-rel { grid-column: 2; font-style: italic; color: var(--parchment-dim); font-size: 16px; align-self: end; }
.kin-name { grid-column: 2; font-family: var(--display); font-size: 20px; line-height: 1.15; }
.kin-work .frame { grid-row: 1 / span 2; }
.kin-work:hover .kin-name { color: var(--gold-light); }
.kin-list q { font-style: italic; font-size: 16px; line-height: 1.45; color: var(--parchment-dim); quotes: '\201C' '\201D'; }

.events { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px 44px; }
.events div { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid rgb(201 162 74 / .3); }
.events dt { font-variant: small-caps; letter-spacing: .04em; color: var(--gold-light); font-size: 16px; }
.events dd { margin: 0; font-size: 17px; line-height: 1.45; }

/* ------------------------------------------------------------------ floor plan */
.plan {
  width: min(640px, 100% - 32px); max-height: min(86vh, 900px); padding: clamp(24px, 3vw, 40px);
  background: #17130f; color: var(--parchment); border: 1px solid rgb(201 162 74 / .5);
  box-shadow: 0 30px 80px rgb(0 0 0 / .7);
}
.plan::backdrop { background: rgb(8 6 4 / .66); backdrop-filter: blur(3px); }
.plan h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; }
.plan-lede { margin: 6px 0 22px; font-style: italic; color: var(--parchment-dim); }
.plan-close { float: right; }
.plan-close button { font: inherit; font-size: 17px; color: var(--parchment); background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 2px 0; cursor: pointer; }
.plan-rooms { margin: 0; padding: 0 0 0 1.6em; display: grid; gap: 8px; }
.plan-rooms li::marker { color: var(--parchment-dim); font-size: 16px; }
.plan-rooms a { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: center; padding: 8px 10px; text-decoration: none; }
.plan-rooms a:hover { background: rgb(255 255 255 / .04); }
.plan-rooms li[aria-current] a { box-shadow: inset 2px 0 0 var(--gold); }
.swatch { grid-row: 1 / span 2; width: 30px; height: 30px; background: var(--paint); box-shadow: inset 0 0 0 1px rgb(201 162 74 / .6); }
.plan-name { font-family: var(--display); font-size: 19px; }
.plan-meta { font-size: 15px; color: var(--parchment-dim); font-style: italic; }
.plan-more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgb(201 162 74 / .35); font-size: 17px; }

/* ------------------------------------------------------------------ shared small parts */
.chip { display: inline-block; width: .78em; height: .78em; margin-right: .45em; vertical-align: -.04em; background: var(--paint); box-shadow: inset 0 0 0 1px rgb(201 162 74 / .75); }
.chip.big { width: .7em; height: .7em; margin-right: .5em; }
.placard .where { margin-top: 4px; font-size: 15px; color: var(--parchment-dim); }
.foot { padding: 7vh var(--gutter) 5vh; text-align: center; color: var(--parchment-dim); font-size: 16px; }
.foot p { margin: 0; }
.foot p:first-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 17px; color: var(--parchment); }
.foot-note { margin-top: 14px !important; font-style: italic; }
html.walk .foot { display: none; }

/* small frames: catalogue rows, echo and theme strips */
.cat-row .frame, .echo-frames .frame { padding: 4px; }
.cat-row .frame::after, .echo-frames .frame::after { inset: 3px; }
.cat-row .frame img { height: 104px; }
.echo-frames .frame img { height: 92px; }
.cat-row .frame.empty { height: 112px; }
.echo-frames .frame.empty { height: 100px; }
.cat-row .await, .echo-frames .await { font-size: 11px; padding: 0 6px; }

/* ------------------------------------------------------------------ exhibition pages (catalogue, timeline, echoes, themes, sources, about) */
.exhibit { padding: calc(var(--bar) + 7vh) var(--gutter) 6vh; min-height: 100svh; }
.exhibit-head { max-width: 62rem; margin-bottom: 6vh; }
.exhibit-head .room-name { font-size: clamp(44px, 5.4vw, 108px); }
.exhibit-head .intro { max-width: 38em; font-size: clamp(19px, 1.2vw, 22px); }
.exhibit-head .intro a { color: var(--gold-light); }
.exhibit h2 { font-family: var(--display); font-weight: 400; }

/* the catalogue */
.finder {
  position: sticky; top: var(--bar); z-index: 5; display: grid; grid-template-columns: minmax(0, 52rem) auto; justify-content: start; align-items: end; gap: 6px 24px;
  margin: 0 calc(var(--gutter) * -1) 18px; padding: 14px var(--gutter) 14px;
  background: rgb(26 22 19 / .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid rgb(201 162 74 / .28);
}
.finder label { grid-column: 1 / -1; font-variant: small-caps; letter-spacing: .08em; font-size: 16px; color: var(--parchment-dim); }
.finder input {
  width: 100%; font: inherit; font-size: clamp(22px, 1.8vw, 30px); color: var(--parchment); background: transparent;
  border: 0; border-bottom: 1px solid rgb(201 162 74 / .7); padding: 4px 0 8px; border-radius: 0;
}
.finder input::placeholder { color: rgb(207 194 164 / .45); font-style: italic; }
.finder input:focus { outline: none; border-bottom-color: var(--gold-light); box-shadow: 0 1px 0 var(--gold-light); }
.finder input::-webkit-search-cancel-button { filter: sepia(1) saturate(3) hue-rotate(5deg); }
.finder-status { margin: 0; font-style: italic; color: var(--parchment-dim); font-size: 16px; white-space: nowrap; }
.letters ol { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 4vh; padding: 0; list-style: none; font-family: var(--display); font-size: 17px; }
.letters a, .letters span { display: grid; place-items: center; width: 2em; height: 2em; text-decoration: none; }
.letters a:hover { background: rgb(255 255 255 / .06); color: var(--gold-light); }
.letters span { color: rgb(207 194 164 / .3); }
.letter { padding-top: 3vh; border-top: 1px solid rgb(201 162 74 / .35); margin-top: 3vh; scroll-margin-top: calc(var(--bar) + 110px); }
.letter h2 { margin: 0 0 22px; font-size: clamp(40px, 3.4vw, 64px); line-height: 1; color: var(--gold-light); }
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 22px 40px; margin: 0; padding: 0; list-style: none; }
.cat-row { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; text-decoration: none; }
.cat-row .frame { grid-row: 1 / span 4; }
.cat-name { font-family: var(--display); font-size: 21px; line-height: 1.15; }
.cat-row .say { font-size: 15px; }
.cat-desc { font-style: italic; font-size: 16px; line-height: 1.35; color: var(--parchment-dim); }
.cat-room { font-size: 14.5px; color: var(--parchment-dim); margin-top: 2px; }
.cat-row:hover .cat-name { color: var(--gold-light); }
.cat-row:hover .frame { transform: translateY(-2px); }
.finder-empty { font-size: 20px; font-style: italic; color: var(--parchment-dim); }
[hidden] { display: none !important; }

/* the timeline */
.tl-overview { --label: clamp(150px, 14vw, 290px); max-width: 1500px; margin: 0 0 8vh; }
.tl-axis { position: relative; height: 30px; margin-left: var(--label); border-bottom: 1px solid rgb(201 162 74 / .45); }
.tl-tick { position: absolute; bottom: 6px; transform: translateX(-50%); font-size: 14px; color: var(--parchment-dim); white-space: nowrap; }
.tl-tick::after { content: ''; position: absolute; left: 50%; top: calc(100% + 6px); width: 1px; height: 6px; background: rgb(201 162 74 / .6); }
.tl-rows { margin: 0; padding: 0; list-style: none; }
.tl-rows li { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; min-height: 40px; border-bottom: 1px solid rgb(255 255 255 / .05); }
.tl-room { font-family: var(--display); font-size: clamp(14px, 1.05vw, 18px); text-decoration: none; padding-right: 16px; }
.tl-room:hover { color: var(--gold-light); }
.tl-track { position: relative; height: 18px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(255 255 255 / .04) calc(10% - 1px) 10%); }
.tl-bar { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--paint) 70%, #fff 12%); box-shadow: inset 0 0 0 1px rgb(201 162 74 / .75), 0 4px 10px -4px rgb(0 0 0 / .6); }
.tl-note { margin: 12px 0 0 var(--label); font-size: 15px; font-style: italic; color: var(--parchment-dim); }
.era { max-width: 1500px; margin-top: 7vh; }
.era h2 { margin: 0; font-size: clamp(28px, 2.4vw, 44px); }
.tl-events { margin: 0; padding: 0; list-style: none; display: grid; }
.tl-events li { display: grid; grid-template-columns: 11em 1fr 18em; gap: 6px 28px; padding: 14px 0 14px 18px; border-top: 1px solid rgb(255 255 255 / .06); box-shadow: inset 4px 0 0 color-mix(in srgb, var(--paint) 70%, #fff 18%); }
.tl-date { font-variant: small-caps; letter-spacing: .04em; color: var(--gold-light); font-size: 17px; }
.tl-text { font-size: 18px; line-height: 1.5; }
.tl-where { font-size: 15.5px; font-style: italic; color: var(--parchment-dim); }
@media (max-width: 1000px) { .tl-events li { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tl-the { display: none; } .tl-room { font-size: 13px; line-height: 1.2; } .tl-overview { --label: 116px; } .tl-tick { font-size: 11px; } .tl-tick:nth-child(even) { display: none; } }

/* echoes and themes: indexes */
.echo-index, .theme-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 30px 44px; margin: 0; padding: 0; list-style: none; }
.echo-row, .theme-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; text-decoration: none; padding: 16px 0; border-top: 1px solid rgb(201 162 74 / .3); }
.echo-frames { display: flex; }
.echo-frames .frame + .frame { margin-left: -26px; }
.echo-frames .frame:nth-child(2) { transform: translateY(8px); }
.echo-frames .frame:nth-child(3) { transform: translateY(-4px); }
.echo-text { display: grid; gap: 2px; }
.echo-title { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.echo-rooms { font-style: italic; color: var(--parchment-dim); font-size: 16px; }
.echo-count { font-size: 14.5px; color: var(--parchment-dim); }
.echo-row:hover .echo-title, .theme-row:hover .echo-title { color: var(--gold-light); }
.echo-hang { --cell: clamp(200px, 19vw, 360px); max-width: 1500px; }
.echo-hang .placard .name { font-size: clamp(20px, 1.4vw, 26px); }
/* an echo hangs like a room panel: wall text on the left, the identified gods side by side on the right */
@media (min-width: 1100px) {
  .echo-page { display: grid; grid-template-columns: minmax(320px, 30vw) minmax(0, 1fr); column-gap: clamp(48px, 5vw, 110px); align-items: start; }
  .echo-page > .exhibit-head { position: sticky; top: calc(var(--bar) + 4vh); margin: 0; }
  .echo-page > .echo-hang { grid-column: 2; grid-row: 1 / span 2; }
  .echo-page > .why, .echo-page > .room-foot { grid-column: 1 / -1; }
}
.echo-page .exhibit-head .room-name { font-size: clamp(40px, 3.8vw, 80px); }
.why { max-width: 56rem; margin-top: 10vh; }
.why h2 { margin: 0 0 22px; font-size: clamp(26px, 2vw, 36px); }
.quotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }
.quotes blockquote { margin: 0; font-size: 20px; line-height: 1.55; font-style: italic; padding-left: 22px; border-left: 2px solid var(--gold); }
.quotes blockquote::before { content: '\201C'; }
.quotes blockquote::after { content: '\201D'; }
.quotes p { margin: 8px 0 0 24px; font-size: 16px; color: var(--parchment-dim); }

/* sources */
.source-rooms { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 8px 40px; max-width: 1200px; }
.source-rooms a { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; align-items: center; padding: 14px 10px; text-decoration: none; border-top: 1px solid rgb(201 162 74 / .25); }
.source-rooms .swatch { width: 38px; height: 38px; }
.source-rooms a:hover { background: rgb(255 255 255 / .04); }
.source-rooms .plan-name { font-size: 22px; }
.source-book { max-width: 50rem; padding-top: 5vh; margin-top: 5vh; border-top: 1px solid rgb(201 162 74 / .35); scroll-margin-top: var(--bar); }
.source-book h2 { margin: 0 0 14px; font-size: clamp(28px, 2.4vw, 44px); line-height: 1.1; }
.source-book h3 { margin: 34px 0 12px; font-weight: 400; font-variant: small-caps; letter-spacing: .08em; font-size: 19px; color: var(--gold-light); }
.source-book .intro { font-size: 18.5px; }
.witnesses { margin: 0; display: grid; gap: 14px; }
.witnesses dt { font-family: var(--display); font-size: 17px; }
.witnesses dd { margin: 2px 0 0; font-size: 17.5px; line-height: 1.5; color: var(--parchment-dim); }
.corpora, .biblio { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 17.5px; line-height: 1.45; }
.corpora a { color: var(--parchment); }
.biblio li { padding-left: 1.6em; text-indent: -1.6em; color: var(--parchment-dim); }
.register { margin-top: 30px; border-top: 1px solid rgb(201 162 74 / .25); padding-top: 12px; }
.register summary { cursor: pointer; font-variant: small-caps; letter-spacing: .08em; font-size: 18px; color: var(--gold-light); padding: 6px 0; }
.register ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16.5px; line-height: 1.5; color: var(--parchment-dim); }
.reg-name { font-family: var(--display); color: var(--parchment); font-size: 16px; }
.reg-sec { font-size: 14px; margin-right: 4px; }

/* about */
.prose { max-width: 36em; font-size: clamp(19px, 1.2vw, 21px); line-height: 1.65; }
.prose h2 { margin: 7vh 0 12px; font-size: clamp(26px, 2vw, 34px); line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.books { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 14px; }
.books li { display: grid; padding-left: 18px; border-left: 2px solid var(--gold); }
.books a { font-family: var(--display); font-size: 21px; text-decoration: none; }
.books a:hover { color: var(--gold-light); }
.books span { font-style: italic; font-size: 17px; color: var(--parchment-dim); }

/* a work hung beside the text of a reading page */
.exhibit-cols { display: block; }
.exhibit-aside { display: none; }
@media (min-width: 1100px) {
  .exhibit-cols { display: grid; grid-template-columns: minmax(0, 52rem) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 140px); align-items: start; }
  .exhibit-aside { display: block; position: sticky; top: calc(var(--bar) + 6vh); justify-self: center; --plate-h: min(calc(100svh - var(--bar) - 26vh), 700px); }
  .exhibit-aside .work { margin: 0; }
}
.exhibit .room-foot { max-width: none; margin-left: 0; margin-right: 0; }
.bay-link { margin: 22px 0 0; font-size: 17px; font-style: italic; }
.source-room { border-top: 0; padding-top: 0; margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* not found */
.missing { display: grid; align-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.js .light { opacity: .85; }
}
