.error-shell {
    display: flex;
    min-height: calc(100dvh - 88px);
    flex-direction: column;
}

.error-page {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 5rem 2rem;
    color: #fff;
    background: #1d1d1f;
}

.error-page__content {
    width: min(100%, 680px);
    text-align: center;
}

.error-page__icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 auto 2rem;
    border: 2px solid var(--orange);
    color: var(--orange);
    font-size: 2rem;
}

.error-page__code {
    color: var(--orange);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.error-page h1 {
    max-width: 650px;
    margin: 1rem auto 1.5rem;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.error-page__content > p {
    max-width: 510px;
    margin-inline: auto;
    color: #d3d1cf;
    line-height: 1.7;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.error-page__primary {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.4rem;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.error-page__primary:hover, .error-page__primary:focus-visible {
    background: #df5600;
    color: #fff;
}

.error-page__secondary {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.error-page__secondary:hover, .error-page__secondary:focus-visible {
    color: var(--orange);
}

.error-page__reference {
    margin-top: 2.5rem;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .error-shell {
        min-height: calc(100dvh - 72px);
    }
}
