/**
 * Error 404 Module - Styles
 */

.cj-error404 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--cj-error404-min-height, 80vh);
    padding: 96px 24px;
    overflow: hidden;
    background: var(--cj-color-black);
    color: var(--cj-color-light);
    text-align: center;
    font-family: var(--cj-font-body);
}

.cj-error404__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 940px);
}

.cj-error404__code {
    position: relative;
    margin: 0 0 30px;
    color: var(--cj-color-white);
    font-family: var(--cj-font-display);
    font-size: 220px;
    font-weight: 900;
    line-height: 0.72;
    letter-spacing: 0;
}

.cj-error404__code-highlight {
    display: inline-flex;
    align-items: center;
    min-height: 0.98em;
    padding: 0.03em 0.08em 0.11em;
    background: var(--cj-color-orange);
    color: var(--cj-color-black);
    box-shadow: 0.06em 0 0 var(--cj-color-orange), -0.06em 0 0 var(--cj-color-orange);
    box-sizing: border-box;
    line-height: 0.82;
    white-space: nowrap;
}

.cj-error404__title {
    display: inline;
    margin: 0 0 30px !important;
    color: var(--cj-color-light);
    font-family: var(--cj-font-body);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0;
}

.cj-error404__button {
    margin-top: 4px;
}

.cj-error404__watermark {
    position: absolute;
    inset: 70% auto auto 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    color: rgba(245, 242, 236, 0.028);
    font-family: var(--cj-font-display);
    width: calc(100% - 48px);
    font-size: clamp(58px, 7vw, 120px);
    text-align: center;
    font-weight: 900;
    line-height: 0.72;
    letter-spacing: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cj-error404 {
        min-height: 70vh;
        padding: 76px 22px;
    }

    .cj-error404__code {
        font-size: 150px;
        margin-bottom: 24px;
    }

    .cj-error404__title {
        font-size: 25px;
    }

    .cj-error404__watermark {
        font-size: clamp(62px, 12vw, 132px);
    }
}

@media (max-width: 560px) {
    .cj-error404 {
        padding: 70px 18px;
    }

    .cj-error404__code {
        font-size: 104px;
        margin-bottom: 20px;
    }

    .cj-error404__title {
        max-width: 300px;
        font-size: 22px;
    }

    .cj-error404__watermark {
        max-width: calc(100vw - 28px);
        font-size: clamp(44px, 11vw, 74px);
    }
}
