/* along7 gallery — self-contained stylesheet, dark default + light via [data-theme] */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d10; --panel: #15151a; --panel2: #1b1b21;
  --fg: #eae8e2; --muted: #908d7f; --line: #26262e;
  --accent: #c8a25c; --shadow: rgba(0,0,0,.5);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f0; --panel: #ffffff; --panel2: #efede6;
  --fg: #17150f; --muted: #6e6b5e; --line: #e0ddd2;
  --accent: #8a6a2f; --shadow: rgba(60,55,40,.18);
}
/* Display face: Fraunces (SIL Open Font License 1.1). Served locally from
   /assets/ — self-contained, no CDN. Variable weight 300–700 + optical sizing. */
@font-face {
  font-family: "Fraunces";
  src: url("fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
:root { --serif: "Fraunces", Georgia, "Times New Roman", serif;
        --sans: system-ui, "Segoe UI", sans-serif; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font: 16px/1.62 var(--sans);
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, .wordmark {
  font-family: var(--serif); font-weight: 400;
  font-optical-sizing: auto; letter-spacing: -0.01em; line-height: 1.12;
}
h1 { font-weight: 500; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* header / footer */
header.site {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); z-index: 20;
}
.wordmark { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.wordmark span { color: var(--accent); font-style: italic; font-weight: 400; }
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); padding: 4px 2px; }
header.site nav a:hover, header.site nav a.here { color: var(--fg); }
.tools { margin-left: auto; display: flex; gap: 10px; }
.tools button {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 6px 13px; font-size: 14px; cursor: pointer;
}
.tools button:hover { color: var(--fg); border-color: var(--muted); }
.navtoggle { display: none; font-size: 16px; line-height: 1; }
footer.site {
  border-top: 1px solid var(--line); margin-top: 80px;
  padding: 34px 28px; color: var(--muted); font-size: 13px;
}
/* footer colophon: the brand sign-off */
.colophon-mark {
  display: inline-block; font-family: var(--serif); font-weight: 500;
  font-size: 21px; letter-spacing: -0.02em; margin-bottom: 12px;
}
.colophon-mark span { color: var(--accent); font-style: italic; font-weight: 400; }
.colophon-mark:hover span { text-decoration: none; opacity: .85; }
.colophon { max-width: 60em; margin-top: 4px; opacity: .82; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero img { width: 100%; max-height: 78vh; object-fit: cover; }
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}
.hero .label { position: absolute; left: 0; right: 0; bottom: 26px; }
.hero .label h1 { font-size: clamp(28px, 5vw, 52px); text-shadow: 0 2px 18px var(--shadow); }
.hero .label p { color: var(--fg); opacity: .85; font-size: 17px; margin-top: 4px; }
.hero .label .kicker {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px;
  color: var(--fg); opacity: .82; margin-bottom: 10px; display: block;
}

/* landing sections */
section.band { padding: 68px 0 0; }
section.band h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 20px; letter-spacing: .2px; }
section.band h2 .more, .pagehead .more {
  font-size: 14px; color: var(--muted); font-family: system-ui; margin-left: 14px;
  font-weight: 400;
}
.statement { font-size: 19px; line-height: 1.75; max-width: 46em; color: var(--fg); }
.statement em { color: var(--fg); font-style: italic; }
.welcome {
  margin-top: 22px; max-width: 60em; color: var(--muted); font-size: 15.5px;
  line-height: 1.7; border-top: 1px solid var(--line); padding-top: 18px;
}
.welcome a { color: var(--accent); border-bottom: 1px dotted; }
.welcome a:hover { border-bottom-style: solid; }
.stats { display: flex; gap: 44px; flex-wrap: wrap; padding: 34px 0 6px; }
.stats div b { display: block; font-size: 34px; font-family: var(--serif); font-weight: 400; }
.stats div span { color: var(--muted); font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.2px; }

/* grids + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: transform .14s ease, border-color .14s, box-shadow .14s;
}
.card:hover { transform: translateY(-3px); border-color: var(--muted); box-shadow: 0 10px 30px var(--shadow); }
.card .thumbwrap { position: relative; }
.card img.thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel2); }
.badge {
  position: absolute; top: 9px; right: 9px; font-size: 11px; letter-spacing: .6px;
  background: rgba(10,10,12,.62); color: #fff; padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card .meta { padding: 11px 13px 13px; }
.card .meta .t { font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card .meta .s { font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* artist cards */
.card.artist { display: flex; gap: 14px; align-items: center; padding: 16px; }
.card.artist img, .card.artist .ph {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--panel2); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; color: var(--muted);
}
.card.artist .t { font-size: 17px; }
.card.artist .s { color: var(--muted); font-size: 13px; }

