@font-face {
    font-family: "Instrument Serif";
    src: url("fonts/instrument-serif.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --paper: #f4f1ea;
    --surface: #faf8f3;
    --oat: #e5dec9;
    --ink: #2c2926;
    --muted: #5d554c;
    --line: #c9beac;
    --terracotta: #a6634b;
    --rust: #824836;
    --sage: #535e4b;
    --sage-light: #e5e8dc;
    --display: "Instrument Serif", Georgia, serif;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --corner: 14px;
}

::selection { background: var(--oat); color: var(--ink); }
html { scrollbar-color: #a49783 var(--paper); }
body { caret-color: var(--rust); }
:focus-visible { outline-color: var(--rust); }
h1 { letter-spacing: -.025em; text-wrap: balance; }
h2 { letter-spacing: -.02em; text-wrap: balance; }
h3 { letter-spacing: -.01em; }
.button { border-radius: 999px; padding-inline: 1.3rem; }
.button-small { padding-inline: .95rem; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.ui-chevron {
    display: inline-block;
    width: .43rem;
    height: .43rem;
    border-right: 1.5px solid;
    border-top: 1.5px solid;
    transform: rotate(45deg);
    flex: none;
}
.header-inner, .admin-header { min-height: 73px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--paper);
    border-bottom-color: #2c292626;
}
@supports (backdrop-filter: blur(16px)) {
    .site-header { background: #f4f1eae8; backdrop-filter: blur(16px) saturate(125%); }
}
.site-header .brand { padding-block: .4rem; }
.site-header .brand img { width: 94px; }
.site-header .brand img, .site-footer img {
    filter: brightness(1.22) contrast(1.17);
    mix-blend-mode: multiply;
}
.main-nav a { font-size: .875rem; font-weight: 540; }
.main-nav [aria-current] { color: var(--rust); text-decoration-thickness: 1px; }
.header-inquiry[aria-current] { border-color: var(--sage); background: var(--sage-light); }
.header-inquiry[aria-current]:hover { background: var(--ink); }
.cart-count {
    display: grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    background: var(--oat);
    color: var(--ink);
    border-radius: 50%;
    font-size: .71rem;
}

.home-hero {
    display: grid;
    isolation: isolate;
    position: relative;
    min-height: clamp(29rem, 48vw, 42rem);
    margin-block: clamp(.8rem, 2vw, 2rem) 0;
    border-radius: var(--corner);
    overflow: clip;
    background: #eae1d3;
}
.home-hero__visual { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.home-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 61%; }
.home-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f4eee1 0%, #f4eee1f7 24%, #f4eee1d9 37%, #f4eee126 63%, transparent 74%);
}
.home-hero__copy {
    align-self: center;
    position: relative;
    width: fit-content;
    padding: 3rem clamp(1.6rem, 5.4vw, 6rem);
}
.home-hero h1 {
    max-width: 13ch;
    font-size: clamp(3.95rem, 7.3vw, 6rem);
    line-height: .93;
    letter-spacing: -.025em;
    text-wrap: initial;
}
.home-hero h1 span { display: block; color: var(--rust); }
.home-hero__copy p {
    max-width: 35ch;
    margin: 1.3rem 0 1.65rem;
    color: var(--muted);
    font-size: clamp(.98rem, 1.3vw, 1.12rem);
}
.home-hero .button { min-height: 49px; }
.home-collections { border-top: 0; padding-block: clamp(2rem, 4vw, 4rem) clamp(3.3rem, 6vw, 6rem); }
.section-heading { margin-bottom: clamp(1.1rem, 2.4vw, 2rem); }
.section-heading h2 { font-size: clamp(2.4rem, 4.3vw, 4.2rem); }
.category-grid { grid-template-columns: 1.23fr repeat(4, minmax(0, 1fr)); gap: clamp(.55rem, 1.3vw, 1rem); }
.category-image {
    border-radius: var(--corner);
    aspect-ratio: initial;
    height: clamp(8rem, 13.5vw, 13rem);
    background: #e9decb;
}
.category-card:nth-child(2) .category-image { background: var(--sage-light); }
.category-card:nth-child(3) .category-image { background: #eee5d6; }
.category-card:nth-child(4) .category-image { background: #e8decc; }
.category-card:nth-child(5) .category-image { background: #ecdfd3; }
.category-image img { padding: 6%; transition: none; mix-blend-mode: darken; }
.category-card:hover img { transform: none; }
.category-caption {
    align-items: baseline;
    padding-inline: .15rem;
    font: 400 clamp(1.25rem, 1.8vw, 1.7rem)/1.1 var(--display);
}
.category-caption .ui-chevron { color: var(--rust); }
.feature-band { background: #eae3d6; border-block: 0; }
.product-card-image { border-radius: var(--corner); background: #e9dfcd; }
.product-card-image img { padding: 7%; mix-blend-mode: darken; }
.product-card-copy h3 { font-size: clamp(1.35rem, 2.15vw, 1.85rem); }
.home-trade {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 23rem;
    margin-block: clamp(2.5rem, 6vw, 5.5rem);
    border-radius: var(--corner);
    overflow: clip;
    background: var(--sage-light);
}
.home-trade img { width: 100%; height: 100%; max-height: 27rem; object-fit: cover; object-position: 50% 63%; }
.home-trade__copy { align-self: center; padding: clamp(1.5rem, 5.5vw, 5.3rem); }
.home-trade__copy h2 { font-size: clamp(2.65rem, 4.2vw, 4.7rem); }
.home-trade__copy p { max-width: 48ch; color: var(--muted); margin: .8rem 0 1.2rem; }

.page-top { padding-block: clamp(1.8rem, 4.8vw, 4.75rem) clamp(1.8rem, 4vw, 3.5rem); }
.page-top h1, .product-info h1 { max-width: 19ch; }
.page-top .measure { color: var(--muted); }
.catalog-controls {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--corner);
    padding: 1rem;
    gap: .85rem;
}
.category-links a { border-radius: 999px; }
.category-links [aria-current] { background: var(--oat); }
input:not([type="radio"], [type="checkbox"], [type="hidden"]), textarea, select {
    border-radius: 8px;
    background: #fffefa;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.pagination a, .pagination span { border-radius: 8px; }
.gallery-main, .gallery-thumbs a, .empty, .panel, .consent { border-radius: var(--corner); }
.gallery-main { background: #e8decc; }
.gallery-main img, .gallery-thumbs img { mix-blend-mode: darken; }
.gallery-thumbs a { border-radius: 8px; }
.gallery-thumbs [aria-current] { outline: 1px solid var(--sage); }
.story img { border-radius: var(--corner); }
.order-option { border-radius: 10px; }
.order-option:has(input:checked) { background: var(--sage-light); }
.order-option input { margin-top: .28rem; }
.product-sku, .order-moq, .quantity input, table { font-variant-numeric: tabular-nums; }
.inquiry-items h2, .panel > h2 { font-size: clamp(2rem, 3.25vw, 3rem); }
.line-item img { border-radius: 8px; }
.admin-header .brand img { width: 82px; }
.admin-main { --display: var(--body); }
.admin-main h1 { font-weight: 600; letter-spacing: -.035em; }
.admin-main h2, .admin-main .section-heading h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.admin-main .metrics .panel { background: var(--sage-light); border-color: #acb4a2; }
.admin-main .metrics strong { font-weight: 550; font-variant-numeric: tabular-nums; }
.admin-main .metrics .panel span { font-size: .88rem; }
.admin-main .table-scroll { border-radius: 8px 8px 0 0; }

@media (max-width: 850px) {
    .home-hero__visual img { object-position: 66% 52%; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
    .home-hero { min-height: 0; overflow: hidden; }
    .home-hero__copy { grid-row: 1; padding: 1.65rem 1.15rem 1.4rem; }
    .home-hero__visual { position: relative; grid-row: 2; z-index: 0; aspect-ratio: 1.35; }
    .home-hero__visual::after { content: none; }
    .home-hero__visual img { object-position: 58% 60%; }
    .home-hero h1 { font-size: clamp(3.05rem, 10.8vw, 4.55rem); }
    .home-hero__copy p { margin: .85rem 0 1rem; }
    .home-hero .actions { gap: .3rem .85rem; }
    .home-hero .button { min-height: 44px; padding-inline: .92rem; }
    .home-collections { margin-top: 0; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-image { height: clamp(7.5rem, 29vw, 11rem); }
    .home-trade { grid-template-columns: 1fr; }
    .home-trade img { max-height: 16rem; }
}
@media (max-width: 450px) {
    .site-header .brand img { width: 79px; }
    .main-nav a { padding: .65rem .52rem; }
    .main-nav { gap: 1rem; }
    .home-collections .section-heading { align-items: start; gap: .2rem 1rem; }
    .home-collections .section-heading .text-link { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__visual img, .category-image img { transform: none !important; }
}
