@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --black: #141414;
    --dark: #242424;
    --surface: #292929;
    --white: #F0EFEA;
    --grey: #AAA8A2;
    --line: #3B3A37;
    --accent: #B69A5B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
}

body.cart-is-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* HEADER */

header {
    height: 88px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 20, 20, .96);
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1.8px;
}

.logo span {
    font-size: 11px;
    vertical-align: top;
    margin-left: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-link {
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 12px 0;
    perspective: 300px;
    white-space: nowrap;
    transition: color 300ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
    outline: none;
}

.nav-link .char {
    display: inline-block;
    position: relative;
    white-space: pre;
    transform-origin: 50% 65%;
    transition:
        transform 650ms cubic-bezier(0.18, 0.85, 0.25, 1),
        color 300ms ease;
    transition-delay: var(--letter-delay, 0ms);
    will-change: transform;
}

.nav-link:hover .char,
.nav-link:focus-visible .char {
    transform:
        translateY(var(--letter-lift, 0px))
        translateZ(var(--letter-depth, 0px))
        rotate(var(--letter-angle, 0deg))
        scale(1.22);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-button,
.cart-toggle {
    min-height: 42px;
    padding: 13px 19px;
    border: 1px solid var(--grey);
    background: transparent;
    color: var(--white);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all .25s ease;
}

.cart-toggle {
    border-color: var(--accent);
    color: var(--accent);
    cursor: pointer;
}

.header-button:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.cart-toggle:hover {
    background: var(--accent);
    color: var(--black);
}

.cart-toggle span {
    margin-left: 5px;
}

/* HERO */

.hero {
    min-height: 720px;
    padding: 110px 8% 55px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 40%, #30302e 0%, transparent 48%),
        var(--black);
}

.hero::after {
    content: "NF";
    position: absolute;
    right: -25px;
    bottom: -110px;
    font-size: clamp(280px, 43vw, 650px);
    line-height: .8;
    font-weight: 700;
    letter-spacing: -50px;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--accent);
    margin-bottom: 28px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.hero h1 {
    font-size: clamp(65px, 10vw, 145px);
    line-height: .88;
    letter-spacing: -9px;
    font-weight: 700;
}

.hero h1 span {
    color: #BEBDB7;
}

.hero-description {
    color: var(--grey);
    font-size: 16px;
    line-height: 1.7;
    max-width: 380px;
    margin: 35px 0;
}

.main-button {
    background: var(--white);
    color: var(--black);
    padding: 19px 24px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform .25s ease, background .25s ease;
}

.main-button span {
    margin-left: 10px;
}

.main-button:hover {
    transform: translateY(-4px);
    background: var(--accent);
}

.hero-bottom {
    position: relative;
    z-index: 1;
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 100px;
}

.hero-index {
    position: absolute;
    right: 8%;
    bottom: 55px;
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 10px;
}

/* COLLECTION */

.collection {
    padding: 115px 8%;
    background: #202020;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 55px;
}

.collection h2,
.about h2,
.contact h2 {
    font-size: clamp(42px, 6vw, 78px);
    letter-spacing: -4px;
    line-height: .98;
}

.section-description {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #30302E;
    border: 1px solid #44433F;
    transition: transform .3s ease, border-color .3s ease;
}

.product-card.is-sold-out .sticker-image { opacity: .42; filter: grayscale(1); }
.sale-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 7px 9px; background: var(--accent); color: var(--black); font: 9px "DM Mono", monospace; letter-spacing: .8px; }
.price-pair { display: inline-flex; align-items: flex-end; flex-direction: column; gap: 4px; white-space: nowrap; }
.price-pair del { color: var(--grey); font-size: .8em; }
.price-pair strong { color: var(--accent); font-weight: 500; }
.stock-note { display: block; margin-top: 10px; color: var(--accent); font: 8px "DM Mono", monospace; letter-spacing: .5px; }
.catalog-empty { grid-column: 1 / -1; padding: 50px 0; color: var(--grey); font: 12px "DM Mono", monospace; }

.product-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent);
}

