/* 两条路：章节、年份行、中缝的三种状态、格子、图、详情、尾页。

   版式规则（spec §3）：左栏永远鲁迅，右栏永远池田大作，同一年永远同一行。
   每行是三列网格：[lu] 1fr | [seam] 中缝 | [ik] 1fr。两个格子用 subgrid 共用三条行轨
   （一句话 / 图 / 详情），两栏的首行、图、「详情」各自对齐。
   手机（< 40rem）：两栏各占半屏，中缝是一道 12px 的海，年份在两栏之上；
   更宽：年份落在中缝里。

   中缝（data-seam）：
     none    海：一道深靛的空缝，两人无关。
     solid   海里刻出一道白线：2000 年后有人把路走通了。
     merged  海没了，两栏铺在同一张纸上：两条路成了一条。
   缝由两层画：章节的 ::before 画整章的底（缝在行与行之间也连着），每行的 ::before 再按本行的状态画一遍，
   所以每一行的样子只由它自己的 data-seam 决定。只有展名自带两栏底色，把缝挡住（「鲁迅对话｜池田大作」正好在栏界分开）；
   导语、章名、对谈说明这些跨两栏的成段文字贴在一张题签上，题签压在海上，栏界不从字中间切过。

   生命线（data-alive，按 sortYear）：鲁迅一条墨线、池田一条靛线，各在自己那栏靠海的留白里，只画在他在世的行上。
   ① 鲁迅那条从开场那句话起笔（圆点），③ 1928 池田那条起笔，④ 1936 墨线渐隐，2023 靛线也在他去世那一句往下渐隐
   （data-life-end）；想象的对谈在两人的年岁之外（那一章的 data-alive 为空），不画；两栏合一之后，海的位置上是同一条路。
   生命线画在行框上，逐行显现只淡入行里的内容：线不跟着淡、不跟着位移，主干一直是连着的。 */

/* ── 章节 ─────────────────────────────────────────────────────────────────── */
.Chapter {
  display: flow-root;   /* 末一行的 margin（④ 的留白）不穿出章节：海要一直铺到章末 */
  position: relative;
  isolation: isolate;
  max-width: var(--page-max);
  margin-inline: auto;
}

.Chapter::before,
.Row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: calc(50% - var(--seam-w) / 2);
  width: var(--seam-w);
  background-color: var(--sea);
  background-image: var(--seam-line, none);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: var(--seam-line-w) 100%;
}

/* 整章的底：章里有实线行，这一章的缝就是实线 */
.Chapter:has(> .Row[data-seam="solid"]) {
  --seam-line: linear-gradient(var(--seam-color), var(--seam-color));
}

/* 展名自带两栏底色，挡住中缝 */
.Title { background: var(--split); }

/* 题签：跨两栏的成段文字所在的那张纸 */
.Lede [lang],
.Chapter__title [lang],
.Dialogue__intro [lang],
.Title [lang="en"] {
  background: var(--paper-slip);
  box-shadow: 0 0 0 1px rgb(28 24 20 / 0.08), 0 6px 16px -10px rgb(28 24 20 / 0.45);
}
.Lede [lang],
.Chapter__title [lang],
.Dialogue__intro [lang] {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* 开场 */
.Title {
  padding: clamp(2.75rem, 9vh, 6.5rem) var(--edge-r) clamp(1.5rem, 4vh, 2.5rem) var(--edge-l);
  text-align: center;
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.08em;
}
.Title [lang="zh-CN"] { padding-inline-start: 0.08em; } /* 补上末字后的字距，字面居中 */
.Title [lang="en"] {
  display: inline-block;
  padding: 0.04em 0.3em 0.1em;
  font-weight: 400;
  font-size: 0.86em;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
html:not([data-lang]) .Title [lang="en"] { display: block; width: fit-content; margin-inline: auto; font-size: 0.5em; line-height: 1.15; }

.Lede {
  padding: 0 var(--edge-r) clamp(2rem, 6vh, 3.5rem) var(--edge-l);
  text-align: center;
  font-size: var(--fs-lede);
  line-height: var(--lh);
  color: var(--ink-soft);
}

.Lede [lang] { max-width: min(100%, 36rem); padding: 1rem 1.375rem; }
html:not([data-lang]) .Lede [lang="en"] { margin-top: 0; padding-top: 0; }
html:not([data-lang]) .Lede [lang="zh-CN"] { padding-bottom: 0.5rem; }

.Chapter__title {
  --track: 0.14em;
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 11vh, 7.5rem) var(--edge-r) clamp(1.5rem, 4vh, 2.75rem) var(--edge-l);
  text-align: center;
  font-size: var(--fs-chapter);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--track);
}
/* 题签的左内边多加一个字距：末字后的字距补齐，字面居中 */
.Chapter__title [lang="zh-CN"] { padding: 0.3em 0.75em 0.32em calc(0.75em + var(--track)); }
.Chapter__title [lang="en"] { padding: 0.25em 0.7em 0.3em; font-weight: 400; letter-spacing: 0; font-size: 1.06em; }
html:not([data-lang]) .Chapter__title [lang="en"] { margin-top: 0; font-size: max(1rem, 0.62em); }

