/* =========================================================================
   ARTICLES PAGE
   ========================================================================= */

/* ── HERO ── */
.articles-hero { padding: 80px 0 48px; }
@media (min-width: 768px) { .articles-hero { padding: 96px 0 56px; } }
@media (min-width: 1024px) { .articles-hero { padding: 120px 0 64px; } }

.articles-hero__headline {
	font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.028em;
	font-weight: 700; margin: 0 0 20px; text-wrap: balance;
}
.articles-hero__lede {
	font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-400); max-width: 56ch; margin: 0;
}
.articles-hero__count {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
	font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-300);
}
.articles-hero__count-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--volt-500); }


/* ── POST CARD (from Signal design system) ── */
.post {
	background: var(--paper-0);
	border: 1px solid var(--mist);
	border-radius: var(--r-3);
	overflow: hidden;
	transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--ink-300); }

.post .cover {
	aspect-ratio: 16/10;
	position: relative;
	overflow: hidden;
}
.post .cover .num {
	position: absolute; left: 14px; bottom: 10px;
	font-family: var(--mono); font-size: 10px; font-weight: 600;
	background: var(--paper-0); color: var(--ink-900);
	padding: 4px 8px; border-radius: 4px; letter-spacing: 0.08em;
	z-index: 2;
}
.post .body {
	padding: 20px;
	display: flex; flex-direction: column; gap: 10px; flex: 1;
}
@media (min-width: 768px) { .post .body { padding: 24px; gap: 12px; } }

.post .meta {
	font-family: var(--mono); font-size: 11px; color: var(--ink-400);
	display: flex; gap: 10px; letter-spacing: 0.06em; text-transform: uppercase;
}
.post h4 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 700; }
@media (min-width: 768px) { .post h4 { font-size: 19px; } }

.post .excerpt {
	font-size: 14px; line-height: 1.6; color: var(--ink-400); margin: 0;
}

.post .arr-link {
	margin-top: auto;
	font-size: 13px; font-weight: 600; color: var(--fire-600);
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 32px;
}
.post .arr-link::after { content: "\2192"; transition: transform var(--t1); }
.post:hover .arr-link::after { transform: translateX(3px); }


/* Featured post */
.post.featured { flex-direction: column; }
@media (min-width: 768px) {
	.post.featured { flex-direction: row; min-height: 320px; }
	.post.featured .cover { aspect-ratio: auto; flex: 1; min-width: 280px; }
	.post.featured .body { flex: 1.3; padding: 36px; }
}
.post.featured h4 { font-size: 22px; line-height: 1.2; }
@media (min-width: 768px) { .post.featured h4 { font-size: 28px; } }


/* ── COVER STYLES (from Signal design system) ── */

/* 1. Fire gradient + arch frame */
.cover-1 {
	background: linear-gradient(135deg, var(--fire-400), var(--sunset));
	position: relative;
}
.cover-1::after {
	content: ""; position: absolute; inset: 30% 12% 0;
	border: 2px solid rgba(255,255,255,0.6);
	border-radius: var(--r-2) var(--r-2) 0 0;
}

/* 2. Dot grid + volt orb */
.cover-2 {
	background: var(--paper-3);
	background-image: radial-gradient(circle at 1px 1px, var(--ink-300) 1px, transparent 0);
	background-size: 14px 14px;
	position: relative;
}
.cover-2::before {
	content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
	width: 50%; aspect-ratio: 1; background: var(--volt-500);
	border-radius: 50%;
	box-shadow: 0 8px 32px rgba(11,179,149,0.4);
}

/* 3. Dark with fire gradient sphere */
.cover-3 {
	background: var(--ink-900); position: relative;
	display: grid; place-items: center;
}
.cover-3::before {
	content: ""; width: 60%; aspect-ratio: 1; border-radius: 50%;
	background: linear-gradient(180deg, var(--fire-300), var(--fire-600));
}
.cover-3::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 60%, var(--ink-900));
	pointer-events: none;
}

/* 4. Fire-100 with diagonal lines */
.cover-4 {
	background: var(--fire-100);
	background-image: repeating-linear-gradient(45deg, transparent 0 18px, var(--fire-200) 18px 19px);
}

/* 5. Volt + italic word */
.cover-5 {
	background: var(--volt-50); position: relative;
	display: grid; place-items: center;
	font-family: var(--font-display); font-style: italic; color: var(--volt-700);
	font-size: clamp(48px, 8vw, 84px); font-weight: 400;
	letter-spacing: -0.03em;
}

/* 6. Dark with fire stripe + square */
.cover-6 {
	background: var(--ink-900); position: relative;
	background-image: linear-gradient(90deg, transparent 0%, transparent 50%, rgba(255,127,28,0.4) 50%, rgba(255,127,28,0.4) 51%, transparent 51%);
	background-size: 14px 100%;
}
.cover-6::after {
	content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
	width: 40%; aspect-ratio: 1; background: var(--fire-500);
	border-radius: var(--r-3);
	box-shadow: 0 8px 32px rgba(255,127,28,0.5);
}

/* 7. Ink with volt crosshair */
.cover-7 {
	background: var(--ink-900); position: relative;
	display: grid; place-items: center;
}
.cover-7::before {
	content: ""; width: 1px; height: 60%; background: var(--volt-400); opacity: 0.5;
	position: absolute; left: 50%;
}
.cover-7::after {
	content: ""; height: 1px; width: 60%; background: var(--volt-400); opacity: 0.5;
	position: absolute; top: 50%;
}

/* 8. Paper-2 with large ink arch */
.cover-8 {
	background: var(--paper-2); position: relative;
	display: grid; place-items: end center;
}
.cover-8::before {
	content: ""; width: 55%; aspect-ratio: 1;
	border-radius: 50% 50% 0 0;
	background: var(--ink-900); opacity: 0.08;
	margin-bottom: -10%;
}


/* ── GRID ── */
.articles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding-bottom: 96px;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }

/* Featured spans full width */
.articles-grid > .post.featured { grid-column: 1 / -1; }


/* ── FOOTER ── */
.articles-footer {
	background: var(--ink-900); color: var(--ink-200); padding: 40px 0;
}
.articles-footer__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.articles-footer__brand img { height: 24px; width: auto; }
.articles-footer__copy { font-size: 12px; color: var(--ink-300); }


/* ── Animation ── */
.js-stagger { opacity: 0; transform: translateY(30px); }
@media (prefers-reduced-motion: reduce) {
	.js-stagger { opacity: 1 !important; transform: none !important; }
}
