/* Motion + retention: page transitions, ticking counters, the press-roll
   masthead and the "Tomorrow" card. Progressive enhancement only; everything
   here is off under prefers-reduced-motion. */

.tick-num { font-variant-numeric: tabular-nums; }

/* ---- Cross-document view transitions ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  /* The masthead stays put between pages; only the page body moves. */
  .topbar { view-transition-name: topbar; }
  #main { view-transition-name: page; }

  ::view-transition-group(topbar) { animation-duration: .2s; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(page) { animation: vt-page-out .16s ease-in both; }
  ::view-transition-new(page) { animation: vt-page-in .28s cubic-bezier(.22, 1, .36, 1) .04s both; }

  @keyframes vt-page-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-page-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ---- Press-roll masthead (first open of the day) ---- */
@media (prefers-reduced-motion: no-preference) {
  .nameplate.press-roll { animation: press-roll .8s cubic-bezier(.3, .7, .2, 1) both; }
  .nameplate.press-roll .under { animation: press-ink .8s ease-out both; }
  @keyframes press-roll {
    0% { clip-path: inset(0 0 100% 0); filter: blur(3px) contrast(1.4); transform: translateY(-8px); }
    60% { clip-path: inset(0 0 0 0); filter: blur(1px); }
    100% { clip-path: inset(0 0 0 0); filter: none; transform: none; }
  }
  @keyframes press-ink {
    0%, 55% { opacity: 0; letter-spacing: .3em; }
    100% { opacity: 1; letter-spacing: .14em; }
  }
}

/* ---- Tomorrow card ---- */
.tomorrow-card [data-countdown] { font-variant-numeric: tabular-nums; }
.tomorrow-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
