/* =========================================================
   NOVAEL — GLOBAL
========================================================= */

:root {
    --bg: #f2eee6;
    --bg-light: #f7f4ee;
    --novael-white: #fafaf8;
    --novael-gray: #f3f3f0;

    --text: #11110f;
    --muted: #6f6a62;
    --line: rgba(17,17,15,.16);

    --header-h: 96px;
    --page-x: clamp(36px, 4.6vw, 88px);
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;

    background: var(--bg);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;

    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

main {
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 200;

    width: 100%;
    height: var(--header-h);

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 42px;

    padding: 0 var(--page-x);

    background: var(--bg);

    border-bottom: 1px solid rgba(17,17,15,.06);
}


/* Logo */

.novael-logo {
    grid-column: 1;

    display: flex;
    align-items: center;

    width: 190px;
    height: 68px;

    text-decoration: none;

    overflow: visible;
}

.novael-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: left center;

    transform: scale(1.38);
    transform-origin: left center;
}


/* Desktop navigation */

.desktop-nav {
    grid-column: 2;

    justify-self: center;

    display: flex;
    align-items: center;

    gap: 34px;
}

.desktop-nav a {
    position: relative;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .13em;

    text-decoration: none;
}

.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -5px;

    height: 1px;

    background: currentColor;

    transition: right .25s ease;
}

.desktop-nav a:hover::after {
    right: 0;
}


/* Header actions */

.header-actions {
    grid-column: 3;

    justify-self: end;

    display: flex;
    align-items: center;

    gap: 24px;
}

.header-actions a {
    font-size: 9px;
    font-weight: 500;

    letter-spacing: .13em;

    text-decoration: none;
}


/* Cart */

.header-bag {
    position: relative;

    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    font-size: 0;

    text-decoration: none;
}

.cart-icon {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-bag .bag-count {
    position: absolute;

    top: 0;
    right: -2px;

    min-width: 15px;
    height: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 3px;

    border: 1px solid rgba(17,17,15,.65);
    border-radius: 999px;

    background: var(--bg);

    font-size: 7px;
    font-weight: 600;
    line-height: 1;
}


/* Mobile menu button */

.header-menu-trigger {
    display: none;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: fixed;
    z-index: 150;

    top: var(--header-h);
    left: 0;
    right: 0;

    height: calc(100svh - var(--header-h));

    background: var(--bg);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.mobile-menu__inner {
    min-height: calc(100svh - var(--header-h));

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 38px 20px 28px;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;

    margin-top: 6px;
}

.mobile-menu nav a {
    padding: 15px 0;

    border-bottom: 1px solid rgba(17,17,15,.13);

    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;

    line-height: 1;
    letter-spacing: -.02em;

    text-decoration: none;
}

.mobile-menu__footer {
    padding-top: 30px;
}

.mobile-menu-slogan {
    display: block;

    font-family: var(--font-display);
    font-size: 13px;

    line-height: 1.1;
    letter-spacing: 0;

    white-space: nowrap;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   GLOBAL BUTTONS
========================================================= */

.shop-cta {
    min-width: 215px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 13px 15px;

    border: 1px solid rgba(17,17,15,.5);

    color: var(--text);

    font-size: 8px;
    font-weight: 500;

    letter-spacing: .12em;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease;
}

.shop-cta:hover {
    background: var(--text);
    color: var(--bg-light);
}

.shop-cta__arrow {
    font-size: 17px;
    line-height: 1;
}

.minimal-link {
    display: inline-block;

    padding-bottom: 4px;

    border-bottom: 1px solid currentColor;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: .11em;

    text-decoration: none;
}

.section-label {
    display: block;

    margin-bottom: 15px;

    font-size: 7px;
    font-weight: 500;

    letter-spacing: .16em;
}


/* =========================================================
   GENERIC PAGES
========================================================= */

.novael-page {
    width: min(calc(100% - 40px), 1440px);
    min-height: 55vh;

    margin: 0 auto;

    padding: 70px 0 100px;
}

.novael-page__header {
    margin-bottom: 42px;
}

.novael-page__header h1 {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;

    line-height: .95;
    letter-spacing: -.04em;
}

.novael-page__body {
    line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;

    background: var(--bg);
    color: var(--text);

    border-top: 1px solid rgba(17,17,15,.08);
}

.footer-inner {
    width: 100%;

    padding:
        34px
        var(--page-x)
        16px;
}


/* Footer head */

.footer-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding-bottom: 26px;
}

.footer-logo {
    grid-column: 1;

    display: block;

    width: 108px;

    margin: 0;
}

.footer-logo img {
    display: block;

    width: 100%;
    height: auto;
}

.footer-tagline {
    grid-column: 3;

    margin: 0;

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;

    line-height: .95;
    letter-spacing: 0;

    text-align: left;
    text-transform: none;
}


/* Footer links */

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 40px;

    padding: 18px 0 32px;

    border-top: 0;
}

.footer-group {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    margin-bottom: 15px;

    color: var(--text);

    font-size: 8px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: .13em;
}

.footer-group a {
    position: relative;

    display: inline-flex;
    align-items: center;

    margin-bottom: 9px;

    color: var(--text);

    font-size: 9px;
    font-weight: 500;

    line-height: 1.35;
    letter-spacing: .065em;

    text-decoration: none;
}

.footer-group a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -2px;

    height: 1px;

    background: currentColor;

    transition: right .2s ease;
}

