@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* One type scale, one content grid, and a restrained 8px spacing rhythm. */
:root {
  --ink: #202420;
  --muted: #656c66;
  --paper: #fff;
  --soft: #f5f6f4;
  --red: #ad202c;
  --line: #e2e6df;
  --green: #176342;
  --amber: #956518;
  --radius: 18px;
  --content: 1120px;
  --gutter: 32px;
  --section-space: 80px;
  --header-height: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); font: 16px/1.6 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #49845c; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* Quiet, compact navigation. */
.header { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(var(--gutter), calc((100% - var(--content)) / 2)); background: #ffffffed; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #2024200d; }
.brand { display: inline-block; flex-shrink: 0; width: 112px; line-height: 1; }
.brand-logo { display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; }
.brand-logo img { display: block; width: 100%; height: auto; transform: translateY(-25%); mix-blend-mode: multiply; }
.header nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; }
.header nav a, .header .nav-products { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.header .nav-products { border: 0; background: none; color: inherit; padding: 10px 0; font: inherit; }
.header nav a:hover, .header .nav-products:hover { color: var(--red); }
.nav-cta { border: 1px solid #d6dcd4; border-radius: 999px; padding: 9px 20px; }
.nav-toggle { display: none; }

/* Food is the focal point; content controls the hero height on phones. */
.hero { position: relative; isolation: isolate; min-height: 640px; background: #161b18; color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: 60% 52%; z-index: -3; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #161b18 6%, #161b18f0 25%, #161b18a3 47%, #161b1800 73%); z-index: -2; }
.hero-content { padding-top: 80px; padding-bottom: 120px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--red); margin-bottom: 16px; }
.eyebrow.light { color: #d4ddb3; }
.hero h1 { font-size: clamp(44px, 4.8vw, 64px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; max-width: 660px; }
.hero h1 em { font-style: normal; color: #dce5b4; }
.hero-copy { max-width: 450px; font-size: 17px; line-height: 1.65; margin-top: 24px; color: #e0e5df; }
.hero-identity { margin-top: 16px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #dce5b4; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font-weight: 600; border-radius: 999px; border: 1px solid transparent; font-size: 14px; line-height: 1.4; transition: background .2s, border-color .2s; }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: #921b26; }
.button-dark { background: #223a2b; color: #fff; }
.button-dark:hover { background: #304b38; }
.button-ghost { color: #fff; border-color: #ffffff70; background: #ffffff08; }
.button-ghost:hover { background: #ffffff14; border-color: #fff; }
.button-outline { border-color: #cbd3c5; background: transparent; }
.button-outline:hover { background: #edf1e9; }
.hero-caption { font-size: 11px; position: absolute; bottom: 76px; right: max(var(--gutter), calc((100% - var(--content)) / 2)); color: #e1e4df; }
.hero-foot { border-top: 1px solid #ffffff1a; position: absolute; bottom: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 18px var(--gutter); font-size: 12px; color: #d8dfd4; background: #12191188; }
.hero-foot span:before { content: '•'; margin-right: 12px; color: #d4ddb3; }

/* Shared section, input and card styles. Map geometry stays in seller-map.css. */
h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
.section-heading { display: flex; gap: 48px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-heading > p { max-width: 360px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.search-form { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: end; gap: 12px; }
label { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 500; gap: 8px; }
input, select { min-width: 0; border: 1px solid #ced6cc; background: #fff; color: var(--ink); border-radius: 12px; min-height: 48px; width: 100%; padding: 11px 14px; line-height: 1.5; font-size: 16px; font-weight: 400; }
input::placeholder { color: #737c72; opacity: 1; }
.input-icon { position: relative; }
.input-icon span { position: absolute; left: 14px; top: 5px; font-size: 28px; font-weight: 400; }
.input-icon input { padding-left: 43px; }
.finder-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.text-button { color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 8px 0; min-height: 44px; font-weight: 500; }
.seller-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.seller-top { padding: 24px 24px 16px; display: flex; align-items: flex-start; gap: 12px; }
.seller-top > div { min-width: 0; overflow-wrap: anywhere; }
.seller-monogram { height: 44px; width: 44px; flex-shrink: 0; border-radius: 12px; background: #eef2e9; color: #43533c; display: grid; place-items: center; font-weight: 600; font-size: 16px; }
.seller-top h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.seller-area { font-size: 14px; color: var(--muted); margin-top: 4px; }
.seller-label { font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; display: block; margin-bottom: 6px; }
.seller-products { padding: 0 24px 20px; }
.stock-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #eef1eb; font-size: 14px; }
.stock-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.stock-row .status { flex-shrink: 0; }
.status { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 9px; white-space: nowrap; line-height: 1.4; }
.status:before { content: ''; width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: currentColor; }
.ready { color: var(--green); background: #e8f3eb; }
.limited { color: #805213; background: #faf0dc; }
.seller-card details { font-size: 14px; }
.seller-card details > summary { list-style: none; color: #53664b; font-weight: 500; cursor: pointer; margin-top: 4px; padding: 12px 0; min-height: 44px; }
.seller-card details > summary::-webkit-details-marker { display: none; }
.seller-card details > summary:after { content: ' +'; }
.seller-card details[open] > summary:after { content: ' −'; }
.seller-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; background: #fafbf9; border-top: 1px solid #eef1eb; }
.seller-bottom p { font-size: 12px; color: var(--muted); max-width: 155px; line-height: 1.5; }
.seller-bottom .button { font-size: 13px; min-height: 44px; background: #243d2d; color: #fff; padding: 10px 16px; }
.service-message { padding: 16px 20px; background: #fbf0de; border-left: 3px solid #956518; border-radius: 0 12px 12px 0; font-size: 14px; margin-top: 16px; }
.empty-state { padding: 40px 24px; margin-top: 24px; text-align: center; border: 1px dashed #bcc7b4; border-radius: var(--radius); background: #fff; }
.empty-state h3 { font-size: 24px; letter-spacing: -.03em; }
.empty-state p { max-width: 530px; margin: 12px auto 24px; color: var(--muted); }
.empty-state .button { margin: 4px; }
.empty-icon { font-size: 40px; color: #657452; line-height: 1.3; }

/* A lighter catalogue with the same rhythm as the seller window. */
body.products-dialog-open { overflow: hidden; }
.products-dialog { width: 1040px; max-width: calc(100% - 48px); max-height: 88vh; max-height: 88dvh; padding: 0; border: 1px solid #e0e5db; border-radius: 24px; color: var(--ink); background: var(--soft); box-shadow: 0 32px 100px #0005; overflow: auto; overscroll-behavior: contain; }
.products-dialog::backdrop { background: #07140d99; backdrop-filter: blur(8px); }
.products-dialog[open] { animation: products-enter .22s ease-out; }
.products-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 32px; background: #f5f6f4f5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.products-dialog-header .eyebrow { margin-bottom: 8px; }
.products-dialog-header h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.035em; }
.products-close { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #e7ebe3; color: var(--ink); font-size: 26px; line-height: 1; }
.products-close:hover { background: #dce3d6; }
.products-dialog-content { padding: 24px 32px 32px; }
.products-dialog-content > p { max-width: 670px; margin-bottom: 24px; color: var(--muted); font-size: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card { min-width: 0; overflow-wrap: anywhere; padding: 20px; border: 1px solid var(--line); border-radius: 16px; min-height: 172px; display: flex; flex-direction: column; background: #fff; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: #bdc9b5; box-shadow: 0 4px 16px #19302205; }
.product-number { font-size: 11px; font-weight: 500; color: #697462; margin-bottom: 14px; letter-spacing: 1px; }
.product-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 4px; }
.product-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product-card button, .product-card a { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; margin-top: auto; text-align: left; border: 0; padding: 8px 0; background: none; color: var(--red); font-size: 14px; font-weight: 500; text-decoration: none; }
.product-card button:after, .product-card a:after { content: '›'; font-size: 21px; margin-left: 8px; line-height: 1; }
.product-card button:hover, .product-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card:last-child { grid-column: 1 / -1; background: #eaf0e3; border-color: #dce5d3; min-height: auto; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; }
.product-card:last-child .product-number { display: none; }
.product-card:last-child h3, .product-card:last-child p { grid-column: 1; }
.product-card:last-child p { margin-bottom: 0; }
.product-card:last-child a { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; white-space: nowrap; }
@keyframes products-enter { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Comfortable reading width and consistently sized form controls. */
.join { display: grid; grid-template-columns: 1fr 1fr; margin-block: var(--section-space); border-radius: 24px; overflow: hidden; background: #233b2c; }
.join-copy { padding: 48px 40px; color: #fff; }
.join h2 { color: #e4ebd5; }
.join-copy > p:not(.eyebrow) { font-size: 16px; color: #d1ddcc; margin-top: 24px; max-width: 430px; }
.join-copy ul { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.join-copy li { font-size: 14px; color: #e1e8d9; display: flex; gap: 12px; }
.join-copy li:before { content: '✓'; color: #cbdba2; }
.join-foot { font-size: 13px; color: #bdcdb4; display: block; margin-top: 32px; }
.join-foot a { text-decoration: underline; text-underline-offset: 4px; color: #f3f5e8; display: inline-block; padding-block: 10px; }
.join-form { margin: 16px; background: #fff; border-radius: 18px; padding: 32px; display: grid; align-content: start; gap: 20px; }
.join-form h3 { font-size: 26px; letter-spacing: -.035em; line-height: 1.2; }
.join-form p { font-size: 14px; color: var(--muted); margin-top: -8px; }
.join-form small { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: -8px; }
.faq { margin-bottom: var(--section-space); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font-size: 16px; font-weight: 500; cursor: pointer; padding: 20px 32px 20px 0; position: relative; list-style: none; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; position: absolute; right: 4px; top: 15px; font-size: 24px; font-weight: 400; color: #677460; }
.faq details[open] > summary:after { content: '−'; }
.faq details p { font-size: 15px; color: var(--muted); padding: 0 28px 20px 0; max-width: 650px; }
footer { background: #f5f6f4; color: var(--ink); padding: 40px 0 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner .brand { width: 112px; }
.footer-inner p, .footer-inner > a:last-child { font-size: 13px; color: var(--muted); }
.footer-inner > a:last-child { text-decoration: underline; text-underline-offset: 5px; padding-block: 12px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.footer-bottom a { padding-block: 10px; }

@media (min-width: 1500px) { .hero-image { object-position: 60% 58%; } }
@media (max-width: 1000px) {
  :root { --gutter: 24px; --section-space: 64px; }
  .hero h1 { font-size: 52px; }
  .hero-image { width: 90%; object-position: 70% center; }
  .hero-shade { background: linear-gradient(90deg, #161b18 2%, #161b18d9 33%, #161b1860 80%); }
  .hero-foot { gap: 24px; }
  .section-heading { gap: 32px; }
  .join-copy { padding: 40px 28px; }
  .join-form { padding: 28px; }
  .faq-grid { gap: 40px; }
}
@media (max-width: 760px) {
  .join { grid-template-columns: 1fr; }
  .join-copy { padding: 36px 32px 28px; }
  .join-copy > p:not(.eyebrow) { max-width: 580px; }
  .join-foot { margin-top: 24px; }
  .join-form { margin: 0 16px 16px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; --section-space: 56px; --header-height: 64px; }
  html { scrollbar-gutter: auto; }
  .header { gap: 16px; }
  .header .brand { width: 100px; }
  .nav-toggle { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #e0e5dc; background: transparent; border-radius: 999px; color: var(--ink); font-size: 13px; }
  .nav-toggle-icon { display: flex; flex-direction: column; gap: 5px; width: 16px; }
  .nav-toggle-icon:before, .nav-toggle-icon:after { content: ''; width: 16px; height: 1px; background: currentColor; transition: transform .2s; }
  .nav-toggle[aria-expanded=true] .nav-toggle-icon:before { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] .nav-toggle-icon:after { transform: translateY(-3px) rotate(-45deg); }
  .header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px var(--gutter) 20px; gap: 4px; background: #fffffff7; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px #14221908; font-size: 16px; }
  .header.nav-open nav { display: flex; flex-direction: column; align-items: stretch; }
  .header nav a, .header .nav-products { min-height: 48px; padding: 12px 16px; border-radius: 12px; }
  .header .nav-cta { margin-top: 4px; border-color: #dce2d7; }
  .hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-content { grid-row: 1; grid-column: 1; padding-top: 44px; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(35px, 8.8vw, 48px); letter-spacing: -.04em; line-height: 1.1; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 16px; }
  .hero-copy { font-size: 15px; max-width: 460px; margin-top: 20px; }
  .hero-identity { font-size: 13px; margin-top: 16px; }
  .hero-actions { gap: 12px; margin-top: 24px; }
  .hero-actions .button { font-size: 13px; min-height: 46px; padding: 11px 18px; }
  .hero-image { position: relative; inset: auto; grid-row: 2; grid-column: 1; width: 100%; height: clamp(260px, 66vw, 360px); object-position: 65% 58%; }
  .hero-shade { position: relative; inset: auto; grid-row: 2; grid-column: 1; background: linear-gradient(180deg, #161b18 0%, #161b1800 28%, #161b1800 72%, #161b1870 100%); }
  .hero-caption { right: var(--gutter); bottom: 76px; font-size: 11px; }
  .hero-foot { grid-row: 3; grid-column: 1; position: static; gap: 16px; flex-wrap: wrap; padding: 16px var(--gutter); font-size: 11px; }
  .hero-foot span:last-child { display: none; }
  .hero-foot span:before { margin-right: 8px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 16px; font-size: 15px; max-width: 480px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 12px; }
  h2 { font-size: 34px; }
  .finder-meta { align-items: start; }
  .products-dialog { width: 100%; max-width: 100%; max-height: 94vh; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .products-dialog-header { padding: 20px; }
  .products-dialog-header h2 { font-size: 28px; }
  .products-dialog-content { padding: 20px 16px max(24px, env(safe-area-inset-bottom)); }
  .products-dialog-content > p { font-size: 14px; margin-bottom: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 16px; min-height: 168px; border-radius: 14px; }
  .product-card h3 { font-size: 17px; }
  .product-number { margin-bottom: 12px; }
  .product-card p { font-size: 13px; }
  .product-card:last-child { display: flex; gap: 4px; }
  .product-card:last-child a { align-self: flex-start; }
  .join { border-radius: 24px; }
  .join-copy { padding: 32px 24px 24px; }
  .join-copy > p:not(.eyebrow) { font-size: 15px; margin-top: 20px; }
  .join-copy ul { margin-block: 24px; }
  .join-foot { margin-top: 20px; }
  .join-form { margin: 0 12px 12px; padding: 24px 20px; gap: 20px; }
  .join-form h3 { font-size: 24px; }
  .faq summary { font-size: 15px; padding-block: 18px; }
  .faq details p { font-size: 14px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 24px; }
  .footer-inner p { flex: 1; min-width: 170px; }
  .footer-bottom { margin-top: 24px; font-size: 11px; }
  .empty-state { padding: 28px 16px; }
  .empty-state h3 { font-size: 22px; }
  .empty-state p { font-size: 14px; }
}
@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; }
  .hero-actions .button { min-height: 46px; }
  .product-card { padding: 14px; }
  .stock-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
  .products-dialog[open] { animation: none; }
}
