/**
 * 「松烟」版式与页面布局样式 (Layouts)
 * 包含首页分卷流、四卷专有版式、归档时间轴、一纸空笺等
 */

/* =========================================================
   1. 通用版心容器
   ========================================================= */
.site-main {
  flex: 1;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

.site-main--narrow {
  max-width: var(--prose-max);
}

/* =========================================================
   2. 首页版式
   规范：宽版心居中 · 卷首题句为唯一主角 · 诗文两轨同一垂直骨骼
   严禁：卡片容器、投影、条目分割线
   ========================================================= */
/* ---- 卷首题签停靠：题句上移收拢后随正文离开；出处随题句缩小渐隐；页眉另轨常驻；底部淡墨下滑暗示 ---- */
.site-main--home {
  max-width: none;
  padding: 0;
}

.home-reveal {
  position: relative;
}

/* 停靠区高度 = 页眉下方行程：题签 sticky 只在本区内生效，结束后随正文离开。 */
.home-dock-zone {
  position: relative;
  min-height: var(--cover-height);
}

.home-cover {
  position: static;
  top: 0;
  z-index: 0;
  min-height: var(--cover-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  text-align: center;
}

.home-cover-space {
  display: none;
}

/* 正文与题签同层展开；页眉另层常驻顶部。 */
.home-sheet {
  position: relative;
  z-index: 0;
  padding: calc(var(--space-16) + var(--space-8)) var(--space-6) var(--space-24);
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-repeat: repeat;
}

.home-dock-zone + .home-sheet::before {
  content: "";
  position: absolute;
  top: var(--space-8);
  left: 50%;
  width: min(var(--stream-max), 100%);
  height: 1px;
  transform: translateX(-50%);
  background: var(--rain-thread);
}

/* ---- 卷首题词：全站唯一主角，两句分行，四周大面积留白 ---- */
.home-epigraph {
  max-width: var(--stream-max);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-epigraph__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-family: var(--font-title);
  font-size: var(--text-epigraph);
  color: var(--ink);
  letter-spacing: var(--tracking-poetry-title);
  line-height: var(--leading-title);
  margin: 0;
  text-indent: var(--tracking-poetry-title); /* 抵消末字字距，保证视觉居中 */
}

/* 第二句略向右错落，如题壁行书 */
.home-epigraph__line + .home-epigraph__line {
  padding-left: 2em;
}

.home-epigraph__source {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--ink-faint);
  letter-spacing: 0.3em;
  margin: var(--space-8) 0 0;
  text-indent: 0.3em;
}

/* 底部下滑暗示：挂在停靠区底部（视口底），不跟收矮后的栏头走；下滑后收起 */
.home-cover__hint {
  position: absolute;
  left: 50%;
  bottom: var(--space-8);
  z-index: 1;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.home-cover__hint-mark {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 1px solid var(--ink-faint);
  border-block-end: 1px solid var(--ink-faint);
  transform: rotate(45deg);
  opacity: 0.65;
}

@keyframes epigraph-dock {
  from {
    /* 按实际题簇高度居中，避免比例估算随字号和视口产生偏移。 */
    top: calc(50svh - var(--header-dock-height) - (var(--text-epigraph) * var(--leading-title) * 2 + var(--space-4) + var(--home-source-height)) / 2);
  }
  to {
    top: var(--space-3);
  }
}

/* 首页封面例外：题签随行程缩为栏头；只改字号，字形逐帧按真实字号重绘，不用 transform 缩放。 */
@keyframes title-shrink {
  from {
    font-size: var(--text-epigraph);
    gap: var(--space-4);
    letter-spacing: var(--tracking-poetry-title);
    text-indent: var(--tracking-poetry-title);
  }
  to {
    font-size: var(--text-dock-title);
    gap: var(--space-1);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
}

@keyframes hint-fold {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* 出处跟随题句缩小，并逐渐隐去，不进入最终栏头。 */
@keyframes source-fold {
  from {
    opacity: 1;
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    margin-top: var(--space-8);
    visibility: visible;
  }
  to {
    opacity: 0;
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    margin-top: var(--space-2);
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  @supports (animation-timeline: scroll(root block)) and (animation-range: 0px 1px) {
    .home-dock-zone {
      /* 一屏卷首另留题签的停靠高度，让正文抵达时 sticky 尚未释放。 */
      height: calc(var(--cover-height) + var(--cover-dock-height));
      min-height: 0;
      margin-top: calc(var(--header-dock-height) * -1);
      padding-top: var(--header-dock-height);
      box-sizing: border-box;
    }

    .home-cover {
      position: sticky;
      top: var(--header-dock-height);
      min-height: 0;
      height: var(--cover-dock-height);
      padding: 0 var(--space-6);
      justify-content: flex-start;
      overflow: visible; /* 卷首大字需溢出栏头盒；出处以 visibility 隐去 */
      background-color: transparent;
      background-image: none;
    }

    .home-cover .home-epigraph {
      --home-source-height: 0rem;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      width: min(var(--stream-max), 100%);
      margin-inline: auto;
      animation: epigraph-dock linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--cover-travel);
    }

    .home-cover .home-epigraph:has(.home-epigraph__source) {
      --home-source-height: calc(var(--space-8) + var(--leading-xs));
    }

    .home-cover .home-epigraph__text {
      animation: title-shrink linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--cover-travel);
    }

    .home-cover .home-epigraph__source {
      animation: source-fold linear both;
      animation-timeline: scroll(root block);
      /* 在停靠完成前隐去，定点态不再露出出处 */
      animation-range: 0px calc(var(--cover-travel) * 0.7);
    }

    .home-cover__hint {
      bottom: calc(var(--space-8) + var(--cover-dock-height));
      animation: hint-fold linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px calc(var(--cover-travel) / 3);
    }

    .home-cover-space {
      display: block;
      height: var(--cover-travel);
    }

    /*
     * 只在「停靠完成 / 正文起点」设引力锚点：
     * 首屏不 snap，避免把已出现的题头再拉回去；
     * proximity + always = 靠近才吸，吸住后轻滑不半途回弹；再滑可过定点到页脚。
     */
    html:has(body.home-cover-page) {
      scroll-snap-type: y proximity;
    }

    .home-dock-zone + .home-sheet {
      scroll-margin-top: calc(var(--header-dock-height) + var(--cover-dock-height));
      scroll-snap-align: start;
      scroll-snap-stop: always;
      padding-top: calc(var(--space-12) + var(--space-8));
      /* 定点后缓冲：克服阻力后吸住，不半途卡壳 */
      min-height: calc(var(--cover-travel) + var(--space-16));
    }
  }
}

/* 打印回到普通文流，不钉住、不微缩，也不留整屏封面的空白。 */
@media print {
  .home-dock-zone {
    min-height: 0;
    height: auto;
    margin-top: 0;
    padding-top: 0;
  }
  .home-cover {
    position: static;
    min-height: 0;
    height: auto;
    animation: none;
    padding-block: var(--space-8);
    background: var(--print-paper);
  }
  .home-cover .home-epigraph {
    position: static;
    animation: none;
    transform: none;
  }
  .home-cover .home-epigraph__text {
    animation: none;
  }
  .home-cover-space {
    display: none;
  }
  .home-cover__hint {
    display: none;
  }
  .home-sheet {
    padding-block: var(--space-8);
    background: var(--print-paper);
    min-height: 0;
  }
}

/* ============================================================
   归流：诗文两轨——词作出词牌与起首两句，文章出题目与一行摘要；
   条目间只以留白相隔，整条可点，悬停时左侧浮现一道天青雨丝
   ============================================================ */
.home-stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--stream-max);
  margin: 0 auto;
}

.post-item {
  position: relative;
  padding: var(--space-6) 0 var(--space-6) var(--space-6);
}

.post-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 1px;
  background: var(--rain-thread-v);
  opacity: 0;
  transition: opacity var(--dur-feedback) var(--ease-ink);
}

