:root {
    color-scheme: light;
    --paper: #fbf8f2;
    --canvas: #f3ebe0;
    --soft: #ebdfd1;
    --burgundy: #4b1528;
    --berry: #661c37;
    --ink: #282021;
    --muted: #685956;
    --line: #d9cbc4;
    --body: "DM Sans", Arial, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --site-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
main:focus { outline: none; }
.wrap { width: min(var(--site-width), calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; inset: 8px auto auto 8px; padding: 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.announcement { display: flex; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--burgundy); color: white; text-align: center; font-size: .73rem; letter-spacing: .11em; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 89px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand { display: inline-flex; width: fit-content; }
.brand img { width: 72px; height: 68px; object-fit: contain; mix-blend-mode: multiply; }
.store-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 47px); }
.store-nav a, .bag { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.store-nav a:hover, .store-nav a[aria-current], .bag:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 5px; }
.bag { gap: .55rem; justify-self: end; font-weight: 600; }
.bag-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 4px; border-radius: 30px; background: #eee3dc; font-size: .73rem; }
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: center;
    min-height: clamp(454px, 43.6vw, 820px);
    background: var(--burgundy);
    color: var(--paper);
}
.hero-media, .hero::after { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero::after {
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, #1d030de0 0%, #1d030d8c 38%, #1d030d16 65%, transparent 88%);
}
.hero-copy { max-width: min(58%, 650px); padding-block: clamp(56px, 7vw, 104px); }
.hero h1 { font: 400 clamp(4rem, 7.2vw, 7.25rem)/.9 var(--serif); letter-spacing: -.025em; margin: 0; }
.hero h1 em { font-weight: 400; color: #e7c4b0; }
.eyebrow { margin: 0; font-size: .72rem; line-height: 1.4; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #e8ccbb; margin-bottom: 27px; }
.hero-description { max-width: 360px; color: #f2ded8; margin: 27px 0 31px; font-size: 1.04rem; }
.hero .button { color: var(--burgundy); background: var(--paper); }
.hero .button:hover { background: #e7c4b0; }
.hero .button:focus-visible { outline-color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 2px; color: white; background: var(--burgundy); text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1.25; width: fit-content; }
.button:hover { background: var(--berry); }
.button span { font-size: 1.13rem; }
.section { padding-block: clamp(40px, 6.2vw, 84px); }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 3vw, 36px); }
h1, h2, h3 { font: 400 3rem/.98 var(--serif); color: inherit; margin: 0; }
.section-heading h2 { font-size: clamp(2.7rem, 4.6vw, 4.2rem); }
.text-link { border: 0; padding: 0; background: transparent; color: var(--burgundy); font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--berry); text-decoration-thickness: 2px; }
.collections { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.collection { display: block; text-decoration: none; font-size: .94rem; font-weight: 700; }
.collection > span:last-child { display: flex; justify-content: space-between; gap: 5px; min-height: 44px; align-items: center; padding: 5px 2px; }
.collection > span span { color: var(--burgundy); }
.collection-media, .product-media { display: block; overflow: hidden; background: var(--soft); }
.collection-media { aspect-ratio: 1; }
.collection-media img, .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .26s ease; }
.collection:hover img, .product-link:hover img { transform: scale(1.035); }
.collection:hover { color: var(--berry); }
.featured-block { background: var(--canvas); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.1vw, 28px); row-gap: 34px; }
.product-card { min-width: 0; }
.product-link { display: block; text-decoration: none; }
.product-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.product-media { aspect-ratio: .79; display: grid; place-items: center; }
.product-media img.placeholder-logo, .detail-media img.placeholder-logo, .collection-media img.placeholder-logo { height: auto; width: 37%; margin: auto; mix-blend-mode: multiply; object-fit: contain; }
.collection-media:has(.placeholder-logo) { display: grid; place-items: center; }
.product-caption { position: relative; padding: 14px 23px 0 0; }
.product-caption .eyebrow { color: var(--muted); font-size: .64rem; }
.product-caption h3 { font-size: clamp(1.65rem, 2.35vw, 2.3rem); margin: 6px 0; overflow-wrap: anywhere; }
.product-price { color: var(--muted); font-size: .83rem; }
.card-arrow { position: absolute; top: 15px; right: 3px; color: var(--burgundy); }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 18px; align-items: center; padding-block: 34px; font-size: .86rem; }
.footer-inner div { display: grid; gap: 4px; }
.footer-inner a { text-underline-offset: 3px; }
.footer-inner small,.footer-inner span { color: var(--muted); }
.page-banner { background: var(--burgundy); color: var(--paper); padding-block: 51px 55px; }
.page-banner .eyebrow { color: #e8ccbb; margin-bottom: 12px; }
.page-banner h1,.bag-page h1 { font-size: clamp(3.4rem, 6.8vw, 6.1rem); }
.filter-bar { display: grid; grid-template-columns: 1.2fr 1fr auto auto; align-items: end; gap: 14px; }
.filter-bar .filter-reset { align-self: center; padding-top: 22px; }
label { display: block; font-size: .87rem; font-weight: 700; }
label:has(input), label:has(select), label:has(textarea) { display: grid; gap: 6px; }
input, select, textarea { min-height: 47px; min-width: 0; width: 100%; color: var(--ink); border: 1px solid #b7a39a; background: #fffcf7; border-radius: 2px; padding: 10px 11px; font-weight: 400; font-size: 1rem; }
select { text-overflow: ellipsis; }
textarea { min-height: 58px; resize: vertical; }
.result-count { margin: 24px 0 17px; font-size: .87rem; color: var(--muted); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; align-items: baseline; margin: 32px 0 0; font-size: .9rem; }
.empty { padding: 40px 24px; border: 1px solid var(--line); background: var(--canvas); text-align: center; }
.empty h2, .empty h1 { font-size: clamp(2.8rem, 5.4vw, 5rem); }
.empty p { margin: 16px auto 21px; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: .84rem; }
.breadcrumbs a { text-underline-offset: 4px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 7vw, 96px); align-items: center; }
.detail-media { aspect-ratio: 1; display: grid; place-items: center; background: var(--canvas); }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { max-width: 450px; }
.detail-copy .eyebrow { color: var(--muted); margin-bottom: 10px; }
.detail-copy h1 { font-size: clamp(3rem, 5.9vw, 5.5rem); overflow-wrap: anywhere; }
.description { color: var(--muted); margin-block: 16px 24px; white-space: pre-line; }
.stack { display: grid; gap: 14px; }
.stack > label[for] + select { margin-top: -9px; }
.stack .quantity-label { width: 102px; }
.variant-summary { min-height: 22px; font-size: .88rem; color: var(--muted); display: flex; gap: 5px 16px; flex-wrap: wrap; }
.variant-summary strong { color: var(--burgundy); }
.notice { background: #f0e7d9; color: var(--ink); border: 1px solid #cfb9a6; padding: 11px 14px; margin: 0 0 18px; font-size: .9rem; }
.notice.error { background: #f7e6ea; border-color: #c58b9e; color: #57132c; }
.notice ul { margin: 0; padding-left: 19px; }
.bag-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 5vw, 64px); }
.bag-items { padding: 0; margin: 0; list-style: none; }
.bag-row { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.bag-row img,.bag-placeholder { width: 84px; height: 100px; object-fit: cover; background: var(--canvas); }
.bag-item > a,.bag-item > strong { font: 400 1.85rem/1 var(--serif); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.bag-item p { font-size: .85rem; margin: 4px 0; color: var(--muted); }
.bag-item .unavailable { color: var(--berry); font-weight: 700; }
.bag-actions,.quantity-update { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bag-actions { margin-top: 6px; column-gap: 18px; }
.quantity-update input { width: 61px; min-height: 40px; padding: 4px 7px; }
.bag-actions .text-link { min-height: 42px; }
.subtotal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding: 16px 0; border-top: 1px solid var(--line); }
.checkout { background: var(--canvas); padding: clamp(19px, 3vw, 36px); border: 1px solid var(--line); }
.checkout h2 { font-size: 2.75rem; }
.checkout p { margin: 10px 0 22px; color: var(--muted); font-size: .9rem; }
.checkout label { display: block; }
.checkout label input,.checkout label textarea { display: block; margin-top: 5px; }
.checkout button { width: 100%; }
.checkout-payment { padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); }
.checkout-payment strong { font-size: .94rem; }
.muted { color: var(--muted); font-weight: 400; }
.confirmation { max-width: 740px; margin-inline: auto; }
.confirmation-reference strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }

@media (max-width: 960px) {
    .wrap { width: calc(100% - 56px); }
    .hero h1 { font-size: clamp(3.7rem, 7.4vw, 5.25rem); }
    .filter-bar { grid-template-columns: 1fr 1fr auto; }
    .filter-bar .filter-reset { align-self: start; padding-top: 0; }
}

@media (max-width: 690px) {
    .wrap { width: calc(100% - 36px); }
    .hero { align-items: end; min-height: clamp(520px, 150vw, 800px); }
    .hero .wrap { width: calc(100% - 44px); }
    .hero-media img { object-position: center 24%; }
    .hero::after { background: linear-gradient(0deg, #18020beb 0%, #18020bb8 28%, #18020b21 55%, transparent 68%); }
    .hero-copy { max-width: 100%; padding: 57px 0 30px; }
    .hero h1 { font-size: clamp(2.95rem, 12.6vw, 5.3rem); }
    .hero .eyebrow { margin-bottom: 11px; }
    .hero-description { margin: 14px 0 18px; font-size: .94rem; }
    .hero .button { padding-inline: 15px; gap: 8px; }
    .hero .home-hero-actions { gap: 5px 14px; }
    .header-inner { min-height: 70px; gap: 10px; }
    .brand img { width: 54px; height: 53px; }
    .store-nav { gap: 13px; }
    .store-nav, .bag { font-size: .82rem; }
    .bag { gap: 6px; }
    .bag-count { min-width: 21px; height: 21px; }
    .collections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .collection > span:last-child { font-size: .84rem; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
    .detail-grid,.bag-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-copy { max-width: none; }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar label:first-child { grid-column: 1 / -1; }
    .filter-bar button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* Store menu and shopping controls */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); }
.header-start, .header-actions { display: flex; align-items: center; gap: clamp(.65rem, 1.8vw, 1.6rem); }
.header-actions { justify-content: flex-end; }
.header-brand { flex-shrink: 0; }
.store-menu, .saved-link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; font-size: .92rem; font-weight: 600; text-decoration: none; }
.store-menu { padding: 0 4px; border: 0; background: transparent; }
.store-menu[hidden] { display: none; }
.saved-link[aria-current], .saved-link:hover, .store-menu:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.scroll-progress { position: absolute; inset: auto 0 -2px; height: 2px; background: #a86274; transform: scaleX(0); transform-origin: left; pointer-events: none; }
#collections { scroll-margin-top: 120px; }
.store-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(400px, 92vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 16px 0 55px #200a1455;
}
.store-drawer::backdrop { background: #21101899; }
.store-drawer[open] { animation: drawer-enter .24s ease-out; }
.store-drawer[open]::backdrop { animation: backdrop-enter .24s ease-out; }
html.drawer-open { overflow: hidden; }
@keyframes drawer-enter { from { transform: translateX(-100%); } }
@keyframes backdrop-enter { from { opacity: 0; } }
.store-drawer-content { padding: clamp(20px, 4vw, 34px); min-height: 100%; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { color: var(--burgundy); font-size: clamp(2rem, 7.5vw, 3.25rem); }
.drawer-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; font-size: 1.65rem; }
.drawer-search { display: grid; gap: 6px; margin: 20px 0; }
.drawer-nav { display: grid; }
.drawer-nav > a { min-height: 49px; display: flex; justify-content: space-between; align-items: center; padding-block: 6px; border-top: 1px solid var(--line); text-decoration: none; }
.drawer-nav > a:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.quantity-control { width: fit-content; display: grid; gap: 5px; }
.quantity-stepper { display: flex; align-items: stretch; width: fit-content; }
.quantity-stepper button { display: none; align-items: center; justify-content: center; border: 1px solid #b7a39a; padding: 0; background: var(--paper); color: var(--burgundy); width: 44px; min-height: 44px; font-size: 1.2rem; font-weight: 700; }
.quantity-stepper[data-ready] button { display: inline-flex; }
.quantity-stepper input { width: 52px; text-align: center; }
.quantity-stepper[data-ready] input { appearance: textfield; border-inline: 0; border-radius: 0; padding: 5px 2px; min-height: 44px; }
.quantity-stepper[data-ready] input::-webkit-inner-spin-button { appearance: none; }
.quantity-stepper button:hover:not(:disabled) { background: var(--soft); }
.quantity-stepper button:disabled, .button:disabled { cursor: default; opacity: .52; }
.quantity-update:has([data-ready]) .quantity-submit { display: none; }
.bag-actions { align-items: flex-end; }

@media (min-width: 691px) and (max-width: 810px) {
    .header-inner { gap: 9px; }
    .store-nav { gap: 17px; }
    .header-actions { gap: 11px; }
}
@media (max-width: 690px) {
    .header-inner { grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; padding-top: 4px; }
    .header-start { display: contents; }
    .store-menu { grid-column: 1; grid-row: 1; justify-self: start; }
    .header-brand { grid-column: 2; grid-row: 1; justify-self: center; }
    .header-actions { grid-column: 3; grid-row: 1; gap: 7px; }
    .store-nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; justify-content: center; border-top: 1px solid var(--line); }
    .saved-link, .bag, .store-menu { font-size: .82rem; }
    .saved-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .saved-link { gap: 3px; }
    .bag { gap: 3px; }
    .announcement { letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
    .store-drawer[open], .store-drawer[open]::backdrop { animation: none; }
}


.site-header .saved-link, .site-header .bag, .drawer-nav a[data-utility-link] { text-decoration: none; }
.site-header .saved-link[aria-current], .site-header .bag[aria-current] { color: var(--berry); }
.site-header .saved-link:where(:hover, [aria-current]) .bag-count,
.site-header .bag:where(:hover, [aria-current]) .bag-count { background: var(--burgundy); color: var(--paper); }
.store-notice {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10;
    width: min(375px, calc(100% - 32px));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    align-items: start;
    gap: .65rem;
    padding: 14px 9px 14px 14px;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--burgundy);
    border-radius: .3rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 9px 35px #2d162528;
}
.store-notice[hidden], .store-notice [hidden] { display: none; }
.store-notice-icon { display: grid; place-items: center; min-width: 28px; min-height: 28px; border-radius: 50%; background: var(--burgundy); color: var(--paper); font-size: .85rem; }
.store-notice[data-kind="error"] .store-notice-icon { background: #7d273b; }
.store-notice-copy { padding-top: 2px; overflow-wrap: anywhere; }
.store-notice-copy strong { display: block; font-size: .94rem; }
.store-notice-copy span { display: block; margin: 2px 0; color: var(--muted); font-size: .83rem; }
.store-notice-copy a { display: inline-block; padding-block: 8px 2px; color: var(--burgundy); font-size: .83rem; font-weight: 700; text-underline-offset: 3px; }
.store-notice-close { background: transparent; border: 0; border-radius: 3px; min-width: 44px; min-height: 44px; padding: 0; font-size: 1.55rem; line-height: 1; margin-top: -7px; }
.store-notice-close:hover { background: var(--soft); }
.store-notice-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
