.official-logo {
  --logo-ink: #fff;
  --logo-source: url("assets/buildt-wordmark.jpeg");
  --logo-crop-size: 157.906% 327.108%;
  --logo-crop-position: 50.282% 49.337%;
  position: relative;
  display: block;
  width: clamp(7.4rem, 10.9vw, 9.65rem);
  aspect-ratio: 917 / 332;
  border-radius: .25rem;
  background: var(--logo-source) var(--logo-crop-position) / var(--logo-crop-size) no-repeat;
  forced-color-adjust: none;
}

html[data-theme="light"] .official-logo { --logo-ink: #111216; }
.site-footer .official-logo { width: clamp(6.9rem, 8.6vw, 8rem); }

@supports (mask-composite: exclude) {
  .official-logo {
    background: none;
    mask-image: linear-gradient(90deg, transparent, #fff 1.2% 98.8%, transparent), linear-gradient(transparent, #fff 1.8% 98.2%, transparent);
    mask-composite: intersect;
  }

  .official-logo > span {
    position: absolute;
    inset: 0;
    background: var(--logo-source) var(--logo-crop-position) / var(--logo-crop-size) no-repeat;
  }

  /* The inverted luminance masks remove the JPEG backdrop while keeping the supplied artwork. */
  .official-logo-symbol {
    clip-path: inset(0 73% 0 0);
    mask-image: linear-gradient(#fff, #fff), var(--logo-source), var(--logo-source), var(--logo-source), var(--logo-source);
    mask-mode: alpha, luminance, luminance, luminance, luminance;
    mask-size: auto, var(--logo-crop-size), var(--logo-crop-size), var(--logo-crop-size), var(--logo-crop-size);
    mask-position: center, var(--logo-crop-position), var(--logo-crop-position), var(--logo-crop-position), var(--logo-crop-position);
    mask-repeat: no-repeat;
    mask-composite: exclude, intersect, intersect, intersect;
  }

  .official-logo > .official-logo-lettering {
    clip-path: inset(0 0 0 31%);
    background: var(--logo-ink);
    mask-image: linear-gradient(#fff, #fff), var(--logo-source);
    mask-mode: alpha, luminance;
    mask-size: auto, var(--logo-crop-size);
    mask-position: center, var(--logo-crop-position);
    mask-repeat: no-repeat;
    mask-composite: exclude;
  }
}