/* artist page */
.artist-head { display: flex; gap: 26px; align-items: center; padding: 44px 0 10px; flex-wrap: wrap; }
.artist-head img, .artist-head .ph {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  background: var(--panel2); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 44px; color: var(--muted); flex: none;
}
.artist-head h1 { font-size: 36px; }
.artist-head .bio { color: var(--fg); opacity: .85; max-width: 52em; margin-top: 6px; white-space: pre-line; }
.artist-head .links { margin-top: 8px; font-size: 14px; }
.artist-head .links a { color: var(--accent); margin-right: 14px; }
.artist-head .aloc { margin-top: 2px; font-size: 14px; }
.artist-head .aloc a { color: var(--muted); }
.artist-head .aloc a::before { content: "◦ "; color: var(--accent); }
.artist-head .links .lk {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 12px; margin: 0 8px 6px 0; color: var(--fg); font-size: 13px;
}
.artist-head .links .lk:hover { border-color: var(--accent); color: var(--accent); }
.roomfacts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 0 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 10px 0 6px; font-size: 14px; color: var(--muted);
}
.roomfacts b { color: var(--fg); font-weight: 600; }
.elsewhere .elselinks { display: flex; flex-wrap: wrap; gap: 10px; }
.elsewhere .elselinks a {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px;
  color: var(--fg); font-size: 14px;
}
.elsewhere .elselinks a:hover { border-color: var(--accent); text-decoration: none; }
.elsewhere .elselinks .k {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.card.artist .s.dim { opacity: .55; font-size: 12px; margin-top: 2px; }
.attribution-todo {
  border: 1px dashed var(--accent); color: var(--muted); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; margin: 12px 0;
}

/* work page */
.workpage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); gap: 40px; padding-top: 38px; }
@media (max-width: 900px) { .workpage { grid-template-columns: 1fr; } }
.workmedia img, .workmedia video { width: 100%; border-radius: 8px; box-shadow: 0 14px 44px var(--shadow); }
.workmedia .livewrap { position: relative; }
.workmedia .livewrap button.runlive {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  padding: 13px 26px; font-size: 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid #fff; background: rgba(8,8,10,.55); color: #fff; backdrop-filter: blur(4px);
}
.workmedia iframe { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.workinfo h1 { font-size: 30px; line-height: 1.25; }
.workinfo .artistline { margin: 8px 0 20px; font-size: 17px; }
.workinfo .artistline a { color: var(--accent); }
.workinfo .desc { white-space: pre-wrap; color: var(--fg); opacity: .88; font-size: 15.5px; margin-bottom: 24px; }
.workinfo .desc.autocap { white-space: normal; opacity: .7; font-style: italic; border-left: 2px solid var(--line); padding-left: 12px; }
.noobhint { margin-top: 18px; font-size: 13px; color: var(--muted); }
.noobhint a { color: var(--accent); border-bottom: 1px dotted; }
.wall { border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.wall .k { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1.4px; display: block; margin-bottom: 3px; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; }
.traits span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; }
.traits span b { font-weight: 600; }
.filefacts { color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.filefacts a { color: var(--accent); }

/* collection page head */
.coll-head { padding: 44px 0 8px; display: flex; gap: 20px; align-items: center; }
.coll-head img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.coll-head h1 { font-size: 32px; }
.coll-head .s { color: var(--muted); }

/* prose (about) */
.prose { max-width: 46em; padding-top: 44px; font-size: 17px; line-height: 1.8; }
.prose h1 { font-size: 38px; margin-bottom: 22px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose p { margin-bottom: 18px; }
.prose em { color: var(--fg); }

/* masonry walls: true aspect ratios, no cropping */
.masonry { display: block; columns: 230px; column-gap: 16px; }
.masonry .card { break-inside: avoid; margin-bottom: 16px; display: block; }
.masonry .thumb { aspect-ratio: auto; height: auto; }
.masonry .thumbwrap { cursor: zoom-in; }

/* full-screen lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
#lightbox[hidden] { display: none; }
#lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
#lbximg {
  max-width: 90vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 18px 60px var(--shadow);
}
#lbxcap { padding: 14px 4px 0; font-size: 14.5px; }
#lbxcap b { font-family: var(--serif); font-weight: 400; font-size: 17px; display: block; }
#lbxcap span { color: var(--muted); display: block; margin: 2px 0 6px; }
#lbxcap a { color: var(--accent); }
#lbxprev, #lbxnext, #lbxclose {
  background: var(--panel); border: 1px solid var(--line); color: var(--fg);
  border-radius: 50%; width: 46px; height: 46px; font-size: 19px; cursor: pointer;
  flex: none; z-index: 71;
}
#lbxprev:hover, #lbxnext:hover, #lbxclose:hover { border-color: var(--accent); }
#lbxclose { position: absolute; top: 18px; right: 18px; }
@media (max-width: 700px) {
  #lbxprev, #lbxnext { position: absolute; bottom: 16px; }
  #lbxprev { left: 16px; } #lbxnext { right: 16px; }
}

/* scroll reveal (JS-gated so no-JS renders everything; off under reduced motion) */
body.js-reveal .masonry .card, body.js-reveal .band h2 {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
body.js-reveal .masonry .card.in, body.js-reveal .band h2.in {
  opacity: 1; transform: none;
}
body.js-reveal .masonry .card.in {
  transition: transform .14s ease, border-color .14s, box-shadow .14s;
}

/* inquire button (work pages) */
.inquire {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: 9px 20px; font-size: 14.5px;
  transition: background .14s ease, color .14s;
}
.inquire:hover { background: var(--accent); color: var(--bg); }

/* in-storage rows (works not yet archived) */
.storage { list-style: none; padding: 0; }
.storage li a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px;
  border-radius: 6px;
}
.storage li a:hover { background: var(--panel); }
.storage li a .s { color: var(--muted); white-space: nowrap; flex: none; }
.storage li a .s b { color: var(--accent); font-weight: 600; }

/* placeholder art panel on un-archived work pages */
.ph-art {
  aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: var(--panel); color: var(--muted); text-align: center;
  padding: 26px; font-size: 14px;
}
.ph-art .kicker {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px; color: var(--muted);
}
.ph-art .big { font-family: var(--serif); font-size: 24px; color: var(--fg); opacity: .72; }

/* fallback tile when a collection has no image yet */
.ph-tile {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 44px; color: var(--muted);
  background: var(--panel2);
}

/* living mosaic (homepage hero) */
.mosaic {
  position: relative; display: grid; gap: 4px;
  grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr;
  height: min(76vh, 720px); overflow: hidden; background: var(--bg);
}
@media (max-width: 800px) { .mosaic { grid-template-columns: repeat(3, 1fr); } .mosaic .mtile:nth-child(n+10) { display: none; } }
.mtile { position: relative; overflow: hidden; }
.mtile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 1.6s ease, transform 5s ease; opacity: .85;
}
.mtile:hover img { opacity: 1; transform: scale(1.04); }
.mtile img.fading { opacity: 0; }
.mveil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 20%, color-mix(in srgb, var(--bg) 78%, transparent) 90%),
              linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.mbrand {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; text-align: center;
  pointer-events: none; padding: 0 20px;
}
.mbrand .plate {
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 20px; padding: 28px 48px 26px;
  display: flex; flex-direction: column; align-items: center;
}
.mbrand .kicker {
  text-transform: uppercase; letter-spacing: 3.5px; font-size: 11.5px;
  color: var(--muted); font-family: var(--sans);
}
.mbrand h1 {
  font-size: clamp(44px, 8.5vw, 92px); line-height: 1.0; margin: 10px 0 10px;
  font-weight: 500; letter-spacing: -0.03em;
}
/* the brand wordmark: gold "gallery" matches the header mark and the social card */
.mbrand h1 em { color: var(--accent); font-style: italic; font-weight: 400; }
.mbrand p { font-size: 14px; opacity: .82; font-family: var(--sans);
  letter-spacing: .01em; }
.mbrand .tag {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--fg); opacity: .85; margin-top: 12px; letter-spacing: 0;
}
.mtile img.kb { transform: scale(1.05); }
@media (max-width: 800px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); height: 54vh; }
  .mosaic .mtile:nth-child(n+7) { display: none; }
  .mbrand .plate { padding: 20px 26px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtile img { transition: none; }
}