#ch-prologue > .Chapter__title { --track: 0.1em; padding-top: 0; font-size: calc(var(--fs-chapter) * 0.72); }

/* ── 年份行 ───────────────────────────────────────────────────────────────── */
.Row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: [lu-start] minmax(0, 1fr) [lu-end seam-start] var(--seam-w) [seam-end ik-start] minmax(0, 1fr) [ik-end];
  padding-block: var(--row-pad);
  --seam-line: none;
}
.Row[data-key] { padding-block: var(--row-pad-key); }

.Row[data-seam="solid"] { --seam-line: linear-gradient(var(--seam-color), var(--seam-color)); }

/* ── 生命线 ──────────────────────────────────────────────────────────────────
   每行（和章名那一段）的 ::after 铺满整宽，背景里分层画：两个起点圆点、两条生命线、合一之后的那条路。
   横向位置：海的两岸各往栏里退半个留白。 */
.Row::after,
.Chapter__title::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--life-t, 0) 0 var(--life-b, 0);
  pointer-events: none;
  --lu-x: calc(50% - var(--seam-w) / 2 - var(--inner) / 2);
  --ik-x: calc(50% + var(--seam-w) / 2 + var(--inner) / 2);
  background-image: var(--lu-cap, none), var(--ik-cap, none), var(--lu-life, none), var(--ik-life, none), var(--road, none);
  background-repeat: no-repeat;
  background-size: var(--cap-d) var(--cap-d), var(--cap-d) var(--cap-d), var(--life-w) 100%, var(--life-w) 100%, var(--seam-line-w) var(--road-h, 100%);
  background-position: var(--lu-x) var(--cap-y, 0), var(--ik-x) var(--cap-y, 0), var(--lu-x) 0, var(--ik-x) 0, 50% 0;
}
.Row[data-alive~="lu"] { --lu-life: linear-gradient(var(--ink), var(--ink)); }
.Row[data-alive~="ikeda"] { --ik-life: linear-gradient(var(--indigo), var(--indigo)); }
/* 章名那一段：这一章第一行他还在世，线就从上一章接过来（开场那章不接：鲁迅的线从开场那句话起笔） */
.Chapter:not(#ch-prologue):has(> .Row:first-of-type[data-alive~="lu"]) > .Chapter__title { --lu-life: linear-gradient(var(--ink), var(--ink)); }
.Chapter:not(#ch-prologue):has(> .Row:first-of-type[data-alive~="ikeda"]) > .Chapter__title { --ik-life: linear-gradient(var(--indigo), var(--indigo)); }

/* 起笔：① 开场鲁迅那句、③ 1928 池田那句，线从这一句的中线开始，带一个圆点 */
.Row { --cap-y: calc(var(--birth-y) - var(--cap-d) / 2); }
.Row[data-key="1"] {
  --lu-life: linear-gradient(transparent var(--birth-y), var(--ink) var(--birth-y));
  --lu-cap: radial-gradient(circle closest-side, var(--ink) calc(100% - 1px), transparent);
}
.Row[data-key="3"] {
  --ik-life: linear-gradient(transparent var(--birth-y), var(--indigo) var(--birth-y));
  --ik-cap: radial-gradient(circle closest-side, var(--indigo) calc(100% - 1px), transparent);
}

/* ④ 1936：鲁迅那条墨线从这一句往下渐隐；这一行前后用 margin 留出最安静的一屏，生命线伸进留白里接上 */
.Row[data-key="4"] {
  margin-block: var(--quiet-t) var(--quiet-b);
  --life-t: calc(-1 * var(--quiet-t));
  --life-b: calc(-1 * var(--quiet-b));
  --lu-life: linear-gradient(var(--ink) calc(var(--quiet-t) + var(--birth-y)), transparent 78%);
}

/* 2023：池田那条靛线从他去世那一句往下渐隐，与 ④ 鲁迅那条一样 */
.Row[data-life-end~="ikeda"] { --ik-life: linear-gradient(var(--indigo) var(--birth-y), transparent 78%); }

/* 两栏合一之后：海的位置上是同一条路 */
.Row[data-seam="merged"] { --road: linear-gradient(var(--road-color), var(--road-color)); }

/* 两栏合一：一张纸铺满整宽。border-image 只向左右外扩（outset 是绘制溢出，不产生横向滚动），
   上下不溢出，相邻两行之间不留缝 */
.Row[data-seam="merged"] {
  border-image: linear-gradient(var(--paper-merged), var(--paper-merged)) fill 0 / / 0 100vmax;
}
.Row[data-seam="merged"]::before { display: none; }

/* 年份：手机上是缝上的一枚小签，横跨两栏居中 */
.Row__year {
  grid-column: 1 / -1;
  justify-self: center;
  margin-bottom: 0.5rem;
  padding: 0.0625rem 0.625rem 0.125rem;
  background: var(--sea);
  color: var(--sea-ink);
  font-family: var(--font-en);
  font-size: var(--fs-year);
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
  white-space: nowrap;
  --soft: var(--sea-ink-soft);
}
/* 居中的字补上末字后的字距：数字年份补 0.06em，中文签（想象、此后）字距 0.2em 补 0.2em */
.Row__year:not(:has([lang])) { padding-inline-start: calc(0.625rem + 0.06em); }
.Row__year [lang="zh-CN"] { letter-spacing: 0.2em; padding-inline-start: 0.2em; }
.Row__year [lang="en"] { padding-inline-start: 0.06em; }
.Row[data-seam="merged"] .Row__year {
  background: var(--paper-merged);
  color: var(--ink);
  --soft: var(--ink-soft);
}

/* ── 格子 ─────────────────────────────────────────────────────────────────── */
.Cell {
  position: relative;
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
  min-width: 0;
  overflow-wrap: break-word;
}
.Cell--lu {
  grid-column: lu;
  padding-inline: var(--edge-l) var(--inner);
  color: var(--ink);
  --soft: var(--ink-soft);
  --plate: var(--lane-lu-plate);
}
.Cell--ikeda {
  grid-column: ik;
  padding-inline: var(--inner) var(--edge-r);
  color: var(--indigo);
  --soft: var(--indigo-soft);
  --plate: var(--lane-ikeda-plate);
}
.Cell > * { align-self: start; min-width: 0; }
.Cell > .Cell__line { grid-row: 1; }
.Cell > .Figure { grid-row: 2; margin-top: 0.5rem; }
.Cell > .Cell__more { grid-row: 3; margin-top: 0.375rem; }
/* 这一格没有图：「详情」紧跟在一句话下面，不去对齐另一栏的图下沿 */
.Cell:not(:has(> .Figure)) > .Cell__more { grid-row: 2; }

/* 一句话 */
.Cell__line {
  font-size: var(--fs-line);
  line-height: var(--lh);
}
.Row[data-key] .Cell__line { font-size: var(--fs-line-key); }

/* ⑤ 鲁迅的话漂过中缝：关键画面 ⑤ 那一行，鲁迅栏里 kind=echo 的那一句写在一张纸条上，越过海伸进右栏的留白
   （止于池田那栏的字之前，至少留 6px）。纸条略斜，像是漂过去的；字本身不转，两栏首行照样对齐。
   别处的 echo（对谈、收尾）不越界。 */
.Row[data-key="5"] > .Cell--lu[data-kind="echo"] > .Cell__line {
  position: relative;
  z-index: 0;
  margin-inline-end: calc(-1 * (var(--inner) + var(--seam-w) + var(--lean)));
  padding-inline-end: var(--slip-pad);
  margin-bottom: 0.75rem;
}
.Row[data-key="5"] > .Cell--lu[data-kind="echo"] > .Cell__line::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.4em calc(-1 * var(--slip-r)) -0.45em -0.5em;
  background: var(--bubble-lu);
  box-shadow: 0 0 0 1px rgb(28 24 20 / 0.14), 0 6px 14px -8px rgb(28 24 20 / 0.5);
  rotate: -0.6deg;
}

/* 旁白（某一栏当年没有他的事，给的是叙述者的一句）：声音放轻；英文用斜体 */
.Chapter:not(#ch-prologue) .Cell[data-kind="aside"] .Cell__line { color: var(--soft); }
.Chapter:not(#ch-prologue) .Cell[data-kind="aside"] .Cell__line [lang="en"] { font-style: italic; }

/* 引文（收尾那句《故乡》） */
.Cell__line--quote { font-size: clamp(1.1875rem, 0.9rem + 1.2vw, 2rem); line-height: 1.65; }
html[data-lang="en"] .Cell__line--quote { line-height: 1.35; }
.Cell__line--quote [lang="zh-CN"] { font-weight: 600; }
.Cell__line--quote [lang="en"] { font-style: italic; }
.Cell__cite { margin-top: 0.75rem; font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--soft); }
html:not([data-lang]) .Cell__line--quote p:first-child [lang="en"] { font-size: 0.8em; }

/* ── 图 ───────────────────────────────────────────────────────────────────── */
.Figure { width: 100%; max-width: min(100%, calc(var(--figure-max-h) * var(--ar, 1.5))); }
/* 每栏一条左边线：一句话、图、AI 标注、「详情」都从同一处起 */
.Cell > .Figure { justify-self: start; }
.Figure picture { display: block; }
.Figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--plate, var(--lane-lu-plate));
  /* 图没到（或被拦）时 alt 显示在图版里 */
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--soft, var(--ink-soft));
}
.Figure figcaption { margin-top: 0.3rem; }

