/* Post "pills" (small cards with the featured image) and their big hover preview (assets/landing/post-zoom.js).
   Shared by the blog slideshow (slideshow.css adds its overrides) and the single-post sidebar (site.css sets the colour variables there).
   Colours come from --ink, --ink-muted, --card, --card-hover and --line, set by the container. */
.rp-postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.rp-postlist a { display: grid; gap: .1rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s; }
.rp-postlist a:hover, .rp-postlist a:focus-visible { background: var(--card-hover); border-color: var(--ink-muted); }
/* featured image as the card background; same card size, a gradient keeps the text readable */
.rp-postlist a.has-image { background: linear-gradient(90deg, rgba(8,10,18,.9), rgba(8,10,18,.5)), var(--card-bg) center / cover no-repeat; border-color: rgba(255,255,255,.14); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.65); }  /* photo card: white text on a dark gradient in both themes */
.rp-postlist a.has-image:hover, .rp-postlist a.has-image:focus-visible { background: linear-gradient(90deg, rgba(8,10,18,.78), rgba(8,10,18,.3)), var(--card-bg) center / cover no-repeat; border-color: rgba(255,255,255,.4); }
.rp-postlist a.has-image .rp-postlist__meta { color: #dfe3ee; }
.rp-postlist__meta { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.rp-postlist__title { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Hover preview of the posts in the blog's side lists (assets/landing/post-zoom.js). Stays under the header (z-index 1000). */
.rp-zoom__backdrop { position: fixed; inset: 0; z-index: 890; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .48s ease; pointer-events: none; }
.rp-zoom__backdrop.is-open { opacity: 1; }
.rp-zoom { position: fixed; z-index: 900; display: flex; align-items: flex-end; overflow: hidden; box-sizing: border-box; color: #fff; text-decoration: none;
	background: linear-gradient(0deg, rgba(8,10,18,.9), rgba(8,10,18,.15) 65%), var(--zoom-bg, none) center / cover no-repeat, #0a0a12;
	box-shadow: 0 20px 70px rgba(0,0,0,.55);
	transition: left .48s cubic-bezier(.2,.7,.2,1), top .48s cubic-bezier(.2,.7,.2,1), width .48s cubic-bezier(.2,.7,.2,1), height .48s cubic-bezier(.2,.7,.2,1), border-radius .48s ease, opacity .3s ease; }
.rp-zoom__body { width: 100%; max-width: 1000px; padding: clamp(1.25rem, 3vw, 3rem); opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.rp-zoom.is-open .rp-zoom__body { opacity: 1; transform: none; transition-delay: .22s; }
.rp-zoom__meta { margin: 0 0 .5rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #e5e7eb; }
.rp-zoom__title { margin: 0 0 .75rem; font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.08; color: #fff; text-align: left; }
.rp-zoom__excerpt { margin: 0 0 1.25rem; max-width: 62ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.5; color: #f1f3f8; }
.rp-zoom__more { display: inline-block; padding: .5rem 1.2rem; border: 1px solid #fff; border-radius: 2rem; font-weight: 600; }
.rp-zoom:hover .rp-zoom__more { background: rgba(255,255,255,.16); }
.rp-zoom__link { position: absolute; inset: 0; display: flex; align-items: flex-end; color: inherit; text-decoration: none; }
.rp-zoom__close { position: absolute; top: clamp(.75rem, 1.5vw, 1.25rem); right: clamp(.75rem, 1.5vw, 1.25rem); z-index: 1; display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(8,10,18,.45); color: #fff; cursor: pointer;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease, background-color .2s ease; }
.rp-zoom.is-open .rp-zoom__close { opacity: 1; transform: none; transition-delay: .22s, .22s, 0s; }
.rp-zoom__close:hover { background: rgba(255,255,255,.2); }
.rp-zoom__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rp-zoom__close svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .rp-zoom__backdrop, .rp-zoom, .rp-zoom__body, .rp-zoom__close { transition: none; } }