/* world map */
.worldmap svg { width: 100%; height: auto; display: block; }
.worldmap .land polygon {
  fill: var(--panel2); stroke: var(--line); stroke-width: 1; opacity: .8;
}
.worldmap .mdot {
  fill: var(--accent); opacity: .85; stroke: var(--bg); stroke-width: 1.5;
  transition: opacity .15s ease;
}
.worldmap a:hover .mdot { opacity: 1; }
.worldmap .mlabel {
  fill: var(--fg); font-size: 13px; text-anchor: middle;
  font-family: var(--serif); paint-order: stroke;
  stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round;
}

/* doors (homepage entry points) */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.door {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px;
  background: var(--panel); display: flex; flex-direction: column; gap: 4px;
  transition: transform .14s ease, border-color .14s;
}
.door:hover { transform: translateY(-3px); border-color: var(--accent); }
.door b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.door .n { color: var(--accent); font-size: 26px; font-family: var(--serif); }
.door .s { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* explore filters */
.filters { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; }
.fgroup { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 14px; font-size: 13.5px; cursor: pointer;
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
#esort {
  background: var(--panel); border: 1px solid var(--line); color: var(--fg);
  border-radius: 8px; padding: 6px 10px; font-size: 13.5px;
}
.ecount { color: var(--muted); font-size: 13.5px; margin-left: 10px; }
.card.filtered-out { display: none; }

/* timeline month navigator - rides above the site header so it's always clickable */
.monthbar {
  position: sticky; top: 0; z-index: 25; margin: 0 -24px;
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
section[id^="m20"] { scroll-margin-top: 64px; }
.monthbar .mbin {
  display: flex; gap: 6px; align-items: center; overflow-x: auto;
  padding: 10px 24px; scrollbar-width: thin;
}
.monthbar a {
  flex: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; color: var(--muted); background: var(--panel);
}
.monthbar a:hover { color: var(--fg); border-color: var(--accent); }
.monthbar a b { color: var(--accent); font-weight: 600; margin-left: 4px; }
.monthbar .ybadge {
  flex: none; font-family: var(--serif); color: var(--muted); font-size: 14px;
  padding: 0 6px 0 10px;
}
.backtop {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  box-shadow: 0 6px 20px var(--shadow);
}
.backtop:hover { color: var(--fg); border-color: var(--accent); }

/* infobox (work pages) + related artists + expanders */
.infobox { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--panel); }
.infobox .wall:first-child { border-top: none; }
a.ib { color: var(--accent); }
a.ib:hover { text-decoration: underline; }
.relatedbox {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 10px 14px; margin: 14px 0 4px; font-size: 14px;
}
.relatedbox .k { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1.4px; margin-right: 4px; }
.relatedbox a { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); }
.relatedbox a:hover { border-color: var(--accent); }
.relatedbox img, .relatedbox .ph {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--panel2); display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--muted);
}
.hidden-card { display: none; }
.gridmore {
  margin-top: 14px; background: none; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 8px 20px; font-size: 14px; cursor: pointer;
}
.gridmore:hover { color: var(--fg); border-color: var(--accent); }
.bio.dim { opacity: .6; font-style: italic; }

