/* Climbing attempt log page (website-climbing-attempt-log-page). Loaded after logbook-page-v1.css,
   which supplies the phone frame, the showcase grid and the hero grid. */
.attempt-block { padding: 34px 0; border-top: 1px solid #e5decf; }
.attempt-block h2 { margin: 0 0 12px; font: 700 clamp(26px, 3vw, 36px)/1.2 "Space Grotesk", sans-serif; color: #1c1a17; }
.logbook-showcase.attempt-block { padding: 40px 0; }
.logbook-showcase.attempt-block .logbook-showcase-text h2 { margin: 0 0 8px; font: 700 clamp(22px, 2.4vw, 28px)/1.25 "Space Grotesk", sans-serif; }
.attempt-write, .attempt-read { max-width: 680px; }
.attempt-read p { margin: 0 0 12px; color: #6f6658; line-height: 1.65; font-size: 16px; }
.attempt-list { margin: 0; padding-left: 22px; color: #6f6658; line-height: 1.65; font-size: 16px; }
.attempt-list li { margin: 0 0 8px; }
.attempt-list strong { color: #1c1a17; }
.attempt-links { margin: 0; padding: 28px 0 8px; border-top: 1px solid #e5decf; color: #6f6658; line-height: 1.65; }
.attempt-links a { color: #166534; text-decoration: underline; text-underline-offset: 3px; }

/* Pan: about 40 px per second, about 1.5 s pause at each end, for a 312 px wide screen (the capture
   at 0.3768 of its 828 px width). Percentages follow each image's own shown height. */
/* Hero image is the top 2654 px of the capture (2654 px = 2000 px tall file): 0 to 800 px of the capture. */
@keyframes attempt-pan-hero {
  0%, 8.3% { transform: translateY(0%); }
  50%, 58.3% { transform: translateY(-30.14%); }
  100% { transform: translateY(0%); }
}
/* "From one attempt to a project": 730 to 4700 px of the 7230 px capture. */
@keyframes attempt-pan-list {
  0%, 1.93% { transform: translateY(-10.1%); }
  50%, 51.93% { transform: translateY(-65.01%); }
  100% { transform: translateY(-10.1%); }
}
/* "The send" starts and rests on the end of the capture: the trophy shelf heading and the whole
   Timberrr card on screen. It pans up only as far as the heading ("Trophy shelf" and "Sent projects",
   capture px 6635 to 6722) stays fully on screen: window top at capture px 5050 of 7230 (-69.85%),
   about 161 px of travel at 40 px per second, a 3 s rest hold and a 1.5 s far hold. */
@keyframes attempt-pan-send {
  0%, 23.85% { transform: translateY(calc(660px - 100%)); }
  55.96%, 67.89% { transform: translateY(-69.85%); }
  100% { transform: translateY(calc(660px - 100%)); }
}
.phone-screen img.pan-attempt-hero { animation: attempt-pan-hero 18.07s linear infinite; }
.phone-screen img.pan-attempt-list { --pan-start: -10.1%; animation: attempt-pan-list 77.8s linear infinite; }
.phone-screen img.pan-attempt-send { --pan-start: calc(660px - 100%); animation: attempt-pan-send 12.58s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .phone-screen img.pan-attempt-hero, .phone-screen img.pan-attempt-list, .phone-screen img.pan-attempt-send { animation: none; transform: translateY(var(--pan-start, 0%)); }
}