.footer-group a:hover::after {
    right: 0;
}

.footer-group a span,
.footer-group a::before {
    display: none;
}


/* Footer bottom */

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    padding-top: 13px;

    border-top: 1px solid rgba(17,17,15,.12);

    color: var(--text);

    font-size: 7px;
    font-weight: 600;

    line-height: 1.2;
    letter-spacing: .09em;
}

.footer-bottom > span {
    color: var(--text);

    opacity: .72;
}

.slantflow-credit {
    position: relative;

    justify-self: end;

    color: var(--text);

    font-size: 7px;
    font-weight: 600;

    letter-spacing: .09em;

    text-decoration: none;

    opacity: .8;
}

.slantflow-credit::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -3px;

    height: 1px;

    background: currentColor;

    transition: right .2s ease;
}

.slantflow-credit:hover::after {
    right: 0;
}


/* =========================================================
   REVEAL MOTION
========================================================= */

.reveal-item {
    opacity: 0;

    transform: translate3d(0, 16px, 0);

    transition:
        opacity .7s cubic-bezier(.22,1,.36,1),
        transform .7s cubic-bezier(.22,1,.36,1);
}

.reveal-item.is-revealed {
    opacity: 1;

    transform: translate3d(0,0,0);
}

.reveal-item[data-reveal-delay="1"] {
    transition-delay: .07s;
}

.reveal-item[data-reveal-delay="2"] {
    transition-delay: .14s;
}

.reveal-item[data-reveal-delay="3"] {
    transition-delay: .21s;
}

.reveal-image {
    opacity: 0;

    transform:
        translate3d(0,12px,0)
        scale(1.008);

    transition:
        opacity .85s cubic-bezier(.22,1,.36,1),
        transform .9s cubic-bezier(.22,1,.36,1);
}

