/* ERROR PAGES (404, etc.) */
.error-page {
    background-color: var(--bone);
}

.error {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--space-xl) + 5rem) var(--space-l) var(--space-xl);
    color: var(--white);
}

.error__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.error__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.error__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.error__inner {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    text-align: center;
}

.error__code {
    margin-bottom: var(--space-l);
    user-select: none;
}

.error__inner .h-sans {
    margin-bottom: var(--space-s);
    opacity: 0.8;
}

.error__inner .h-xl {
    margin-bottom: var(--space-m);
}

.error__inner .h-s {
    margin-bottom: var(--space-xl);
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.error__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-m) var(--space-l);
}

.error__actions a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.error__actions a.h-sans {
    opacity: 0.8;
}

.error__actions a.h-sans:hover,
.error__actions a.h-sans:focus-visible {
    opacity: 1;
}

.error__actions .error__cta {
    display: inline-block;
    padding: var(--space-xs) var(--space-m);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 100rem;
    opacity: 1;
}

.error__actions .error__cta:hover,
.error__actions .error__cta:focus-visible {
    border-color: rgba(0, 0, 0, 0.28);
    background-color: rgba(0, 0, 0, 0.03);
}

@media (max-width: 991px) {
    .error {
        padding: calc(var(--space-l) + 4.5rem) var(--space-s) var(--space-l);
    }

    .error__actions {
        flex-direction: column;
        gap: var(--space-s);
    }
}