/* 「AI 艺术再现」：看得清，但不抢画面 */
.AiLabel,
.Figure__credit {
  font-size: var(--fs-small);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--soft, var(--ink-soft));
}
.AiLabel [lang="en"],
.Figure__credit [lang="en"] { letter-spacing: 0.02em; }

/* 想象的对谈的两幅侧像面对面：两格的图在同一条 subgrid 行轨上，顶边本来齐平；--eye-offset 把鲁迅那幅上下挪，
   让两人的视线落在同一高度（百分比按图宽算，4:5 竖幅里 1% 图宽 = 0.8% 图高）。
   现在这一对图：鲁迅的眼睛在原图 202.5/1402，池田在 198/1402，鲁迅低 0.32% 图高 = 0.4% 图宽，所以上移 0.4%。
   这个值只对现在这一对图成立；换了任何一幅就重量两人眼睛的高度。 */
#row-dialogue { --eye-offset: -0.4%; }
#row-dialogue .Cell--lu > .Figure picture { margin-top: var(--eye-offset); }

/* ── 详情 ─────────────────────────────────────────────────────────────────── */
.Cell__more > summary {
  position: relative;
  width: fit-content;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.6875rem 0 0.6875rem 1.375rem;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-small);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--soft);
}
.Cell__more > summary::-webkit-details-marker { display: none; }
.Cell__more > summary [lang="en"] { letter-spacing: 0.01em; }
.Cell__more > summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.Cell--ikeda .Cell__more > summary:hover { color: var(--indigo); }
/* 加号 / 减号：两道 1.5px 的笔画 */
.Cell__more > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.6875rem + 0.75em - 0.375rem);
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.Cell__more[open] > summary::before {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 0 no-repeat;
}