.post-item:hover::before,
.post-item:focus-within::before {
  opacity: 1;
}

/* 词牌题头：只给词作，一点朱 */
.post-item__eyebrow {
  display: block;
  font-family: var(--font-title);
  font-size: var(--text-tag);
  color: var(--cinnabar-eyebrow);
  letter-spacing: var(--tracking-tag);
  margin-bottom: var(--space-2);
  line-height: var(--leading-xs);
}

.post-item .post-title {
  /* 中西文同用文楷字形，避免独立西文衬线体造成比例跳变。 */
  font-family: var(--font-list-title);
  font-size: var(--text-list-title);
  color: var(--ink);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-body);
  overflow-wrap: anywhere;
  margin: 0;
}

/* 整条可点：题目链接铺满条目 */
.post-item .post-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-feedback) var(--ease-ink);
}

.post-item .post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-item .post-title a:focus-visible {
  outline: none;
}

.post-item .post-title a:focus-visible::after {
  outline: 2px solid var(--celadon-deep);
  outline-offset: var(--space-1);
  border-radius: var(--space-1);
}

.post-item:hover .post-title a,
.post-item .post-title a:focus-visible {
  color: var(--celadon-deep);
}

/* 词作起首两句：保留断句，一句一行；小号不抢题 */
.post-item__verse {
  display: flex;
  flex-direction: column;
  margin: var(--space-3) 0 0;
  font-family: var(--font-serif);
  font-size: var(--text-summary);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-verse);
  color: var(--ink-light);
}

/* 元信息：汉字日期淡墨一行 */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-date);
  font-size: var(--text-xs);
  color: var(--ink-faint);
  letter-spacing: var(--tracking-meta);
  line-height: var(--leading-xs);
  margin-top: var(--space-3);
}

.post-meta .sep {
  color: var(--line-wash);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* 文章摘要与词作起首同号，字距区分诗句与连续散文。 */
.post-excerpt {
  font-family: var(--font-serif);
  font-size: var(--text-summary);
  color: var(--ink-light);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  margin: var(--space-3) 0 0;
  /* 模板已限制摘要长度，使用自然行盒，避免英文下伸部和末行被裁切。 */
  overflow-wrap: anywhere;
  word-break: normal;
}

/* =========================================================
   3. 词页 (type: ci) 版式
   ========================================================= */
/* 题头：词牌一点朱，题目淡墨大字，此外别无他物 */
.post-ci__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.post-ci__cipai-badge {
  display: inline-block;
  font-family: var(--font-title);
  color: var(--cinnabar);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  letter-spacing: var(--tracking-poetry-title);
  text-indent: var(--tracking-poetry-title);
  margin-bottom: var(--space-3);
}

.post-ci__header .post-title {
  font-size: var(--text-page-title);
  letter-spacing: var(--tracking-poetry-title);
  text-indent: var(--tracking-poetry-title);
}

.post-ci__rhyme {
  margin: var(--space-3) 0 0;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.post-ci__stage {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-wash) transparent;
}

.post-ci__body-horizontal {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-verse);
  line-height: var(--leading-verse);
  color: var(--ink);
}

