/* ============================================================
   THE RESEARCH LIBRARY — library theme
   Warm paper, vermilion spot colour, one serif family.
   Loaded after theme.css and library.css: re-points the kit's
   tokens, then styles the masthead, the domain directory and
   the reading pages.
   ============================================================ */

/* ---------- palette ---------- */
:root,
html[data-theme="master"],
html[data-theme="library"] {
  --el-bg:            #f7f2e7;
  --el-panel:         #fffdf8;
  --el-panel-2:       #f1e9d9;
  --el-panel-3:       #e9dfcc;
  --el-line:          #d9cfbb;
  --el-line-2:        #e6decd;
  --el-line-strong:   #b9ab92;
  --el-ink:           #171310;
  --el-ink-soft:      #574d40;
  --el-mute:          #857a68;
  --el-on-accent:     #fff9f0;
  --el-accent:        #c8342a;
  --el-accent-hover:  #a8281f;
  --el-accent-soft:   rgba(200, 52, 42, .08);
  --el-overlay:       rgba(23, 19, 16, .5);
  --el-focus-ring:    rgba(200, 52, 42, .45);
  --el-shadow-2:      0 2px 10px rgba(23,19,16,.10);
  --el-shadow-3:      0 12px 40px rgba(23,19,16,.16);
  --el-font-body:     "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --el-font-display:  "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --el-font-mono:     "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --el-bg:            #16130f;
  --el-panel:         #1e1a15;
  --el-panel-2:       #241f18;
  --el-panel-3:       #2b251d;
  --el-line:          #332c24;
  --el-line-2:        #272118;
  --el-line-strong:   #4a4034;
  --el-ink:           #f2ece0;
  --el-ink-soft:      #b9ae9c;
  --el-mute:          #8d8272;
  --el-on-accent:     #1a1511;
  --el-accent:        #e2632f;
  --el-accent-hover:  #f07a45;
  --el-accent-soft:   rgba(226, 99, 47, .12);
  --el-overlay:       rgba(0, 0, 0, .62);
  --el-focus-ring:    rgba(226, 99, 47, .5);
  color-scheme: dark;
}

/* library.css bridges to these names; restate so the bridge lands here */
:root {
  --bg: var(--el-bg);
  --ink: var(--el-ink);
  --muted: var(--el-ink-soft);
  --gold: var(--el-accent);
  --hairline: var(--el-line);
  --hairline-soft: var(--el-line-2);
  --t1: var(--el-panel-2);
  --t2: var(--el-panel-3);
  --t3: var(--el-panel-3);
  --t4: var(--el-panel-2);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --rl-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --rl-maxw: 1180px;
  --rl-gutter: clamp(20px, 4vw, 56px);
}

body { background: var(--el-bg); color: var(--el-ink); }

::selection { background: var(--el-accent); color: var(--el-on-accent); }

.skip:focus { background: var(--el-ink); color: var(--el-bg); border-color: var(--el-accent); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.rl-top {
  position: sticky; top: 0; z-index: 60;
  background: var(--el-bg);
  border-bottom: 1px solid var(--el-ink);
}
.rl-util {
  display: flex; align-items: center; gap: 20px;
  height: 28px; padding: 0 var(--rl-gutter);
  border-bottom: 1px solid var(--el-line);
  font-family: var(--rl-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--el-mute);
}
.rl-util-mid { margin-left: auto; }
.rl-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 19px; padding: 0;
  color: var(--el-ink-soft); background: transparent;
  border: 1px solid var(--el-line); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.rl-theme:hover { color: var(--el-accent); border-color: var(--el-accent); }
.rl-theme .rl-moon { display: none; }
html[data-theme="dark"] .rl-theme .rl-moon { display: block; }
html[data-theme="dark"] .rl-theme .rl-sun { display: none; }

.rl-mast {
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--rl-gutter) 13px;
}
.rl-wordmark {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  text-decoration: none; color: var(--el-ink); white-space: nowrap;
}
.rl-wordmark:hover { color: var(--el-accent); }
.rl-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.rl-nav a {
  font-family: var(--rl-mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; color: var(--el-ink-soft);
  padding: 6px 9px; border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.rl-nav a:hover { color: var(--el-ink); border-bottom-color: var(--el-accent); }
.rl-nav a.is-current { color: var(--el-ink); border-bottom-color: var(--el-accent); }

/* ============================================================
   HOME — the directory
   ============================================================ */
.rl-home-main { max-width: var(--rl-maxw); margin: 0 auto; padding: 0 var(--rl-gutter); }

.rl-intro { padding: clamp(48px, 7vw, 84px) 0 clamp(34px, 4vw, 52px); }
.rl-eyebrow {
  font-family: var(--rl-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--el-accent); margin: 0 0 18px;
}
.rl-intro h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.028em;
  margin: 0 0 22px; max-width: 16ch; text-wrap: balance;
}
.rl-intro h1 em { font-style: italic; color: var(--el-accent); }
.rl-intro-dek {
  font-family: var(--serif); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.62;
  color: var(--el-ink-soft); max-width: 66ch; margin: 0;
}
.rl-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 0;
  border-top: 1px solid var(--el-line); border-bottom: 1px solid var(--el-line);
}
.rl-stat {
  padding: 14px 30px 14px 0; margin-right: 30px;
  border-right: 1px solid var(--el-line);
  font-family: var(--rl-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--el-mute);
}
.rl-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rl-stat b {
  display: block; margin-top: 5px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--el-ink);
}