/* the story: a work's life as a timeline */
.story { list-style: none; padding: 0; max-width: 640px; position: relative; }
.story::before {
  content: ""; position: absolute; left: 96px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.story li {
  display: flex; gap: 22px; padding: 10px 0; position: relative; font-size: 15px;
}
.story li::after {
  content: ""; position: absolute; left: 92.5px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.story .sd {
  flex: none; width: 84px; text-align: right; color: var(--muted);
  font-size: 12.5px; padding-top: 2px;
}
.story .sb { padding-left: 18px; line-height: 1.55; }
.story .sb code { color: var(--muted); font-size: 12.5px; }
.sbids summary {
  cursor: pointer; color: var(--accent); font-size: 13px; margin-top: 4px;
}
.sbids ul { list-style: none; padding: 6px 0 0; }
.sbids li { font-size: 13px; color: var(--muted); padding: 2px 0; }
.sbids li b { color: var(--fg); }

/* prev/next walk between works */
.worknav {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 34px 0 6px; font-size: 14.5px;
}
.worknav a { color: var(--muted); padding: 8px 4px; }
.worknav a:hover { color: var(--accent); }

/* skip link (a11y) */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #111; padding: 8px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* search overlay */
#searchlay {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px); z-index: 60; padding: 12vh 24px 0;
}
#searchlay[hidden] { display: none; }
#searchlay .box { max-width: 640px; margin: 0 auto; }
#searchlay input {
  width: 100%; font-size: 20px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); outline: none;
}
#searchlay ul { list-style: none; padding: 8px 0; }
#searchlay li a {
  display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px;
  border-radius: 9px; font-size: 16px;
}
#searchlay li a:hover, #searchlay li a.sel { background: var(--panel); }
#searchlay li a .s { color: var(--muted); font-size: 13.5px; }
.section-pad { padding-top: 34px; }
.pagehead { padding: 44px 0 20px; }
.pagehead h1 { font-size: 36px; }
.pagehead p { color: var(--muted); margin-top: 6px; }

