/* ==========================================================================
   Imperial Battlecode wordmark, v7
   One face for the whole site: IBM Plex Mono (declared in css/site.css). The lockup is HTML text,
   no SVG: "IMPERIAL BATTLECODE" in caps on one line with a blinking pink underscore.
   The markup is unchanged from v5, so every page keeps working:
     <span class="wordmark wordmark--bar"><span class="wm-top">Imperial</span><span class="wm-main">Battlecode</span></span>
   The text colour comes from the parent element.
   ========================================================================== */

.wordmark {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark .wm-top,
.wordmark .wm-main {
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
}

/* the blinking cursor after BATTLECODE */
.wordmark .wm-main::after {
  content: "_";
  color: var(--accent, #f50db4);
  animation: ib-blink 1.05s steps(1) infinite;
}

@keyframes ib-blink { 50% { opacity: 0; } }

/* --- Size helpers --------------------------------------------------------- */

/* Hero lockup (styleguide): larger, the second word in pink */
.wordmark--hero { font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -0.01em; }
.wordmark--hero .wm-main { color: var(--accent, #f50db4); }

/* Bar lockup: compact, for headers and nav */
.wordmark--bar { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .wordmark .wm-main::after { animation: none; }
}
