/* 两幅小样按印刷标尺落入等宽栏；静态版面保留原稿与排版结果的对应关系。 */
.figure-typesetting { margin-top: clamp(20px, 1.9vw, 28px); }
.typeset-layout { display: block; width: 100%; max-width: 390px; height: auto; margin-top: 9px; }
.typeset-drafts { opacity: .78; }
.typeset-arrow, .typeset-guides, .typeset-baseline { fill: none; stroke-width: 1; }
.typeset-arrow { stroke: #506660; stroke-width: 1.3; }
.typeset-guides { stroke: #7b9187; }
.typeset-rail { stroke: #9bb0a5; stroke-dasharray: 2 3; }
.typeset-register { stroke: #627c72; }
.typeset-baseline { stroke: #a76643; }

html[data-theme="dark"] .typeset-arrow { stroke: #b5cbc1; }
html[data-theme="dark"] .typeset-guides { stroke: #a2b8ad; }
html[data-theme="dark"] .typeset-rail { stroke: #728a81; }
html[data-theme="dark"] .typeset-register { stroke: #9dbab0; }
html[data-theme="dark"] .typeset-baseline { stroke: #e1a280; }

@media screen and (prefers-reduced-motion: no-preference) {
  .home-motion .figure-typesetting[data-reveal] { --entry-rise: 5px; }
  .figure-typesetting.is-revealed .typeset-map-in,
  .figure-typesetting.is-revealed .typeset-profile-in {
    animation: typeset-fit-column 720ms cubic-bezier(.32,.05,.18,1) var(--typeset-delay) backwards;
  }
  .typeset-map-in { --typeset-draft: translate(-155px,-13px) scale(.86); --typeset-delay: 300ms; }
  .typeset-profile-in { --typeset-draft: translate(-195px,20px) scale(.76); --typeset-delay: 380ms; }
  .figure-typesetting.is-revealed :is(.typeset-span, .typeset-baseline) {
    stroke-dasharray: 1; animation: typeset-rule 340ms ease-out backwards;
  }
  .figure-typesetting.is-revealed .typeset-baseline { animation-delay: 930ms; }
  @keyframes typeset-fit-column {
    from { transform: var(--typeset-draft); }
    to { transform: none; }
  }
  @keyframes typeset-rule { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

@media (max-width: 760px) {
  .figure-typesetting { margin-top: 23px; }
  .typeset-layout { max-width: 345px; margin-top: 6px; }
}
