﻿/* ==========================================================================
   404
   ========================================================================== */

.not_found {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: var(--space_6, 3rem) var(--space_4, 2rem);
}


/* ==========================================================================
   ARCHIVE
   ========================================================================== */

.not_found_archive {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 46rem);
    min-width: 0;
}


/* ==========================================================================
   AXIS
   ========================================================================== */

.not_found_axis {
    position: relative;
    width: 100%;
    min-height: 25rem;
}


    /* Vertical timeline line */

    .not_found_axis::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: var(--space_0_25);
        background: var( --color_RockBlue_75, #94b4cc );
        transform: translateX(-50%);
    }


/* Small marker */

.not_found_axis_marker {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: var(--space_5, 2.5rem);
    height: var(--space_5, 2.5rem);
    border-radius: 50%;
    background: var( --color_LunarGreen, #3f5147 );
    color: var( --color_White, #fff );
    font-family: var( --font_BovinoMedium, serif );
    font-size: var(--font_size_12);
    line-height: 1;
    transform: translateX(-50%);
}


/* ==========================================================================
   404 NUMBER
   ========================================================================== */

.not_found_number {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var( --color_LunarGreen, #3f5147 );
    font-family: var( --font_BovinoMedium, serif );
    font-size: clamp( 4.5rem, 11cqw, 8rem );
    line-height: .8;
    letter-spacing: .04em;
    writing-mode: vertical-rl;
    transform: translate(-50%, -50%) rotate(180deg);
    white-space: nowrap;
}


/* ==========================================================================
   AXIS LABELS
   ========================================================================== */

.not_found_axis_label {
    position: absolute;
    left: calc(50% + var(--space_5, 2.5rem));
    color: var( --color_Green, #579542 );
    font-family: var( --font_BovinoMedium, serif );
    font-size: var(--font_size_20);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}


    /* Small horizontal line */

    .not_found_axis_label::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: calc(var(--space_1, .5rem) * -1);
        left: 0;
        height: var(--space_0_25);
        background: var( --color_Green, #579542 );
    }


.not_found_axis_label_top {
    top: var(--space_4, 2rem);
}


.not_found_axis_label_bottom {
    bottom: var(--space_4, 2rem);
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.not_found_content {
    width: 100%;
    text-align: center;
}


    .not_found_content h1 {
        margin: 0 0 var(--space_3, 1.5rem);
        color: var( --color_LunarGreen, #3f5147 );
        font-family: var( --font_BovinoMedium, serif );
        font-size: clamp( 1.7rem, 3vw, 2.6rem );
        font-weight: normal;
        line-height: 1.1;
    }


    .not_found_content p {
        max-width: 32rem;
        margin: 0 auto var(--space_5, 2.5rem);
        color: var( --color_LunarGreen, #3f5147 );
        font-size: clamp( 1rem, 1.6vw, 1.25rem );
        line-height: 1.55;
    }


    /* Small archive separator */

    .not_found_content::before {
        content: "";
        display: block;
        width: min(100%, 34rem);
        margin: 0 auto var(--space_4, var(--space_8));
        border-top: var(--space_0_25) dashed var( --color_RockBlue_75, #94b4cc );
    }


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.not_found_navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space_2, 1rem);
}


.not_found_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space_2, var(--space_4));
    min-width: var(--space_0_25);
    min-height: var(--space_6, 3rem);
    padding: var(--space_2, 1rem) var(--space_3, 1.5rem);
    border: var(--space_0_25) solid var( --color_RockBlue_75, #94b4cc );
    color: var( --color_LunarGreen, #3f5147 );
    font-family: inherit;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}


    .not_found_link:hover,
    .not_found_link:focus-visible {
        border-color: var( --color_Green, #579542 );
        background-color: var( --color_RockBlue_75, #94b4cc );
        color: var( --color_LunarGreen, #3f5147 );
    }


    .not_found_link:focus-visible {
        outline: var(--space_0_5) solid var( --color_Green, #579542 );
        outline-offset: var(--space_0_5, .25rem);
    }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media only screen and (max-width: 48em) {

    .not_found {
        padding: var(--space_4, 2rem) var(--space_2, 1rem);
    }


    .not_found_axis {
        min-height: 19rem;
    }


    .not_found_number {
        font-size: clamp( 3.5rem, 18vw, 6rem );
    }


    .not_found_axis_label {
        left: calc( 50% + var(--space_4, 2rem) );
    }


    .not_found_navigation {
        flex-direction: column;
        align-items: stretch;
    }


    .not_found_link {
        width: 100%;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .not_found_link {
        transition: none;
    }
}