.rl-jump {
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  margin: 16px 0 0;
  font-family: var(--rl-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase;
}
.rl-jump a {
  color: var(--el-ink-soft); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.rl-jump a:hover { color: var(--el-accent); border-bottom-color: var(--el-accent); }

/* ---- domain block ---- */
.rl-domain {
  padding: clamp(44px, 5vw, 68px) 0 clamp(40px, 4vw, 56px);
  border-top: 2px solid var(--el-ink);
  scroll-margin-top: 100px;
}
.rl-domain:first-of-type { border-top-width: 2px; }
.rl-domain-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline; gap: 8px 22px; margin-bottom: 30px;
}
.rl-domain-num {
  font-family: var(--rl-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--el-accent); align-self: start; padding-top: 8px;
}
.rl-domain-num::before {
  content: ""; display: block; width: 30px; height: 3px;
  background: var(--el-accent); margin-bottom: 12px;
}
.rl-domain-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0;
}
.rl-domain-head h2 a { text-decoration: none; color: var(--el-ink); }
.rl-domain-head h2 a:hover { color: var(--el-accent); }
.rl-domain-meta {
  font-family: var(--rl-mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--el-mute); white-space: nowrap;
  align-self: start; padding-top: 14px;
}
.rl-domain-dek {
  grid-column: 2 / -1; margin: 0;
  font-family: var(--serif); font-size: 16.5px; line-height: 1.6;
  color: var(--el-ink-soft); max-width: 64ch;
}

.rl-subs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1px; background: var(--el-line);
  border: 1px solid var(--el-line);
}
.rl-sub {
  background: var(--el-bg); padding: 20px 20px 22px;
  min-width: 0; display: flex; flex-direction: column;
}
.rl-sub-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--el-line);
  margin-bottom: 8px;
}
.rl-sub-head h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2;
  letter-spacing: -.01em; margin: 0; min-width: 0;
}
.rl-sub-head h3 a { text-decoration: none; color: var(--el-ink); }
.rl-sub-head h3 a:hover { color: var(--el-accent); }
.rl-sub-count {
  margin-left: auto; font-family: var(--rl-mono); font-size: 9px;
  letter-spacing: .1em; color: var(--el-mute); white-space: nowrap;
}
.rl-sub-group { margin: 10px 0 0; }
.rl-sub-group h4 {
  font-family: var(--rl-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--el-accent);
  margin: 0 0 4px;
}
.rl-sub-group h4 a { text-decoration: none; color: inherit; }
.rl-sub-group h4 a:hover { color: var(--el-ink); }
.rl-sub ul { list-style: none; margin: 0; padding: 0; }
.rl-sub li { border-bottom: 1px solid var(--el-line-2); }
.rl-sub li:last-child { border-bottom: 0; }
.rl-sub li a {
  display: block; padding: 6px 0;
  font-family: var(--serif); font-size: 14.5px; line-height: 1.32;
  color: var(--el-ink-soft); text-decoration: none;
}
.rl-sub li a:hover { color: var(--el-accent); }