.Cell__more[open] { padding-bottom: 0.5rem; }
.Cell__detail {
  font-size: var(--fs-detail);
  line-height: var(--lh);
  max-width: 34em;
}

.Sources {
  margin-top: 0.875rem;
  border-top: 1px solid var(--hairline);
}
.Source {
  /* 上下留白装得下链接撑开的点按范围（--hit-pad 比行框多出 11.8px）：相邻两条出处的点按范围不重叠 */
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.Source__locator { color: var(--soft, var(--ink-soft)); }
/* 出处链接、尾页图清单的 #fig-… 链接单独成行：点按范围上下各撑开 --hit-pad，够 44px 高。
   行内元素的上下 padding 不推开行框，版面不动；position: relative 让它压在同一条里后面那几行字（出处的说明、
   图清单的标注）上面，不然那些字的字框会把撑开的那一截挡掉。键盘焦点框照旧贴着字：focus-visible 时收回
   padding（行内 padding 收放都不动版面）。 */
.Source__title a,
.AiList__id a {
  position: relative;
  padding-block: var(--hit-pad);
}
.Source__title a:focus-visible,
.AiList__id a:focus-visible { padding: 0; }

/* 手机上半栏太窄，打开的详情不能在半屏里读长段落：打开的那一格铺满整行（带上自己那栏的纸色），
   另一格挪到下面，仍在自己那一栏 */
@media (max-width: 39.99rem) {
  .Cell:has(> .Cell__more[open]) {
    grid-column: 1 / -1;
    padding-inline: var(--edge-l) var(--edge-r);
    padding-block: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;   /* 与挪到下面的另一格隔开 */
  }
  .Cell--lu:has(> .Cell__more[open]) { background: var(--lane-lu-bg); }
  .Cell--ikeda:has(> .Cell__more[open]) { background: var(--lane-ikeda-bg); }
  /* 铺满整行时纸条不再越界 */
  .Row[data-key="5"] > .Cell:has(> .Cell__more[open]) > .Cell__line { margin-inline-end: 0; }
}

/* ── 年份落进中缝（横屏手机、平板、桌面） ───────────────────────────────── */
@media (min-width: 40rem) {
  .Row__year {
    grid-column: seam;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    /* 至少与海同宽（把实线挡住），字多（「1881 · 1928」「Imagined」）就向两栏各伸出一点 */
    width: max-content;
    min-width: 100%;
    max-width: calc(100% + 2 * var(--inner) - 0.5rem);
    margin: 0;
    padding: 0.25rem 0.375rem 0.375rem;
  }
  .Row__year:not(:has([lang])) { padding-inline-start: calc(0.375rem + 0.06em); }
  .Cell { grid-row: 1 / span 3; }
  /* 年份单占一行轨，两格从它下面起：⑤ 纸条要越过海，不压住年份；① 的年份签「1881 · 1928」比海宽，
     放在字旁边会挤着两栏的字，也压住鲁迅那条线的起笔圆点 */
  .Row:is([data-key="1"], [data-key="5"]) > .Row__year { margin-bottom: 1rem; }
  .Row:is([data-key="1"], [data-key="5"]) > .Cell { grid-row: 2 / span 3; }
  /* ① 起笔圆点随之落到年份签下面、那一句第一行的中线：行顶留白 + 年份签（字高 1.5 行 + 上下 0.625rem）+ 1rem + 半行 */
  .Row[data-key="1"] { --birth-y: calc(var(--row-pad-key) + var(--fs-year) * 1.5 + 1.625rem + var(--fs-line-key) * var(--lh) / 2); }
}

/* ── 关键画面 ────────────────────────────────────────────────────────────── */
/* ④ 1936：全展最安静的一屏（留白见上面生命线一节：margin 不进行高）；高一点的屏再多留一些 */
@media (min-width: 40rem) and (min-height: 36rem) {
  .Row[data-key="4"] { --quiet-t: 16vh; --quiet-b: 18vh; }
}
@supports (height: 1svh) {
  @media (min-width: 40rem) and (min-height: 36rem) {
    .Row[data-key="4"] { --quiet-t: 16svh; --quiet-b: 18svh; }
  }
}

/* ⑧ 之后：两栏合一的行里另一栏空着，就让这一格占满整条路（《故乡》那句收尾） */
.Row[data-seam="merged"]:has(> .Cell--empty) > .Cell--empty { display: none; }
.Row[data-seam="merged"]:has(> .Cell--empty) > .Row__year { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 1.25rem; }
.Row[data-seam="merged"]:has(> .Cell--empty) > .Cell:not(.Cell--empty) {
  grid-column: 1 / -1;
  grid-row: 2 / span 3;
  padding-inline: max(var(--edge-l), calc((100% - 46rem) / 2)) max(var(--edge-r), calc((100% - 46rem) / 2));
  text-align: center;
}
.Row[data-seam="merged"]:has(> .Cell--empty) .Cell__more > summary { margin-inline: auto; }
.Row[data-seam="merged"]:has(> .Cell--empty) .Figure,
.Row[data-seam="merged"]:has(> .Cell--empty) .Cell__detail { margin-inline: auto; }
.Row[data-seam="merged"]:has(> .Cell--empty) .Sources { text-align: start; }
#ch-onward { padding-bottom: 0; }
/* 收尾这一行：那条路从行顶走到「此后」，在它上方淡去 */
.Row[data-seam="merged"]:has(> .Cell--empty) {
  --road-pt: clamp(3rem, 12vh, 8rem);
  --road: linear-gradient(var(--road-color) 35%, transparent);
  --road-h: calc(var(--road-pt) - 0.75rem);
  padding-block: var(--road-pt) clamp(3.5rem, 14vh, 9rem);
}

/* ── 逐行显现（js/reveal.js 给进入视口的行加 .is-in）：只在显现脚本接手（html.has-reveal）、且不要求减少动效时
   先藏后显；无 JS、脚本没到、减少动效、打印时行一开始就在，也没有过渡。
   藏的、淡入上移的是行里的内容（年份签与两格），不是行框：中缝、生命线（行的 ::before / ::after）与合一的纸
   一直在原处，主干不跟着一行一行地淡、也不跟着位移。has-reveal 加上之前，首屏（及其上方）的行已经是 .is-in。 */
@media screen and (prefers-reduced-motion: no-preference) {
  .has-reveal .Row:not(.is-in) > * {
    opacity: 0;
    translate: 0 1rem;
  }
  /* 过渡只挂在显现那一侧：藏起来（屏外的行）那一刻没有过渡 */
  .has-reveal .Row.is-in > * {
    transition: opacity var(--reveal) var(--ease-out), translate var(--reveal) var(--ease-out);
  }
}

/* ── 尾页：出处与署名，一栏，铺在合一的纸上 ───────────────────────────────── */
#ch-colophon {
  padding: clamp(3rem, 10vh, 6rem) var(--edge-r) clamp(4rem, 12vh, 7rem) var(--edge-l);
  border-image: linear-gradient(var(--paper-merged), var(--paper-merged)) fill 0 / / 0 100vmax;
  color: var(--ink);
  --soft: var(--ink-soft);
}
#ch-colophon::before { display: none; }
#ch-colophon > * { max-width: 44rem; margin-inline: auto; }
#ch-colophon > .Chapter__title {
  padding: 0 0 1.5rem;
  font-size: calc(var(--fs-chapter) * 0.8);
}
#ch-colophon > .Chapter__title::after { display: none; }
#ch-colophon > .Chapter__title [lang] { background: none; box-shadow: none; padding-block: 0; }
.Colophon__heading {
  margin-top: 2.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.Colophon__heading [lang="en"] { font-weight: 400; letter-spacing: 0.02em; }
.Colophon__heading + * { margin-top: 0.75rem; }

.AiList__item,
.PhotoList__item {
  display: grid;
  gap: 0.125rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.AiList__id code {
  font-family: var(--font-en);
  font-size: 1em;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.AiList__id a { padding-inline-end: 1rem; }   /* 最短的 #fig-road 也有 44px 宽；它后面没有字，不挪版面 */
.AiList__alt,
.PhotoList__alt { font-size: 0.9375rem; }
.AiList .AiLabel { font-size: var(--fs-small); }
.Sources--all { margin-top: 0.75rem; }

.Credit {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1rem;
}
.Credit img { flex: none; width: 2.25rem; height: auto; }
.Credit__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.06em; }
.Credit__name [lang="en"] { font-weight: 400; letter-spacing: 0.01em; }

@media (min-width: 40rem) {
  .AiList__item { grid-template-columns: 11rem 1fr; column-gap: 1.25rem; }
  .AiList__item > .AiList__id { grid-row: 1 / span 2; }
}
