/* ============================================================
   Reusable editorial components
   ============================================================ */

/* ---------- Kicker / Headline / Dek / Byline ---------- */
.kicker {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: var(--space-2);
}

.headline {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.3px;
	color: var(--ink);
}

.dek {
	font-family: var(--font-body);
	font-size: var(--text-md);
	line-height: 1.45;
	color: var(--muted);
}

.byline {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 500;
}
.byline strong { color: var(--ink); font-weight: 600; }

.timestamp {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: var(--space-2) var(--space-4);
	border-radius: 2px;
	transition: background var(--ease-quick), color var(--ease-quick), border-color var(--ease-quick);
}
.btn-brand {
	background: var(--brand);
	color: #fff;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-ink {
	background: var(--ink);
	color: var(--bg);
}
.btn-ink:hover { background: var(--brand); color: #fff; }
.btn-ghost {
	background: transparent;
	color: var(--ink-soft);
	border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.icon-btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-soft);
	transition: border-color var(--ease-quick), color var(--ease-quick);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Author row (compact) ---------- */
.author-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.author-photo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
	flex-shrink: 0;
}
.author-photo-lg { width: 48px; height: 48px; }
.author-photo-xl { width: 72px; height: 72px; }
.author-name {
	font-family: var(--font-ui);
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--ink);
}
.author-title {
	font-family: var(--font-ui);
	font-size: var(--text-xs);
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ---------- Story card variants ---------- */
.lead-story img        { width: 100%; height: 460px; object-fit: cover; margin-bottom: var(--space-4); }
.secondary-story img   { width: 100%; height: 180px; object-fit: cover; margin-bottom: var(--space-3); }
.news-card img         { width: 100%; height: 140px; object-fit: cover; margin-bottom: var(--space-2); }
.related-card img      { width: 100%; height: 180px; object-fit: cover; margin-bottom: var(--space-3); }

.lead-story .headline    { font-size: var(--text-7xl); font-weight: 700; letter-spacing: -1px; line-height: 1.05; margin-bottom: var(--space-3); }
.lead-story .dek         { font-size: var(--text-2xl); color: var(--ink-soft); margin-bottom: var(--space-3); }
.secondary-story .headline { font-size: var(--text-3xl); margin-bottom: var(--space-2); }
.news-card .headline       { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.related-card h3           { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.2; margin-bottom: var(--space-2); }

/* ---------- Opinion card ---------- */
.opinion-card .headline {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: 600;
	line-height: 1.2;
	font-style: italic;
	margin: var(--space-3) 0 var(--space-2);
}
.opinion-card .dek { font-size: var(--text-md); color: var(--muted); }

/* ---------- Most-read list ---------- */
.most-read {
	background: var(--bg-cream);
	border: 1px solid var(--line);
	padding: var(--space-6);
}
.most-read h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	padding-bottom: var(--space-3);
	margin-bottom: var(--space-4);
	border-bottom: 2px solid var(--ink);
}
.most-read ol { counter-reset: most-read; }
.most-read li {
	counter-increment: most-read;
	display: flex;
	gap: var(--space-4);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--line);
}
.most-read li:last-child { border-bottom: none; padding-bottom: 0; }
.most-read li::before {
	content: counter(most-read);
	font-family: var(--font-display);
	font-size: var(--text-5xl);
	font-weight: 300;
	color: var(--brand);
	line-height: 1;
	min-width: 32px;
}
.most-read .item-headline {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: 600;
	line-height: 1.3;
}

/* ---------- Ad slot ---------- */
.ad-slot {
	background: var(--bg-soft);
	border: 1px dashed var(--line);
	text-align: center;
	padding: var(--space-7) var(--space-5);
	margin: var(--space-7) 0;
}
.ad-slot .label {
	font-family: var(--font-ui);
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: var(--space-2);
}
.ad-slot .placeholder {
	font-family: var(--font-ui);
	font-size: var(--text-base);
	color: #aaa;
	font-style: italic;
}

/* ---------- Newsletter ---------- */
.newsletter {
	background: var(--bg-cream);
	border: 1px solid var(--line);
	padding: var(--space-7) var(--space-7);
	margin: var(--space-7) 0;
	text-align: center;
}
.newsletter .kicker { letter-spacing: 2px; margin-bottom: var(--space-3); }
.newsletter h2 {
	font-family: var(--font-display);
	font-size: var(--text-5xl);
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-bottom: var(--space-2);
}
.newsletter p {
	font-size: var(--text-lg);
	color: var(--muted);
	max-width: 520px;
	margin: 0 auto var(--space-5);
}
.newsletter-form {
	display: flex;
	gap: var(--space-2);
	max-width: 440px;
	margin: 0 auto;
}
.newsletter-form input {
	flex: 1;
	padding: var(--space-3) var(--space-4);
	border: 1px solid #d4d4d4;
	background: #fff;
	font-family: var(--font-ui);
	font-size: var(--text-md);
	border-radius: 2px;
}
.newsletter-form button {
	background: var(--ink);
	color: var(--bg);
	padding: var(--space-3) var(--space-5);
	font-family: var(--font-ui);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 2px;
	transition: background var(--ease-quick);
}
.newsletter-form button:hover { background: var(--brand); }

/* ---------- Sponsored card ---------- */
.sponsored-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
	padding: var(--space-5);
	background: var(--bg-cream);
	border: 1px solid var(--line);
	align-items: center;
}
.sponsored-card img { width: 100%; height: 200px; object-fit: cover; }
.sponsored-card .kicker { color: var(--muted); letter-spacing: 2px; }
.sponsored-card .kicker::before {
	content: "\25C6";
	margin-right: 6px;
	color: var(--brand);
}
.sponsored-card .headline { font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.sponsored-card .partner {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted);
	font-weight: 500;
}

/* ---------- Tag pill ---------- */
.tag,
.tag-pill {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ink);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	padding: 6px var(--space-3);
	border-radius: 2px;
	font-weight: 500;
}
.tag:hover,
.tag-pill:hover { background: var(--ink); color: var(--bg); }

/* ---------- Reading progress bar (article) ---------- */
.progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--brand);
	z-index: 200;
	transition: width 0.1s linear;
}

@media (max-width: 900px) {
	.sponsored-card { grid-template-columns: 1fr; }
	.lead-story .headline { font-size: var(--text-5xl); }
}
