/* James's photo beside the story (22 Nov 2026 draft). The picture is made by
   your-work/leaky-bucket/funnel-images/build_images.py */
.dp-side::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 14px;
  background: url("/img/james-story.jpg") center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(8, 25, 17, 0.18);
}

/* The headline marker was painting over the tails of the line above it. */
.dp-hero h1 mark {
  background: linear-gradient(transparent 22%, var(--dp-mark) 22% 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Gold top banner with a slow shine, modelled on Zac's bundle page (24 Nov 2026). */
.dp-announce {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #B8914E 0%, #D4B06A 22%, #EFDBA6 50%, #D4B06A 78%, #B8914E 100%);
  border-bottom: 4px solid #0B2826;
  color: #0B2826;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: clamp(12px, 1.5vw, 16px);
  padding-top: 14px; padding-bottom: 14px;
}
.dp-announce::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: iwj-shine 4.2s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes iwj-shine {
  0% { transform: translateX(-130%) skewX(-20deg); }
  55%, 100% { transform: translateX(400%) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) { .dp-announce::after { animation: none; display: none; } }