/* ---- A–Z module index ---- */
.rl-atoz { padding: clamp(44px, 5vw, 68px) 0 80px; border-top: 2px solid var(--el-ink); }
.rl-atoz-head {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 6px;
}
.rl-atoz-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; margin: 0;
}
.rl-atoz-head p {
  margin: 0; font-family: var(--rl-mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--el-mute);
}
.rl-filter { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rl-filter input {
  font-family: var(--rl-mono); font-size: 11px; letter-spacing: .03em;
  width: 260px; padding: 8px 10px;
  background: var(--el-panel); color: var(--el-ink);
  border: 1px solid var(--el-line);
}
.rl-filter input:focus { outline: none; border-color: var(--el-accent); }
.rl-filter-count { font-family: var(--rl-mono); font-size: 9.5px; color: var(--el-mute); white-space: nowrap; }
.rl-atoz-list { columns: 3; column-gap: 34px; margin-top: 10px; }
.rl-atoz-row {
  break-inside: avoid; display: grid;
  grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: start;
  padding: 7px 0; border-bottom: 1px solid var(--el-line-2); text-decoration: none;
}
.rl-az-thumb { display: block; margin: 3px 0 4px 0; width: 66px; height: 44px; overflow: hidden; border: 1px solid var(--el-line-2); background: var(--el-panel); }
.rl-az-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-atoz-row .t { display: block; grid-column: 2; grid-row: 1; font-family: var(--serif); font-size: 14.5px; line-height: 1.3; color: var(--el-ink); }
.rl-atoz-row .s { display: block; grid-column: 1 / -1; grid-row: 2; margin-top: 2px; font-family: var(--rl-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--el-mute); }
.rl-atoz-row:hover .t { color: var(--el-accent); }
.rl-empty { font-family: var(--serif); font-style: italic; color: var(--el-mute); padding: 18px 0; }

/* ============================================================
   READING PAGES
   ============================================================ */
.article { padding-top: 20px; }
.article .lede { color: var(--el-ink-soft); }
.article h1 { font-weight: 600; letter-spacing: -.022em; }
.article h2 { font-weight: 600; letter-spacing: -.015em; }
.article h3 { color: var(--el-accent); font-style: italic; }
.article .txt p { color: var(--el-ink); }
.article .crumbs { font-family: var(--rl-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--el-mute); padding-bottom: 4px; }
.article .crumbs a { color: var(--el-mute); text-decoration: none; }
.article .crumbs a:hover { color: var(--el-accent); }
.article .brief { border-left-color: var(--el-accent); background: var(--el-panel-2); }
.article .brief .tag { color: var(--el-accent); }
.article .viz figure, .article .viz .block {
  background: var(--el-panel); border: 1px solid var(--el-line);
}
.article .viz figure { padding: 10px; }
.article .viz figure img { filter: none; }
.article .fignum {
  display: block; font-family: var(--rl-mono); font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--el-accent); margin-bottom: 6px;
}
.article table { border-collapse: collapse; width: 100%; }
.article th {
  font-family: var(--rl-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--el-ink-soft); border-bottom: 1px solid var(--el-ink); text-align: left; padding: 8px 10px;
}
.article td { border-bottom: 1px solid var(--el-line-2); padding: 8px 10px; font-size: 14.5px; }
.article blockquote {
  margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--el-accent);
  font-style: italic; color: var(--el-ink-soft);
}
.article .related { font-family: var(--rl-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--el-mute); }

/* the kit hard-codes a night-theme grey for small caps; retune it for paper */
.masthead .stats,
.mast-figure figcaption,
.crumbs,
.crumbs a,
.index .ct,
.topic-count,
.card-meta,
.card-meta a,
.article .viz figcaption,
.article .viz .tlabel,
.foot { color: var(--el-mute); }

/* image wells were black in the night theme */
.mast-figure .frame,
.card-media { background: var(--el-panel-3); }
.mast-figure img,
.card-media img { filter: saturate(.92) contrast(1.02); }

