/* The Epicurean Trader redesign. Palette from theepicureantrader.com: navy #00253D, mid navy #0A3654,
   slate #545759, mist #D9DBDD, fog #F1F2F3, gold #C9A96E, brightened to #E2A93B. DM Serif Display for headings, DM Sans for text, DM Mono for labels. */


:root {
  --navy: #00253d; --navy-2: #0a3654; --navy-3: #133f5e;
  --paper: #ffffff; --fog: #f1f2f3; --mist: #d9dbdd; --slate: #545759; --gold: #e2a93b; --gold-2: #c48f22;
  --ink: #00253d; --ink-2: #545759;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --r: 3px;
  --gut: clamp(16px, 3vw, 40px);
  --max: 1440px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r); }
::selection { background: var(--gold); color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }

/* ---------- type ---------- */
.display, h1, h2, .h2 { text-wrap: balance; font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 0.98; }
.h-xl { font-size: clamp(2.73rem, 7.33vw, 7.41rem); line-height: 0.88; letter-spacing: -0.015em; }
.h-lg { font-size: clamp(2.15rem, 4.68vw, 4.68rem); }
.h-md { font-size: clamp(1.76rem, 2.96vw, 2.93rem); line-height: 1; }
.h-sm { font-family: var(--serif);  font-size: clamp(1.36rem, 1.72vw, 1.76rem); line-height: 1.05; font-weight: 400; }
.lede { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.55; max-width: 34em; }
.label { font: 400 0.75rem/1.3 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.3em 0.06em 0.22em; margin: -0.3em -0.06em -0.22em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.005em; white-space: nowrap; background: var(--navy); color: #fff; border: 1px solid transparent; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 18px; height: 18px; transition: translate 240ms var(--ease); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--paper { background: #fff; color: var(--navy); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .btn--navy:hover { background: var(--navy-3); }
  .btn--gold:hover { background: #ecb94f; }
  .btn--paper:hover { background: var(--fog); }
  .btn--line:hover { background: var(--navy); color: #fff; }
  .btn--line-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
  .btn:hover .ic { translate: 3px 0; }
}
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--fog); } }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- investor bar ---------- */
.invest-bar { background: var(--navy-2); color: rgba(255, 255, 255, 0.86); font: 400 0.8125rem/1.4 var(--mono); text-align: center; padding: 9px var(--gut); position: relative; z-index: 61; }
.invest-bar a { color: var(--gold); display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav + megamenu ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--mist); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--paper); }
.nav__bar { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: var(--nav-h); transition: height 300ms var(--ease); }
.nav.is-scrolled .nav__bar { height: 76px; }
.nav__logo img { height: 80px; width: auto; transition: height 300ms var(--ease); }
.nav.is-scrolled .nav__logo img { height: 62px; }
.nav__main { display: flex; justify-content: center; align-items: center; gap: 2px; }
.nav__tab, .nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; font-size: 0.9375rem; font-weight: 500; border-radius: var(--r); }
.nav__tab .ic { transition: rotate 260ms var(--ease); }
.nav__tab[aria-expanded="true"] .ic { rotate: 180deg; }
.nav__tab::after, .nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.nav__tab[aria-expanded="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__tab:hover::after, .nav__link:hover::after { transform: scaleX(1); } }
.nav__actions { display: flex; align-items: center; gap: 4px; }
.nav__cafe { min-height: 40px; padding: 0 16px; margin-right: 8px; font-size: 0.875rem; }
.nav__burger { display: none; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy); font: 500 0.6875rem/18px var(--mono); text-align: center; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--mist); clip-path: inset(0 0 100% 0); transition: clip-path 380ms var(--ease-io); z-index: 2; }
.mega.is-open { clip-path: inset(0 0 0 0); }
.mega__inner { display: grid; grid-template-columns: 1fr 2.2fr 1.15fr; gap: clamp(24px, 3vw, 56px); padding-block: 40px 48px; }
.mega__title { font: 400 clamp(2.34rem, 3.9vw, 3.71rem)/0.9 var(--serif); letter-spacing: -0.015em; }
.mega__count { font: 400 0.8125rem/1 var(--mono); color: var(--ink-2); margin: 14px 0 28px; }
.mega__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 24px; align-content: start; }
.mega__links a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 8px 10px 8px 6px; border-radius: var(--r); transition: background-color 180ms ease; }
.mega__links .badge + span { font-size: 1rem; font-weight: 500; }
.mega__n { font: 400 0.75rem/1 var(--mono); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .mega__links a:hover { background: var(--fog); } }
.mega__feature { display: grid; gap: 6px; align-content: start; }
.mega__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--fog); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .mega__feature:hover .mega__img img { scale: 1.04; } }
.mega__ft { display: flex; align-items: center; gap: 6px; margin-top: 10px; font: 400 1.75rem/1 var(--serif); letter-spacing: -0.015em; }
.mega__fs { font-size: 0.9375rem; color: var(--ink-2); }
.mega .mega__links li, .mega .mega__head > *, .mega .mega__feature { opacity: 0; translate: 0 10px; transition: opacity 300ms ease, translate 400ms var(--ease); }
.mega.is-open .mega__links li, .mega.is-open .mega__head > *, .mega.is-open .mega__feature { opacity: 1; translate: 0 0; }
.mega.is-open .mega__links li:nth-child(n) { transition-delay: calc(var(--i, 0) * 22ms + 60ms); }
.mega-scrim { position: fixed; inset: 0; top: 0; z-index: -1; background: rgba(0, 37, 61, 0.35); opacity: 0; transition: opacity 300ms ease; }
.mega-scrim.is-on { opacity: 1; }

