/*
  CHAINSOFT logo: lockup 19 «Циркуль» (brand/sketches/19-loew-next, the user's pick, docs/decisions.md D20).
  The 14 «Плашка» tile on the left and the hand-drawn CHAINSOFT wordmark (after Loew Next Medium, outlines,
  no font) on the right, 64 units apart; viewBox 1157.57 x 200, so width = height x 5.7879.

  The markup is one constant, LOGO_SVG in tools/build.py, inlined in the nav and footer of every page so its
  colours follow the ground through the rules below. Stand-alone files for other uses: /assets/brand/
  (logo-*, wordmark-*, symbol*, favicon.svg). The links keep aria-label "CHAINSOFT, home".

  Grounds (the three variants of the logo files):
    dark      default: electric tile, white word (void, ink, the glass nav and footer card)
    light     .brand--light: ink word (paper)
    electric  .brand--electric: ink-800 tile, white word (an electric card)
*/

.brand {
  --logo-h: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  line-height: 0;
}

.brand__logo {
  display: block;
  flex: none;
  width: calc(var(--logo-h) * 5.7879);
  height: var(--logo-h);
}

.logo__tile {
  fill: var(--logo-tile, var(--electric));
}

.logo__c {
  fill: var(--logo-c, var(--white));
}

.logo__ledger {
  fill: var(--logo-ledger, var(--lime));
}

.logo__word {
  fill: currentColor;
}

.brand--light {
  color: var(--ink-900);
}

.brand--electric {
  --logo-tile: var(--ink-800);
}

@media (max-width: 599px) {
  .brand {
    --logo-h: 22px;
  }
}
