@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-400.woff2") format("woff2");
    font-weight: 460;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-560.woff2") format("woff2");
    font-weight: 560;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f3f4f6;
    --bg-2: #f7f8f9;
    --ink: #1a1f26;
    --muted: #5c6570;
    --line: rgba(26, 31, 38, 0.12);
    --clay: #1e3a5f;
    --clay-2: #152a45;
    --olive: #141a22;
    --sand: #e6e8ec;
    --white: #fbfbfc;
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --shadow: 0 24px 60px rgba(20, 26, 34, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 460; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.sr, .skip {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; z-index: 80; }

.topbar {
    background: var(--olive);
    color: #f6f1ea;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 9px 16px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(243, 244, 246, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}
.logo { text-decoration: none; justify-self: center; text-align: center; }
.logo-mark { font-family: var(--serif); font-size: 32px; letter-spacing: -0.04em; display: block; line-height: 0.9; }
.logo-sub { display: block; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.nav-list, .footer-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-list a, .footer-list a { text-decoration: none; font-size: 15px; }
.nav-list a:hover, .footer-list a:hover { color: var(--clay); }
.header-tools { display: flex; justify-content: flex-end; gap: 4px; }
.icon-btn {
    width: 42px; height: 42px; border: 0; background: transparent; border-radius: 999px;
    display: grid; place-items: center; position: relative; cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(34, 28, 24, 0.06); }
.count {
    position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--clay); color: white; font-size: 10px; line-height: 16px;
}
.js-menu { display: none; }

.search-pop {
    padding: 18px 28px 22px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
}
.search-pop form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.search-pop input, .stack input, .stack textarea, .stack select, .field-row input, .field-row select, .qty-form input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.search-pop input:focus, .stack input:focus, .stack textarea:focus, .stack select:focus, .field-row input:focus, .field-row select:focus {
    outline: 2px solid var(--clay);
    border-color: transparent;
}

.hero { position: relative; min-height: 88vh; }
.hero img { width: 100%; height: 88vh; object-fit: cover; }
.hero-card {
    position: absolute; left: 40px; bottom: 40px; max-width: 460px;
    background: rgba(250, 247, 243, 0.94); padding: 32px; border-radius: 22px;
    box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(42px, 5vw, 68px); margin: 8px 0 12px; }
.eyebrow {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.hero-actions, .section-head { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.hero-actions { margin-top: 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; border: 1px solid transparent; border-radius: 999px;
    padding: 13px 20px; cursor: pointer; background: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-clay { background: var(--clay); color: #fffaf6; }
.btn-clay:hover { background: var(--clay-2); }
.btn-dark { background: var(--olive); color: #f6f1ea; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost.light { border-color: rgba(255,255,255,.3); color: white; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.trust {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 8px 0 4px;
}
.trust p { font-size: 14px; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-weight: 560; font-family: var(--serif); font-size: 22px; letter-spacing: -0.03em; }

.section, .shop-head, .legal, .thanks, .contact-grid, .cart-layout, .checkout, .measure, .stack-form.narrow {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 64px;
}
.section-head { justify-content: space-between; margin-bottom: 22px; }
.section-head h2, .shop-head h1, .legal h1 { font-size: clamp(36px, 4vw, 58px); }
.section-head a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.lede { max-width: 46rem; color: var(--muted); font-size: 18px; }

.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collection-grid a { position: relative; display: block; border-radius: 18px; overflow: hidden; min-height: 320px; text-decoration: none; }
.collection-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; transition: transform .5s ease; }
.collection-grid a:hover img { transform: scale(1.04); }
.collection-grid span {
    position: absolute; left: 14px; bottom: 14px; background: var(--white); border-radius: 999px; padding: 8px 12px;
}

.product-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 14px;
}
.section .product-grid { width: auto; margin: 0; }
.card-media { display: block; position: relative; border-radius: 16px; overflow: hidden; background: var(--sand); aspect-ratio: 4/5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.flag { position: absolute; top: 12px; left: 12px; background: var(--white); border-radius: 999px; padding: 5px 9px; font-size: 12px; }
.card-body { padding: 12px 2px 0; }
.card h2 { font-size: 26px; margin: 2px 0 6px; }
.card h2 a { text-decoration: none; }
.card-excerpt { color: var(--muted); font-size: 14px; min-height: 42px; }
.price { margin-top: 8px; font-weight: 500; }
.price span, .fine, .sku { color: var(--muted); font-weight: 400; font-size: 13px; }

.split { width: min(1180px, calc(100% - 40px)); margin: 10px auto 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.split img { border-radius: 22px; height: 520px; width: 100%; object-fit: cover; }
.split h2 { font-size: 48px; margin-bottom: 12px; }
.split p { color: var(--muted); margin-bottom: 18px; }

.steps ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; }
.steps li { background: var(--white); border-radius: 18px; padding: 18px; min-height: 180px; }
.steps span { color: var(--clay); font-family: var(--serif); font-size: 22px; }
.steps h3 { font-size: 28px; margin: 12px 0; }
.steps p { color: var(--muted); }

.band {
    margin: 20px 20px 40px;
    background: var(--olive);
    color: #f6f1ea;
    border-radius: 28px;
    padding: 42px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}
.band h2 { font-size: clamp(32px, 4vw, 52px); max-width: 14ch; margin: 8px 0; }

.shop-tools { width: min(1180px, calc(100% - 40px)); margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: transparent; }
.chips a.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sort select { border-radius: 999px; border: 1px solid var(--line); background: var(--white); padding: 8px 12px; }

.pdp { width: min(1180px, calc(100% - 40px)); margin: 28px auto 70px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; }
.pdp-gallery .js-main, .pdp-gallery > img { width: 100%; border-radius: 20px; max-height: 820px; object-fit: cover; background: var(--sand); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 74px; height: 92px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid transparent; background: none; cursor: pointer; }
.thumbs button.is-on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(40px, 4vw, 62px); margin-bottom: 8px; }
.pdp-price { font-size: 20px; }
.prose p, .legal p, .legal li, .thanks p { margin: 0 0 12px; }
.prose h2, .legal h2 { font-size: 28px; margin: 22px 0 8px; }
.prose ul, .legal ul, .legal ol { margin: 0 0 12px; padding-left: 18px; }
.prose { margin: 14px 0; }
.callout { background: #f6e7df; border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.callout.wide { width: min(1180px, calc(100% - 40px)); margin: 0 auto 28px; }
fieldset { border: 0; margin: 14px 0; padding: 0; }
legend { margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px 12px; min-width: 92px; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--ink); background: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--clay); }
.stack, .field-row label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: .7fr 1fr 1fr; }
.live { font-family: var(--serif); font-size: 28px; }
.facts { margin-top: 18px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }

.cart-layout, .checkout-grid, .contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.cart-lines, .drawer-lines, .mini-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li, .drawer-lines li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-lines img, .drawer-lines img { width: 92px; height: 116px; object-fit: cover; border-radius: 12px; }
.summary { background: var(--white); border-radius: 20px; padding: 20px; position: sticky; top: 92px; }
.summary h2 { font-size: 32px; margin-bottom: 12px; }
.summary p { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.summary .fine, .summary .seller p, .summary .total { display: block; }
.total { font-size: 20px; margin-top: 12px !important; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-lines small { display: block; color: var(--muted); }
.seller { margin: 14px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.check input { margin-top: 4px; }
.text-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.banner { width: min(1180px, calc(100% - 40px)); margin: 0 auto 16px; background: #f6e7df; border-radius: 14px; padding: 12px 14px; }
.empty { width: min(1180px, calc(100% - 40px)); margin: 0 auto 40px; }
.narrow { max-width: 640px; }

.legal h2 { font-size: 32px; margin: 28px 0 8px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 18px; }
.id-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.id-table th, .id-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.id-table th { width: 34%; color: var(--muted); font-weight: 500; }
.pending { color: var(--clay); }
.model-form { background: var(--white); border-radius: 18px; padding: 18px; }
.measure { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.measure img { border-radius: 20px; height: 460px; width: 100%; object-fit: cover; }
.measure ol { margin: 0; padding-left: 18px; }
.measure li { margin: 0 0 12px; }
.thanks ul { padding-left: 18px; }

.site-footer { background: #141a22; color: #e7ebf0; padding: 48px 28px 24px; margin-top: 20px; }
.footer-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 24px; }
.footer-list { flex-direction: column; gap: 8px; }
.footer-list.plain { color: #d9d0c6; }
.footer-brand { font-family: var(--serif); font-size: 28px; }
.withdraw-link { margin-top: 16px; }
.withdraw-link a { color: #fff; font-weight: 560; }
.footer-base { width: min(1180px, 100%); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; color: #c8bfb6; font-size: 13px; }

.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(22, 17, 14, .42); border: 0; }
.drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 100%); background: var(--bg-2); padding: 18px; overflow: auto; }
.drawer-panel header { display: flex; justify-content: space-between; align-items: center; }
.drawer-sub { display: flex; justify-content: space-between; margin: 14px 0 8px; }
.drawer-panel .btn { width: 100%; margin-top: 8px; }
.line-name { margin: 0; }
.line-name a { text-decoration: none; font-family: var(--serif); font-size: 22px; }
.line-meta { color: var(--muted); font-size: 13px; }

.cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    background: var(--white); border-radius: 18px; box-shadow: var(--shadow);
    padding: 14px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
}
.cookie p { max-width: 70ch; }

@media (max-width: 980px) {
    .site-header { grid-template-columns: auto 1fr auto; padding: 12px 14px; }
    .js-menu { display: grid; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); padding: 10px 18px 16px; border-bottom: 1px solid var(--line); }
    .nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 12px; }
    .hero-card { left: 14px; right: 14px; bottom: 14px; max-width: none; }
    .hero, .hero img { min-height: 78vh; height: 78vh; }
    .trust, .collection-grid, .product-grid, .steps ol, .footer-grid { grid-template-columns: 1fr 1fr; }
    .collection-grid a, .collection-grid img { min-height: 220px; }
    .split, .pdp, .cart-layout, .checkout-grid, .contact-grid, .measure, .band, .field-row, .field-row.three { grid-template-columns: 1fr; }
    .split img, .measure img { height: 320px; }
    .summary { position: static; }
    .footer-base { flex-direction: column; }
    .facts div { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .trust, .product-grid, .steps ol, .footer-grid, .collection-grid { grid-template-columns: 1fr; }
    .cookie { flex-direction: column; align-items: stretch; }
}
.form-error { background: #f6e7df; border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.is-hidden, [hidden] { display: none !important; }