.mmenu { position: fixed; inset: 0; top: 0; z-index: 55; background: var(--paper); overflow-y: auto; padding: calc(var(--nav-h) + 52px) var(--gut) 40px; }
.mmenu__dept { border-bottom: 1px solid var(--mist); }
.mmenu__dept summary { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; list-style: none; cursor: pointer; font: 400 2.5rem/1 var(--serif); letter-spacing: -0.015em; }
.mmenu__dept summary::-webkit-details-marker { display: none; }
.mmenu__dept summary span { font: 400 0.75rem/1 var(--mono); color: var(--ink-2); }
.mmenu__plus { margin-left: auto; align-self: center; transition: rotate 260ms var(--ease); }
.mmenu__dept[open] .mmenu__plus { rotate: 45deg; }
.mmenu__dept ul { padding-bottom: 16px; }
.mmenu__dept li a { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 1.0625rem; }
.mmenu__dept li a > span:not(.badge) { margin-left: auto; font: 400 0.75rem/1 var(--mono); color: var(--ink-2); }
.mmenu__link { display: block; padding: 14px 0; font: 400 2.5rem/1 var(--serif); letter-spacing: -0.015em; border-bottom: 1px solid var(--mist); }
.mmenu__foot { display: flex; gap: 24px; margin-top: 28px; }
.mmenu__foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
body.menu-open { overflow: hidden; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(88px, 12vw, 180px); position: relative; }
.sec--fog { background: var(--fog); }
.sec--navy { background: var(--navy); color: #fff; }
.sec--navy .muted { color: rgba(255, 255, 255, 0.7); }
.sec__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head .lede { grid-column: 1; }
.sec__head > .btn, .sec__head > .link, .sec__head > .rail-ctrl { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; min-height: calc(100svh - var(--nav-h) - 36px); background: var(--navy); color: #fff; overflow: hidden; }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(48px, 7vw, 112px) var(--gut) clamp(32px, 4vw, 56px) max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
.hero__title { font-size: clamp(2.54rem, 4.68vw, 5.07rem); line-height: 0.96; letter-spacing: -0.015em; }
.hero__sub { margin-top: 28px; font-size: clamp(1.0625rem, 1.3vw, 1.3125rem); line-height: 1.5; color: rgba(255, 255, 255, 0.82); max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero__facts > div { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r); min-width: 0; }
.hero__facts dt { font: 400 0.75rem/1.3 var(--mono); color: var(--gold); text-transform: uppercase; letter-spacing: 0.02em; }
.hero__facts dd { font: 400 clamp(1.0625rem, 1.5vw, 1.5rem)/1.1 var(--serif); letter-spacing: -0.01em; margin-top: 8px; white-space: nowrap; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 50% 30%; }
.hero__badge { position: absolute; z-index: 3; right: clamp(24px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); width: 152px; height: 152px; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--navy); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); }
.hero__badge text { font: 500 13.5px var(--mono); letter-spacing: 0.06em; fill: #fff; text-transform: uppercase; }
.hero__badge .disc { position: absolute; width: 92px; height: 92px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.hero__badge .disc img { width: 62px; }

/* ---------- marquee ---------- */
.marquee { background: var(--navy-2); color: #fff; overflow: hidden; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.marquee__track { display: flex; width: max-content; }
.marquee__set { display: flex; align-items: center; gap: 36px; padding-right: 36px; font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1 var(--serif); letter-spacing: -0.015em; letter-spacing: -0.015em; white-space: nowrap; }

/* ---------- aisles bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(260px, auto); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r); overflow: hidden; background: var(--fog); isolation: isolate; min-height: 260px; }
.tile--bar { grid-column: span 7; grid-row: span 2; color: #fff; background: var(--navy); }
.tile--pantry { grid-column: span 5; grid-row: span 2; color: #fff; background: var(--navy-2); }
.tile--home { grid-column: span 4; }
.tile--gifts { grid-column: span 4; }
.tile--sf { grid-column: span 4; background: var(--gold); }
.tile__img { position: absolute; inset: 0; z-index: -1; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease); }
.tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 37, 61, 0.15) 30%, rgba(0, 37, 61, 0.85) 100%); }
.tile__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.badge { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); background: var(--paper); color: var(--navy); border: 1px solid currentColor; }
.badge .ic { width: 20px; height: 20px; }
.badge--xs { width: 26px; height: 26px; } .badge--xs .ic { width: 14px; height: 14px; }
.badge--sm { width: 32px; height: 32px; } .badge--sm .ic { width: 16px; height: 16px; }
.badge--lg { width: 56px; height: 56px; } .badge--lg .ic { width: 24px; height: 24px; }
.badge--fill { width: 100%; height: auto; aspect-ratio: 1; } .badge--fill .ic { width: 42%; height: 42%; }
/* on navy: light outline tile */
.sec--navy .badge, .marquee .badge, .tier--dark .badge, .foot .badge { background: transparent; color: rgba(255, 255, 255, 0.85); }
.tier--mid .badge { background: var(--paper); color: var(--navy); }
.tile--bar .badge, .tile--pantry .badge { background: rgba(0, 37, 61, 0.35); color: #fff; }
.tile--sf .badge { background: rgba(255, 255, 255, 0.35); }
.tile__n { font: 400 0.8125rem/1 var(--mono); padding: 8px 10px; border-radius: var(--r); background: rgba(255, 255, 255, 0.92); color: var(--navy); }
.tile__name { font: 400 clamp(1.95rem, 3.59vw, 3.71rem)/0.9 var(--serif); letter-spacing: -0.015em; }
.tile:not(.tile--bar):not(.tile--pantry) .tile__name { font-size: clamp(1.76rem, 2.34vw, 2.34rem); }
.tile__sub { margin-top: 10px; font-size: 0.9375rem; opacity: 0.86; max-width: 26em; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__img img { scale: 1.05; }
  .tile { transition: translate 400ms var(--ease); }
  .tile:hover { translate: 0 -4px; }
}

/* ---------- makers tabs ---------- */
.makers__tabs { position: relative; display: flex; gap: 4px; padding: 4px; background: var(--fog); border-radius: calc(var(--r) + 2px); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.makers__tab { position: relative; z-index: 1; min-height: 44px; padding: 0 18px; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; border-radius: var(--r); transition: color 250ms ease; }
.makers__tab[aria-selected="true"] { color: #fff; }
.makers__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--navy); border-radius: var(--r); transition: translate 480ms var(--ease), width 480ms var(--ease); }
.maker { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 88px); margin-top: 40px; }
.maker[hidden] { display: none; }
.maker__meta { display: flex; gap: 20px; flex-wrap: wrap; font: 400 0.8125rem/1 var(--mono); text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
.maker__meta span { display: inline-flex; align-items: center; gap: 6px; }
.maker__name { font: 400 clamp(2.34rem, 4.21vw, 4.29rem)/0.9 var(--serif); letter-spacing: -0.015em; }
.maker__line { margin-top: 18px; font-size: 1.1875rem; line-height: 1.45; }
.maker__story { margin-top: 18px; color: var(--ink-2); }
.maker__links { display: flex; flex-wrap: nowrap; gap: 12px; margin-top: 28px; }
.maker > * { min-width: 0; }
.maker__links .btn { flex: none; }
.maker__links .maker__shop { flex: 0 1 auto; min-width: 0; }
.maker__shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maker__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* makers on navy: one bordered tab bar, one bordered panel, white product cards */
.makers .makers__tabs { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.16); }
.makers .makers__tab { color: rgba(255, 255, 255, 0.78); }
.makers .makers__tab[aria-selected="true"] { color: var(--navy); }
.makers .makers__thumb { background: #fff; }
@media (hover: hover) and (pointer: fine) { .makers .makers__tab[aria-selected="false"]:hover { color: #fff; } }
.makers .maker { margin-top: 12px; padding: clamp(24px, 3vw, 40px); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r); align-items: start; }
.makers .maker__meta, .makers .maker__story { color: rgba(255, 255, 255, 0.72); }
.makers .maker__story { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.makers .card { background: #fff; color: var(--navy); border-radius: var(--r); padding: 8px 8px 14px; }
.makers .card__body { padding: 0 6px; }

/* ---------- product card ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--fog); border-radius: var(--r); overflow: hidden; }
.card__media img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: scale 600ms var(--ease); }
.card__maker { font: 400 0.75rem/1.2 var(--mono); text-transform: uppercase; color: var(--ink-2); letter-spacing: 0.02em; }
.card__name { font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card__price { font: 400 1.0625rem/1 var(--mono); }
.card__size { font: 400 0.75rem/1 var(--mono); color: var(--ink-2); }
.card__add { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r); background: var(--navy); color: #fff; font-size: 0.875rem; font-weight: 500; transition: background-color 200ms ease, transform 160ms var(--ease); }
.card__add:active { transform: scale(0.96); }
.card__add .ic { width: 16px; height: 16px; }
.card__add.is-added { background: var(--gold); color: var(--navy); }
.card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { scale: 1.05; }
  .card__add:hover { background: var(--navy-3); }
}

/* ---------- vetted: copy lights as it is read ---------- */
.vetted { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.vetted__copy .read { margin-top: 28px; font-size: clamp(1.375rem, 1.9vw, 1.875rem); line-height: 1.2; }
.vetted__photo { aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--navy); }
.vetted__photo img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.read { font: 400 clamp(1.56rem, 2.81vw, 2.81rem)/1.06 var(--serif); letter-spacing: -0.015em; letter-spacing: -0.005em; }
.read .rw { opacity: 0.18; transition: opacity 260ms ease; }
.read__src { margin-top: 28px; }

/* ---------- aisle list with cursor image ---------- */
.aisles { border-top: 1px solid var(--mist); }
.aisles li { border-bottom: 1px solid var(--mist); }
.aisles a { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: clamp(14px, 2vw, 32px); padding: 16px 4px; transition: padding 400ms var(--ease), color 200ms ease; }
.aisles .an { font: 400 clamp(1.56rem, 2.81vw, 2.73rem)/1 var(--serif); letter-spacing: -0.015em; }
.aisles .ac { font: 400 0.8125rem/1 var(--mono); color: var(--ink-2); }
.aisles .ag { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--fog); transition: background-color 250ms ease, color 250ms ease; }
.aisles .thumbs { display: none; }
@media (hover: hover) and (pointer: fine) {
  .aisles a:hover { padding-left: 20px; }
  .aisles a:hover .ag { background: var(--navy); color: #fff; }
}
.cursor-img { position: fixed; left: 0; top: 0; z-index: 70; width: 240px; aspect-ratio: 4 / 5; border-radius: var(--r); background: #fff; overflow: hidden; pointer-events: none; opacity: 0; scale: 0.9; transition: opacity 250ms ease, scale 350ms var(--ease); box-shadow: 0 30px 60px -20px rgba(0, 37, 61, 0.35); }
.cursor-img.is-on { opacity: 1; scale: 1; }
.cursor-img img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }

/* ---------- rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 21vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.is-drag { scroll-snap-type: none; cursor: grabbing; }
.rail.is-drag a { pointer-events: none; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--navy); border-radius: var(--r); transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .rail-ctrl button:hover { background: var(--navy); color: #fff; } }
.rail-wrap { padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }

/* ---------- provisions club ---------- */
.club { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r); background: var(--navy-2); color: #fff; }
.tier--mid { background: var(--paper); color: var(--navy); }
.tier__name { font: 400 clamp(1.76rem, 2.65vw, 2.54rem)/0.95 var(--serif); letter-spacing: -0.015em; }
.tier__price { font: 400 clamp(2.34rem, 3.9vw, 3.51rem)/1 var(--serif); letter-spacing: -0.015em; }
.tier__price small { font: 400 0.8125rem/1 var(--mono); margin-left: 6px; opacity: 0.75; }
.tier__dots { display: flex; flex-wrap: wrap; gap: 5px; min-height: 62px; align-content: start; }
.tier__items { font: 400 0.8125rem/1.3 var(--mono); text-transform: uppercase; opacity: 0.8; }
.tier .btn { margin-top: auto; }
.club__note { margin-top: 24px; }

/* ---------- corporate ---------- */
.corp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; align-items: start; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.steps img { width: 56px; height: 56px; filter: brightness(0) invert(1); opacity: 0.9; }
.steps h3 { font: 400 1.875rem/1 var(--serif); letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p { color: rgba(255, 255, 255, 0.75); font-size: 0.9875rem; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: center; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.logos li { font: 500 clamp(1.125rem, 1.6vw, 1.375rem)/1 var(--sans); letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); text-align: center; padding: 18px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r); }
.corp__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; }
.corp__media img { width: 100%; height: 110%; object-fit: cover; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 72px); }
.visit__media { position: relative; border-radius: var(--r); overflow: hidden; min-height: 520px; }
.visit__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.shops { display: grid; gap: 0; border-top: 1px solid var(--mist); }
.shop { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 22px 0; border-bottom: 1px solid var(--mist); }
.shop__name { font: 400 2.125rem/1 var(--serif); letter-spacing: -0.015em; }
.shop__kind { font: 400 0.75rem/1 var(--mono); text-transform: uppercase; color: var(--ink-2); align-self: center; }
.shop__addr, .shop__hours { color: var(--ink-2); font-size: 0.9375rem; }
.shop__row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; }
.shop__row a { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 0.75rem/1 var(--mono); text-transform: uppercase; padding: 7px 10px; border-radius: var(--r); background: var(--fog); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.status.is-open { background: #e3efe6; color: #1f5a33; }
.status.is-open::before { background: #2f8a4e; box-shadow: 0 0 0 0 rgba(47, 138, 78, 0.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(47, 138, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 138, 78, 0); } }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- invest ---------- */
.invest { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: end; }
.invest__fine { margin-top: 28px; font: 400 0.75rem/1.55 var(--mono); color: rgba(255, 255, 255, 0.6); max-width: 60em; }
.invest__card { padding: 32px; border-radius: var(--r); background: var(--gold); color: var(--navy); display: grid; gap: 14px; }
.invest__card dt { font: 400 0.75rem/1 var(--mono); text-transform: uppercase; }
.invest__card dd { font: 400 clamp(1.56rem, 2.34vw, 2.15rem)/1 var(--serif); letter-spacing: -0.015em; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #fff; padding-top: clamp(72px, 9vw, 128px); overflow: hidden; }
.foot__news { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 56px; align-items: end; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.foot__title { font-size: clamp(2.34rem, 4.68vw, 4.29rem); grid-row: span 2; }
.foot__news p { color: rgba(255, 255, 255, 0.75); }
.news { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font: inherit; }
.news input::placeholder { color: rgba(255, 255, 255, 0.55); }
.demo-ok { color: var(--gold); }
.foot__cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; padding-block: 56px; }
.foot__h { font: 400 0.75rem/1 var(--mono); text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot__cols li { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.8); padding: 4px 0; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .foot__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; } }
.foot__logo { display: flex; justify-content: center; padding: 56px var(--gut) 56px; }
.foot__logo img { width: min(56vw, 620px); height: auto; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 28px; font: 400 0.75rem/1.4 var(--mono); color: rgba(255, 255, 255, 0.6); }
.foot__social { display: flex; gap: 16px; }

/* ---------- cart drawer ---------- */
.cdrawer { position: fixed; inset: 0; z-index: 80; }
.cdrawer__scrim { position: absolute; inset: 0; background: rgba(0, 37, 61, 0.5); opacity: 0; transition: opacity 400ms ease; }
.cdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--paper); transform: translateX(100%); transition: transform 450ms cubic-bezier(0.32, 0.72, 0, 1); }
.cdrawer.is-open .cdrawer__scrim { opacity: 1; }
.cdrawer.is-open .cdrawer__panel { transform: none; }
.cdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--mist); }
.cdrawer__head h2 { font-size: 2.25rem; }
.cdrawer__head h2 span { font: 400 0.875rem var(--mono); color: var(--ink-2); }
.ship { padding: 14px 24px; background: var(--fog); font-size: 0.875rem; display: flex; align-items: center; gap: 10px; }
.clines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cline { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--mist); }
.cline__img { aspect-ratio: 1; background: var(--fog); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; }
.cline__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.cline__name { font-weight: 500; line-height: 1.3; }
.cline__var { font: 400 0.75rem/1.4 var(--mono); color: var(--ink-2); margin-top: 4px; }
.cline__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cline__price { font-family: var(--mono); }
.cline__rm { font-size: 0.8125rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; min-height: 32px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--mist); border-radius: var(--r); }
.qty__btn { width: 40px; height: 40px; display: grid; place-items: center; }
.qty__btn .ic { width: 16px; height: 16px; }
.qty__n { min-width: 28px; text-align: center; font-family: var(--mono); }
.qty--sm .qty__btn { width: 34px; height: 34px; }
.cempty { padding: 40px 24px; display: grid; gap: 18px; justify-items: start; }
.cdrawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--mist); display: grid; gap: 10px; }
.cdrawer__sub { display: flex; justify-content: space-between; font-size: 1.0625rem; font-weight: 500; }
.cdrawer__note { color: var(--ink-2); font-size: 0.8125rem; }
.cdrawer__checkout { width: 100%; }
.cdrawer__view { justify-self: center; font-size: 0.875rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { display: none; }
  .nav__cafe { display: none; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 76px; }
  .nav__main { display: none; }
  .nav__burger { display: inline-grid; }
  .nav__bar { grid-template-columns: 1fr auto; }
  .nav__logo img { height: 60px; }
  .nav.is-scrolled .nav__logo img { height: 52px; }
  .nav.is-scrolled .nav__bar { height: 68px; }
  .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; height: 58svh; min-height: 340px; }
  .hero__copy { padding: 8px var(--gut) 40px; }
  .hero__badge { right: var(--gut); top: calc(58svh - 144px); bottom: auto; width: 128px; height: 128px; }
  .hero__badge .disc { width: 80px; height: 80px; }
  .hero__badge .disc img { width: 52px; }
  .hero__facts { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .hero__facts dd { font-size: 1.375rem; }
  .hero__facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0; }
  .hero__facts dd { margin-top: 0; }
  .sec__head { grid-template-columns: 1fr; }
  .sec__head > .btn, .sec__head > .link, .sec__head > .rail-ctrl { grid-column: 1; grid-row: auto; justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(220px, auto); }
  .tile--bar, .tile--pantry { grid-column: span 2; grid-row: span 1; min-height: 360px; }
  .tile--home, .tile--gifts { grid-column: span 1; }
  .tile--sf { grid-column: span 2; }
  .maker { grid-template-columns: 1fr; }
  .vetted { grid-template-columns: 1fr; }
  .vetted__photo { aspect-ratio: 1; }
  .club { grid-template-columns: 1fr; }
  .corp, .visit, .invest { grid-template-columns: 1fr; }

  .visit__media { min-height: 320px; }
  .foot__news { grid-template-columns: 1fr; }
  .foot__title { grid-row: auto; }
}
@media (max-width: 640px) {
  .maker__products { grid-template-columns: repeat(3, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
  .maker__products > * { scroll-snap-align: start; }
  .tile--home, .tile--gifts { grid-column: span 2; }
  .aisles a { grid-template-columns: 44px 1fr auto; }
  .aisles .ag { display: none; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: 68vw; }
  .news { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .read .rw { opacity: 1; }
}

/* paper grain on page backgrounds only: never over photos, products or type */
body, .nav::before, .mega, .mmenu, .invest-bar, .hero, .marquee, .sec--fog, .sec--navy, .foot, .chero, .tools {
  background-image: url("/img/grain.png?v=2") !important; background-size: 240px !important; background-repeat: repeat !important;
}

