/* ==========================================================================
   404 — Page Not Found
   ========================================================================== */

.error-404 {
    padding: var(--s-10) 0 var(--s-16);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.e404-hero {
    display: flex;
    align-items: center;
    gap: var(--s-10);
    margin-bottom: var(--s-16);
}

.e404-number {
    font-family: var(--font-headings);
    font-size: clamp(100px, 18vw, 200px);
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.15;
    flex-shrink: 0;
    user-select: none;
    letter-spacing: -0.04em;
}

.e404-text {
    flex: 1;
    min-width: 0;
}

.e404-title {
    font-family: var(--font-headings);
    font-size: var(--fs-3xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-color);
    margin-bottom: var(--s-3);
}

.e404-desc {
    font-size: var(--fs-md);
    color: #888;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: var(--s-6);
}

/* ── Actions: search + back link ─────────────────────────────────────────── */

.e404-actions {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    flex-wrap: wrap;
}

.e404-actions .search-form {
    display: flex;
    gap: 0;
}

.e404-actions .search-field {
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    padding: 9px 14px;
    border: 2px solid var(--grey-medium);
    border-right: none;
    border-radius: 4px 0 0 4px;
    width: 240px;
    outline: none;
    transition: border-color 0.15s ease;
    background: #fff;
    color: var(--text-color);
}

.e404-actions .search-field:focus {
    border-color: var(--primary-color);
}

.e404-actions .search-submit {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 9px 16px;
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.e404-actions .search-submit:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.e404-home-link {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.e404-home-link:hover {
    color: var(--primary-color);
}

/* ── Recent posts ────────────────────────────────────────────────────────── */

.e404-recent {
    padding-top: var(--s-8);
    border-top: 1px solid var(--grey-medium);
}

.e404-recent-title {
    font-family: var(--font-headings);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #aaa;
    margin-bottom: var(--s-6);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
    .e404-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-4);
        margin-bottom: var(--s-10);
    }

    .e404-number {
        font-size: clamp(72px, 24vw, 120px);
        opacity: 0.12;
    }

    .e404-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-3);
    }

    .e404-actions .search-field {
        width: 100%;
        max-width: 280px;
    }
}
