.brand-mark {
  display: inline-grid;
  inline-size: 42px;
  block-size: 42px;
  flex: none;
  place-items: center;
  color: #173644;
}

.brand-mark::before {
  content: "";
  width: 80%;
  height: 80%;
  background: currentColor;
  -webkit-mask: url("road-book.webp") center / contain no-repeat;
  mask: url("road-book.webp") center / contain no-repeat;
}

body[data-view=home] .brand-mark {
  color: #f3b544;
  background: #173644;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #ffffff35;
}

.header > .brand > .brand-word {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 850px), (max-height: 600px) and (orientation: landscape) {
  .brand-mark {
    inline-size: 33px;
    block-size: 33px;
  }
}

@media (forced-colors: active) {
  .brand-mark {
    color: LinkText;
  }

  .brand-mark::before {
    forced-color-adjust: none;
    background: LinkText;
  }

  body[data-view=home] .brand-mark {
    background: Canvas;
    outline: 1px solid CanvasText;
    outline-offset: -1px;
  }
}
