@font-face {
  font-family: "StackRounds Anton";
  src: url("/stackrounds-anton.woff2") format("woff2");
  font-display: swap;
}

.stackrounds-brand {
  display: inline-grid;
  grid-template-columns: 1.39em 1em 1.66em;
  align-items: center;
  gap: 0.065em;
  flex: none;
  font: 400 2rem/1 "StackRounds Anton", Impact, sans-serif;
  white-space: nowrap;
}

.stackrounds-brand__word--left {
  justify-self: end;
  transform: perspective(2.5em) rotateY(-29deg) scale(0.95, 1.15);
  transform-origin: right center;
}

.stackrounds-brand__word--right {
  justify-self: start;
  transform: perspective(2.5em) rotateY(29deg) scale(0.95, 1.15);
  transform-origin: left center;
}

.stackrounds-brand__badge {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  border-radius: 0.09em;
  background: #fffb00;
}

.stackrounds-brand__badge img {
  display: block;
  width: 85%;
  height: auto;
  object-fit: contain;
}

.stackrounds-brand--large {
  font-size: 2.75rem;
}

.stackrounds-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-block: 1rem;
  color: var(--foreground-muted, #a5adc0);
  font-size: 0.875rem;
}

.stackrounds-legal-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 35rem) {
  .stackrounds-brand:not(.stackrounds-brand--large) {
    font-size: 1.625rem;
  }
}

/* Content appended to a captured <main> (see lib/captured-inject.ts) shows right after its first child. */
main:has(> .sr-after-header) > :first-child { order: -2; }
main > .sr-after-header { order: -1; }