/* 桌面竖排：右起成列，一句一列，过片空出一段留白；窄屏仍为横排 */
@media (min-width: 1024px) {
  .post-ci__body--vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: var(--ci-column-height);
    max-width: none;
    margin: 0 auto;
    flex-shrink: 0;
    text-align: start;
    line-height: var(--leading-verse-columns);
    letter-spacing: var(--tracking-verse);
  }
}

/* 落花：全篇只此一瓣淡胭脂，隔在作者名与题笺之间 */
.post-ci__petal {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 9px;
  margin: 0;
  background: var(--rouge);
  border-radius: 70% 0 70% 0;
  transform: rotate(-24deg);
  opacity: 0.85;
}

/* =========================================================
   4. 文章页（随笔样板 post-essay）版式
   ========================================================= */
.essay-article {
  max-width: var(--prose-max);
  margin: 0 auto;
}

.essay-article:has(.essay-margin) {
  max-width: calc(var(--prose-max) + 14rem + var(--space-10));
}

/* 文章题头：居左，题目为主，汉字日期淡墨一行；无分割线，以留白分层 */
.essay-header {
  margin-bottom: var(--space-12);
  text-align: left;
}

.essay-header .post-detail__eyebrow {
  display: block;
  font-family: var(--font-title);
  color: var(--ink-faint);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-3);
}

.essay-header .post-title {
  font-size: var(--text-page-title);
  letter-spacing: var(--tracking-title);
}

.essay-meta-strip,
.reading-mast__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-family: var(--font-title);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  letter-spacing: var(--tracking-meta);
  color: var(--ink-faint);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.essay-meta-item {
  display: inline-flex;
  align-items: center;
}

/* 元信息前缀（驻足 / 天候 / 心境）：更淡一层 */
.essay-meta-label {
  color: var(--ink-faint);
}

/* 文末题签：标签以汉字「题」引出，烟青小字 */
.post-tags {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-10) 0 0;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.post-tags__label {
  margin-right: var(--space-2);
}

.post-ci .post-tags {
  justify-content: center;
}

.essay-body {
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
}

.essay-body p {
  /* 全局 p 规则会重置行高，正文段落显式跟随容器 */
  line-height: inherit;
  text-indent: 2em;
  margin-bottom: var(--space-8);
}

/* Hexo archive adapter for the isolated 3D cylinder viewport. */
.scroll-viewport.archive-cylinder {
  --year-rail-offset: 48px;
  --year-node-pitch: 192px;
  --rail-safe-pad: 16px;
  --dock-gap: 28px;
  --dot-breath: var(--space-3);
  --title-width: 64px;
  --title-column-gap: 6px;
  --title-target-h: 232px;
  --year-ink: #24211c;
  --year-ink-muted: #9a9184;
  --month-ink: rgba(75, 68, 58, 0.45);
  --date-ink: #756d61;
  --date-ink-active: #585147;
  --title-ink: #151311;
  --year-size: clamp(1.45rem, 2.2vw, 1.85rem);
  --year-tracking: 0.16em;
  --month-size: 11px;
  --month-tracking: 0.24em;
  --month-gap: 6px;
  --date-size: 12.5px;
  --title-active-size: clamp(1.32rem, 1.75vw, 1.52rem);
  --title-compact-size: 1.15rem;
  --title-compact-tracking: 0.12em;
  position: relative;
  width: min(100%, var(--stream-max));
  max-width: var(--stream-max);
  height: clamp(600px, calc(100svh - var(--header-dock-height) - var(--archive-dock-height) - var(--archive-legend-height) - var(--space-8)), 760px);
  margin: var(--space-2) auto var(--space-8);
  overflow: hidden;
  background: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 6%, rgba(0, 0, 0, 0.84) 13%, #000 19%, #000 81%, rgba(0, 0, 0, 0.84) 87%, rgba(0, 0, 0, 0.25) 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 6%, rgba(0, 0, 0, 0.84) 13%, #000 19%, #000 81%, rgba(0, 0, 0, 0.84) 87%, rgba(0, 0, 0, 0.25) 94%, transparent 100%);
  mask-mode: alpha;
}

.archive-cylinder.is-dragging { cursor: grabbing; }
.archive-cylinder.is-empty,
.archive-cylinder[hidden] { display: none; }

.archive-cylinder .rail-svg,
.archive-cylinder .year-stage,
.archive-cylinder .timeline-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.archive-cylinder .rail-svg {
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.archive-cylinder .timeline-stage {
  z-index: 10;
  perspective: 1150px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-mask: url("#scroll-edge-mask");
          mask: url("#scroll-edge-mask");
  mask-mode: alpha;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.22) 6%, rgba(0, 0, 0, 0.84) 13%, #000 19%, #000 81%, rgba(0, 0, 0, 0.84) 87%, rgba(0, 0, 0, 0.22) 94%, transparent 100%);
}

.archive-cylinder .rail-path {
  fill: none;
  stroke: var(--ink-rail);
  stroke-width: 1.15;
}

