/* News: the story index (lead + grid, compact rows on phones), a story page, and the typographic cover. */

/* covers (tai_cover): a photo, or the desk and date set in type over a faint halftone, like the logo's globe */
.cover { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--sky); max-width: 100%; margin: 0; }
.cover__img { width: 100%; height: 100%; object-fit: cover; }
.cover__type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 16px 18px; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line);
	background: radial-gradient(rgba(var(--ink-rgb), .12) 1.1px, transparent 1.4px) right -6px bottom -6px / 11px 11px no-repeat, radial-gradient(130% 100% at 0% 0%, #FFFFFF 0%, #EEF2EF 52%, #DCE6EA 100%); }
.cover__type::after { content: ""; position: absolute; right: -14%; bottom: -38%; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
	background: radial-gradient(rgba(var(--ink-rgb), .13) 1.2px, transparent 1.5px) 0 0 / 10px 10px; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%); mask: radial-gradient(closest-side, #000 55%, transparent 100%); }
.cover__k { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--ink-2); position: relative; z-index: 1; }
.cover__k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .3); }
.cover__t { font: 600 clamp(24px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.04em; color: var(--ink); position: relative; z-index: 1; text-wrap: balance; }
.cover--wide { aspect-ratio: 16 / 9; margin-bottom: 32px; box-shadow: 0 30px 60px -48px var(--shade); }
.cover--wide .cover__t { font-size: clamp(32px, 5vw, 56px); }

/* the index */
.news { padding-bottom: clamp(52px, 7vw, 96px); }
.stories { display: grid; gap: 12px; }
.story { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .2s ease, transform .2s ease; }
.story:hover { border-color: var(--ink); transform: translateY(-1px); }
.story .cover { aspect-ratio: 1; border-radius: 12px; }
.story .cover__type { padding: 10px; justify-content: flex-end; }
.story .cover__t { font-size: 15px; letter-spacing: -.02em; }
.story .cover__k { display: none; }   /* the date is printed under the cover already */
.story__body { display: grid; gap: 6px; min-width: 0; padding: 4px 4px 4px 0; }
.story__m { font: 500 12px/1.3 var(--mono); color: var(--ink-2); }
.story__t { font: 600 17px/1.3 var(--display); letter-spacing: -.012em; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story__x { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.story--lead { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px; }
.story--lead .cover { aspect-ratio: 16 / 10; border-radius: 14px; }
.story--lead .cover__type { padding: 18px 20px; }
.story--lead .cover__t { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.story--lead .story__body { padding: 16px 10px 10px; gap: 10px; }
.story--lead .story__t { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.03em; -webkit-line-clamp: unset; }
@media (min-width: 700px) {
	.stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.story { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.story .cover { aspect-ratio: 16 / 10; border-radius: 14px; }
	.story .cover__type { padding: 16px 18px; }
	.story .cover__t { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.035em; }
	.story__body { padding: 14px 8px 8px; }
	.story--lead { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	.stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.story--lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 12px; }
	.story--lead .story__body { padding: 8px 20px 8px 0; }
}

/* pager */
.pager { margin-top: 32px; }
.pager .nav-links, .pager { display: flex; flex-wrap: wrap; gap: 8px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), .16); background: var(--paper); color: var(--ink); text-decoration: none; font: 500 15px/1 var(--body); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0 4px; }

/* a story */
.spage__t { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.035em; }
.spage .prose p.src { margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.spage__after { display: grid; gap: 14px; padding-block: clamp(40px, 6vw, 64px) clamp(56px, 8vw, 104px); }
.next { display: grid; gap: 10px; margin-top: 14px; }
.next a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font: 600 16px/1.35 var(--display); letter-spacing: -.01em; transition: border-color .2s ease; }
.next a:hover { border-color: var(--ink); }
.next span { font: 500 12px/1.3 var(--mono); color: var(--ink-2); letter-spacing: 0; }
@media (min-width: 700px) { .next { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .story, .next a { transition: none; } }
[data-theme="dark"] .cover__type { background: radial-gradient(rgba(var(--ink-rgb), .12) 1.1px, transparent 1.4px) right -6px bottom -6px / 11px 11px no-repeat, radial-gradient(130% 100% at 0% 0%, #20272B 0%, #161B1E 52%, #0F1316 100%); }