/* hub pages: cards */
.card { background: var(--el-panel); border: 1px solid var(--el-line); }
.card:hover { border-color: var(--el-accent); }
.card-kicker { color: var(--el-accent); }
.card h3 a { color: var(--el-ink); }
.card h3 a:hover { color: var(--el-accent); }
.card-excerpt { color: var(--el-ink-soft); }
.masthead .kicker { color: var(--el-accent); }
.masthead h1 em { color: var(--el-accent); font-style: italic; }
.index a { border-color: var(--el-line); }
.index a:hover { border-color: var(--el-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .rl-atoz-list { columns: 2; }
  .rl-mast { gap: 18px; }
  .rl-nav { gap: 0; }
  .rl-nav a { padding: 6px 7px; font-size: 9px; }
}

@media (max-width: 820px) {
  .rl-mast { flex-wrap: wrap; gap: 10px; }
  .rl-wordmark { font-size: 18px; }
  .rl-nav { width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .rl-nav a { white-space: nowrap; }
  .rl-domain-head { grid-template-columns: auto minmax(0, 1fr); }
  .rl-domain-meta { grid-column: 2; padding-top: 0; }
  .rl-domain-dek { grid-column: 2; }
  .rl-atoz-list { columns: 1; }
  .rl-filter { margin-left: 0; width: 100%; }
  .rl-filter input { width: 100%; }
}

@media (max-width: 560px) {
  .rl-util-mid { display: none; }
  .rl-stat { padding-right: 18px; margin-right: 18px; }
  .rl-intro h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* restore-old-layout: merged pages open a shell-grid wrapper
   that has no matching rule here — neutralise it, hide the rail */
.shell-grid{display:block}
.rl-rail{display:none}
.rl-tree{display:none}

/* ref-row blocks from the merged theme — used by the article
   'related' lists (compact rows with the local cover thumbs) */
/* ---- reference layout v4 (2026-10-29) --------------------------------
   Text carries the page; photos sit in normal flow, never behind text. */
.ref-intro { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 30px); }
.ref-intro-fig {
  margin: 0 0 clamp(28px, 4vw, 42px); padding: 0;
  border: 1px solid var(--el-line-strong); border-radius: 12px; overflow: hidden;
  background: var(--el-panel-3);
}
.ref-intro-fig img { display: block; width: 100%; max-height: 300px; object-fit: cover; filter: saturate(.9); }
.ref-intro-fig figcaption {
  padding: 8px 12px; font-family: var(--rl-mono); font-size: 9px;
  letter-spacing: .05em; color: var(--el-mute);
  border-top: 1px solid var(--el-line-2);
}
/* domain block on the index */
.ref-dom { margin: 0 0 46px; }
.ref-dom .rl-sec-title { margin: 34px 0 6px; }
.ref-dom .rl-sec-title a { text-decoration: none; color: var(--el-ink); }
.ref-dom .rl-sec-title a:hover { color: var(--el-accent); }
.ref-dom-blurb { max-width: 72ch; color: var(--el-ink-soft); margin: 0 0 18px; }
/* article lists */
.ref-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--el-line-2); }
.ref-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 9px 2px; border-bottom: 1px solid var(--el-line-2);
}
.ref-title { color: var(--el-ink); text-decoration: none; flex: 1 1 55%; }
.ref-title:hover { color: var(--el-accent); text-decoration: underline; text-underline-offset: 3px; }
.ref-meta { font-family: var(--rl-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--el-mute); }
.ref-src { color: var(--el-mute); text-decoration: underline; text-underline-offset: 2px; }
.ref-src:hover { color: var(--el-accent); }
/* subdomain header block */
.ref-subhead { margin-bottom: 22px; }
.ref-subhead h1 { margin: 6px 0 10px; }
.ref-lead-fig { margin: 18px 0 26px; }
.ref-lead-fig figure { margin: 0; }
.ref-lead-fig img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; border: 1px solid var(--el-line-2); }
.ref-lead-fig figcaption { margin-top: 6px; font-family: var(--rl-mono); font-size: 9px; color: var(--el-mute); }
/* index: subdomain blocks sit flush under their domain heading */
.ref-dom .rl-sub { padding: 0; background: transparent; margin: 0 0 26px; }
.ref-dom .rl-sub-head { border-bottom: 1px solid var(--el-line-strong); }
/* hero: text left, photo right — never on top of each other */
.ref-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px; align-items: end;
}
.ref-hero-fig { margin: 0 0 6px; }
.ref-hero-fig img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--el-line);
}
.ref-hero-fig figcaption { margin-top: 6px; font-family: var(--rl-mono); font-size: 9px; color: var(--el-mute); }
/* article rows with a small thumbnail */
.ref-row { display: flex; align-items: center; gap: 14px; }
.ref-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.ref-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; flex: 1; }
.ref-t .ref-title { flex: 1 1 55%; }
.ref-intro { grid-template-columns: 1fr; }
.ref-hero-fig img { height: 200px; }

/* ---- formatting restore + umgc-style cover treatment (2026-10-31) ------
   Content rules ported from the shared typography pass (byte-identical to
   the umgc library's) WITHOUT the layout-1 reading column: the original
   centered measure, drop caps and paragraph indents stay. */

/* meta line under the title: domain · subdomain · length · source */
.art-meta {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  font-family: var(--rl-mono, ui-monospace, monospace);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--el-mute);
  margin: 0 0 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--el-line);
}
.art-meta span + span::before { content: "·"; margin: 0 9px; color: var(--el-line-strong); }