.archive-cylinder .rail-echo {
  fill: none;
  stroke: var(--ink-rail-echo);
  stroke-width: 0.75;
}

.archive-cylinder .year-stage {
  z-index: 10;
  pointer-events: none;
}

.archive-cylinder .year-node {
  position: absolute;
  top: 0;
  left: 50%;
  font-family: var(--font-title);
  font-size: var(--year-size);
  font-weight: 600;
  line-height: var(--leading-title);
  letter-spacing: var(--year-tracking);
  white-space: nowrap;
  color: var(--year-ink-muted);
  background-color: var(--paper);
  box-shadow: 0 0 0 var(--space-2) var(--paper);
  transform-origin: 50% 50%;
  will-change: transform;
}

.archive-cylinder .year-node.is-centered { color: var(--year-ink); }

.archive-cylinder .year-month {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: var(--month-gap);
  font-size: var(--month-size);
  font-weight: 400;
  line-height: var(--leading-title);
  letter-spacing: var(--month-tracking);
  color: var(--month-ink);
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity var(--dur-feedback) var(--ease-ink);
}

.archive-cylinder .year-month.is-fading { opacity: 0; }

.archive-cylinder .rail-center-tick {
  stroke: color-mix(in srgb, var(--cinnabar) 52%, transparent);
  stroke-width: 1;
}

.archive-cylinder .timeline-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 100%;
  margin-left: -36px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-title);
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  outline: none;
}

.archive-cylinder .timeline-node:focus-visible .node-title {
  text-decoration: underline;
  -webkit-text-decoration-color: var(--cinnabar);
          text-decoration-color: var(--cinnabar);
  text-underline-offset: var(--space-2);
}

.archive-cylinder .node-upper,
.archive-cylinder .node-lower {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  pointer-events: none;
}

.archive-cylinder .node-lower { gap: 0; }

.archive-cylinder .node-lower > .ink-dot {
  position: absolute;
  bottom: calc(100% + var(--dot-breath));
  left: 50%;
  transform: translateX(-50%);
}

.archive-cylinder .ink-dot {
  width: var(--space-1);
  height: var(--space-1);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--node-ink, var(--date-ink));
  opacity: 0.45;
}

.archive-cylinder .ink-dot::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-1));
  border: 1px solid var(--node-ink, var(--date-ink));
  border-radius: 50%;
  opacity: 0;
}

.archive-cylinder .timeline-node.is-centered .ink-dot,
.archive-cylinder .timeline-node.is-centered .ink-dot::after { opacity: 1; }

.archive-cylinder .node-date {
  display: flex;
  align-items: center;
  gap: 4px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  font-family: var(--font-title);
  font-size: var(--date-size);
  font-weight: 400;
  line-height: var(--leading-sm);
  letter-spacing: var(--tracking-meta);
  color: var(--date-ink);
}

.archive-cylinder .timeline-node[data-cat="ci"] { --node-ink: var(--archive-ink-ci); }
.archive-cylinder .timeline-node[data-cat="essay"] { --node-ink: var(--archive-ink-essay); }
.archive-cylinder .timeline-node[data-cat="tech"] { --node-ink: var(--archive-ink-tech); }
.archive-cylinder .timeline-node.is-centered .node-date { color: var(--date-ink-active); }

.archive-cylinder .node-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--title-column-gap);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: start;
  max-height: var(--max-title-h);
  max-width: var(--title-width);
  overflow: hidden;
  font-family: var(--font-title);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: var(--tracking-poetry-title);
  color: var(--title-ink);
}

.archive-cylinder .title-col {
  display: block;
  flex: 0 0 auto;
  direction: ltr;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: start;
  white-space: nowrap;
  max-height: var(--max-title-h);
  overflow: hidden;
}

.archive-cylinder .timeline-node.is-centered .node-title,
.archive-cylinder .timeline-node .node-title.is-measuring {
  font-size: var(--title-active-size);
  font-weight: 600;
}

.archive-cylinder .timeline-node .node-title.is-compact {
  font-size: var(--title-compact-size);
  letter-spacing: var(--title-compact-tracking);
}

