/* ============================================================
   TOP BAR — one system, two states.
   At the top of the homepage it sits transparently over the hero;
   once you scroll it becomes a light, compact ecommerce header.
   ============================================================ */
:root{--bar-h:80px;--bar-h-stuck:68px}

.topbar{
  position:fixed;top:0;left:0;right:0;z-index:50;
}
/* The bar is solid on every page but the homepage, so those pages reserve the
   space it covers. The homepage opens on a full-bleed photograph and the bar
   lies over it, so there is nothing to reserve. */
body{padding-top:var(--bar-h)}
body.home{padding-top:0}

/* ---------- main bar ---------- */
.bar{
  height:var(--bar-h);
  background:var(--milk);
  border-bottom:1px solid var(--line-soft);
  color:var(--ink);
  transition:height .3s var(--ease),background-color .3s var(--ease),
             color .3s var(--ease),border-color .3s var(--ease);
}
.bar__in{height:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.bar__mark{
  font-family:var(--display);font-weight:400;font-size:22px;letter-spacing:.04em;line-height:1;
  justify-self:start;display:inline-flex;align-items:center;gap:3px;color:inherit;min-height:44px;
}
/* the wordmark is artwork, so it takes its colour from the bar it sits in */
.bar__logo{height:21px;width:auto;fill:currentColor;flex:none}

.nav{display:flex;align-items:center;gap:clamp(14px,2vw,34px)}
.nav a{
  font-size:var(--t-label);font-weight:500;letter-spacing:var(--ls-ui);text-transform:uppercase;
  position:relative;padding:8px 0;color:inherit;opacity:.72;transition:opacity .3s var(--ease);
}
.nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;transition:transform .45s var(--slow);
}
.nav a:hover,.nav a.is-active{opacity:1}
.nav a:hover::after{transform:scaleX(1)}
.nav a.is-active::after{transform:scaleX(1);opacity:.4}

.util{display:flex;align-items:center;gap:clamp(12px,1.5vw,22px);justify-self:end}
.util button,.util a{
  /* the icon stays 19px; the box around it is a real touch target */
  display:inline-flex;align-items:center;justify-content:center;gap:6px;color:inherit;opacity:.78;
  min-height:44px;transition:opacity .3s var(--ease);
}
.util button:hover,.util a:hover{opacity:1}
.ico{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.2}
.count{
  font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:.04em;
  min-width:10px;transition:color .3s var(--ease);
}
.count.bump{animation:bump .45s var(--slow)}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4);color:var(--accent)}100%{transform:scale(1)}}

.util .burger{display:none;width:24px;height:44px;position:relative;opacity:.85}
.burger span{position:absolute;left:0;right:0;height:1px;background:currentColor;
  transition:transform .45s var(--slow),opacity .3s}
.burger span:first-child{top:calc(50% - 6px)}
.burger span:last-child{top:calc(50% + 6px)}
.is-open .burger{width:21px}
.is-open .burger span:first-child{transform:translateY(6px) rotate(45deg)}
.is-open .burger span:last-child{transform:translateY(-6px) rotate(-45deg)}

/* ---------- over the hero ----------
   Only on the homepage, only before the first scroll, and only while the menu
   is closed: anywhere else the bar would be white type on cream. The hero
   carries a scrim at its top edge so the wordmark and the menu keep their
   contrast against the photograph. */
body.home .topbar:not(.is-stuck):not(.is-menu) .bar{
  background:transparent;
  border-bottom-color:transparent;
  color:var(--on-dark);
}
body.home .topbar:not(.is-stuck):not(.is-menu) .count{color:var(--on-dark)}
/* the links and controls are dimmed to .72 and .78 because that is what ink on
   cream wants; over a photograph they are the only light thing in the frame
   and need their full strength. Measured against this hero, it is worth about
   a point and a half of contrast. */
body.home .topbar:not(.is-stuck):not(.is-menu) .nav a,
body.home .topbar:not(.is-stuck):not(.is-menu) .util button,
body.home .topbar:not(.is-stuck):not(.is-menu) .util a{opacity:1}

/* ---------- scrolled ---------- */
.topbar.is-stuck .bar{
  height:var(--bar-h-stuck);
  /* solid, not a blurred pane: nothing of the page shows through and nothing
     is cast below it. The hairline is what separates the bar from the content. */
  background:var(--milk);
  border-bottom-color:var(--line-soft);
  color:var(--ink);
}


/* ---------- mobile menu ----------
   A branded panel rather than a list: navigation, one editorial cue, then a
   quieter utility floor. The bar stays on top and acts as its header. */
