/* CTRL + Think identity kit v1 (20 Nov 2026). One shared place for brand tokens and the logo lockup.
   Loaded last on every CTRL + Think page. The files in assets/brand/ are unmodified copies of the kit's
   transparent PNG lockups (01-logos/horizontal-primary.png and horizontal-inverse.png). The kit's SVG
   versions draw the symbol through filter masks that WebKit renders soft, so the PNG fallback is used. */
:root {
  /* Kit colors are already the site tokens: cream --paper, ink --ink, forest --green, deep forest --green-deep,
     terracotta --orange (accents only), rust --orange-text (terracotta text on cream, 5.3:1). */
  --logo-art: 28px; /* height of the visible artwork in the horizontal lockup */
}

/* The lockup PNG is 1120 x 280 with transparent clear space around the artwork (18.9% top, 19.6% bottom,
   3.66% of the width on each side). Negative margins trim that space from layout so the mark lines up with
   the page grid and the header keeps its height. The artwork itself is never scaled unevenly or cropped. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  min-height: 44px;
  line-height: 0;
  text-decoration: none;
}
.brand-lockup img {
  --logo-box: calc(var(--logo-art) / .614);
  display: block;
  width: auto;
  max-width: none;
  height: var(--logo-box);
  aspect-ratio: 4 / 1; /* keeps the lockup's box if the file ever fails to load (WebKit otherwise collapses it) */
  font: 700 15px/1.3 var(--sans); /* readable alt text in that same failure case */
  margin: calc(var(--logo-box) * -.189) calc(var(--logo-box) * -.1464) calc(var(--logo-box) * -.196);
}
.site-footer .brand-lockup { --logo-art: 26px; }
.site-header .brand-lockup { min-height: 44px; }

/* On phones the lockup scales with the viewport so the logo, the fit call button and Menu share one row
   from 320 px up (the previous wordmark wrapped Menu onto a second row below about 380 px). */
@media (max-width: 640px) {
  :root { --logo-art: min(23px, 5.3vw); }
}
@media (max-width: 370px) {
  :root { --logo-art: 5vw; }
}
