/* Product lockup: Kanso / Mitsuke mark + wordmark + yellow square.
   One component for Home (#kanso, #mitsuke) and both detail heroes. Everything is in em of the wordmark,
   so the proportions hold at every size; only --lk-size changes per context.

   Geometry (EB Garamond, the brand serif = fonts/shin-serif.ttf):
   - cap height 0.65em (K 0.655, M 0.656), x-height 0.40em.
   - The SVG tile is 896/1024 of the image (64px transparent margin on each side at 1024).
   - Visible tile = 1.2 x cap height = 0.78em  -> image = 0.78 / 0.875 = 0.891em.
   - Tile centre sits on the cap-height centre (0.325em above the baseline): the mark is read next to the
     capital K / M, so it is centred on the capital, not on the line box (align-items:center put it low/high
     depending on the serif's ascent/descent metrics).
   - Visible gap tile -> capital = 0.24em (image margin 0.056em + margin-right 0.15em + K/M side bearing ~0.03em).
   - Yellow square = 0.1em, sitting on the baseline like a full stop, 0.04em after the last letter's ink.
     Same rule for Kanso (final o) and Mitsuke (final e). */

.product-lockup{
  --lk-size:clamp(44px,4.6vw,60px);
  --lk-cap:.65em;
  --lk-img:.891em;
  --lk-gap:.15em;
  --lk-dot:max(5px,.1em);
  --lk-dot-gap:.04em;
  display:block;
  margin:0;
  padding:0;
  font-family:var(--font-brand,"EB Garamond",Georgia,serif);
  font-size:var(--lk-size);
  font-weight:500;
  font-style:normal;
  line-height:1.1;
  letter-spacing:-.01em;
  text-transform:none;
  white-space:nowrap;
  color:inherit;
}
.product-lockup--hero{--lk-size:clamp(52px,6vw,80px)}

/* Detail heroes: beat page-hero.css (.ph-hero x3 .ph-title, specificity 0,4,0) and shin-brand.css .bn rules. */
.ph-hero.ph-hero.ph-hero .ph-title.product-lockup{
  display:block;
  width:auto;
  max-width:none;
  font-family:var(--font-brand,"EB Garamond",Georgia,serif);
  font-size:var(--lk-size);
  font-weight:500;
  line-height:1.1;
  letter-spacing:-.01em;
  overflow-wrap:normal;
  word-break:normal;
}

.product-lockup .product-lockup__mark,
.ph-hero.ph-hero.ph-hero .ph-title .product-lockup__mark{
  display:inline-block;
  width:var(--lk-img);
  height:var(--lk-img);
  max-width:none;
  margin:0 var(--lk-gap) 0 0;
  /* image bottom edge = cap centre - half the image */
  vertical-align:calc(var(--lk-cap) / 2 - var(--lk-img) / 2);
  border:0;
  flex:none;
}
.product-lockup .product-lockup__name{display:inline;font:inherit;color:inherit;letter-spacing:inherit}
.product-lockup .product-lockup__dot,
.ph-hero.ph-hero.ph-hero .ph-title .product-lockup__dot{
  display:inline-block;
  width:var(--lk-dot);
  height:var(--lk-dot);
  margin:0 0 0 var(--lk-dot-gap);
  padding:0;
  vertical-align:baseline;
  border:0;
  border-radius:1px;
  background:var(--ben2go-yellow,#F5C928);
}

/* Home: the lockup sits in .ip-title-row next to the Mitsuke status badge. Centre the badge on the cap line, not the line box. */
.ip-block .ip-title-row{align-items:center;column-gap:clamp(14px,1.6vw,20px)}
.ip-block .ip-title-row .sr-wip-badge{position:relative;top:calc(var(--lk-size, 60px) * -.03)}
#kanso .product-lockup{color:var(--hu-ink,#191a17)}
#mitsuke .product-lockup{color:var(--hu-on-deep,#f6f3e6)}

/* Footer links: same centring rule (mark centred on the cap height of the serif link text). */
.site-footer-nav a:is([href="kanso.html"],[href="mitsuke.html"]){display:inline-block;line-height:1.6}
.site-footer-nav a:is([href="kanso.html"],[href="mitsuke.html"])::before{
  display:inline-block;
  width:24px;height:24px;
  margin-right:8px;
  vertical-align:calc(.325em - 12px);
}

@media (max-width:640px){
  .product-lockup{--lk-size:44px}
  .product-lockup--hero{--lk-size:52px}
  .site-footer-nav a:is([href="kanso.html"],[href="mitsuke.html"])::before{width:24px;height:24px;flex-basis:auto}
}
