/* The supplied transparent PNG is unchanged. These windows show its original
   house/flame mark and original lettering as a compact horizontal lockup. */
.brand {
  --brand-mark-width: 42px;
  --brand-wordmark-width: 168px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 220px;
  min-width: 0;
  height: 48px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-mark,
.brand-logo-wordmark {
  display: block;
  position: relative;
  overflow: hidden;
  flex: none;
  pointer-events: none;
}

.brand-logo-mark {
  width: var(--brand-mark-width);
  height: calc(var(--brand-mark-width) * 1.110215);
}

.brand-logo-wordmark {
  width: var(--brand-wordmark-width);
  height: calc(var(--brand-wordmark-width) * .160312);
}

.brand-logo-mark img,
.brand-logo-wordmark img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  filter: grayscale(1) brightness(0) invert(.92);
  user-select: none;
  -webkit-user-drag: none;
}

/* Mark window: x256, y98, 744 × 826 in the 1254 × 1254 original. */
.brand-logo-mark img {
  width: calc(var(--brand-mark-width) * 1.685484);
  left: calc(var(--brand-mark-width) * -.344086);
  top: calc(var(--brand-mark-width) * -.131720);
}

/* Wordmark window: x52, y954, 1154 × 185. No replacement typography. */
.brand-logo-wordmark img {
  width: calc(var(--brand-wordmark-width) * 1.086655);
  left: calc(var(--brand-wordmark-width) * -.045061);
  top: calc(var(--brand-wordmark-width) * -.826690);
}

.brand:focus-visible {
  outline: 2px solid #d9c49f;
  outline-offset: 6px;
  border-radius: 4px;
}

.footer-logo {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(.8);
  opacity: .8;
}

@media (max-width: 420px) {
  .brand { --brand-wordmark-width: 148px; }
  .footer-logo { width: 92px; height: 92px; }
}

@media (forced-colors: active) {
  .brand-logo-mark img,
  .brand-logo-wordmark img,
  .footer-logo { filter: grayscale(1) brightness(0) invert(1); }
}
