/* ==========================================================================
   Home — strona główna (ładowane tylko na is_front_page()).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero (wyróżniony artykuł + lista najnowszych)
   -------------------------------------------------------------------------- */
.ws-home-hero {
	background: var(--ws-paper);
	border-bottom: 1px solid var(--ws-line);
	padding-block: var(--ws-space-7);
}

.ws-home-hero__grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--ws-space-7);
	align-items: start;
}

/* Wyróżniony artykuł */
.ws-feature__media {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--ws-radius);
	overflow: hidden;
	margin-bottom: var(--ws-space-5);
	background: var(--ws-surface);
}

.ws-feature__media img { width: 100%; height: 100%; object-fit: cover; }

.ws-feature__title {
	font-size: var(--ws-text-4xl);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: var(--ws-space-3) 0;
	text-wrap: balance;
}

.ws-feature__title a { color: var(--ws-ink); }
.ws-feature__title a:hover,
.ws-feature__title a:focus { color: var(--ws-accent); }

.ws-feature__lead {
	font-size: var(--ws-text-lg);
	line-height: 1.6;
	color: var(--ws-ink-soft);
	margin: 0 0 var(--ws-space-4);
	max-width: 640px;
}

.ws-feature__meta {
	display: flex;
	gap: var(--ws-space-2);
	font-size: var(--ws-text-sm);
	color: var(--ws-muted);
}

/* Lista najnowszych obok */
.ws-home-hero__side {
	display: flex;
	flex-direction: column;
}

.ws-home-hero__item {
	padding: var(--ws-space-4) 0;
	border-top: 1px solid var(--ws-line);
}

.ws-home-hero__item:first-child { border-top: 0; padding-top: 0; }

.ws-home-hero__item-title {
	font-size: var(--ws-text-lg);
	line-height: 1.3;
	margin: var(--ws-space-2) 0 0;
}

.ws-home-hero__item-title a { color: var(--ws-ink); }
.ws-home-hero__item-title a:hover,
.ws-home-hero__item-title a:focus { color: var(--ws-accent); }

/* --------------------------------------------------------------------------
   2. Sekcja "Najnowsze artykuły"
   -------------------------------------------------------------------------- */
.ws-home-latest {
	padding-block: var(--ws-space-8);
}

.ws-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ws-space-4);
	margin-bottom: var(--ws-space-6);
	padding-bottom: var(--ws-space-4);
	border-bottom: 1px solid var(--ws-ink);
}

.ws-section-head__title {
	font-size: var(--ws-text-3xl);
	margin: 0;
}

.ws-section-head__more {
	font-size: var(--ws-text-sm);
	font-weight: 600;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
	.ws-home-hero__grid { grid-template-columns: 1fr; }
	.ws-feature__title { font-size: var(--ws-text-3xl); }
	.ws-home-hero__side { margin-top: var(--ws-space-5); }
}