/* artists A–Z jump bar + letter sections */
.azbar {
  display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0 8px;
  position: sticky; top: 62px; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); padding: 8px 0; border-bottom: 1px solid var(--line);
}
.azbar a, .azbar span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; font-size: 13px; border-radius: 6px;
  font-family: var(--sans);
}
.azbar a { color: var(--accent); }
.azbar a:hover { background: var(--accent); color: var(--bg); }
.azbar span { color: var(--line); }
.azsec { scroll-margin-top: 100px; }
.azh { font-family: var(--serif); }

/* timeline v2: month boxes + day grid */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.mbox {
  position: relative; height: 92px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--panel2); padding: 0;
  text-align: left; color: var(--fg); font: inherit;
}
.mbox img { width: 100%; height: 100%; object-fit: cover; opacity: .38; display: block; }
.mbox .mo {
  position: absolute; left: 10px; top: 8px; font-family: var(--serif);
  font-size: 20px; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.mbox b {
  position: absolute; right: 8px; bottom: 6px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 9px;
}
.mbox:hover { border-color: var(--accent); }
.mbox:hover img { opacity: .6; }
.mbox.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mdetail h2 { display: flex; align-items: baseline; gap: 12px; }
.mclose {
  margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; width: 30px; height: 30px; cursor: pointer; font-size: 16px;
}
.mclose:hover { color: var(--accent); border-color: var(--accent); }
.dgrid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.dbox {
  min-width: 52px; padding: 7px 10px 5px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel2); color: var(--fg); cursor: pointer;
  font: 15px var(--serif); text-align: center;
}
.dbox b { display: block; font: 11px/1.4 system-ui, sans-serif; color: var(--muted); }
.dbox:hover { border-color: var(--accent); }
.dbox.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dhead { font-size: 15px; color: var(--muted); margin: 22px 0 10px; font-weight: 500; }
.dhead .more { font-size: 12.5px; }
@media (max-width: 560px) {
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .mbox { height: 74px; }
  .mbox .mo { font-size: 16px; }
}

