/* HM Studio: shared by every page. Fonts are in ../fonts (SIL Open Font License), no outside fonts, no scripts.
   Holds the fonts, the studio's colours and the slim studio bar that sits on top of every page. */
@font-face { font-family: "Russo One"; src: url("../fonts/RussoOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* The logo's own colours: its sky, the shield's gunmetal and the amber letters. */
  --hm-sky: #5CADE2; --hm-sky-dk: #3F8FC6; --hm-sky-lt: #9ED2F2;
  --hm-ink: #1E1A17;
  --hm-gun: #3A4048; --hm-gun-dk: #24282E;
  --hm-amber: #F2B134; --hm-amber-dk: #C98A12;
  --hm-cream: #F7EDD4;
  --hm-white: #FFFDF6;
}

/* ------------------------------------------------------------------------------------------------ studio bar */
.hm-bar {
  background: var(--hm-gun-dk);
  border-bottom: 3px solid var(--hm-ink);
  font: 600 15px/1.2 "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.hm-bar-in {
  max-width: 1080px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hm-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hm-white); text-decoration: none; }
.hm-brand img {
  width: 36px; height: 36px; border-radius: 50%; display: block;
  border: 2px solid var(--hm-white); box-shadow: 0 0 0 2px var(--hm-ink);
  transition: transform .2s ease;
}
.hm-brand:hover img { transform: rotate(-8deg) scale(1.08); }
.hm-brand b { font: 400 18px/1 "Russo One", "Chakra Petch", system-ui, sans-serif; letter-spacing: .5px; }
.hm-brand b i { font-style: normal; color: var(--hm-amber); }
.hm-nav { display: flex; align-items: center; gap: 6px; }
.hm-nav a {
  color: var(--hm-white); text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.hm-nav a:hover { background: rgba(255, 255, 255, .12); }
.hm-nav a[aria-current="page"] { background: var(--hm-amber); color: var(--hm-ink); }
.hm-bar a:focus-visible { outline: 3px solid var(--hm-amber); outline-offset: 2px; }

/* "HM Studio" inside a game page's footer sentence: a link to the studio's home, without the footer links' gap. */
.foot a.hm-link { margin-right: 0; }

@media (prefers-reduced-motion: reduce) {
  .hm-brand img { transition: none; }
}
