/* The 404 page is intentionally scoped so it cannot alter the storefront. */
.mf-not-found {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(38px, 8vw, 120px);
    max-width: 1180px;
    min-height: calc(100vh - 270px);
    margin: 0 auto;
    padding: 76px 28px 112px;
    overflow: hidden;
    color: #211f1b;
}

.mf-not-found::before {
    position: absolute;
    z-index: -2;
    top: 8%;
    right: -12%;
    width: 54%;
    height: 72%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 163, 111, .13) 0, rgba(190, 163, 111, 0) 67%);
    content: "";
    pointer-events: none;
}

.mf-not-found::after {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(161, 132, 76, .22), transparent);
    content: "";
    pointer-events: none;
}

.mf-not-found__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    color: #e7e0d4;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(150px, 22vw, 278px);
    font-weight: 500;
    letter-spacing: -.14em;
    line-height: .72;
    user-select: none;
}

.mf-not-found__visual::before,
.mf-not-found__visual::after {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(161, 132, 76, .42);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
}

.mf-not-found__visual::before {
    width: min(78%, 310px);
    aspect-ratio: 1;
}

.mf-not-found__visual::after {
    width: min(93%, 372px);
    aspect-ratio: 1;
    border-color: rgba(161, 132, 76, .16);
}

.mf-not-found__visual span,
.mf-not-found__visual i {
    position: relative;
    z-index: 1;
    font-style: normal;
}

.mf-not-found__visual i {
    z-index: 2;
    color: #a1844c;
    font-size: 1.16em;
    font-style: italic;
}

.mf-not-found__content {
    max-width: 560px;
}

.mf-not-found__eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #a1844c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mf-not-found h1 {
    margin: 0;
    color: #211f1b;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: .94;
}

.mf-not-found h1 em {
    color: #a1844c;
    font-style: italic;
}

.mf-not-found__content > p {
    max-width: 480px;
    margin: 25px 0 30px;
    color: #716b61;
    font-size: 15px;
    line-height: 1.75;
}

.mf-not-found__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.mf-not-found__actions .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    border: 1px solid #a1844c;
    background: #a1844c;
    color: #fff;
    font-size: 11px;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.mf-not-found__actions .primary-btn:hover {
    border-color: #856a3c;
    background: #856a3c;
    transform: translateY(-2px);
}

.mf-not-found__ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #211f1b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.mf-not-found__ghost i {
    color: #a1844c;
    font-size: 13px;
    transition: transform .25s ease;
}

.mf-not-found__ghost:hover i {
    transform: translateX(4px);
}

.mf-not-found__search {
    max-width: 480px;
    margin-top: 46px;
}

.mf-not-found__search label {
    display: block;
    margin-bottom: 9px;
    color: #716b61;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.mf-not-found__search-field {
    display: flex;
    align-items: center;
    min-height: 49px;
    border: 1px solid #dcd5c9;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mf-not-found__search-field:focus-within {
    border-color: #a1844c;
    box-shadow: 0 0 0 3px rgba(161, 132, 76, .12);
}

.mf-not-found__search-field > i {
    margin: 0 13px 0 16px;
    color: #a1844c;
    font-size: 14px;
}

.mf-not-found__search-field input {
    min-width: 0;
    flex: 1;
    height: 47px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #211f1b;
    font: inherit;
    font-size: 13px;
}

.mf-not-found__search-field input::placeholder {
    color: #a19a90;
}

.mf-not-found__search-field button {
    align-self: stretch;
    min-width: 70px;
    border: 0;
    border-left: 1px solid #e5dfd5;
    background: transparent;
    color: #211f1b;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.mf-not-found__search-field button:hover {
    background: #a1844c;
    color: #fff;
}

.mf-not-found__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.mf-not-found__links a {
    color: #8b6f3e;
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: rgba(161, 132, 76, .35);
    text-underline-offset: 4px;
}

.mf-not-found__links a:hover {
    color: #211f1b;
}

@media (max-width: 800px) {
    .mf-not-found {
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: 0;
        padding: 54px 22px 84px;
        text-align: center;
    }

    .mf-not-found::after {
        display: none;
    }

    .mf-not-found__visual {
        min-height: 200px;
        font-size: clamp(135px, 32vw, 190px);
    }

    .mf-not-found__visual::before { width: min(64%, 230px); }
    .mf-not-found__visual::after { width: min(78%, 280px); }
    .mf-not-found__content { margin: 0 auto; }
    .mf-not-found__content > p { margin-right: auto; margin-left: auto; }
    .mf-not-found__actions,
    .mf-not-found__links { justify-content: center; }
    .mf-not-found__search { margin-right: auto; margin-left: auto; text-align: left; }
}

@media (max-width: 460px) {
    .mf-not-found { padding: 36px 18px 68px; }
    .mf-not-found__visual { min-height: 160px; }
    .mf-not-found h1 { font-size: 43px; }
    .mf-not-found__actions { align-items: stretch; flex-direction: column; gap: 17px; }
    .mf-not-found__actions .primary-btn { width: 100%; }
    .mf-not-found__ghost { justify-content: center; }
    .mf-not-found__links { gap: 13px 18px; }
}