/* prologue: the gaming years */
.erabox {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
  margin: 18px 0 6px; background: var(--panel);
}
.erabox:hover { border-color: var(--accent); }
.erabox .mo { font-family: var(--serif); font-size: 20px; }
.erabox .sub { color: var(--muted); font-size: 13.5px; flex: 1; min-width: 220px; }
.erabox b { color: var(--accent); font-weight: 500; }
/* timeline: honest note on a pre-collecting year */
.yearnote {
  color: var(--muted); font-size: 13.5px; font-style: italic;
  max-width: 60em; margin: -2px 0 14px; line-height: 1.5;
}
/* timeline foot: the origin the collecting descends into */
.beforeart { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.beforeart .beforelede {
  font-family: var(--serif); font-size: 18px; font-style: italic;
  color: var(--fg); opacity: .8; margin-bottom: 14px;
}
.prologue-prose { max-width: 62em; }
.prologue-prose h2 { margin-top: 40px; }
.herogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; }
.herocard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.herocard img, .herocard video { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; }
.herocard figcaption { padding: 16px 18px 18px; }
.herocard b { font-family: var(--serif); font-size: 20px; display: block; }
.herocard .sub { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.herocard .note { color: var(--fg); font-size: 14px; margin: 10px 0 4px; }
.herocard blockquote {
  color: var(--muted); font-size: 13.5px; border-left: 2px solid var(--line);
  padding-left: 12px; margin-top: 10px; font-style: italic;
}
.vidslots { display: flex; gap: 14px; flex-wrap: wrap; }
.vidslot {
  flex: 1; min-width: 240px; aspect-ratio: 16/7; border: 1px dashed var(--line);
  border-radius: 12px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; color: var(--muted); font-size: 15px;
}
.vidslot span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.gamecard .thumb.ph-game {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--panel2);
}

/* timeline: taste of the gaming era */
.erastrip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 4px; }
.erastrip .erapick {
  flex: 0 0 auto; width: 118px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--panel);
}
.erastrip .erapick img { width: 100%; height: 118px; object-fit: cover; object-position: top; }
.erastrip .erapick span {
  display: block; padding: 6px 9px 8px; font-size: 11.5px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.erastrip .erapick b { display: block; color: var(--muted); font-weight: 400; font-size: 10.5px; }
.erastrip .erapick:hover { border-color: var(--accent); }

/* mobile header: 8 tabs don't wrap into a mess - they scroll */
@media (max-width: 760px) {
  header.site { padding: 12px 16px; gap: 12px 16px; }
  .navtoggle { display: inline-flex; align-items: center; }
  header.site nav {
    order: 3; flex-basis: 100%; flex-direction: column; gap: 0;
    display: none;
  }
  header.site nav.open { display: flex; }
  header.site nav a {
    padding: 11px 4px; font-size: 15px; border-bottom: 1px solid var(--line);
  }
  header.site nav a:last-child { border-bottom: none; }
  .wordmark { font-size: 19px; }
}

/* v14: marketplace blurbs on Market page */
.platblurb {
  color: var(--fg); opacity: .82; max-width: 60em; font-size: 14.5px;
  margin: -6px 0 18px; line-height: 1.6;
}
.platblurb .pmeta { color: var(--muted); margin: 0 10px; font-size: 13px; }
.platblurb a { color: var(--accent); font-size: 13px; }

/* v14: the games section on Prologue */
.gamelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gameitem { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--panel); }
.gameitem h3 { font-family: var(--serif); font-size: 20px; }
.gameitem .gyears { color: var(--muted); font-size: 13px; font-family: system-ui; }
.gameitem .gblurb { color: var(--muted); font-size: 14px; margin: 8px 0; }
.gameitem .grole { color: var(--fg); font-size: 14.5px; margin: 8px 0; border-left: 2px solid var(--accent); padding-left: 12px; }
.gameitem .glink { color: var(--accent); font-size: 13px; }

