/**
 * Foodica 404 page.
 *
 * Bold, editorial, typography-led. Loaded only on 404 responses via the
 * is_404() check in functions/functions.php → foodica_scripts().
 */

.error-404-wrap {
	padding: 2em 0 4em;
	text-align: center;
}

.error-404-icon {
	display: block;
	margin: 0 auto 1.2em;
	opacity: 0.4;
}

.error-404-number {
	font-size: clamp(80px, 20vw, 150px);
	line-height: 0.85;
	letter-spacing: -0.05em;
	margin: 0 0 0.05em;
	font-weight: 700;
    color: #000;
}

.error-404-title {
	font-size: clamp(24px, 3.2vw, 38px);
	line-height: 1.15;
	margin: 0 0 0.4em;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.error-404-subtitle {
	font-size: 16px;
	line-height: 1.6;
	max-width: 480px;
	margin: 0 auto 2em;
	opacity: 0.65;
}

.error-404-search {
	max-width: 480px;
	margin: 0 auto 4.5em;
}

.error-404-search form,
.error-404-search .search-form {
	width: 100%;
	margin: 0;
}

.error-404-section {
	margin: 0 0 3.5em;
	text-align: left;
}

.error-404-section-title {
	font-size: 14px;
	font-weight: 600;
	padding: 0 0 0.8em;
	margin: 0 0 1.6em;
	border-bottom: 1px solid #eee;
}

.error-404-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.75em;
}

.error-404-posts li {
	list-style: none;
	margin: 0;
}

.error-404-posts a {
	color: inherit;
	text-decoration: none;
	display: block;
}

.error-404-posts img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 0 0.85em;
}

.error-404-post-title {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}

.error-404-post-meta {
	display: block;
	margin: 0.3em 0 0;
	font-size: 14px;
	opacity: 0.55;
	font-weight: 600;
}

.error-404-categories {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.6em;
	align-items: baseline;
}

.error-404-categories li {
	list-style: none;
	margin: 0;
}

.error-404-categories a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 2;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.error-404-categories a:hover {
	border-bottom-color: currentColor;
}

.error-404-cta {
	text-align: center;
	margin: 1em 0 0;
}

.error-404-cta a {
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	border-bottom: 2px solid currentColor;
	padding: 0 0 0.35em;
}

@media (max-width: 600px) {
	.error-404-categories {
		gap: 0 1.1em;
	}

	.error-404-categories a {
		font-size: 15px;
	}
}
