:root {
  color-scheme: light;
  --ink: #332926;
  --night: #341918;
  --gold: #dfbf7b;
  --bronze: #825e25;
  --muted: #635954;
  --line: #e2ded5;
  --paper: #fffdf9;
  --cream: #eeebe2;
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #a97125;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; border: 0; }
.shell { width: min(1260px, calc(100% - 104px)); margin-inline: auto; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-150%); background: var(--white); padding: 10px 16px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid #e8e3da; }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { width: fit-content; display: inline-flex; gap: 10px; align-items: center; justify-self: start; }
.brand-mark { width: 41px; height: 41px; border-radius: 7px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.brand-mark svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { color: inherit; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .065em; line-height: .99; }
.brand-name span { display: block; font: 650 8px/1.1 var(--sans); margin-top: 4px; letter-spacing: .13em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 33px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .back-top:hover { color: var(--bronze); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 5px; padding: 10px 16px; font-size: 13px; font-weight: 700; line-height: 1.35; transition: background-color .18s, border-color .18s, color .18s; }
.button-nav { justify-self: end; color: var(--ink); background: transparent; border-color: #cab895; }
.button-nav:hover { background: #f4eee2; }
.inquiry-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 30px; background: #eee5d4; color: #523a16; font-size: 11px; }
.button-gold { background: var(--gold); color: #1d241f; min-height: 51px; padding: 12px 18px; }
.button-gold:hover { background: #f5cd91; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #751e1c; }
.button-outline { color: var(--ink); background: transparent; border-color: #c9bda9; }
.button-outline:hover { background: #f0e9db; border-color: #9a7b4e; }

.hero { background-color: var(--night); color: #fffaf0; background-image: linear-gradient(90deg, #321513 0%, rgba(48, 20, 17, .98) 23%, rgba(48, 20, 17, .85) 37%, rgba(48, 20, 17, .27) 65%, rgba(48, 20, 17, .08) 100%), url("./assets/hero.webp"); background-position: center, right center; background-repeat: no-repeat; background-size: cover, auto max(100%, 64vw); }
.hero-inner { min-height: clamp(486px, 44vw, 660px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 49px; }
.eyebrow { color: var(--gold); font-size: 11px; line-height: 1.5; letter-spacing: .17em; font-weight: 750; }
.eyebrow-dark { color: var(--bronze); }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-eyebrow span { width: 27px; height: 1px; background: var(--gold); }
.hero h1, .section h2, .dialog-head h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(65px, 6.7vw, 108px); line-height: .98; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-description { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; color: #ebdfce; max-width: 460px; margin-top: 25px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 31px; }
.hero-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; color: #f4e9d6; font-size: 13px; font-weight: 650; }
.hero-link:hover { color: var(--gold); }

.trade-strip { background: #f0ece2; border-bottom: 1px solid #e5ded0; }
.trade-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trade-inner > div { display: flex; align-items: center; gap: 14px; padding: 23px 24px; }
.trade-inner > div:first-child { padding-left: 0; }
.trade-inner > div + div { border-left: 1px solid #ded7c9; }
.trade-inner svg { color: var(--bronze); width: 24px; height: 24px; }
.trade-inner strong, .trade-inner small { display: block; }
.trade-inner strong { font-size: 13px; font-weight: 700; }
.trade-inner small { font-size: 12px; color: var(--muted); margin-top: 2px; }

.section { padding-block: 75px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 29px; }
.section h2 { font-size: clamp(43px, 5vw, 69px); line-height: 1.03; margin-top: 8px; }
.section-heading > p { color: var(--muted); max-width: 370px; padding-bottom: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.category-card { background: var(--white); color: var(--ink); text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.category-card:hover { border-color: #b59868; box-shadow: 0 9px 25px #251e1210; }
.category-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; background: var(--night); }
.category-card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px 15px; }
.category-info { display: grid; gap: 4px; }
.category-card strong { font: 400 clamp(22px, 2.3vw, 32px)/1.04 var(--serif); letter-spacing: -.045em; }
.category-card small { font-size: 11px; color: var(--muted); }
.category-arrow { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: var(--bronze); background: #f3eee3; border-radius: 50%; transition: background-color .18s; }
.category-card:hover .category-arrow { background: #e8d6b5; }

.catalog-browse { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-bar { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter { background: transparent; color: var(--ink); padding: 8px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 22px; font-size: 13px; font-weight: 650; }
.filter:hover { border-color: #a98d5e; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search-field { display: flex; position: relative; flex: 0 1 270px; }
.search-field svg { position: absolute; top: 11px; left: 12px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 40px; padding: 8px 11px 8px 37px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font-size: 13px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 17px 12px; min-height: 28px; color: var(--muted); font-size: 12px; }
.text-button { padding: 3px 0; border: 0; background: none; color: var(--bronze); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; padding: 17px 18px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.product-category { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; color: #5d5140; text-transform: uppercase; letter-spacing: .085em; }
.category-dot { width: 7px; height: 7px; background: #aa864d; border-radius: 50%; }
.dot-pulses { background: #a75532; }
.dot-spices { background: #7d5d41; }
.dot-dry { background: #71806a; }
.product-card h3 { font: 400 clamp(21px, 2.05vw, 28px)/1.1 var(--serif); letter-spacing: -.035em; margin-top: 7px; }
.product-detail { color: var(--muted); font-size: 13px; margin-top: 4px; margin-bottom: 12px; }
.product-actions { width: 100%; display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid #ebe7de; padding-top: 10px; }
.pack-size { color: var(--muted); font-size: 11px; }
.pack-size svg { margin-right: 2px; }
.product-add { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #ddd2bc; border-radius: 5px; background: transparent; color: var(--ink); min-height: 39px; padding: 5px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.product-add:hover { border-color: #a68756; background: #f5ede0; }
.product-add.is-added { background: #edf2eb; border-color: #cddbc8; color: #395738; }
.more-products { text-align: center; margin-top: 25px; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 9px; padding: 39px 16px; background: #f4f0e7; border: 1px solid var(--line); border-radius: 6px; }
.empty-state > svg { width: 27px; height: 27px; color: var(--bronze); }
.empty-state h3 { font: 400 28px/1.1 var(--serif); }
.empty-state p { color: var(--muted); font-size: 14px; }
.empty-state .button { margin-top: 7px; }

.buyer { background: var(--night); color: #fffaf0; }
.buyer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; }
.buyer h2 { font-size: clamp(40px, 4.4vw, 63px); }
.buyer-lead > p:not(.eyebrow) { color: #e5dece; max-width: 420px; margin-top: 18px; margin-bottom: 24px; }
.buyer-steps { list-style: none; margin: 0; padding: 0; }
.buyer-steps li { display: flex; gap: 15px; align-items: flex-start; padding-block: 17px; border-top: 1px solid #45515a; }
.buyer-steps li:last-child { border-bottom: 1px solid #45515a; }
.step-number { display: grid; place-items: center; flex: none; color: var(--gold); border: 1px solid #8c7857; border-radius: 50%; width: 36px; height: 36px; font: 400 19px/1 var(--serif); }
.buyer-steps h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.buyer-steps p { color: #ded9ca; font-size: 13px; max-width: 390px; }
.site-footer { background: #f0ece2; color: var(--ink); border-top: 1px solid #e3dbcc; }
.footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p, .back-top { font-size: 13px; }
.footer-inner p svg { color: var(--bronze); }
.back-top { display: flex; align-items: center; gap: 7px; font-weight: 650; }

.inquiry-dialog { margin: 0 0 0 auto; padding: 0; width: min(100%, 545px); max-width: none; height: 100%; max-height: 100%; height: 100dvh; max-height: 100dvh; border: 0; background: var(--white); color: var(--ink); box-shadow: -12px 0 55px #0004; }
.inquiry-dialog[open] { display: flex; flex-direction: column; }
.inquiry-dialog::backdrop { background: #101c28a8; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; flex: none; gap: 16px; padding: 22px 27px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: clamp(35px, 8vw, 48px); line-height: 1.08; margin-top: 3px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: transparent; }
.icon-button:hover { background: #f3eee3; border-color: #c6b290; }
#inquiry-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dialog-content { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 21px 27px; }
.dialog-subheading { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; padding: 0; margin: 0 0 10px; }
.dialog-subheading span { font-size: 11px; color: var(--muted); padding: 1px 7px; border-radius: 20px; background: #f0ece2; }
.inquiry-items { display: grid; gap: 9px; }
.inquiry-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 11px 12px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.line-product { display: grid; gap: 1px; }
.line-product strong { font-size: 14px; line-height: 1.25; }
.line-product small { font-size: 11px; color: var(--muted); }
.remove-item { width: 33px; height: 33px; }
.line-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; grid-column: 1 / -1; }
.inquiry-dialog label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #46545d; }
.inquiry-dialog input, .inquiry-dialog select, .inquiry-dialog textarea { width: 100%; min-width: 0; padding: 7px 9px; min-height: 40px; color: var(--ink); background: #fffefa; border: 1px solid #d3cbbd; border-radius: 4px; font-size: 14px; font-weight: 400; }
.inquiry-dialog textarea { resize: vertical; }
.buyer-details { border: 0; border-top: 1px solid var(--line); margin: 22px 0 0; padding: 12px 0 0; min-inline-size: 0; }
.buyer-details legend { margin-bottom: 0; padding-right: 10px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.notes-label { margin-top: 11px; }
.dialog-footer { padding: 13px 27px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; background: var(--paper); }
.footer-actions { display: flex; align-items: stretch; gap: 8px; }
.footer-actions:not(.review-actions) > button { width: 100%; }
.review-actions { flex-wrap: wrap; }
.review-actions > button { flex: 1 1 auto; }
.privacy-note, .draft-status { color: var(--muted); font-size: 11px; margin-top: 7px; }
.privacy-note svg { margin-right: 3px; }
.draft-status:empty { display: none; }
.review-intro { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.inquiry-dialog .draft-text { min-height: 230px; font: 13px/1.55 ui-monospace, "Courier New", monospace; padding: 11px; background: var(--paper); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .category-grid { gap: 12px; }
  .category-card-body { padding-inline: 11px; }
  .category-arrow { width: 29px; height: 29px; }
  .trade-inner > div { padding-inline: 12px; gap: 9px; }
  .buyer-inner { gap: 36px; }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 76px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; display: flex; justify-content: space-between; gap: 12px; }
  .main-nav { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .brand-name { font-size: 23px; }
  .brand-name span { font-size: 7px; }
  .button-nav { padding-inline: 8px; gap: 6px; }
  .hero { background-image: linear-gradient(90deg, rgba(48, 20, 17, .98) 0%, rgba(48, 20, 17, .90) 28%, rgba(48, 20, 17, .28) 100%), linear-gradient(0deg, rgba(48, 20, 17, .80) 0%, transparent 63%), url("./assets/hero.webp"); background-position: center, center, 60% center; background-size: cover, cover, auto 100%; }
  .hero-inner { min-height: 450px; }
  .hero h1 { font-size: clamp(49px, 10.7vw, 73px); }
  .hero-description { margin-top: 20px; max-width: 355px; }
  .hero-actions { margin-top: 22px; gap: 6px 17px; }
  .trade-inner { grid-template-columns: 1fr 1fr; }
  .trade-inner > div { padding-block: 15px; }
  .trade-inner > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #ded7c9; padding-left: 0; }
  .trade-inner strong { font-size: 12px; }
  .trade-inner small { font-size: 11px; }
  .trade-inner svg { width: 20px; height: 20px; }
  .section { padding-block: 50px; }
  .section-heading { display: grid; gap: 12px; margin-bottom: 19px; }
  .section-heading > p { padding: 0; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card-body { padding-block: 10px; gap: 4px; }
  .catalog-browse { margin-top: 27px; padding-top: 17px; }
  .filter-bar { display: grid; gap: 12px; }
  .filter { font-size: 12px; padding-inline: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 12px 10px 10px; }
  .product-card h3 { font-size: 21px; }
  .product-detail { font-size: 12px; }
  .product-actions { gap: 5px; }
  .pack-size { font-size: 10px; }
  .buyer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { padding-block: 16px; flex-wrap: wrap; gap: 12px 18px; }
  .footer-inner p { order: 1; width: 100%; }
  .dialog-head, .dialog-content, .dialog-footer { padding-left: 17px; padding-right: 17px; }
  .inquiry-dialog input, .inquiry-dialog select, .inquiry-dialog textarea, .search-field input { font-size: 16px; }
}

@media (max-width: 385px) {
  .shell { width: calc(100% - 28px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .category-card small { font-size: 10px; }
  .category-arrow { width: 25px; height: 25px; }
  .pack-size svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
