/* ============================================================
   慎独 · 海水知天寒
   宣纸 / 墨 / 朱砂 / 夜海
   ============================================================ */

@font-face { font-family: "ZMX"; src: url("../fonts/zmx.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "SDSerif"; src: url("../fonts/serif-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "SDSerif"; src: url("../fonts/serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SDSerif"; src: url("../fonts/serif-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SDSerif"; src: url("../fonts/serif-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "LJMC"; src: url("../fonts/ljmc.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Corm"; src: url("../fonts/corm-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Corm"; src: url("../fonts/corm-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Corm"; src: url("../fonts/corm-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* 英文版正文：Newsreader，只含西文，汉字落到 SDSerif */
@font-face { font-family: "News"; src: url("../fonts/news-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-1FFF, U+2000-206F; }
@font-face { font-family: "News"; src: url("../fonts/news-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-1FFF, U+2000-206F; }
@font-face { font-family: "News"; src: url("../fonts/news-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-1FFF, U+2000-206F; }

:root {
  --paper: #eee8dc;
  --paper-2: #e6dfd0;
  --paper-3: #d9cfbc;
  --ink: #1a1b1e;
  --ink-2: #3b3a37;
  --ink-3: #6b665d;
  --rule: rgba(26, 27, 30, .16);

  --sea: #0d1821;
  --sea-2: #132331;
  --sea-3: #1b3043;
  --foam: #ebe6d8;
  --foam-2: #b3bec5;
  --foam-3: #7a8d9b;
  --rule-d: rgba(235, 230, 216, .14);

  --cinnabar: #c0432f;
  --cinnabar-deep: #9b3223;
  --indigo: #24323f;
  --tide: #6f9bb3;
  --ember: #e8664d;
  --gold: #c9a45c;
  --dawn: #f2b277;

  --brush: "ZMX", "SDSerif", "STXingkai", "Xingkai SC", "KaiTi", serif;
  --serif: "SDSerif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --latin: "Corm", "Cormorant Garamond", "SDSerif", "Songti SC", serif;
  --mono: "Plex", "IBM Plex Mono", "SDSerif", "Songti SC", ui-monospace, monospace;

  --wrap: min(1240px, 100% - clamp(40px, 8vw, 160px));
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.9;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
::selection { background: var(--cinnabar); color: var(--paper); }
p { margin: 0 0 1.1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 纸纹：一层固定的噪点 */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .16; mix-blend-mode: multiply;
}
.dark-tone .grain { mix-blend-mode: screen; opacity: .07; }

/* ---------- 通用排版 ---------- */
.wrap { width: var(--wrap); margin-inline: auto; position: relative; }
.mono { font-family: var(--mono); font-size: .74em; letter-spacing: .08em; }
.latin { font-family: var(--latin); font-style: italic; letter-spacing: .01em; }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: 0; }
.vt { writing-mode: vertical-rl; text-orientation: upright; }
.muted { color: var(--ink-3); }

.chapter { position: relative; padding: clamp(96px, 14vh, 180px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.paper-2 { background: var(--paper-2); color: var(--ink); }
.night { background: var(--sea); color: var(--foam); }
.night .muted { color: var(--foam-3); }

.ch-head {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(18px, 3vw, 40px);
  margin-bottom: clamp(48px, 8vh, 96px);
}
.ch-num {
  grid-row: span 2; font-family: var(--serif); font-weight: 900;
  font-size: clamp(72px, 10vw, 150px); line-height: .82; color: var(--cinnabar);
}
.ch-head h2 {
  margin: 0; font-weight: 900; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.1; letter-spacing: .08em;
}
.ch-meta { display: flex; gap: 1.4em; align-items: baseline; flex-wrap: wrap; margin-top: .5em; }
.ch-meta .mono { color: var(--ink-3); }
.night .ch-meta .mono { color: var(--foam-3); }
.ch-meta .latin { font-size: 1.15em; color: var(--ink-3); }
.night .ch-meta .latin { color: var(--foam-2); }
/* 每章右侧的纠错入口，带上章节锚点 */
.ch-fix { margin-left: auto; font-size: 13px; letter-spacing: .14em; text-decoration: none; opacity: .5; padding: 2px 0; border-bottom: 1px solid transparent; transition: opacity .3s, color .3s, border-color .3s; }
.ch-fix:hover, .ch-fix:focus-visible { opacity: 1; color: var(--cinnabar); border-bottom-color: currentColor; }
[data-tone="dark"] .ch-fix:hover, [data-tone="dark"] .ch-fix:focus-visible { color: var(--ember); }

.lead { font-size: clamp(19px, 1.5vw + 8px, 26px); line-height: 1.75; font-weight: 400; }
.cite { display: block; margin-top: .9em; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3); font-style: normal; }
.night .cite { color: var(--foam-3); }
.cite::before { content: "—— "; }

/* 印章 */
.seal {
  display: inline-grid; place-items: center; background: var(--cinnabar); color: #f6efe2;
  font-family: var(--serif); font-weight: 900; line-height: 1; border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3.5px rgba(246, 239, 226, .85);
  filter: url(#rough); writing-mode: horizontal-tb;
}
.seal.v2 { grid-template-rows: 1fr 1fr; width: 1.9em; height: 3.4em; padding: .35em 0; font-size: 18px; }

/* ---------- 顶栏与书眉 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  color: var(--ink); transition: color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
}
.topbar.on-dark { color: var(--foam); }
.topbar.scrolled { background: linear-gradient(to bottom, rgba(238, 232, 220, .96), rgba(238, 232, 220, .88) 62%, rgba(238, 232, 220, 0)); }
.topbar.scrolled.on-dark { background: linear-gradient(to bottom, rgba(13, 24, 33, .95), rgba(13, 24, 33, .86) 62%, rgba(13, 24, 33, 0)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .seal { width: 30px; height: 30px; font-size: 16px; letter-spacing: 0; }
.brand-name { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; }
.nav { display: flex; gap: clamp(8px, 1.6vw, 26px); }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .12em; opacity: .62; transition: opacity .3s; white-space: nowrap; position: relative; padding: 6px 0; }
.nav a b { font-weight: 900; margin-right: .35em; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.topbar-end { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); }
.tb-msg {
  text-decoration: none; font-size: 14px; letter-spacing: .2em; padding: 5px 14px 5px 16px; border: 1px solid currentColor; border-radius: 999px;
  opacity: .85; transition: opacity .3s, background .3s, color .3s;
}
.tb-msg:hover, .tb-msg[aria-current="page"] { opacity: 1; background: var(--cinnabar); border-color: var(--cinnabar); color: #f6efe2; }
.tb-lang { text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; opacity: .62; transition: opacity .3s; padding: 6px 0; }
.tb-lang:hover { opacity: 1; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 81; transform-origin: 0 50%; transform: scaleX(0); background: var(--cinnabar); }

.running {
  position: fixed; left: clamp(10px, 1.6vw, 24px); top: 50%; z-index: 70; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 13px; letter-spacing: .4em; color: var(--ink-3);
  transition: opacity .5s, color .5s; opacity: 0; pointer-events: none;
}
.running.show { opacity: 1; }
.running.on-dark { color: var(--foam-3); }
.running b { color: var(--cinnabar); font-weight: 900; margin-bottom: .6em; }

/* ---------- 封面 ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 24% 18%, rgba(160, 182, 196, .16), transparent 60%),
    linear-gradient(180deg, #08111a 0%, #0d1821 48%, #0f1e2b 100%);
  color: var(--foam);
}
.sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-title {
  position: absolute; right: clamp(24px, 17vw, 300px); top: 50%; transform: translateY(-54%);
  margin: 0; font-family: var(--brush); font-weight: 400;
  font-size: min(33vh, 30vw); line-height: .98; color: var(--foam);
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 0 60px rgba(8, 17, 26, .9);
}
.hero-title > span { display: block; animation: ink-in 2.4s var(--ease) both; }
.hero-title > span:nth-child(2) { animation-delay: .5s; }
@keyframes ink-in {
  0% { opacity: 0; filter: blur(22px); transform: scale(1.08); clip-path: inset(0 0 100% 0); }
  45% { clip-path: inset(0 0 0 0); }
  100% { opacity: 1; filter: blur(0); transform: none; clip-path: inset(0 0 0 0); }
}
.hero-seal { position: absolute; left: -2.6em; bottom: .12em; font-size: 16px; animation: fade 1.2s 2.2s both; }
.hero-title .hero-seal { display: grid; animation: stamp .5s 2.3s cubic-bezier(.3, 1.6, .5, 1) both; font-size: clamp(13px, 1.2vw, 18px); }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-poem {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: calc(clamp(24px, 17vw, 300px) + min(33vh, 30vw) + clamp(28px, 4vw, 70px));
  display: flex; flex-direction: row-reverse; gap: 1.1em;
  font-size: clamp(16px, 1.4vw, 21px); letter-spacing: .5em; color: var(--foam-2); font-weight: 300;
}
.hero-poem p { margin: 0; writing-mode: vertical-rl; text-orientation: upright; animation: fade 2s 1.4s both; }
.hero-poem p:nth-child(2) { animation-delay: 1.9s; padding-top: 3.2em; }
.hero-poem small { writing-mode: vertical-rl; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--foam-3); align-self: flex-end; animation: fade 2s 2.4s both; }
.hero-lead {
  position: absolute; left: clamp(24px, 7vw, 120px); bottom: clamp(88px, 14vh, 150px); max-width: 30em;
  font-size: clamp(15px, 1.1vw, 18px); line-height: 2; color: var(--foam-2); animation: fade 2s 2.6s both;
}
.hero-lead .eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--foam-3); margin-bottom: 1.2em; }
.hero-lead em { font-style: normal; color: var(--foam); }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; color: var(--foam-3);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--foam-3), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--foam); animation: drip 2.2s infinite var(--ease); }
@keyframes drip { to { top: 110%; } }

/* ---------- 序 · 名字 ---------- */
#name { overflow-x: clip; }
.name-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.classic {
  margin: 0; display: flex; flex-direction: row-reverse; gap: .9em; position: relative;
  font-size: clamp(26px, 2.8vw, 42px); font-weight: 600; letter-spacing: .32em; line-height: 1.4;
}
.classic span { writing-mode: vertical-rl; text-orientation: upright; }
.classic span:nth-child(3) { color: var(--cinnabar); }
.classic .cite { writing-mode: vertical-rl; margin: 0; align-self: flex-end; font-size: 11px; letter-spacing: .3em; }
.classic .cite::before { content: ""; }
.name-text { max-width: 34em; padding-top: .4em; }
.watermark {
  position: absolute; right: -2vw; top: 4vh; font-family: "LJMC", var(--brush);
  font-size: clamp(260px, 40vw, 620px); line-height: 1; color: rgba(26, 27, 30, .045);
  pointer-events: none; user-select: none;
}

.aliases {
  list-style: none; padding: 0; margin: clamp(56px, 9vh, 110px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.aliases li {
  position: relative; padding: clamp(18px, 2vw, 28px) clamp(16px, 1.8vw, 26px) clamp(20px, 2.2vw, 30px);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background .4s var(--ease);
}
.aliases li:hover { background: rgba(255, 255, 255, .35); }
.aliases h3 { margin: 0 0 .5em; font-size: clamp(24px, 2.2vw, 32px); font-weight: 900; letter-spacing: .12em; line-height: 1.2; }
.aliases h3 small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--ink-3); margin-left: .6em; vertical-align: middle; }
.aliases p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.aliases .no { position: absolute; top: 14px; right: 16px; font-family: var(--latin); font-style: italic; font-size: 15px; color: var(--ink-3); }

/* 账本：五个数 */
.ledger { background: var(--paper-2); padding: clamp(64px, 10vh, 120px) 0; border-top: 1px solid var(--rule); }
.ledger-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 8px clamp(10px, 1.6vw, 26px) 8px 0; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: clamp(14px, 2vw, 30px); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--latin); font-weight: 500; font-size: clamp(54px, 6.4vw, 100px); line-height: 1; letter-spacing: -.01em; display: flex; align-items: baseline; gap: .08em; }
.stat .v small { font-family: var(--serif); font-weight: 600; font-size: .3em; letter-spacing: .05em; }
.stat .k { margin-top: .7em; font-weight: 600; font-size: 16px; letter-spacing: .1em; }
.stat .d { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); line-height: 1.7; margin-top: .3em; }
.stat.zero .v { color: var(--cinnabar); }
.ledger-tail { margin-top: clamp(40px, 7vh, 80px); text-align: right; font-size: clamp(30px, 3.4vw, 52px); color: var(--cinnabar); line-height: 1.2; }

/* ---------- 壹 · 路人王 ---------- */
.road { background: radial-gradient(90% 60% at 80% 10%, #16222d 0%, #0b1117 60%); color: var(--foam); }
.road .ch-num { color: var(--ember); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.story p { color: var(--foam-2); }
.story p strong { color: var(--foam); font-weight: 600; }
.fan-quote {
  margin: 2.2em 0; padding: 0 0 0 1.4em; border-left: 1px solid var(--rule-d);
  font-size: clamp(19px, 1.6vw, 24px); line-height: 1.7; color: var(--foam);
}
.paper .fan-quote { border-left-color: var(--rule); color: var(--ink); }
.official {
  margin: 3em 0; padding: 2.2em 0; border-top: 1px solid var(--rule-d); border-bottom: 1px solid var(--rule-d);
  font-size: clamp(20px, 1.9vw, 28px); line-height: 1.75; font-weight: 300; color: var(--foam);
}
.official b { font-weight: 900; color: var(--foam); background: linear-gradient(transparent 62%, rgba(232, 102, 77, .35) 62%); }
.night-side { position: sticky; top: 120px; display: grid; gap: 56px; justify-items: center; }
.clock { width: min(340px, 100%); }
.clock text { font-family: var(--mono); fill: var(--foam-3); font-size: 10px; letter-spacing: .1em; }
.no1 { text-align: center; }
.no1 .big { font-family: var(--latin); font-size: clamp(110px, 12vw, 180px); line-height: .85; font-weight: 500; }
.no1 .big sup { font-size: .26em; vertical-align: top; position: relative; top: .4em; margin-left: .06em; font-style: italic; }
.no1 .lbl { font-weight: 600; letter-spacing: .3em; margin-top: .6em; }
.no1 .mono { color: var(--foam-3); display: block; margin-top: .4em; }

/* ---------- 贰 · 到！ ---------- */
.dao-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 6vw, 100px); align-items: end; }
.dao-big { font-family: var(--brush); font-size: clamp(150px, 22vw, 340px); line-height: .9; color: var(--cinnabar); margin: 0; }
.rollcall {
  position: relative; margin-top: clamp(56px, 9vh, 110px); background: var(--cinnabar); color: #f6efe2; overflow: hidden;
  padding: clamp(48px, 7vh, 90px) 0;
}
.rollcall::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background: radial-gradient(80% 120% at 50% 0%, rgba(255, 220, 190, .18), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(80, 10, 0, .35), transparent 70%);
}
.rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; position: relative; z-index: 2; }
.rc-head h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 900; letter-spacing: .3em; }
.rc-head .mono { opacity: .8; }
.tags { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tag {
  position: relative; text-align: left; cursor: pointer; border: 1px solid rgba(246, 239, 226, .4); background: rgba(120, 25, 12, .14);
  padding: 22px 22px 20px; border-radius: 2px; overflow: hidden; color: #f6efe2;
  transition: background .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.tag:hover, .tag:focus-visible { background: rgba(120, 25, 12, .32); border-color: rgba(246, 239, 226, .85); transform: translateY(-3px); outline: none; }
.tag-no { display: block; font-family: var(--latin); font-weight: 600; font-size: clamp(54px, 5.4vw, 84px); line-height: .95; letter-spacing: .02em; }
.tag-dec { display: block; margin-top: .55em; font-weight: 600; letter-spacing: .12em; font-size: 15px; }
.tag-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: .9em; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: .78; }
.tag-stamp {
  position: absolute; right: 14px; top: 12px; font-family: var(--brush); font-size: 56px; line-height: 1;
  color: #f6efe2; opacity: 0; transform: scale(1.8) rotate(-12deg); pointer-events: none;
}
.tag.called .tag-stamp { animation: called 1.6s var(--ease) forwards; }
@keyframes called { 0% { opacity: 0; transform: scale(1.8) rotate(-12deg); } 18% { opacity: 1; transform: scale(1) rotate(-8deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1) rotate(-8deg); } }
.tag.win { background: rgba(40, 8, 2, .28); }
.tag.win .tag-no { color: #f7d9a0; }
.danmaku { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.dm {
  position: absolute; left: 100%; white-space: nowrap; font-weight: 600; letter-spacing: .06em;
  color: rgba(246, 239, 226, .3); will-change: transform; text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.dm.hot { color: #fff6e6; font-weight: 900; text-shadow: 0 2px 12px rgba(80, 10, 0, .5); }

.quotes { margin-top: clamp(80px, 12vh, 140px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(30px, 5vw, 80px); }
.quotes h3, .moai-block h3 { grid-column: 1 / -1; font-size: 13px; font-family: var(--mono); letter-spacing: .3em; color: var(--ink-3); font-weight: 400; margin: 0 0 18px; }
.q { padding: 26px 0 24px; border-top: 1px solid var(--rule); }
.q blockquote { margin: 0; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.7; font-weight: 600; }
.q blockquote::before { content: "“"; color: var(--cinnabar); margin-left: -.5em; }
.q blockquote::after { content: "”"; color: var(--cinnabar); }
.q .cite { margin-top: .7em; }

.moai-block { margin-top: clamp(90px, 13vh, 160px); display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.moai { width: 100%; max-width: 320px; justify-self: center; }
.moai path, .moai line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.moai .fill { fill: var(--ink); stroke: none; }
.moai .blink { animation: blink 6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.moai-block .lead strong { font-weight: 900; }
.big-mono { font-family: var(--latin); font-weight: 500; font-size: clamp(46px, 4.6vw, 72px); line-height: 1; color: var(--cinnabar); }

.closing-line { margin-top: clamp(90px, 13vh, 160px); text-align: center; }
.closing-line blockquote span { display: inline-block; }
.closing-line blockquote { margin: 0 auto; max-width: 18em; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.5; font-weight: 900; letter-spacing: .06em; }

/* ---------- 叁 · 差一点 ---------- */
.near { background: linear-gradient(180deg, #0b141c 0%, #0d1821 30%, #0f1d29 100%); color: var(--foam); }
.near .ch-num { color: var(--ember); }
.near-intro { max-width: 40em; color: var(--foam-2); }
.glossary { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 1.6em; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--foam-3); }
.glossary b { color: var(--foam); font-weight: 500; margin-right: .5em; }
.misses { margin-top: clamp(56px, 9vh, 100px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.miss { position: relative; border-top: 1px solid var(--rule-d); padding-top: 26px; display: flex; flex-direction: column; }
.miss-when { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--foam-3); }
.miss-what { font-weight: 600; letter-spacing: .1em; margin-top: .3em; font-size: 15px; color: var(--foam-2); }
.miss-gap { margin: .35em 0 .2em; font-weight: 900; font-size: clamp(30px, 2.8vw, 42px); letter-spacing: .08em; line-height: 1.3; }
.miss-gap .n { font-family: var(--latin); font-weight: 500; font-size: 2.3em; line-height: .8; color: var(--ember); margin: 0 .06em; letter-spacing: 0; vertical-align: -.08em; }
.miss p { color: var(--foam-2); font-size: 15px; line-height: 1.95; margin-top: 1em; }
.miss-result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-d); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--foam-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.chart { position: relative; margin-top: 22px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(235, 230, 216, .1); stroke-width: 1; }
.paper .chart .grid line, .chart.on-paper .grid line { stroke: rgba(26, 27, 30, .12); }
.chart .axis text { font-family: var(--mono); font-size: 10px; fill: var(--foam-3); letter-spacing: .06em; }
.chart.on-paper .axis text { fill: var(--ink-3); }
.chart .band { fill: rgba(232, 102, 77, .09); }
.chart.on-paper .band { fill: rgba(192, 67, 47, .08); }
.chart .band-label { font-family: var(--mono); font-size: 10px; fill: var(--ember); letter-spacing: .2em; }
.chart.on-paper .band-label { fill: var(--cinnabar); }
.chart .line { fill: none; stroke: var(--tide); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart.on-paper .line { stroke: var(--indigo); }
.chart .line.thin { stroke-width: 1; opacity: .5; }
.chart .dot { fill: var(--tide); stroke: var(--sea); stroke-width: 2; transition: r .2s; }
.chart.on-paper .dot { fill: var(--indigo); stroke: var(--paper); }
.chart .dot.accent { fill: var(--ember); }
.chart.on-paper .dot.accent { fill: var(--cinnabar); }
.chart .slope { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; }
.chart.on-paper .slope { stroke: var(--cinnabar); }
.chart .lbl { font-family: var(--serif); font-weight: 600; font-size: 12px; fill: var(--foam); }
.chart.on-paper .lbl { fill: var(--ink); }
.chart .lbl.big { font-family: var(--latin); font-weight: 500; font-size: 30px; }
.chart .lbl.sub { font-family: var(--mono); font-weight: 400; font-size: 10px; fill: var(--foam-3); letter-spacing: .06em; }
.chart.on-paper .lbl.sub { fill: var(--ink-3); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:focus-visible { stroke: var(--foam-3); stroke-width: 1; }
.chart .col-hover { fill: rgba(235, 230, 216, .05); opacity: 0; transition: opacity .2s; pointer-events: none; }
.chart.on-paper .col-hover { fill: rgba(26, 27, 30, .05); }
.chart .col-hover.show { opacity: 1; }
.chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.chart.in .draw { stroke-dashoffset: 0; }
.chart .pop { opacity: 0; transition: opacity .4s var(--ease); }
.chart.in .pop { opacity: 1; }
.seq { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--foam-3); }
.paper .seq, .on-paper + .seq { color: var(--ink-3); }
.seq b { color: var(--foam); font-weight: 500; }
.paper .seq b, .on-paper + .seq b { color: var(--ink); }

.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 150px; max-width: 240px;
  background: rgba(10, 18, 25, .96); color: var(--foam); border: 1px solid rgba(235, 230, 216, .16);
  padding: 10px 12px 11px; border-radius: 3px; font-size: 12.5px; line-height: 1.6;
  opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.tip.show { opacity: 1; }
.tip .tv { display: block; font-weight: 900; font-size: 16px; letter-spacing: .06em; }
.tip .tk { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--foam-3); letter-spacing: .06em; }
.tip .tn { display: block; margin-top: 4px; color: var(--foam-2); }

.regret { margin-top: clamp(100px, 15vh, 180px); text-align: center; }
.regret blockquote { margin: 0 auto; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.45; font-weight: 300; letter-spacing: .08em; color: var(--foam); }
.regret blockquote span { display: block; }
.regret blockquote span:last-child { font-weight: 900; }
.regret .cite { margin-top: 2em; }

/* ---------- 肆 · 日照 ---------- */
.rizhao { position: relative; color: var(--ink); background: var(--paper); padding-top: 0; }
.dawn { position: relative; height: 96vh; min-height: 600px; background: linear-gradient(180deg, #0f1d29 0%, #1d2a37 18%, #4a4a52 34%, #a07a62 47%, #dcae86 56%, #efd8bb 66%, var(--paper) 86%); }
.dawn .sea-canvas { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 76%, transparent 95%); mask-image: linear-gradient(#000 76%, transparent 95%); }
.dawn-head { position: absolute; left: 0; right: 0; top: clamp(90px, 16vh, 170px); color: var(--foam); }
.dawn-head .ch-num { color: #f3c08a; }
.dawn-head .ch-meta .mono, .dawn-head .ch-meta .latin { color: rgba(245, 232, 210, .78); }
.halfmonth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -4vh; position: relative; z-index: 2; }
.hm { padding: 22px 24px 4px 0; border-top: 1px solid var(--rule); position: relative; }
.hm::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.hm:last-child::before { background: var(--cinnabar); }
.hm .d { font-family: var(--latin); font-weight: 500; font-size: clamp(40px, 4vw, 62px); line-height: 1; }
.hm .p { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); margin-top: .5em; }
.hm h3 { margin: .3em 0 .2em; font-size: 22px; font-weight: 900; letter-spacing: .12em; }
.hm p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; margin: 0; }
.vows-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(80px, 12vh, 140px); align-items: start; }
.vows { margin: 0; font-size: clamp(22px, 2.15vw, 32px); line-height: 1.85; font-weight: 300; }
.vows span { display: block; opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.vows.in span { opacity: 1; transform: none; }
.vows .pre { font-size: .62em; line-height: 2; margin-bottom: 1.4em; color: var(--ink-2); font-weight: 400; }
.vows.in span:nth-child(2) { transition-delay: .9s; }
.vows.in span:nth-child(3) { transition-delay: 1.6s; }
.vows.in span:nth-child(4) { transition-delay: 2.3s; }
.vows.in span:nth-child(5) { transition-delay: 3s; }
.vows span b { font-weight: 900; }
.vows .cite { margin-top: 1.6em; opacity: 0; transition: opacity 1.2s 3.6s; }
.vows.in .cite { opacity: 1; }

/* ---------- 伍 · 第一，倒数第一 ---------- */
.now { background: var(--paper); }
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.chart-title { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); margin: 0 0 6px; }
.live {
  margin: 2.4em 0; border: 1px solid var(--rule); background: rgba(255, 255, 255, .45); padding: 20px 22px; border-radius: 3px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
}
.live .dotlive { width: 10px; height: 10px; border-radius: 50%; background: var(--cinnabar); box-shadow: 0 0 0 0 rgba(192, 67, 47, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(192, 67, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 67, 47, 0); } }
.live .ttl { font-weight: 900; font-size: clamp(22px, 2vw, 28px); letter-spacing: .08em; }
.live .meta { grid-column: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.live .clockrun { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ---------- 年表 ---------- */
.chron { background: var(--paper); }
.now + .chron { padding-top: clamp(32px, 5vh, 64px); }
.career { margin-bottom: clamp(60px, 9vh, 100px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filters button {
  border: 1px solid var(--rule); background: transparent; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  font-size: 14px; letter-spacing: .14em; color: var(--ink-2); transition: all .25s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.filters button i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .count { font-family: var(--mono); font-size: 10.5px; opacity: .6; }
.years { display: grid; gap: 0; }
.year { display: grid; grid-template-columns: clamp(90px, 14vw, 200px) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.year > h3 { margin: 0; padding-top: 14px; font-family: var(--latin); font-weight: 500; font-size: clamp(40px, 4.8vw, 72px); line-height: 1; letter-spacing: -.01em; position: sticky; top: 70px; align-self: start; color: var(--ink); }
.year ol { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 6.6em 18px minmax(0, 1fr) auto; gap: 0 12px; padding: 15px 0; border-bottom: 1px solid rgba(26, 27, 30, .07); align-items: baseline; transition: opacity .3s, background .3s; }
.ev:last-child { border-bottom: 0; }
.ev:hover { background: rgba(255, 255, 255, .3); }
.ev .dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.ev .mk { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); align-self: center; }
.ev[data-t~="hi"] .mk { background: var(--cinnabar); border-color: var(--cinnabar); }
.ev[data-t~="low"] .mk { background: var(--indigo); border-color: var(--indigo); }
.ev[data-t~="meme"] .mk { border-color: var(--cinnabar); }
.ev[data-t~="life"] .mk { border-color: var(--ink-3); background: transparent; border-style: dashed; }
.ev .tt { font-size: 15.5px; line-height: 1.7; }
.ev .tt small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.7; margin-top: 2px; }
.ev .rs { font-weight: 900; font-size: 15px; letter-spacing: .06em; text-align: right; white-space: nowrap; padding-left: 10px; }
.ev[data-t~="hi"] .rs { color: var(--cinnabar); }
.ev.hide { display: none; }
.year.empty { display: none; }
.legend-keys { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.legend-keys span { display: inline-flex; align-items: center; gap: 7px; }
.legend-keys .mk { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: inline-block; }

/* ---------- 尾声 ---------- */
.ending { position: relative; overflow: hidden; background: linear-gradient(180deg, #0d1821 0%, #0a131b 100%); color: var(--foam); padding: 0; }
.ending .sea-canvas { position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 640px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.ending-inner { position: relative; z-index: 2; min-height: 100vh; padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.poem-big { display: flex; flex-direction: row-reverse; gap: .3em; font-family: var(--brush); font-size: clamp(54px, 7.4vw, 112px); line-height: 1.05; color: var(--foam); margin: 0; }
.poem-big span { writing-mode: vertical-rl; text-orientation: upright; }
.poem-big span:nth-child(2) { padding-top: 1.3em; color: #d8e2e8; }
.ending-text p { color: var(--foam-2); max-width: 26em; }
.ending-text .lead { color: var(--foam); }
.call {
  margin-top: 2.2em; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.dao-btn {
  width: 116px; height: 116px; border: 0; border-radius: 50%; cursor: pointer; position: relative;
  background: var(--cinnabar); color: #f6efe2; font-family: var(--brush); font-size: 64px; line-height: 1;
  box-shadow: inset 0 0 0 4px var(--cinnabar), inset 0 0 0 6px rgba(246, 239, 226, .75), 0 20px 50px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease); filter: url(#rough);
}
.dao-btn:hover { transform: rotate(-4deg) scale(1.04); }
.dao-btn:active { transform: scale(.94); }
.dao-btn:focus-visible { outline: 2px solid var(--foam); outline-offset: 6px; }
.call-text b { display: block; font-size: 19px; letter-spacing: .08em; color: var(--foam); }
.call-text .mono { color: var(--foam-3); display: block; margin-top: .5em; }
.ending .danmaku { z-index: 1; bottom: auto; height: 100vh; min-height: 640px; }
.ending .dm { color: rgba(235, 230, 216, .55); }
.ending .dm.hot { color: #ffd9c8; }

.film { position: relative; z-index: 2; padding: 0 0 clamp(80px, 12vh, 130px); }
.film-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; border-top: 1px solid var(--rule-d); padding-top: clamp(40px, 6vh, 60px); }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 2px; cursor: pointer; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.film-frame img, .film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-frame .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(235, 230, 216, .6); background: rgba(13, 24, 33, .35); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.film-frame:hover .play { transform: translate(-50%, -50%) scale(1.08); background: rgba(192, 67, 47, .75); }
.film-frame .play::after { content: ""; margin-left: 5px; border-left: 16px solid var(--foam); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.film-info h3 { margin: .2em 0 .4em; font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; letter-spacing: .1em; }
.film-info p { color: var(--foam-2); font-size: 15px; }
.film-info .mono { color: var(--foam-3); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.links a { font-size: 13.5px; letter-spacing: .1em; text-decoration: none; padding: 7px 14px; border: 1px solid var(--rule-d); border-radius: 999px; color: var(--foam-2); transition: all .25s; }
.links a:hover { color: var(--foam); border-color: var(--foam-2); }

.footer { position: relative; z-index: 2; background: #070d12; color: var(--foam-3); padding: 48px 0 56px; font-size: 13px; line-height: 2; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.footer p { margin: 0 0 .6em; }
.footer b { color: var(--foam-2); font-weight: 600; }
.footer .salute { grid-column: 1 / -1; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--rule-d); color: var(--gold); font-weight: 900; letter-spacing: .2em; font-size: 15px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer .salute .mono { color: var(--foam-3); font-weight: 400; }

.footer .beian { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }
.footer .beian a { text-decoration: none; color: var(--foam-3); }
.footer .beian a:hover { color: var(--foam-2); text-decoration: underline; }

/* ---------- 进场动画 ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="ink"] { transform: scale(1.04); filter: blur(10px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease); }
[data-reveal="none"] { transform: none; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .nav a span { display: none; }
  .nav a b { margin-right: 0; }
  .aliases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .misses { grid-template-columns: minmax(0, 1fr); max-width: 640px; gap: 60px; }
}
@media (max-width: 820px) {
  .running { display: none; }
  .nav { gap: 12px; }
  .brand-name { display: none; }
  .name-grid, .two-col, .dao-intro, .moai-block, .vows-wrap, .now-grid, .film-card, .footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .classic { justify-content: flex-end; font-size: 26px; }
  .night-side { position: static; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .halfmonth { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 28px; }
  .dao-big { justify-self: end; }
  .ending-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .poem-big { justify-self: center; }
  .hero-poem { right: auto; left: clamp(20px, 7vw, 60px); top: 18%; transform: none; font-size: 15px; }
  .hero-title { right: 8vw; font-size: min(30vh, 36vw); }
  .hero-lead { bottom: 84px; right: 24px; }
  .hero-foot .yr { display: none; }
  .ev { grid-template-columns: 5.4em 14px minmax(0, 1fr); }
  .ev .rs { grid-column: 3; text-align: left; padding: 4px 0 0; }
  .year { grid-template-columns: minmax(0, 1fr); }
  .year > h3 { position: static; padding: 18px 0 6px; }
}
@media (max-width: 560px) {
  .aliases { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; }
  .stat:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--rule); }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat.zero { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--rule); padding-top: 28px; }
  .tags { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.keep) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .vows span { opacity: 1; transform: none; }
}

/* ============================================================
   English edition · shenduy.com
   Newsreader for text, Cormorant for display; CJK falls back to SDSerif.
   Chinese numerals, seals and brush characters stay as in the Chinese page.
   ============================================================ */
html[lang="en"] {
  --serif: "News", "SDSerif", "Noto Serif SC", "Songti SC", Georgia, serif;
  font-synthesis: none;
}
html[lang="en"] body { font-size: clamp(17px, .5vw + 12px, 19.5px); line-height: 1.62; letter-spacing: 0; font-variant-numeric: lining-nums proportional-nums; }
html[lang="en"] p, html[lang="en"] blockquote { text-wrap: pretty; }
html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .lead { text-wrap: balance; }
html[lang="en"] i, html[lang="en"] em { font-style: italic; }
html[lang="en"] [lang="zh-CN"] { font-style: normal; }
html[lang="en"] .cite::before { content: "— "; }
html[lang="en"] .classic .cite::before { content: ""; }
html[lang="en"] .cite { letter-spacing: .04em; }

/* chapter heads */
html[lang="en"] .ch-head h2 { font-family: var(--latin); font-weight: 600; font-size: clamp(42px, 5.6vw, 84px); line-height: 1; letter-spacing: -.005em; }
html[lang="en"] .ch-meta { gap: .5em 1.3em; }
html[lang="en"] .ch-meta .ch-zh { font-family: var(--serif); font-weight: 600; font-size: .95em; letter-spacing: .14em; opacity: .55; }
html[lang="en"] .ch-fix { font-size: 14px; letter-spacing: .02em; }
html[lang="en"] .lead { font-size: clamp(20px, 1.1vw + 10px, 26px); line-height: 1.5; }

/* topbar, running head */
html[lang="en"] .nav a { font-size: 14px; letter-spacing: .01em; }
html[lang="en"] .nav a b { margin-right: .45em; }
html[lang="en"] .tb-msg { font-size: 13.5px; letter-spacing: .04em; padding: 5px 15px; }
html[lang="en"] .tb-lang { font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }
html[lang="en"] .running { font-family: var(--latin); font-style: italic; font-size: 15px; letter-spacing: .06em; }
html[lang="en"] .running b { font-family: var(--serif); font-style: normal; font-size: 13px; }

/* cover: the poem runs horizontally, right-aligned against the brush title */
html[lang="en"] .hero-poem {
  flex-direction: column; align-items: flex-end; gap: .55em; text-align: right;
  font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(19px, 1.65vw, 26px); line-height: 1.32; letter-spacing: .005em;
}
html[lang="en"] .hero-poem p { writing-mode: horizontal-tb; }
html[lang="en"] .hero-poem p:nth-child(2) { padding-top: 0; margin-right: 1.4em; }
html[lang="en"] .hero-poem small { writing-mode: horizontal-tb; align-self: flex-end; margin-top: .9em; font-style: normal; letter-spacing: .24em; }
html[lang="en"] .hero-title::after {
  content: attr(data-gloss); position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 10px;
  font-family: var(--latin); font-style: italic; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.3; letter-spacing: .03em; white-space: nowrap;
  color: var(--foam-3); text-shadow: none; animation: fade 2s 2.4s both;
}
html[lang="en"] .hero-lead { font-size: clamp(15px, .6vw + 9px, 18px); line-height: 1.62; max-width: 28em; }
html[lang="en"] .hero-lead em { font-style: italic; }
html[lang="en"] .hero-foot { letter-spacing: .2em; }

/* prologue */
html[lang="en"] .classic-en { font-family: var(--latin); font-style: italic; font-size: 1.12em; line-height: 1.5; color: var(--ink-2); padding-left: 1.1em; border-left: 1px solid var(--cinnabar); }
html[lang="en"] .aliases h3 { font-family: var(--latin); font-weight: 600; font-size: clamp(25px, 2.1vw, 31px); letter-spacing: 0; line-height: 1.12; padding-right: 1.2em; }
html[lang="en"] .aliases h3 small { display: block; margin: .45em 0 0; font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .16em; }
html[lang="en"] .aliases p { font-size: 15px; line-height: 1.6; }

/* ledger */
html[lang="en"] .stat .v { font-size: clamp(48px, 5.4vw, 84px); }
html[lang="en"] .stat .v small { font-family: var(--latin); font-weight: 500; font-size: .42em; letter-spacing: 0; }
html[lang="en"] .stat .k { font-size: 16px; letter-spacing: 0; line-height: 1.3; }
html[lang="en"] .ledger-tail { font-weight: 500; font-size: clamp(26px, 2.9vw, 44px); line-height: 1.2; }

/* I · the ladder */
html[lang="en"] .official { font-weight: 400; font-style: italic; line-height: 1.55; }
html[lang="en"] .official b { font-weight: 600; }
html[lang="en"] .fan-quote { line-height: 1.5; }
html[lang="en"] .no1 .lbl { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

/* II · present! */
html[lang="en"] .dao-big { text-align: center; }
html[lang="en"] .dao-big::after { content: attr(data-gloss); display: block; margin-top: 12px; font-family: var(--latin); font-style: italic; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3; letter-spacing: .03em; color: var(--ink-3); }
html[lang="en"] .rc-head h3 { font-family: var(--latin); font-weight: 600; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: 0; }
html[lang="en"] .tag-dec { font-size: 15.5px; letter-spacing: 0; line-height: 1.4; }
html[lang="en"] .dm { letter-spacing: .02em; }
html[lang="en"] .q blockquote { font-style: italic; font-weight: 400; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; }
html[lang="en"] .q blockquote::before, html[lang="en"] .q blockquote::after { font-style: normal; }
html[lang="en"] .moai-block .lead strong { font-weight: 600; }
html[lang="en"] .closing-line blockquote { max-width: 24em; font-family: var(--latin); font-weight: 600; font-style: italic; font-size: clamp(26px, 3.1vw, 46px); line-height: 1.28; letter-spacing: 0; }

/* III · so close */
html[lang="en"] .miss-what { font-size: 16px; letter-spacing: 0; }
html[lang="en"] .miss-gap { font-family: var(--latin); font-weight: 600; letter-spacing: 0; line-height: 1.2; }
html[lang="en"] .miss-gap .n { margin: 0 .04em 0 0; }
html[lang="en"] .miss p { font-size: 15.5px; line-height: 1.65; }
html[lang="en"] .tip .tv { letter-spacing: 0; }
html[lang="en"] .regret blockquote { font-family: var(--latin); font-weight: 500; font-style: italic; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.15; letter-spacing: 0; }
html[lang="en"] .regret blockquote span:last-child { font-weight: 600; font-style: normal; }

/* IV · rizhao */
html[lang="en"] .hm h3 { font-family: var(--latin); font-weight: 600; font-size: 27px; letter-spacing: 0; }
html[lang="en"] .hm .p { letter-spacing: .14em; }
html[lang="en"] .hm p { font-size: 15.5px; line-height: 1.6; }
html[lang="en"] .vows { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.4; }
html[lang="en"] .vows span + span { margin-top: .25em; }
html[lang="en"] .vows b { font-weight: 500; color: var(--cinnabar); }
html[lang="en"] .vows .pre { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: .6em; line-height: 1.65; }

/* V · first and last */
html[lang="en"] .live .ttl { font-weight: 600; letter-spacing: 0; }
html[lang="en"] .live .clockrun { line-height: 1.55; }

/* chronicle */
html[lang="en"] .chart .band-label { letter-spacing: .14em; }
html[lang="en"] .filters button { letter-spacing: .02em; }
html[lang="en"] .ev .tt { font-size: 16px; line-height: 1.5; }
html[lang="en"] .ev .tt small { font-size: 14px; line-height: 1.5; }
html[lang="en"] .ev .rs { font-weight: 600; letter-spacing: 0; }

/* epilogue */
html[lang="en"] .poem-en { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.32; color: var(--foam); max-width: none; margin-bottom: 1.4em; }
html[lang="en"] .ending-text p { max-width: 30em; }
html[lang="en"] .call-text b { font-size: 19px; font-weight: 600; letter-spacing: 0; }
html[lang="en"] .film-info h3 { font-family: var(--latin); font-weight: 600; letter-spacing: 0; }
html[lang="en"] .film-info h3 span { font-family: var(--serif); font-size: .62em; font-weight: 600; letter-spacing: .06em; color: var(--foam-2); }
html[lang="en"] .links a { letter-spacing: .02em; }
html[lang="en"] .footer { font-size: 13.5px; line-height: 1.7; }
html[lang="en"] .footer a { text-underline-offset: .18em; }
html[lang="en"] .footer .salute { font-family: var(--latin); font-weight: 600; font-style: italic; font-size: 18px; letter-spacing: .01em; }
html[lang="en"] .footer .salute .mono { font-style: normal; }

@media (max-width: 1280px) {
  html[lang="en"] .nav a span { display: none; }
  html[lang="en"] .nav a b { margin-right: 0; }
}
@media (max-width: 820px) {
  html[lang="en"] .hero-poem { align-items: flex-start; text-align: left; font-size: 17px; gap: .4em; }
  html[lang="en"] .hero-poem p:nth-child(2) { margin-right: 0; margin-left: 1.2em; }
  html[lang="en"] .hero-poem small { align-self: flex-start; }
  html[lang="en"] .hero-lead { font-size: 14.5px; line-height: 1.55; }
  html[lang="en"] .hero-lead .eyebrow { margin-bottom: .9em; }
  html[lang="en"] .hero-title::after { font-size: 13px; }
}
@media (max-width: 560px) {
  html[lang="en"] .hero-foot .hf-sub { display: none; }
  html[lang="en"] .hero-foot { letter-spacing: .16em; }
}
