/* Articles: motion tokens and the reading line (creative developer's file; v2 keeps only what the reader's page still uses).
   The receipts margin, the source tags and the provenance rail of the first design were removed with that design
   (decisions.md 2026-11-11, «The articles design is rejected: reader first»). The page is complete with no script and under
   reduced motion; the reading line is the one thing here that is not content, and with neither a scroll timeline nor the
   script it is absent. */

/* ---------- 1. motion tokens (exceptional-web reference/motion.md) ---------- */
/* Scoped to the two article page types so no other page changes. */
.article-page,.articles-page{
  --dur-feedback:120ms;
  --dur-state:200ms;
  --dur-layout:320ms;
  --dur-enter:560ms;
  --dur-authored:800ms;
  --ease-standard:cubic-bezier(.2,0,0,1);
  --ease-decelerate:cubic-bezier(0,0,.2,1);
  --ease-accelerate:cubic-bezier(.3,0,1,.3);
  --ease-arrive:cubic-bezier(.16,1,.3,1);
  --motion-distance:20px;
  --dir:1;
}
[dir="rtl"] .article-page,[dir="rtl"] .articles-page{--dir:-1}
@media (prefers-reduced-motion:reduce){
  .article-page,.articles-page{--dur-layout:1ms;--dur-enter:1ms;--dur-authored:1ms;--motion-distance:0px}
}

/* ---------- 2. reading progress ---------- */
/* 2px teal on the lower edge of the fixed header, travelling right to left. Scroll-driven where supported; elsewhere the
   script sets --alv-progress from a passive listener. Not content: with neither, it is absent. */
.article-page .hdr::after{
  content:"";position:absolute;inset-inline:0;inset-block-end:-1px;height:2px;background:var(--teal,#0f766e);
  transform-origin:right center;transform:scaleX(var(--alv-progress,0));pointer-events:none;
}
@supports (animation-timeline:scroll()){
  .article-page .hdr::after{animation:alv-progress linear both;animation-timeline:scroll(root block)}
  @keyframes alv-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}
@media (prefers-reduced-motion:reduce){
  .article-page .hdr::after{animation:none;transform:scaleX(var(--alv-progress,0))}
}