.reveal-image.is-revealed {
    opacity: 1;

    transform:
        translate3d(0,0,0)
        scale(1);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    :root {
        --header-h: 72px;
        --page-x: 14px;
    }


    /* Header */

    .site-header {
        height: var(--header-h);
        min-height: var(--header-h);

        grid-template-columns:
            minmax(0,1fr)
            auto
            32px;

        gap: 0;

        padding: 0 14px;

        border-bottom: 1px solid rgba(17,17,15,.08);
    }

    .desktop-nav {
        display: none;
    }

    .novael-logo {
        grid-column: 1;
        grid-row: 1;

        width: 175px;
        height: 66px;

        overflow: visible;
    }

    .novael-logo img {
        width: 175px;
        max-width: 175px;

        height: 66px;
        max-height: 66px;

        object-fit: contain;
        object-position: left center;

        transform: scale(1.38);
        transform-origin: left center;
    }


    /* Header actions */

    .header-actions {
        grid-column: 2;
        grid-row: 1;

        justify-self: end;

        margin-right: 12px;
    }

    .header-actions a:not(.header-bag) {
        display: none;
    }

    .header-bag {
        width: 30px;
        height: 30px;
    }

    .cart-icon {
        width: 20px;
        height: 20px;

        stroke-width: 1.4;
    }

    .header-bag .bag-count {
        top: -2px;
        right: -4px;

        min-width: 14px;
        height: 14px;

        border-color: var(--text);

        font-size: 7px;
        line-height: 12px;
    }


    /* Menu button */

    .header-menu-trigger {
        grid-column: 3;
        grid-row: 1;

        justify-self: end;

        width: 28px;
        height: 28px;

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .header-menu-trigger span {
        display: block;

        width: 20px;
        height: 1px;

        margin: 3px 0;

        background: var(--text);

        transition: transform .25s ease;
    }

    body.menu-open .header-menu-trigger {
        z-index: 300;
    }

    body.menu-open .header-menu-trigger span:first-child {
        transform:
            translateY(3.5px)
            rotate(45deg);
    }

    body.menu-open .header-menu-trigger span:last-child {
        transform:
            translateY(-3.5px)
            rotate(-45deg);
    }


    /* Generic */

    .novael-page {
        width: calc(100% - 28px);

        padding: 45px 0 70px;
    }

    .novael-page__header {
        margin-bottom: 28px;
    }

    .novael-page__header h1 {
        font-size: 40px;
    }


    /* Footer */

    .footer-inner {
        padding:
            26px
            14px
            14px;
    }

    .footer-head {
        grid-template-columns:
            1fr
            auto;

        padding-bottom: 22px;
    }

    .footer-logo {
        grid-column: 1;

        width: 92px;
    }

    .footer-tagline {
        grid-column: 2;

        font-size: 13px;

        line-height: .95;
    }

    .footer-content {
        grid-template-columns:
            repeat(3, minmax(0,1fr));

        gap: 14px;

        padding: 18px 0 23px;
    }

    .footer-title {
        margin-bottom: 11px;

        font-size: 7px;
        font-weight: 700;
    }

    .footer-group a {
        margin-bottom: 7px;

        font-size: 7px;
        font-weight: 500;

        line-height: 1.35;
    }

    .footer-bottom {
        padding-top: 12px;

        font-size: 6px;
        font-weight: 600;
    }

    .slantflow-credit {
        font-size: 6px;
        font-weight: 600;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    .reveal-item,
    .reveal-image {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

}


/* =========================================================
   MOBILE BOTTOM NAVIGATION
========================================================= */

.mobile-bottom-nav {
    display: none;
}


@media (max-width: 767px) {

    body {
        padding-bottom: 64px;
    }

    .mobile-bottom-nav {
        position: fixed;

        z-index: 9990;

        left: 0;
        right: 0;
        bottom: 0;

        height: 64px;

        display: grid;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        align-items: stretch;

        border-top:
            1px solid
            rgba(17,17,15,.12);

        background:
            rgba(250,250,248,.96);

        backdrop-filter:
            blur(14px);

        -webkit-backdrop-filter:
            blur(14px);
    }

    .mobile-bottom-nav__item {
        position: relative;

        min-width: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        padding: 5px 2px;

        border: 0;

        background: transparent;
        color: var(--text);

        text-decoration: none;

        cursor: pointer;
    }

    .mobile-bottom-nav__item svg {
        width: 19px;
        height: 19px;

        fill: none;

        stroke: currentColor;
        stroke-width: 1.5;

        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav__item span {
        font-size: 6px;
        font-weight: 700;

        line-height: 1;

        letter-spacing: .07em;
    }

    .mobile-bottom-nav__count {
        position: absolute;

        top: 5px;

        left: calc(50% + 6px);

        min-width: 14px;
        height: 14px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0 3px;

        border-radius: 50%;

        background: var(--text);
        color: #fff;

        font-size: 6px;
        font-weight: 800;
    }

    .mobile-bottom-nav__item.is-active {
        font-weight: 800;
    }

}


/* =========================================================
   CART DRAWER
========================================================= */

.novael-cart-drawer {
    position: fixed;

    z-index: 100000;

    inset: 0;

    visibility: hidden;

    pointer-events: none;
}

.novael-cart-drawer.is-open {
    visibility: visible;

    pointer-events: auto;
}


.novael-cart-drawer__overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background: rgba(17,17,15,.34);

    opacity: 0;

    cursor: default;

    transition: opacity .3s ease;
}

.novael-cart-drawer.is-open
.novael-cart-drawer__overlay {
    opacity: 1;
}


.novael-cart-drawer__panel {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(430px, 92vw);

    display: flex;
    flex-direction: column;

    background: var(--bg);

    transform: translateX(100%);

    transition:
        transform .38s
        cubic-bezier(.22,1,.36,1);
}

.novael-cart-drawer.is-open
.novael-cart-drawer__panel {
    transform: translateX(0);
}


/* Header */

.novael-cart-drawer__header {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0
        24px;

    border-bottom:
        1px solid
        rgba(17,17,15,.12);
}

.novael-cart-drawer__header > div {
    display: flex;
    align-items: center;

    gap: 9px;
}

.novael-cart-drawer__header span {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: .12em;
}

.novael-cart-drawer__count {
    min-width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(17,17,15,.22);

    border-radius: 50%;

    font-size: 7px;
    font-weight: 700;
}

.novael-cart-drawer__close {
    width: 36px;
    height: 36px;

    padding: 0;
    border: 0;

    background: transparent;
    color: var(--text);

    font-size: 27px;
    font-weight: 300;

    cursor: pointer;
}


/* Body */

.novael-cart-drawer__body {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    padding:
        22px
        24px
        28px;
}


/* Mini cart */

.novael-cart-drawer
.woocommerce-mini-cart {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.novael-cart-drawer
.woocommerce-mini-cart-item {
    position: relative;

    min-height: 118px;

    display: grid;

    grid-template-columns:
        86px
        minmax(0,1fr);

    gap: 14px;

    padding:
        0
        30px
        20px
        0;

    margin:
        0
        0
        20px;

    border-bottom:
        1px solid
        rgba(17,17,15,.11);

    list-style: none !important;
}

.novael-cart-drawer
.woocommerce-mini-cart-item > a:not(.remove) {
    display: contents;

    color: var(--text);

    font-size: 11px;
    font-weight: 700;

    line-height: 1.35;

    text-decoration: none;
}

.novael-cart-drawer
.woocommerce-mini-cart-item img {
    grid-column: 1;
    grid-row: 1 / span 4;

    width: 86px !important;
    height: 108px !important;

    margin: 0 !important;

    object-fit: cover;

    background: #e9e5dd;
}

.novael-cart-drawer
.woocommerce-mini-cart-item
.quantity {
    grid-column: 2;

    margin-top: 8px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 600;
}

.novael-cart-drawer
.woocommerce-mini-cart-item
.remove {
    position: absolute;

    top: 0;
    right: 0;

    width: 26px;
    height: 26px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(17,17,15,.17);

    border-radius: 50%;

    background: transparent !important;
    color: var(--text) !important;

    font-size: 15px !important;

    text-decoration: none;
}


/* Totals */

.novael-cart-drawer
.woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    margin:
        26px
        0
        18px !important;

    padding:
        18px
        0
        0;

    border-top:
        1px solid
        rgba(17,17,15,.14);

    color: var(--text);

    font-size: 11px;
}

.novael-cart-drawer
.woocommerce-mini-cart__total strong {
    font-weight: 600;
}

.novael-cart-drawer
.woocommerce-mini-cart__total
.woocommerce-Price-amount {
    font-weight: 800;
}


/* Buttons */

.novael-cart-drawer
.woocommerce-mini-cart__buttons {
    display: grid;

    gap: 8px;

    margin: 0 !important;
}

.novael-cart-drawer
.woocommerce-mini-cart__buttons
.button {
    min-height: 48px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding:
        0
        20px !important;

    border:
        1px solid
        var(--text) !important;

    border-radius: 0 !important;

    background: transparent !important;
    color: var(--text) !important;

    font-size: 8px !important;
    font-weight: 800 !important;

    letter-spacing: .11em;

    text-decoration: none;

    text-transform: uppercase;
}

.novael-cart-drawer
.woocommerce-mini-cart__buttons
.checkout {
    background:
        var(--text) !important;

    color:
        #fff !important;
}


/* Empty */

.novael-cart-drawer
.woocommerce-mini-cart__empty-message {
    margin:
        60px
        0;

    color: var(--muted);

    font-size: 12px;

    text-align: center;
}


html.novael-cart-open,
html.novael-cart-open body {
    overflow: hidden;
}


/* Mobile */

@media (max-width: 767px) {

    .novael-cart-drawer__panel {
        width: 92vw;
    }

    .novael-cart-drawer__header {
        min-height: 64px;

        padding:
            0
            18px;
    }

    .novael-cart-drawer__body {
        padding:
            18px
            16px
            82px;
    }

    .novael-cart-drawer
    .woocommerce-mini-cart-item {
        grid-template-columns:
            80px
            minmax(0,1fr);

        gap: 12px;
    }

    .novael-cart-drawer
    .woocommerce-mini-cart-item img {
        width: 80px !important;
        height: 102px !important;
    }

}