@media (max-width: 640px) {
  .scroll-viewport.archive-cylinder { height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  .archive-cylinder .year-month { transition: none; }
}

/* =========================================================
   5. 归档页「岁时笺纸」双弧曲面时间轴
   ---------------------------------------------------------
   原生横向轨道保存滚动与无脚本阅读；增强后按同一投影定位节点和两条曲线。
   文字只重排字号与坐标，始终正面排印，中央舒展、两端收远。
   ========================================================= */
.chrono {
  position: relative;
  width: 100%;
  max-width: min(var(--stream-max), 88vw);
  height: calc(var(--chrono-top) + var(--chrono-bottom) + var(--chrono-sag) * 2 + var(--space-8));
  margin: var(--space-12) auto 0;
  scroll-margin-top: var(--header-dock-height);
}

.chrono__rail {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.chrono__rail::-webkit-scrollbar {
  display: none;
}

.chrono__rail:focus-visible {
  outline: 2px solid var(--celadon-deep);
  outline-offset: var(--space-1);
}

.chrono__rail.is-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.chrono__rail.is-dragging a {
  pointer-events: none;
}

.chrono__rail a:focus-visible {
  outline-offset: var(--space-1);
}

.chrono__axis {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.chrono__track,
.chrono__year,
.chrono__months,
.chrono__month,
.chrono__items {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.chrono__track {
  position: relative;
  justify-content: center;
  width: -moz-max-content;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-inline: var(--chrono-breath);
}

.chrono__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chrono__node {
  position: relative;
  top: var(--chrono-y, 0px);
  left: var(--chrono-x, 0px);
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding-inline: var(--chrono-gap);
  font-family: var(--font-title);
  font-weight: normal;
  line-height: var(--leading-title);
  color: var(--ink);
}

.chrono__head {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: center;
  height: var(--chrono-top);
  padding-bottom: var(--chrono-day-gap);
}

.chrono__date,
.chrono__month-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  letter-spacing: 0;
}

.chrono__month-name {
  font-size: max(var(--text-base), calc(var(--chrono-font-base) * var(--chrono-scale, 1) * var(--chrono-weight-month)));
  color: var(--chrono-soft-ink, var(--celadon-deep));
}

.chrono__date {
  font-size: max(var(--text-sm), calc(var(--chrono-font-base) * var(--chrono-scale, 1) * var(--chrono-weight-date)));
  color: var(--chrono-note-ink, var(--ink-secondary));
}

.chrono.is-projected .chrono__date,
.chrono.is-projected .chrono__rubric,
.chrono.is-projected .chrono__terms {
  opacity: var(--chrono-note-opacity, 1);
}

.chrono.is-projected .chrono__month-name,
.chrono.is-projected .chrono__terms {
  color: var(--chrono-soft-ink, var(--celadon-deep));
}

.chrono__year-greg {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-title);
  font-size: max(var(--text-2xl), calc(var(--chrono-font-base) * var(--chrono-font-scale, 1)));
  letter-spacing: var(--tracking-meta);
  white-space: nowrap;
  color: var(--ink);
}

.chrono__year-gz,
.chrono__terms {
  padding-top: var(--chrono-title-gap);
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  font-size: max(var(--text-base), calc(var(--chrono-font-base) * var(--chrono-scale, 1) * var(--chrono-weight-month)));
  letter-spacing: var(--tracking-poetry-title);
  color: var(--chrono-soft-ink, var(--celadon-deep));
}

.chrono__terms {
  display: flex;
  gap: var(--space-4);
  font-size: max(var(--text-base), calc(var(--chrono-font-base) * var(--chrono-scale, 1) * var(--chrono-weight-note)));
  opacity: var(--chrono-note-opacity, 1);
}

/* 不变的列宽预留完整长标题；缩小字号不会挤压相邻列或触发宽度反馈。 */
.chrono__entry {
  height: var(--chrono-bottom);
  padding-top: var(--chrono-title-gap);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  overflow-wrap: anywhere;
  font-size: var(--chrono-title-size);
  font-family: var(--font-title);
  letter-spacing: var(--chrono-tracking);
  line-height: var(--leading-body);
  color: var(--chrono-title-ink, var(--ink));
  text-decoration: none;
}

.chrono.is-projected .chrono__node {
  width: var(--chrono-column);
}

.chrono.is-projected .chrono__head,
.chrono.is-projected .chrono__entry,
.chrono.is-projected .chrono__terms,
.chrono.is-projected .chrono__year-gz {
  transform: skewY(calc(var(--chrono-skew, 0deg) * -1)) scaleX(var(--chrono-scale, 1));
  transform-origin: 50% 0;
}

.chrono.is-projected .chrono__entry {
  height: var(--chrono-room);
  font-size: max(var(--text-base), calc(var(--chrono-font-base) * var(--chrono-font-scale)));
  letter-spacing: calc(var(--tracking-title) * var(--chrono-scale));
}

.chrono__entry:hover,
.chrono__entry:focus-visible {
  color: var(--cinnabar);
}

.chrono__rubric {
  font-size: max(var(--text-sm), calc(var(--chrono-font-base) * var(--chrono-font-scale, 1) * var(--chrono-weight-note)));
  color: var(--chrono-note-ink, var(--ink-secondary));
}

.chrono__sep {
  color: var(--ink-faint);
}

.chrono__dot {
  position: absolute;
  top: var(--chrono-top);
  left: 50%;
  width: calc(var(--chrono-node-size) * var(--chrono-scale, 1));
  height: calc(var(--chrono-node-size) * var(--chrono-scale, 1));
  transform: translate(-50%, -50%);
  border-radius: 45% 55% 48% 52%;
  outline: var(--chrono-dot-ring) solid var(--paper);
}

.chrono__dot--year {
  width: calc(var(--chrono-node-year) * var(--chrono-scale, 1));
  height: calc(var(--chrono-node-year) * var(--chrono-scale, 1));
  background-color: var(--ink);
}

.chrono__dot--month {
  width: calc(var(--chrono-node-month) * var(--chrono-scale, 1));
  height: calc(var(--chrono-node-month) * var(--chrono-scale, 1));
  background-color: var(--celadon-deep);
}

.chrono__dot--ci {
  background-color: var(--archive-ink-ci);
}

.chrono__dot--essay {
  background-color: var(--archive-ink-essay);
}

.chrono__dot--tech {
  background-color: var(--archive-ink-tech);
}

.chrono__dot--project {
  background-color: var(--archive-ink-project);
}

.chrono__curve {
  display: block;
  width: 100%;
  height: 100%;
}

.chrono__axis-line,
.chrono__curve-line {
  fill: none;
  stroke-width: var(--chrono-curve-width);
}

.chrono__axis-line {
  stroke: var(--ochre);
}

.chrono__curve-line {
  stroke: var(--chrono-progress-ink);
}

.chrono__curve-dot {
  r: var(--chrono-dot-r);
  fill: var(--cinnabar);
  stroke: var(--paper);
  stroke-width: var(--chrono-dot-ring);
}

@media (max-width: 900px) {
  .chrono {
    --chrono-gap: var(--space-6);
    --chrono-breath: var(--space-12);
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 900px) {
  .chrono.is-projected .chrono__head,
  .chrono.is-projected .chrono__entry,
  .chrono.is-projected .chrono__terms,
  .chrono.is-projected .chrono__year-gz {
    transform: none;
  }
}

/* 页头：默认普通流；桌面停靠态见下方 archive-dock 规则 */
.site-main--archive {
  max-width: none;
}

.archive-intro {
  position: relative;
}

.archive-head {
  text-align: center;
  margin: var(--space-4) 0 var(--space-3);
}

.archive-head-space,
.archive-exit-space {
  display: none;
}

/* 首屏近期篇目：进入后可见；下滑时条目向两侧散开，完整时间轴成为焦点。 */
.archive-recent {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--space-6);
  max-width: var(--stream-max);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.archive-recent__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
}

.archive-recent__link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
  font-family: var(--font-title);
  font-size: var(--text-body);
  color: var(--ink);
  text-decoration: none;
}

.archive-recent__link:hover,
.archive-recent__link:focus-visible {
  color: var(--celadon-deep);
}

.archive-recent__rubric,
.archive-recent__sep {
  color: var(--ink-faint);
  font-size: var(--text-sm);
  flex-shrink: 0;
  white-space: nowrap;
}

.archive-recent__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.archive-recent__date {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

/* 工具栏：分卷图例（视图随窗口比例自动切换，不设手动按钮） */
.archive-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin: 0 0 var(--space-2);
}

/* 分卷图例：与时间轴同屏；默认灰墨点，悬停/选中还原彩墨；点按筛选轴体篇目 */
.archive-legend {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: 0;
}

.archive-legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  min-height: var(--archive-legend-height);
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--ink-faint);
  cursor: pointer;
  transition: color var(--dur-unfold) var(--ease-ink);
}