.product-visual {
    aspect-ratio: 1 / 1;
    background: #393936;
    overflow: hidden;
}

.product-preview {
    width: 100%;
    height: 100%;
    padding: 25px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sticker-image {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, .28));
    transition: transform .3s ease;
}

.product-card:hover .sticker-image {
    transform: rotate(-4deg) scale(1.06);
}

.product-info {
    min-height: 137px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.product-info h3 {
    min-height: 58px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
}

.product-info p {
    min-height: 30px;
    margin-top: 5px;
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.4;
}

.product-price {
    padding-top: 2px;
    color: var(--accent);
    font-family: "DM Mono", monospace;
    font-size: 13px;
    white-space: nowrap;
}

.product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid #44433F;
}

.product-details,
.add-to-cart {
    min-height: 48px;
    padding: 15px 18px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: .7px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.product-details {
    text-align: left;
}

.add-to-cart {
    border-left: 1px solid #44433F;
}

.product-details:hover,
.add-to-cart:hover {
    background: var(--accent);
    color: var(--black);
}

.add-to-cart:disabled { cursor: not-allowed; color: var(--grey); opacity: .55; }

.collection-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

@media (min-width: 1101px) {
    .product-card:nth-child(5) {
        grid-column: 2;
    }
}

/* ABOUT */

.about {
    padding: 130px 8%;
    background: var(--white);
    color: var(--black);
}

.about-inner {
    max-width: 1050px;
    margin: 0 auto;
}

.about .eyebrow {
    color: #77736B;
}

.about h2 {
    font-size: clamp(65px, 10vw, 130px);
    letter-spacing: -8px;
}

.about h2 span {
    color: #85827B;
}

.about-description {
    max-width: 510px;
    font-size: 19px;
    line-height: 1.7;
    color: #66645F;
    margin-top: 45px;
}

.about-signature {
    margin-top: 65px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #77736B;
}

/* CONTACT */

.contact {
    padding: 135px 8%;
    background:
        radial-gradient(ellipse at 75% 50%, #292927 0%, transparent 50%),
        var(--black);
}

.contact h2 {
    max-width: 900px;
    font-size: clamp(55px, 8vw, 105px);
    letter-spacing: -6px;
    margin-bottom: 45px;
}

.contact h2 span {
    color: #BEBDB7;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
}

.contact-links a {
    display: inline-block;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    transition: color .25s ease;
}

.contact-links a:hover {
    color: var(--white);
}

/* CART */

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background: rgba(0, 0, 0, .62);
    transition: opacity .25s ease, visibility .25s ease;
}

.cart-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100dvh;
    padding: 25px;
    background: var(--dark);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
}

.cart-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.cart-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

.cart-header button,
.remove-item {
    border: 0;
    background: transparent;
    color: var(--grey);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: color .25s ease;
}

.cart-header button:hover,
.remove-item:hover {
    color: var(--accent);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-empty {
    padding-top: 35px;
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.8;
}

.cart-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 15px;
    align-items: start;
}

.cart-item img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #393936;
}

.cart-item-info h3 {
    font-size: 13px;
    line-height: 1.1;
}

.cart-item-info p {
    margin-top: 6px;
    color: var(--accent);
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

.quantity-controls {
    margin-top: 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--white);
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

.quantity-controls button {
    width: 21px;
    height: 21px;
    border: 0;
    background: var(--surface);
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.cart-summary {
    margin-bottom: 18px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .7px;
}

.cart-summary-line,
.cart-total {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    color: var(--grey);
}

.cart-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--white);
    font-size: 11px;
}

.cart-summary strong {
    color: var(--white);
    font-size: 11px;
    font-weight: 400;
}

.cart-total strong {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

.checkout-button {
    width: 100%;
    padding: 17px;
    border: 0;
    background: var(--white);
    color: var(--black);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .25s ease;
}

.checkout-button:hover {
    background: var(--accent);
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.order-status {
    margin-top: 12px;
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.5;
}

/* PRODUCT DETAIL */

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(1000px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--dark);
    color: var(--white);
    overflow: auto;
    transform: translate(-50%, -50%);
}

.product-modal::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(4px);
}

