:root {
    --ink: #201a17;
    --paper: #f4f0ec;
    --white: #fffdf9;
    --clay: #98583f;
    --clay-dark: #633526;
    --sea: #657168;
    --line: #d9d0c8;
    --font-display: "Italiana", Georgia, serif;
    --font-body: "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-weight: 300; }
body.no-scroll { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.announcement { height: 30px; display: grid; place-items: center; color: #f7eee9; background: var(--clay-dark); font-size: 11px; text-transform: uppercase; }
.site-header { height: 82px; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: absolute; top: 30px; left: 0; right: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.3); color: white; }
.brand { width: 96px; }
.brand img { width: 100%; }
.desktop-nav { display: flex; gap: 38px; font-size: 14px; }
.desktop-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.desktop-nav a:hover { border-color: currentColor; }
.icon-button { width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 21px; }
.cart-trigger { justify-self: end; position: relative; color: white; }
.cart-count { position: absolute; top: 2px; right: 0; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--clay); color: white; font-size: 10px; font-weight: 600; }
.hero { min-height: calc(100vh - 30px); height: 850px; max-height: 960px; position: relative; overflow: hidden; color: white; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,12,8,.68) 0%, rgba(21,12,8,.13) 62%, rgba(21,12,8,.25) 100%); }
.hero-content { position: absolute; left: 8vw; bottom: 12%; width: min(660px, 80vw); animation: reveal .8s ease both; }
.eyebrow { margin: 0 0 14px; color: var(--clay); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.hero .eyebrow { color: #ead2c7; }
.hero h1 { margin: 0; font: 400 clamp(72px, 11vw, 160px)/.9 var(--font-display); }
.hero-copy { max-width: 560px; margin: 25px 0 34px; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; }
.primary-button { min-height: 50px; padding: 0 22px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: white; cursor: pointer; font-size: 14px; font-weight: 500; }
.primary-button svg { width: 18px; }
.primary-button.light { border-color: white; background: white; color: var(--ink); }
.primary-button:hover { background: var(--clay); border-color: var(--clay); color: white; }
.hero-index { position: absolute; right: 4vw; bottom: 6%; display: flex; align-items: baseline; gap: 18px; font-size: 11px; text-transform: uppercase; }
.hero-index span { font: 400 54px var(--font-display); }
.manifesto-band { padding: 95px 8vw; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12vw; align-items: end; background: var(--white); }
h2 { margin: 0; font: 400 clamp(44px, 6vw, 82px)/1.05 var(--font-display); }
.manifesto-band > p { margin: 0; max-width: 620px; color: #5e5752; font-size: 19px; line-height: 1.7; }
.featured, .catalog { padding: 100px 4vw; }
.section-heading { margin-bottom: 45px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading > span { color: #756d67; font-size: 13px; }
.featured-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.featured-card { cursor: pointer; outline-offset: 4px; }
.featured-card:nth-child(n+4) { display: none; }
.featured-image-wrap { height: 560px; position: relative; overflow: hidden; background: #e5ded8; }
.featured-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured-card:hover img { transform: scale(1.025); }
.featured-image-wrap > span { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,253,249,.9); font-size: 12px; }
.featured-info { padding: 18px 2px; display: flex; justify-content: space-between; gap: 20px; }
.featured-info small, .product-info small { color: var(--clay); font-size: 11px; font-weight: 500; text-transform: uppercase; }
.featured-info h3, .product-info h3 { margin: 5px 0 0; font: 400 24px/1.2 var(--font-display); }
.featured-info strong { font-size: 14px; font-weight: 500; white-space: nowrap; }
.catalog { background: var(--white); }
.catalog-heading { align-items: center; }
.search-box { width: min(340px, 100%); height: 48px; padding: 0 15px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 10px; }
.search-box svg { width: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filters { margin-bottom: 45px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; white-space: nowrap; font-size: 13px; }
.filter span { margin-left: 7px; color: #8d847d; }
.filter.active, .filter:hover { border-color: var(--ink); background: var(--ink); color: white; }
.filter.active span, .filter:hover span { color: #d8cfca; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 42px 18px; }
.product-card[hidden] { display: none; }
.product-image { width: 100%; height: 390px; padding: 0; border: 0; position: relative; overflow: hidden; background: #eee9e4; cursor: pointer; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-image:hover img { transform: scale(1.035); }
.product-tag { position: absolute; top: 12px; left: 12px; padding: 7px 9px; background: var(--white); font-size: 10px; font-weight: 500; text-transform: uppercase; }
.view-product { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,253,249,.92); opacity: 0; transform: translateY(6px); transition: .25s ease; }
.view-product svg { width: 17px; }
.product-image:hover .view-product { opacity: 1; transform: none; }
.product-info { padding-top: 15px; }
.product-info h3 { min-height: 58px; font-size: 21px; }
.product-buy { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.product-buy strong { font-size: 14px; font-weight: 500; }
.add-to-cart { width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; }
.add-to-cart svg { width: 18px; }
.add-to-cart:hover { background: var(--ink); color: white; }
.empty-results { padding: 70px 0; text-align: center; color: #746c66; }
.story-band { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; background: var(--sea); color: white; }
.story-image { min-height: 650px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.story-copy { padding: 9vw 8vw; display: flex; flex-direction: column; justify-content: center; }
.story-copy .eyebrow { color: #e6cabc; }
.story-copy > p:not(.eyebrow) { margin: 32px 0; font-size: 18px; line-height: 1.7; color: #edf0ed; }
.story-facts { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.35); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 12px; }
.story-facts strong { display: block; margin-bottom: 5px; font: 400 22px var(--font-display); }
.wholesale { padding: 110px 8vw; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: #dfd7cd; }
.wholesale-details > p { margin: 0 0 35px; color: #5d554f; font-size: 18px; line-height: 1.65; }
.wholesale-details ul { margin: 0; padding: 0; list-style: none; }
.wholesale-details li { padding: 18px 0; border-top: 1px solid #bfb4aa; display: flex; align-items: center; gap: 18px; }
.wholesale-details li svg { width: 24px; color: var(--clay); }
.wholesale-details li span { font-size: 14px; }
.wholesale-details li strong { display: block; margin-bottom: 3px; font-weight: 500; }
.text-link { margin-top: 35px; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 5px; font-weight: 500; }
.text-link svg { width: 17px; }
footer { padding: 70px 5vw 30px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; background: var(--ink); color: #e9e2dc; }
.footer-brand img { width: 115px; }
.footer-brand p { color: #a9a19b; }
footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
footer div > span { margin-bottom: 8px; color: #8c837d; font-size: 11px; text-transform: uppercase; }
footer a:hover { color: #dcae98; }
.footer-note { grid-column: 1 / -1; margin: 35px 0 0; padding-top: 25px; border-top: 1px solid #3b3430; color: #817973; font-size: 11px; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(18,12,9,.58); backdrop-filter: blur(3px); }
.cart-drawer { width: min(470px, 100%); height: 100%; padding: 30px; position: fixed; z-index: 60; top: 0; right: 0; display: flex; flex-direction: column; background: var(--white); transform: translateX(100%); transition: transform .35s ease; }
.cart-drawer.open { transform: none; }
.drawer-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }
.drawer-header h2 { font-size: 42px; }
.cart-items { flex: 1; overflow: auto; }
.cart-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; }
.cart-item img { width: 78px; height: 92px; object-fit: cover; }
.cart-item h3 { margin: 2px 0 7px; font: 400 17px var(--font-display); }
.cart-item strong { font-size: 13px; font-weight: 500; }
.quantity { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.quantity button { width: 25px; height: 25px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.quantity span { min-width: 12px; text-align: center; font-size: 12px; }
.remove-item { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #8c837d; cursor: pointer; }
.remove-item svg { width: 16px; }
.cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; color: #776f69; }
.cart-empty svg { width: 36px; height: 36px; margin-bottom: 15px; }
.cart-empty h3 { margin: 0; color: var(--ink); font: 400 24px var(--font-display); }
.cart-empty p { margin: 8px 0; }
.cart-footer { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; }
.cart-total strong { font: 400 26px var(--font-display); }
.cart-footer > p { color: #7a716b; font-size: 11px; }
.cart-footer .primary-button { width: 100%; margin-top: 8px; }
dialog { padding: 0; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
dialog::backdrop { background: rgba(18,12,9,.68); backdrop-filter: blur(3px); }
.product-dialog { width: min(980px, calc(100% - 30px)); grid-template-columns: 1fr 1fr; overflow: visible; }
.product-dialog[open] { display: grid; }
.dialog-close, .checkout-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,253,249,.9); }
.dialog-image { height: 650px; background: #eae4df; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { padding: 70px 55px; display: flex; flex-direction: column; justify-content: center; }
.dialog-content h2 { font-size: 50px; }
.dialog-description { margin: 25px 0; color: #6d645e; font-size: 17px; line-height: 1.6; }
.dialog-price { font: 400 28px var(--font-display); }
.handmade-note { margin: 30px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: #6f6761; font-size: 12px; }
.handmade-note svg { width: 20px; color: var(--clay); flex: none; }
.checkout-dialog { width: min(650px, calc(100% - 30px)); padding: 50px; }
.checkout-heading h2 { font-size: 48px; }
.checkout-heading > p:last-child { color: #6f6761; }
#checkout-form { margin-top: 30px; display: grid; gap: 18px; }
#checkout-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 500; }
#checkout-form label span { color: #8b827c; font-weight: 300; }
#checkout-form input, #checkout-form textarea { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #faf8f5; color: var(--ink); resize: vertical; }
#checkout-form input:focus, #checkout-form textarea:focus { border-color: var(--clay); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-total { padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.checkout-total strong { font: 400 24px var(--font-display); }
.submit-order { width: 100%; }
.submit-order[disabled] { opacity: .65; cursor: wait; }
#checkout-form > small { color: #837a74; text-align: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; padding: 13px 20px; background: var(--ink); color: white; font-size: 13px; transform: translate(-50%, 130%); transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-image { height: 340px; }
    .featured-image-wrap { height: 460px; }
    .manifesto-band, .wholesale { gap: 5vw; }
}

@media (max-width: 720px) {
    .announcement { font-size: 9px; }
    .site-header { height: 68px; grid-template-columns: 1fr auto; padding: 0 18px; }
    .brand { width: 80px; }
    .desktop-nav { display: none; }
    .hero { min-height: 700px; height: calc(100svh - 30px); max-height: 820px; }
    .hero-image { object-position: 56% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(21,12,8,.78), rgba(21,12,8,.08) 75%); }
    .hero-content { left: 22px; right: 22px; bottom: 70px; width: auto; }
    .hero h1 { font-size: 68px; }
    .hero-copy { font-size: 17px; }
    .hero-index { display: none; }
    .manifesto-band { padding: 70px 22px; grid-template-columns: 1fr; gap: 35px; }
    h2 { font-size: 44px; }
    .manifesto-band > p { font-size: 16px; }
    .featured, .catalog { padding: 70px 18px; }
    .section-heading { align-items: start; }
    .section-heading > span { display: none; }
    .featured-track { grid-template-columns: 84vw 84vw 84vw; overflow-x: auto; scroll-snap-type: x mandatory; }
    .featured-card { scroll-snap-align: start; }
    .featured-card:nth-child(n+4) { display: block; }
    .featured-image-wrap { height: 470px; }
    .catalog-heading { display: grid; }
    .search-box { width: 100%; margin-top: 20px; }
    .filters { margin-right: -18px; padding-right: 18px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
    .product-image { height: 235px; }
    .product-info h3 { min-height: 48px; font-size: 17px; }
    .product-buy { align-items: end; }
    .product-buy strong { font-size: 12px; }
    .add-to-cart { width: 36px; height: 36px; }
    .story-band { grid-template-columns: 1fr; }
    .story-image { min-height: 560px; }
    .story-copy { padding: 70px 22px; }
    .story-facts { grid-template-columns: 1fr; gap: 18px; }
    .wholesale { padding: 70px 22px; grid-template-columns: 1fr; gap: 45px; }
    footer { padding: 55px 22px 25px; grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cart-drawer { padding: 22px 18px; }
    .product-dialog[open] { display: block; max-height: 92vh; overflow-y: auto; }
    .dialog-image { height: 430px; }
    .dialog-content { padding: 40px 24px; }
    .dialog-content h2 { font-size: 40px; }
    .checkout-dialog { padding: 42px 22px 25px; max-height: 94vh; overflow-y: auto; }
    .checkout-heading h2 { font-size: 39px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-image { height: 420px; }
    .product-info h3 { min-height: 0; }
}