/* The news page (pages/news.html, its items from news.json), on top of site.css. */

/* the items down a timeline: a line on the left with a hexagon per item, the picture beside the words */
.news-list { position: relative; margin-top: 48px; padding-left: 34px; }
.news-list::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--yellow), var(--line) 30%, transparent); }
.news-item { position: relative; display: grid; gap: 20px 32px; margin: 0 0 64px; }
.news-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 20px; height: 18px; clip-path: var(--hexagon); background: var(--yellow); box-shadow: 0 0 0 4px var(--void); }
.news-item:target .news-text h2 { color: var(--yellow); }
@media (min-width: 860px) { .news-item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.news-picture { --cut: 24px; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); background: var(--purple); }
.news-picture img, .news-picture video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 860px) { .news-picture { position: sticky; top: 96px; } }
.news-text h2 { margin: 12px 0 10px; font-size: clamp(1.35rem, 3vw, 1.9rem); scroll-margin-top: 96px; transition: color 0.2s; }
.news-summary { margin: 0 0 14px; font-size: 1.08rem; color: #fff; font-weight: 600; }
.news-text p:not(.news-meta, .news-summary) { margin: 0 0 12px; color: var(--muted); }
.news-text h3 { margin: 22px 0 10px; font: 700 0.78rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow); }
.news-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.news-changes li { position: relative; padding: 8px 12px 8px 30px; background: var(--cell); color: var(--muted); font-size: 0.95rem; --cut: 8px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.news-changes li::before { content: ''; position: absolute; left: 11px; top: 0.95em; width: 10px; height: 9px; clip-path: var(--hexagon); background: var(--teal); }
@media (max-width: 560px) { .news-list { padding-left: 24px; } .news-list::before { left: 4px; } .news-item::before { left: -26px; width: 16px; height: 14px; } }
@media (prefers-reduced-motion: reduce) { .news-text h2 { transition: none; } }