.close-product-modal {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    transition: background .25s ease, color .25s ease;
}

.close-product-modal:hover {
    background: var(--accent);
    color: var(--black);
}

#product-modal-content {
    min-height: 570px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-product-visual {
    min-height: 570px;
    padding: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, #4A4944 0%, #30302E 52%, #242424 100%);
}

.modal-product-visual img {
    width: min(100%, 360px);
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .38));
}

.modal-product-info {
    padding: 70px 55px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-info .eyebrow {
    margin-bottom: 22px;
}

.modal-product-info h2 {
    max-width: 430px;
    font-size: clamp(38px, 4vw, 62px);
    line-height: .92;
    letter-spacing: -4px;
}

.modal-product-description {
    max-width: 390px;
    margin-top: 28px;
    color: var(--grey);
    font-size: 15px;
    line-height: 1.7;
}

.modal-product-specs {
    margin: 35px 0 22px;
    border-top: 1px solid var(--line);
}

.modal-product-specs div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: .7px;
}

.modal-product-specs span {
    color: var(--grey);
}

.modal-product-specs strong {
    color: var(--white);
    font-weight: 400;
    text-align: right;
}

.modal-order-row {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.modal-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--grey);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: .7px;
}

.modal-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
}

.modal-quantity-controls button {
    width: 31px;
    height: 31px;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
    transition: background .2s ease, color .2s ease;
}

.modal-quantity-controls button:hover {
    background: var(--accent);
    color: var(--black);
}

.modal-quantity-controls strong {
    width: 30px;
    color: var(--white);
    text-align: center;
    font-size: 11px;
    font-weight: 400;
}

.modal-price-total {
    color: var(--accent);
    font-family: "DM Mono", monospace;
    font-size: 14px;
    font-weight: 500;
}

.modal-add-to-cart {
    width: 100%;
    padding: 17px;
    border: 0;
    background: var(--white);
    color: var(--black);
    display: flex;
    justify-content: space-between;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .25s ease;
}

.modal-add-to-cart:hover {
    background: var(--accent);
}

/* FOOTER */

footer {
    padding: 40px 7%;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #1C1C1C;
}

footer p {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: var(--grey);
    letter-spacing: .7px;
}

footer p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* TABLET */

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-info {
        min-height: 150px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    header {
        height: 72px;
        padding: 0 5%;
    }

    nav {
        display: none;
    }

    .header-button {
        display: none;
    }

    .cart-toggle {
        padding: 11px 12px;
    }

    .hero {
        min-height: 620px;
        padding: 100px 6% 50px;
    }

    .hero h1 {
        font-size: clamp(55px, 13vw, 95px);
        letter-spacing: -5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-bottom {
        margin-top: 75px;
    }

    .hero-index {
        right: 6%;
        bottom: 50px;
    }

    .collection,
    .about,
    .contact {
        padding: 85px 6%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-description {
        text-align: left;
    }

    .collection h2 {
        letter-spacing: -2px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-visual {
        aspect-ratio: 1.15 / 1;
    }

    .sticker-image {
        width: 58%;
        height: 58%;
    }

    .product-info {
        min-height: 116px;
    }

    .product-info h3 {
        min-height: auto;
    }

    .product-info p {
        min-height: auto;
    }

    .about h2 {
        letter-spacing: -4px;
    }

    .about-description {
        font-size: 16px;
    }

    .contact h2 {
        letter-spacing: -3px;
    }

    .collection-bottom {
        flex-direction: column;
    }

    .cart-drawer {
        padding: 20px;
    }

    #product-modal-content {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .modal-product-visual {
        min-height: 320px;
        padding: 55px;
    }

    .modal-product-visual img {
        max-height: 260px;
    }

    .modal-product-info {
        padding: 40px 28px 32px;
    }

    .modal-product-info h2 {
        font-size: 42px;
        letter-spacing: -3px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 6%;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .nav-link:hover .char,
    .nav-link:focus-visible .char {
        transform: none;
    }
}