.archive-legend__item:hover {
  color: var(--archive-ink, var(--ink));
}

.archive-legend__item[aria-pressed="true"] {
  color: var(--archive-ink, var(--ink));
}

.archive-legend__item[data-cat-filter="ci"] { --archive-ink: var(--archive-ink-ci); }
.archive-legend__item[data-cat-filter="essay"] { --archive-ink: var(--archive-ink-essay); }
.archive-legend__item[data-cat-filter="tech"] { --archive-ink: var(--archive-ink-tech); }
.archive-legend__item[data-cat-filter="project"] { --archive-ink: var(--archive-ink-project); }

.archive-empty {
  text-align: center;
  color: var(--ink-secondary);
  margin-block: var(--space-12);
}

/* 视图归属由窗口比例决定：横式时间轴 / 竖式目录；无 JS 时同样生效 */
.archive-list {
  display: none;
}

@media (max-aspect-ratio: 1/1) {
  .chrono,
  .archive-cylinder {
    display: none;
  }

  .archive-list {
    display: block;
  }
}

.site-main--archive.is-archive-empty .chrono,
.site-main--archive.is-archive-empty .archive-list,
.site-main--archive.is-archive-empty .scroll-viewport.archive-cylinder {
  display: none;
}

.archive-empty[hidden] {
  display: none;
}

/* 信笺目录：收束行宽、汉字日期、极淡行底线 */
.archive-list {
  list-style: none;
  margin: 0 auto var(--space-8);
  padding: 0 var(--space-6);
  max-width: var(--prose-max);
}

.archive-list__item {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: baseline;
  -moz-column-gap: var(--space-3);
       column-gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
  transition: background-color var(--dur-feedback) var(--ease-ink);
}

.archive-list__item::after {
  content: "";
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--letter-rule) 18%,
    var(--letter-rule) 82%,
    transparent
  );
}

.archive-list__item:last-child::after {
  display: none;
}

.archive-list__item:hover,
.archive-list__item:focus-within {
  background-color: var(--letter-hover-bg);
}

.archive-list__date {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.archive-list__rubric {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-tag);
  color: var(--ink-faint);
  white-space: nowrap;
}

.archive-list__rubric--ci {
  color: var(--cinnabar);
}

.archive-list__link {
  min-width: 0;
  font-family: var(--font-title);
  font-size: var(--text-list-title);
  color: var(--ink);
  text-decoration: none;
}

.archive-list__link:hover,
.archive-list__link:focus-visible {
  color: var(--cinnabar);
}

.archive-list__title {
  display: inline;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .archive-list__item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-1);
  }
}

.archive-legend__dot {
  box-sizing: border-box;
  width: var(--chrono-node-size);
  height: var(--chrono-node-size);
  flex: 0 0 var(--chrono-node-size);
  border: 0;
  border-radius: 50%;
  background-color: var(--archive-ink);
  opacity: 0.42;
  transform: scale(0.82);
  transition: opacity var(--dur-unfold) var(--ease-ink), transform var(--dur-unfold) var(--ease-ink);
}