/* ---- article cover band (the umgc treatment) ------------------------- */
.art-cover {
  position: relative; display: flex; align-items: flex-end;
  min-height: 380px; margin: 20px 0 34px; border-radius: 12px;
  overflow: hidden; background: #121315; box-shadow: var(--el-shadow-3);
}
.art-cover figure { position: absolute; inset: 0; height: 100%; margin: 0; }
.art-cover figure img {
  width: 100%; height: 100%; object-fit: cover;
  border: 0; border-radius: 0;
  filter: grayscale(.85) sepia(.26) contrast(1.06) brightness(.74) saturate(.8);
}
.art-cover figure figcaption {
  position: absolute; right: 16px; bottom: 12px; margin: 0; z-index: 3;
  max-width: 44ch; text-align: right; color: rgba(255,255,255,.62);
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
.art-cover figure figcaption a, .art-cover figure figcaption b { color: rgba(255,255,255,.75); }
.art-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, rgba(201,168,76,.14) 0%,
    rgba(18,19,21,.10) 45%, rgba(18,19,21,.34) 100%);
  mix-blend-mode: multiply;
}
.art-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,11,13,.6) 0%, rgba(10,11,13,0) 28%),
    linear-gradient(180deg, rgba(10,11,13,0) 42%,
      rgba(10,11,13,.86) 86%, rgba(10,11,13,.96) 100%);
}
.art-cover-text { position: relative; z-index: 2; width: 100%; padding: 44px 48px 46px; }
.art-cover .h1r { padding: 0; }
.art-cover h1 {
  color: #fff; max-width: 26ch; margin: 0 0 12px;
  font-size: clamp(34px, 3.6vw, 58px); line-height: 1.04;
  text-shadow: 0 1px 20px rgba(0,0,0,.5);
}
.art-kicker {
  margin: 0 0 12px; font-family: var(--rl-mono, ui-monospace, monospace);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #e2c777; text-shadow: 0 1px 10px rgba(0,0,0,.75);
}
.art-cover .art-meta {
  color: rgba(255,255,255,.8); border-bottom: 0; padding: 0; margin: 0;
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
}
.art-cover .art-meta span + span::before { color: rgba(255,255,255,.4); }
@media (max-width: 900px) {
  .art-cover { min-height: 280px; border-radius: 8px; }
  .art-cover-text { padding: 24px 20px 28px; }
  .art-cover figure figcaption { position: static; text-align: left;
    padding: 0 20px 12px; color: rgba(255,255,255,.7); }
}

/* ---- footer, centered under the measure (no rail) ---------------------- */
.rl-foot {
  padding: 26px 48px 40px; max-width: 980px; margin: 0 auto;
  font-family: var(--rl-mono, ui-monospace, monospace); font-size: 9.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--el-mute);
}
.rl-foot span { display: block; border-top: 1px solid var(--el-line); padding-top: 14px; }

.shelf-blurb { max-width: 72ch; color: var(--el-ink-soft); margin: 6px 0 12px; }

/* ---- related 'Elsewhere' sections on module pages ---------------------- */
.art-related { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--el-line); }
.art-related h2 { font-size: 20px; margin: 0 0 12px; }
.art-related .ref-list { border-top: 0; }
.art-related-more { margin-top: 12px; font-family: var(--rl-mono, ui-monospace, monospace); font-size: 11px; }
.art-related-more a { color: var(--el-accent); text-decoration: none; }

/* ---- umgc-style duotone on every standing image + location label ------- */
.card-media { position: relative; background: #17181b; }
.card-media img {
  filter: grayscale(.7) sepia(.26) contrast(1.06) brightness(.86) saturate(.75);
}
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,11,13,.26) 0%,
    rgba(10,11,13,0) 30%, rgba(10,11,13,.7) 100%);
}
.card-media::before {
  content: attr(data-loc); position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--rl-mono, ui-monospace, monospace); font-size: 8.5px;
  letter-spacing: .14em; text-transform: uppercase; color: #e2c777;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
.ref-thumb { filter: grayscale(.6) sepia(.22) contrast(1.04) brightness(.9) saturate(.7); }
.article .full > figure img, .article .viz figure img, .ref-intro-fig img, .ref-hero-fig img {
  filter: grayscale(.5) sepia(.22) contrast(1.04) brightness(.92) saturate(.72);
}
