/* FelixChess status/error page */

.fc-status-error {
    --fc-status-error-accent: #aaff00;
    --fc-status-error-accent-hover: #c8ff4d;
    --fc-status-error-background: #0a0c0a;
    --fc-status-error-text: #f5f5ee;
    --fc-status-error-muted: #a3aa9d;

    align-items: center;
    background-color: var(--fc-status-error-background);
    box-sizing: border-box;
    color: var(--fc-status-error-text);
    display: grid;
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    justify-items: center;
    min-height: 68svh;
    padding: clamp(4rem, 10vh, 7rem) clamp(1.5rem, 6vw, 4rem);
    text-align: center;
}

.fc-status-error__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 52rem;
    width: 100%;
}

.fc-status-error__code {
    color: var(--fc-status-error-accent);
    font-size: clamp(4.75rem, 14vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.85;
    margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
}

.fc-status-error__headline {
    color: var(--fc-status-error-text);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0;
    max-width: 19ch;
    text-wrap: balance;
}

.fc-status-error__message {
    color: var(--fc-status-error-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 300;
    line-height: 1.7;
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    max-width: 60ch;
}

.fc-status-error__message > :first-child {
    margin-top: 0;
}

.fc-status-error__message > :last-child {
    margin-bottom: 0;
}

.fc-status-error__cta {
    align-items: center;
    background-color: var(--fc-status-error-accent);
    border: 3px solid var(--fc-status-error-accent);
    border-radius: 100vw;
    box-sizing: border-box;
    color: #202020;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: clamp(2rem, 5vw, 3rem);
    min-height: 3rem;
    min-width: 12rem;
    overflow-wrap: anywhere;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    text-transform: uppercase;
    transition:
            background-color 180ms ease,
            border-color 180ms ease,
            transform 180ms ease;
}

.fc-status-error__cta:hover {
    background-color: var(--fc-status-error-accent-hover);
    border-color: var(--fc-status-error-accent-hover);
    color: #202020;
    transform: translateY(-1px);
}

.fc-status-error__cta:focus-visible {
    background-color: var(--fc-status-error-accent-hover);
    border-color: var(--fc-status-error-accent-hover);
    color: #202020;
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 30rem) {
    .fc-status-error {
        min-height: 64svh;
        padding-inline: 1.25rem;
    }

    .fc-status-error__cta {
        max-width: 20rem;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-status-error__cta {
        transition: none;
    }
}
