:root {
    --ink: #161311;
    --muted: #6d645c;
    --line: #e4dbd1;
    --paper: #f4f0ea;
    --white: #fffcf8;
    --brown: #7f6051;
    --gold: #a68445;
    --danger: #8d3428;
    --shadow: 0 18px 50px rgba(22, 19, 17, 0.08);
    --serif-space: -0.045em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 380;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 540; letter-spacing: var(--serif-space); line-height: 1.02; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kicker {
    color: var(--brown);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 540;
}
.kicker.light { color: #f0d7b0; }

.topbar { background: var(--ink); color: #f6f1ea; font-size: 0.78rem; letter-spacing: 0.04em; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.topbar-inner p,
.topbar-inner a { white-space: nowrap; }
.topbar a:hover { color: #f0d7b0; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 252, 248, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-bar { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.logo img { height: 38px; width: auto; }
.nav-left, .desk, .nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right { justify-self: end; }
.nav-left a, .desk a { font-size: 0.92rem; }
.nav-left a.is-current, .desk a.is-current { box-shadow: inset 0 -1px 0 var(--ink); }
.bag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.bag b { min-width: 22px; height: 22px; border-radius: 99px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 0.72rem; font-weight: 540; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; right: 0; top: calc(100% + 12px); background: var(--white); border: 1px solid var(--line); min-width: 200px; padding: 10px; display: grid; box-shadow: var(--shadow); }
.mobile-panel a { padding: 10px 12px; }

.notice { margin: 18px auto 0; background: #efe6d4; border: 1px solid #e0d0ae; padding: 12px 14px; }

.hero { position: relative; min-height: 88vh; display: grid; align-items: end; color: white; background: #111; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 11, 9, 0.78), rgba(14, 11, 9, 0.18) 62%, rgba(14, 11, 9, 0.05)); }
.hero-copy { position: relative; z-index: 1; padding: 72px 0 78px; max-width: 680px; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7rem); max-width: 9ch; margin: 14px 0 18px; }
.hero-copy p:last-of-type { max-width: 38ch; color: rgba(255, 252, 248, 0.86); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn, .btn-ghost, .text-button {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink); background: var(--ink); color: var(--white);
    min-height: 48px; padding: 0 18px; cursor: pointer; letter-spacing: 0.01em;
}
.btn:hover { background: var(--brown); border-color: var(--brown); }
.btn-line { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-line:hover { background: white; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: white; }
.text-button { background: transparent; color: var(--ink); border: 0; min-height: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

.section { padding: 78px 0; }
.section.tight { padding-top: 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head a { color: var(--brown); }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { background: var(--white); border: 1px solid var(--line); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.cat-media { height: 170px; display: grid; place-items: center; background: #f7f5f2; }
.cat-media img { max-height: 150px; width: auto; object-fit: contain; }
.cat-card h3 { font-size: 1.25rem; }
.cat-card p { color: var(--muted); font-size: 0.9rem; }
.cat-card > div { padding: 14px 16px 16px; }
.cat-card:hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.card:hover { border-color: #c9b8a4; }
.card-media { aspect-ratio: 1 / 1.05; background: #f7f5f2; position: relative; overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 14px 14px 16px; display: grid; gap: 6px; }
.card-body h3 { font-size: 1.02rem; letter-spacing: -0.03em; line-height: 1.25; font-weight: 500; }
.price { font-weight: 540; }
.price-lg { font-size: 1.7rem; margin: 8px 0; }
.flag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: white; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; }
.flag.static { position: static; display: inline-block; margin-bottom: 12px; }

.promises { background: var(--ink); color: #f6f1ea; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 64px 0; }
.promise-grid h2 { font-size: 1.8rem; margin: 10px 0; }
.promise-grid p:last-child { color: rgba(246, 241, 234, 0.76); max-width: 32ch; }
.promises .kicker { color: #e0b252; }

.story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 42px; align-items: center; }
.story-photos { display: grid; grid-template-columns: 1fr 0.8fr; gap: 12px; }
.story-photos img, .story-single { width: 100%; height: 460px; object-fit: cover; }
.story-photos img:last-child { margin-top: 36px; height: 380px; }
.story h2, .prose h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 10px 0 14px; }
.story p, .prose p { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.story-single { height: 520px; }
.prose.narrow, .narrow { max-width: 760px; }
.page-intro { padding: 54px 0 10px; }
.page-intro h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin: 8px 0 12px; max-width: 12ch; }
.lede { font-size: 1.25rem; color: var(--muted); }


.nav-cat { display: none; }

.is-home {
    background: #fff;
    color: #111;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.is-home ::selection { background: #111; color: #fff; }
.is-home a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.is-home .topbar { background: #fff; color: #111; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.is-home .topbar a:hover { color: #111; }
.is-home .site-header { background: #0a0a0a; color: #fff; border-bottom: 0; backdrop-filter: none; }
.is-home .header-bar { width: 100%; max-width: none; min-height: 64px; padding: 0 22px; display: flex; align-items: center; gap: 26px; }
.is-home .logo { order: -1; }
.is-home .logo img { height: 28px; filter: invert(1); }
.is-home .nav-home { display: none; }
.is-home .nav-cat { display: inline; }
.is-home .nav-left { flex: 1; gap: 18px; }
.is-home .nav-left a,
.is-home .desk a,
.is-home .bag,
.is-home .mobile-nav summary {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}
.is-home .nav-left a:hover,
.is-home .desk a:hover,
.is-home .bag:hover { opacity: 0.72; }
.is-home .nav-left a.is-current,
.is-home .desk a.is-current { box-shadow: inset 0 -1px 0 #fff; }
.is-home .bag b { min-width: 0; height: auto; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.is-home .mobile-panel { background: #fff; }
.is-home .mobile-panel a { color: #111; letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }

.billboard { display: grid; grid-template-columns: 1fr 1fr; background: #0a0a0a; }
.billboard-next { margin-top: 8px; }
.pane { position: relative; display: block; min-height: calc(100dvh - 108px); overflow: hidden; color: #fff; }
.billboard-next .pane { min-height: 68vh; }
.pane img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pane:first-child img { object-position: center 42%; }
.pane-quiet img { object-position: center 35%; }
.pane-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 80px 36px 36px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 52%, rgba(0, 0, 0, 0) 100%);
}
.pane-copy h1,
.pane-copy h2 {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
    text-wrap: balance;
}
.pane-copy p { max-width: 36ch; margin-top: 10px; color: #f5f5f5; font-size: 0.98rem; line-height: 1.4; }
.pane-copy span {
    display: inline-block;
    margin-top: 16px;
    background: #fff;
    color: #111;
    padding: 9px 13px;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pane:hover .pane-copy span { background: #ededed; }
.pane:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.arrivals { background: #fff; padding: 54px 0 12px; }
.arrivals-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.arrivals-head h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.arrivals-head a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.arrivals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 12px; }
.rail-empty { color: #222; }
.drop { min-width: 0; color: #111; }
.drop-media { position: relative; aspect-ratio: 1; background: #f2f2f2; display: grid; place-items: center; }
.drop-media img { width: 82%; height: 82%; object-fit: contain; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.drop:hover img { transform: scale(1.04); }
.drop h3 { margin-top: 12px; font-size: 0.84rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.drop-price { margin-top: 4px; font-size: 0.84rem; font-variant-numeric: tabular-nums; color: #222; }
.drop-fallback { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.drop .flag { position: absolute; top: 10px; left: 10px; background: #111; color: #fff; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; }

.cities { background: #fff; padding: 56px 0 80px; }
.cities h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cities p { margin-top: 12px; max-width: 36ch; color: #222; }
.city-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }
.city-row a { text-decoration: underline; text-underline-offset: 4px; font-size: 1.05rem; }

.houses { padding: 10px 0 70px; }
.house-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 42px; margin-top: 18px; }
.house-row img { height: 36px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: 0.72; }

.site-footer { background: #100e0c; color: #f4efe8; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-logo { height: 34px; width: auto; filter: invert(1); margin-bottom: 14px; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; color: #e0b252; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #f0d7b0; }
.footer-grid p { color: rgba(244, 239, 232, 0.72); max-width: 32ch; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 36px; padding: 16px 0 20px; color: rgba(244,239,232,0.6); font-size: 0.86rem; }
.cart-summary .btn { min-width: 180px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select, .stack-form input, .stack-form textarea, .stack-form select, .login-card input {
    width: 100%; background: var(--white); border: 1px solid var(--line); min-height: 48px; padding: 10px 12px;
}
.search { flex: 1; min-width: 220px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pills a { border: 1px solid var(--line); background: var(--white); padding: 8px 12px; font-size: 0.92rem; }
.pills a.is-on, .size-pill input:checked + span { background: var(--ink); color: white; border-color: var(--ink); }
.empty { grid-column: 1 / -1; color: var(--muted); }

.product-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 42px; align-items: start; }
.gallery-main { background: var(--white); border: 1px solid var(--line); min-height: 460px; display: grid; place-items: center; }
.gallery-main img { width: 100%; max-height: 680px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 74px; height: 74px; padding: 0; border: 1px solid var(--line); background: white; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 8px 0; }
.sku, .fine, .desc { color: var(--muted); }
.desc { margin: 8px 0 18px; }
.buy-form, .stack-form { display: grid; gap: 14px; }
.buy-form { margin: 18px 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { position: relative; }
.size-pill input { position: absolute; opacity: 0; }
.size-pill span { display: inline-grid; place-items: center; min-width: 58px; height: 44px; padding: 0 10px; border: 1px solid var(--line); background: white; cursor: pointer; }
.size-pill input:focus-visible + span { outline: 2px solid var(--brown); }
.qty { width: 88px; }
.qty-label { display: grid; gap: 6px; max-width: 120px; }
.field-error { color: var(--danger); margin: 6px 0 0; }
.errors { background: #f8ebe8; border: 1px solid #efcfc9; padding: 12px 14px; color: var(--danger); }
.errors ul { margin: 8px 0 0; padding-left: 18px; }

.cart-list { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 96px 1.4fr auto auto; gap: 16px; align-items: center; background: white; border: 1px solid var(--line); padding: 12px; }
.cart-photo { width: 96px; height: 96px; background: #f7f5f2; }
.cart-photo img { width: 100%; height: 100%; object-fit: contain; }
.cart-row h2 { font-size: 1.05rem; margin-bottom: 4px; }
.cart-row p { color: var(--muted); }
.cart-end { text-align: right; display: grid; gap: 8px; justify-items: end; }
.cart-summary { margin-top: 22px; display: grid; justify-items: end; gap: 8px; }
.cart-summary p { font-size: 1.2rem; }

.checkout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .stack-form label, .login-card label { display: grid; gap: 6px; font-size: 0.92rem; }
.span { grid-column: 1 / -1; }
.summary-card, .panel { background: white; border: 1px solid var(--line); padding: 18px; }
.summary-card.wide { max-width: 760px; }
.summary-card ul, .summary-card li { list-style: none; margin: 0; padding: 0; }
.summary-card li, .total { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-card h2, .panel h2 { margin-bottom: 8px; }
.summary-card small { display: block; color: var(--muted); }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 22px; }
.pager a { text-decoration: underline; text-underline-offset: 3px; }

.admin-body { background: #efeae3; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #161311; color: #f6f1ea; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 540; }
.admin-brand img { width: 36px; height: 36px; object-fit: cover; background: white; }
.admin-side nav { display: grid; gap: 4px; }
.admin-side a, .admin-side button { color: #f6f1ea; text-align: left; background: transparent; border: 0; padding: 10px 10px; cursor: pointer; }
.admin-side a.is-current { background: rgba(255,255,255,0.08); }
.admin-side form { margin-top: auto; }
.admin-main { padding: 28px; }
.admin-head { margin-bottom: 18px; }
.admin-head h1 { font-size: 2.4rem; }
.admin-head.row, .form-actions, .message-list article header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-grid article { background: white; border: 1px solid var(--line); padding: 14px; }
.stat-grid strong { display: block; font-size: 1.7rem; margin-top: 8px; }
.data { width: 100%; border-collapse: collapse; }
.data th { text-align: left; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px; }
.data td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.data small { display: block; color: var(--muted); }
.thumb img { width: 54px; height: 54px; object-fit: contain; background: #f7f5f2; }
.pill-status { text-transform: capitalize; border: 1px solid var(--line); padding: 3px 8px; font-size: 0.82rem; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px; }
.check input { width: auto; min-height: 0; }
.image-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.image-edit label { width: 110px; display: grid; gap: 6px; font-size: 0.8rem; }
.image-edit img { width: 110px; height: 110px; object-fit: contain; background: #f7f5f2; border: 1px solid var(--line); }
.danger { margin-top: 16px; }
.danger button { background: transparent; border: 0; color: var(--danger); cursor: pointer; text-decoration: underline; }
.message-list { display: grid; gap: 12px; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: #161311; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--paper); padding: 28px; display: grid; gap: 12px; }
.login-card img { height: 42px; width: auto; }
.login-card h1 { font-size: 2.4rem; }
.login-card p { color: var(--muted); }

@media (max-width: 980px) {
    .cats, .grid, .promise-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .story, .product-layout, .checkout, .split, .footer-grid, .admin-shell { grid-template-columns: 1fr; }
    .story-photos img, .story-single { height: 280px; }
    .admin-side { position: sticky; top: 0; z-index: 5; }
    .admin-side nav { grid-template-columns: repeat(3, 1fr); }
    .admin-side form { margin-top: 0; }
}
@media (max-width: 760px) {
    .nav-left, .desk { display: none; }
    .mobile-nav { display: block; }
    .header-bar { display: flex; justify-content: space-between; }
    .hero { min-height: 78vh; }
    .hero::after { background: linear-gradient(180deg, rgba(14,11,9,0.15), rgba(14,11,9,0.78)); }
    .cats, .grid, .form-grid, .cart-row, .stat-grid { grid-template-columns: 1fr 1fr; }
    .cart-row { grid-template-columns: 78px 1fr; }
    .cart-end { grid-column: 2; text-align: left; justify-items: start; }
    .cart-summary { justify-items: stretch; }
    .cart-summary .btn { width: 100%; }
    .page-intro h1 { max-width: none; }
    .topbar { font-size: clamp(0.62rem, 2.7vw, 0.74rem); letter-spacing: 0.01em; }
    .topbar .wrap { width: min(1180px, calc(100% - 20px)); }
    .topbar-inner { flex-direction: row; gap: 8px; padding: 8px 0; }
    .is-home .topbar { letter-spacing: 0.04em; font-size: clamp(0.58rem, 2.5vw, 0.68rem); }
    .is-home .nav-left, .is-home .desk { display: none; }
    .is-home .header-bar { display: flex; justify-content: space-between; gap: 12px; padding: 0 14px; }
    .pane, .billboard-next .pane { min-height: 72vh; }
    .billboard, .billboard-next { grid-template-columns: 1fr; }
    .billboard-next { margin-top: 0; }
    .pane-copy { padding: 64px 20px 24px; }
    .arrivals-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
    .city-row { gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