/* v14: Learn page */
.learn h2 { margin-top: 44px; }
.learn .qa { border-top: 1px solid var(--line); padding: 22px 0; }
.learn .qa h3 { font-size: 19px; margin-bottom: 8px; }
.learn .qa p { color: var(--fg); opacity: .86; max-width: 60em; }
.learn .glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.learn .glossary div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.learn .glossary b { color: var(--fg); display: block; font-size: 14px; margin-bottom: 3px; }
.learn .glossary span { color: var(--muted); font-size: 13.5px; }
.followblock { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }
.followblock a { color: var(--accent); margin-right: 18px; font-size: 15px; }

/* v14: footer tagline */
footer.site .tagline {
  font-family: var(--serif); font-size: 17px; color: var(--fg);
  opacity: .9; margin-bottom: 14px; font-style: italic;
}

/* ===================== v16: the wiki layer ===================== */
/* auto-links inside prose/bios/notes read as "learn more" — gold, dotted */
a.wiki {
  color: var(--accent);
  border-bottom: 1px dotted color-mix(in srgb, var(--accent) 55%, transparent);
  transition: border-color .15s ease, background .15s ease;
}
a.wiki:hover {
  border-bottom-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* topic / entity page */
.pagehead .kind {
  display: inline-block; text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 11px; color: var(--muted); font-family: var(--sans);
  margin-bottom: 8px;
}
.topic-portrait {
  max-width: 320px; width: 100%; border-radius: 14px; margin: 8px 0 22px;
  border: 1px solid var(--line);
}
.topic-portrait-fig { margin: 8px 0 22px; max-width: 320px; }
.topic-portrait-fig .topic-portrait { margin: 0 0 6px; display: block; }
.topic-portrait-fig figcaption { color: var(--muted); font-size: 12.5px; font-style: italic; }
.topicbody { padding-top: 8px; }
.topiclinks { margin: 6px 0 18px; font-size: 14px; }
.topiclinks a { color: var(--accent); border-bottom: 1px solid transparent; }
.topiclinks a:hover { border-bottom-color: var(--accent); }
.topiclinks .storynote {
  display: block; color: var(--muted); font-style: italic;
  margin-top: 8px; max-width: 52em;
}
/* collector page: wallets + links */
.walletbox {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
  background: var(--panel); max-width: 640px; margin: 4px 0 8px;
}
.walletrow { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 3px 0; }
.walletrow .wl { color: var(--muted); font-size: 13px; min-width: 130px; }
.walletrow code { font-size: 12.5px; color: var(--fg); word-break: break-all; }
.walletlinks { margin-top: 10px; font-size: 14px; }
.walletlinks a { color: var(--accent); margin-right: 14px; }
/* gaming holdings grid on game/chain pages */
.assetgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-top: 6px;
}
.assetcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.assetcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.assetcard img, .assetcard video {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--panel2);
}
.assetcard figcaption { padding: 10px 12px 12px; }
.assetcard b { display: block; font-size: 14px; color: var(--fg); }
.assetcard span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.relrow { line-height: 2.1; max-width: 60em; }

/* collections index: compact list for the single-work rooms */
.singlelist {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 20px;
}
.singlelist a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.singlelist a:hover .t { color: var(--accent); }
.singlelist .t { font-size: 14.5px; }
.singlelist .s { color: var(--muted); font-size: 12.5px; text-align: right; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relrow a {
  color: var(--fg); border-bottom: 1px dotted var(--line); padding-bottom: 1px;
}
.relrow a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* the index (/wiki/) */
.wikifilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.wchip {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 13.5px; cursor: pointer;
  font-family: var(--sans); transition: border-color .15s, color .15s, background .15s;
}
.wchip:hover { color: var(--fg); border-color: var(--muted); }
.wchip.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.wikisec[hidden] { display: none; }
.wikigrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px; margin-top: 6px;
}
.wikicard {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: var(--panel); transition: border-color .15s ease, transform .15s ease;
}
.wikicard:hover { border-color: var(--accent); transform: translateY(-2px); }
.wikicard b { display: block; font-family: var(--serif); font-size: 18px; color: var(--fg); }
.wikicard span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