.archive-legend__item:hover .archive-legend__dot,
.archive-legend__item[aria-pressed="true"] .archive-legend__dot {
  opacity: 1;
  transform: scale(1);
}

.archive-legend__dot--ci { --archive-ink: var(--archive-ink-ci); }
.archive-legend__dot--essay { --archive-ink: var(--archive-ink-essay); }
.archive-legend__dot--tech { --archive-ink: var(--archive-ink-tech); }
.archive-legend__dot--project { --archive-ink: var(--archive-ink-project); }

/* 筛选褪墨：非当前分卷淡出为残墨，节点保留可扫读 */
.chrono__item.is-dimmed,
.chrono__year.is-dimmed,
.chrono__month.is-dimmed .chrono__month-mark,
.archive-list__item.is-dimmed {
  opacity: var(--chrono-dim-opacity);
  filter: grayscale(0.85);
  transition: opacity var(--dur-feedback) var(--ease-ink), filter var(--dur-feedback) var(--ease-ink);
}

.chrono__item.is-dimmed {
  pointer-events: none;
}

.archive-list__item.is-dimmed {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .chrono__item.is-dimmed,
  .chrono__year.is-dimmed,
  .chrono__month.is-dimmed .chrono__month-mark,
  .archive-list__item.is-dimmed {
    transition: none;
  }
}

.archive-head__mast {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archive-head__title {
  font-family: var(--font-title);
  font-size: var(--text-page-title);
  letter-spacing: var(--tracking-display);
  text-indent: var(--tracking-display);
  color: var(--ink);
  margin: 0;
}

.archive-head__count {
  margin: var(--space-3) 0 0;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

/* 归档题头停靠：首屏题头偏上居中，篇数贴题头下；近期随之上移；定点后只留缩小题头。 */
@keyframes archive-mast-dock {
  from {
    top: calc(50svh - var(--header-dock-height) - var(--archive-dock-height) / 2 - var(--archive-cover-lift));
  }
  to {
    top: 0;
  }
}

@keyframes archive-title-dock {
  from {
    font-size: var(--text-page-title);
    letter-spacing: var(--tracking-display);
    text-indent: var(--tracking-display);
  }
  to {
    font-size: var(--text-dock-title);
    letter-spacing: var(--tracking-title);
    text-indent: var(--tracking-title);
  }
}

@keyframes archive-count-fold {
  from {
    opacity: 1;
    visibility: visible;
    margin-top: var(--space-3);
  }
  to {
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
  }
}

@keyframes archive-recent-hold {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes archive-recent-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--space-16) * -1)); }
}

@keyframes archive-recent-right {
  from { transform: translateX(0); }
  to { transform: translateX(var(--space-16)); }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  @supports (animation-timeline: scroll(root block)) and (animation-range: 0px 1px) {
    /*
     * 引力锚点只设在「图例 + 时间轴」起点：
     * 首屏不设 snap，避免把已出现的题头再拉回去；
     * always = 进入定点后不再被轻滑拽回半途。
     */
    html:has(body.archive-dock-page) {
      scroll-snap-type: y proximity;
      /* 定点一屏：轴上区压到栏头下，轴下区按剩余高度铺满至朱线 */
      --chrono-top: 6.5rem;
      --chrono-height: calc(100svh - var(--header-dock-height) - var(--archive-dock-height) - var(--archive-legend-height) - var(--space-12) - var(--space-4));
      --chrono-bottom: clamp(var(--space-24), calc(var(--chrono-height) - var(--chrono-top) - var(--space-8) - var(--chrono-sag) * 2), 22rem);
    }

    .archive-dock-page .site-main--archive {
      padding-top: 0;
    }

    .archive-cover-zone { position: relative; }

    .archive-head {
      position: sticky;
      top: var(--header-dock-height);
      z-index: 3;
      height: var(--archive-dock-height);
      margin: 0;
      padding: 0 var(--space-6);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: visible; /* 首屏大题头+篇数需溢出栏头盒 */
      /* 素笺底：近期上滑至题头底即被遮住，无法越过 */
      background-color: var(--paper);
      background-image: var(--paper-texture);
      background-repeat: repeat;
    }

    .archive-head__mast {
      position: relative;
      animation: archive-mast-dock linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--archive-travel);
    }

    .archive-head__title {
      animation: archive-title-dock linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--archive-travel);
    }

    .archive-head__count {
      position: absolute;
      top: 100%;
      inset-inline: 0;
      animation: archive-count-fold linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px calc(var(--archive-travel) * 0.45);
    }

    .archive-intro {
      /* 盖住视口剩余高度，避免时间轴在首屏探头 */
      height: calc(var(--archive-travel) + var(--archive-dock-height) - var(--space-8));
      margin-top: calc(var(--archive-dock-height) * -1);
      padding-top: var(--archive-dock-height);
      box-sizing: border-box;
      overflow: hidden;
      z-index: 1;
    }

    .archive-recent {
      position: absolute;
      left: 0;
      right: 0;
      /* 与居中的题簇共用视口基准，近期列表始终落在篇数下方。 */
      top: calc(50svh - var(--header-dock-height) + var(--archive-cover-lift) + var(--archive-recent-gap));
      max-width: min(var(--prose-max), calc(100% - var(--space-12)));
      margin-inline: auto;
      z-index: 0;
      animation: archive-recent-hold linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px calc(var(--archive-travel) * 0.42);
    }

    .archive-recent__link,
    .archive-recent__date {
      animation-timeline: scroll(root block);
      animation-range: 0px calc(var(--archive-travel) * 0.42);
      animation-timing-function: ease-in;
      animation-fill-mode: both;
    }

    .archive-recent__link {
      animation-name: archive-recent-left;
    }

    .archive-recent__date {
      animation-name: archive-recent-right;
    }
    }

    .archive-head-space {
      display: block;
      height: 100%;
    }

    .archive-toolbar {
      scroll-snap-align: start;
      scroll-snap-stop: always;
      scroll-margin-top: calc(var(--header-dock-height) + var(--archive-dock-height));
      margin: var(--space-3) 0 var(--space-3);
    }

    .archive-legend {
      position: relative;
      z-index: 1;
      min-height: var(--archive-legend-height);
      align-items: center;
    }

    .archive-dock-page .site-main--archive.is-list-view .archive-intro {
      height: auto;
      margin-top: 0;
      padding-top: 0;
      overflow: visible;
    }

    .archive-dock-page .site-main--archive.is-list-view .archive-recent,
    .archive-dock-page .site-main--archive.is-list-view .archive-head-space {
      display: none;
    }

    .archive-dock-page .chrono {
      position: relative;
      z-index: 1;
      margin-top: 0;
      /* 矮窗口压缩题目区；极矮窗口允许页面纵滚，始终容纳轨道与下弧。 */
      min-height: calc(var(--chrono-top) + var(--chrono-bottom) + var(--chrono-sag) * 2);
      height: var(--chrono-height);
    }

    .archive-empty[data-archive-empty] {
      margin-block: 0;
      padding-top: var(--space-12);
      min-height: max(var(--chrono-height), calc(var(--chrono-top) + var(--chrono-bottom) + var(--chrono-sag) * 2));
    }

    /* 去掉整屏离场跑道：时间轴上移后直接接页脚，素笺栏头遮住残留 */
    .archive-exit-space {
      display: none;
      height: 0;
    }

    .archive-dock-page .site-main--archive {
      /* 时间轴下保留离场余白，页脚不进入完整阅读定点。 */
      padding-bottom: var(--space-8);
    }

}