.mmenu{
  position:fixed;inset:0;z-index:45;background:var(--milk);color:var(--ink);
  clip-path:inset(0 0 100% 0);pointer-events:none;
  transition:clip-path .32s var(--ease);
}
.mmenu.open{clip-path:inset(0 0 0 0);pointer-events:auto}
/* the panel scrolls, never the page behind it, and clears the home indicator */
.mmenu__scroll{
  height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding:calc(var(--bar-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display:flex;flex-direction:column;
}
/* the header the panel sits under gets a hairline while the panel is open */
.topbar.is-menu .bar{border-bottom:1px solid var(--line-soft)}

.mmenu__nav{display:grid}
.mmenu__nav a{
  position:relative;display:grid;grid-template-columns:1fr auto auto;align-items:baseline;
  gap:0 14px;font-family:var(--display);font-weight:300;
  font-size:clamp(1.8rem,7.6vw,2.4rem);line-height:1.12;padding:13px 0;
  border-bottom:1px solid rgba(21,18,14,.055);
  opacity:0;transform:translateY(14px);
  transition:opacity .42s var(--slow),transform .42s var(--slow);
}
.mmenu.open .mmenu__nav a{opacity:1;transform:none}
.mmenu__l{transition:transform .32s var(--slow)}
.mmenu__n{font-family:var(--ui);font-size:var(--t-label);letter-spacing:var(--ls-label);
  color:var(--ink-25);transition:color .25s var(--ease)}
.mmenu__a{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.3;
  align-self:center;opacity:0;margin-left:-15px;
  transition:opacity .3s var(--ease),margin .32s var(--slow)}
/* :active carries the touch feedback that hover cannot */
.mmenu__nav a:hover .mmenu__l,.mmenu__nav a:active .mmenu__l{transform:translateX(5px)}
.mmenu__nav a:hover .mmenu__n,.mmenu__nav a:active .mmenu__n{color:var(--ink-70)}
.mmenu__nav a:hover .mmenu__a,.mmenu__nav a:active .mmenu__a{opacity:.55;margin-left:0}
.mmenu__nav a.is-active .mmenu__l{font-style:italic}
.mmenu__nav a.is-active .mmenu__n{color:var(--ink)}

/* one editorial cue, kept small on purpose */
.mpromo{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;
  margin-top:clamp(22px,5vw,30px);padding:14px;min-height:124px;
  background:var(--ivory);border-radius:var(--radius-md);
}
.mpromo__ph{width:96px;aspect-ratio:1/1;border-radius:var(--radius-sm);overflow:hidden;
  background:var(--stone);flex:none}
.mpromo__ph img{width:100%;height:100%;object-fit:cover}
.mpromo__t{display:grid;gap:5px;min-width:0}
.mpromo__t b{font-size:var(--t-label);letter-spacing:var(--ls-label);text-transform:uppercase;font-weight:500}
.mpromo__t span{font-size:var(--t-meta);color:var(--ink-45);line-height:1.5}
.mpromo__go{display:inline-flex;align-items:center;gap:7px;font-size:var(--t-label);
  letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--ink-45);align-self:end}
.mpromo__go svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:1.3;
  transition:transform .4s var(--slow)}
.mpromo:active .mpromo__go svg{transform:translateX(4px)}

/* the utility floor: quieter, and visibly a different level */
.mmenu__foot{
  margin-top:auto;padding-top:clamp(26px,6vw,36px);display:grid;gap:20px;
}
/* the 1px gap lets the container's own colour through as the rules between the
   cells; the border closes the block on all four sides so the four controls
   read as one framed grid rather than two loose rows */
.mmenu__util{
  display:grid;grid-template-columns:1fr 1fr;gap:1px;
  background:var(--line-soft);border:1px solid var(--line-soft);
}
/* the cells are read as a grid, so the labels keep clear of all four rules —
   the block's own top and bottom, and the hairline down the middle */
.mmenu__util a,.mmenu__util button{
  background:var(--milk);display:flex;align-items:center;gap:9px;
  padding:clamp(28px,7vw,32px) clamp(20px,5.5vw,24px);
  font-size:var(--t-label);letter-spacing:var(--ls-label);text-transform:uppercase;
  color:var(--ink-70);text-align:left;
}
.mmenu__util a:active,.mmenu__util button:active{color:var(--ink)}
.mmenu__util .count{color:var(--ink-25)}
.mmenu__sec{display:flex;gap:clamp(16px,5vw,26px)}
/* the grid closes on a rule, so these clear it by more than the floor's own
   rhythm: the 20px row gap above plus this */
.mmenu__util + .mmenu__sec{margin-top:clamp(9px,2.5vw,16px)}
.mmenu__sec a{font-size:var(--t-meta);color:var(--ink-45)}
.mmenu__sec a:active{color:var(--ink)}
.mmenu__social{display:flex;gap:10px}
.mmenu__social a{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--line-soft);color:var(--ink-45)}
.mmenu__social svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.3}
.mmenu__social a:active{color:var(--ink);border-color:var(--ink-25)}
.mmenu__ship{display:grid;gap:3px;padding-top:4px}
.mmenu__ship b{font-size:var(--t-label);letter-spacing:var(--ls-label);text-transform:uppercase;font-weight:500}
.mmenu__ship span{font-size:var(--t-label);color:var(--ink-45);letter-spacing:.04em}

@media (max-width:1100px){
  :root{--bar-h:70px;--bar-h-stuck:62px}
  .nav{display:none}
  .util .burger{display:block}
  .bar__in{grid-template-columns:1fr auto}
  .bar__mark{font-size:20px}
  .bar__logo{height:18px}
  .util{gap:16px}
  .util .util__hide{display:none}
  .ico{width:20px;height:20px}
}
@media (max-width:420px){
  .util{gap:13px}
}