@media print {
  .archive-intro {
    height: auto;
    margin-top: 0;
    padding-top: 0;
  }
  .archive-head {
    position: static;
    height: auto;
  }
  .archive-head__mast,
  .archive-head__title,
  .archive-head__count,
  .archive-recent,
  .archive-recent__link,
  .archive-recent__date {
    animation: none;
    transform: none;
  }
  .archive-head-space,
  .archive-exit-space {
    display: none;
  }

}

/* =========================================================
   6. 独立页面（关于 / about）版式：小印一方、名字一行、自述数语
   ========================================================= */
.page-about__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.page-about__header.reading-mast {
  text-align: start;
}

.page-about__brand {
  margin-bottom: var(--space-3);
}

.reading-mast .page-about__brand {
  margin-bottom: var(--space-2);
}

.page-about__name {
  font-family: var(--font-title);
  font-size: var(--text-page-title);
  letter-spacing: var(--tracking-title);
  text-indent: var(--tracking-title);
  color: var(--ink);
}

.page-about__tagline {
  font-family: var(--font-title);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  letter-spacing: var(--tracking-meta);
  color: var(--ink-faint);
  margin: 0;
}

/* 页面正文：行距略宽于正文段落，宜于长文自述 */
.page-content {
  line-height: var(--leading-body);
}

/* =========================================================
   7. 404 页（一纸空笺）：淡印一方、两行小字、两处雨丝链接
   ========================================================= */
.empty-paper {
  text-align: center;
  padding: var(--space-24) 0 var(--space-16);
  max-width: 480px;
  margin: 0 auto;
}

.empty-paper__seal {
  margin-bottom: var(--space-8);
}

.empty-paper__title {
  font-family: var(--font-title);
  font-size: var(--text-page-title);
  letter-spacing: var(--tracking-display);
  text-indent: var(--tracking-display);
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.empty-paper__verse {
  font-family: var(--font-title);
  font-size: var(--text-base);
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  line-height: 2;
  margin-bottom: var(--space-12);
}

.empty-paper__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
}

.empty-paper__link {
  font-family: var(--font-title);
  font-size: var(--text-sm);
  letter-spacing: 0.24em;
  color: var(--ink-light);
  padding-bottom: var(--space-1);
  background: var(--rain-thread-h-celadon) no-repeat 0 100% / 100% 1px;
}

.empty-paper__link:hover,
.empty-paper__link:focus-visible {
  color: var(--ink);
}

/* =========================================================
   8. 响应式适配
   ========================================================= */
@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    gap: var(--space-3);
  }
  .site-header__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
  /* 卷首题词与归流：窄屏收紧留白，题词缩字号保版心；
     横向缩进已由 .site-main 版心供距，此处归零防双重缩进 */
  .home-cover {
    padding: var(--space-12) var(--space-4);
  }
  .home-cover__hint {
    bottom: var(--space-6);
  }
  .home-sheet {
    padding: calc(var(--space-12) + var(--space-8)) var(--space-4) var(--space-16);
  }
  .home-epigraph__text {
    letter-spacing: var(--tracking-display);
    text-indent: var(--tracking-display);
  }
  .post-item {
    padding: var(--space-5) 0 var(--space-5) var(--space-4);
  }
}
