/* The studio homepage. The frame is deliberately neutral – dark grey, one plain typeface – because the
   studio has a signature (the avatar over the name "heinzerlabs"), not a look: in every game that signature
   wears the game's own lettering and colours. So each game card carries its own theme (.game--<id> below,
   the custom properties --g-*), and a new game adds one such block. Belt & Box's theme is its steel,
   safety yellow, hazard tape and stencil lettering, the same tokens as beltandbox.com. */
@font-face {
  font-family: 'Big Shoulders Stencil';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/big-shoulders-stencil-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #17181b;
  --panel: #212328;
  --line: #363940;
  --text: #ecece9;
  --muted: #a4a8af;
  --paper: #f2efe8;
  --sans: 'Barlow Semi Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --radius: 12px;
  --max: 1080px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.125rem/1.55 var(--sans);
}
a {
  color: var(--text);
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--text);
}
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}
h3 {
  font-size: 1.75rem;
}
p {
  margin: 0 0 1em;
}
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -100px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1;
}
.skip:focus {
  inset-block-start: 0;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 16px;
}
.top__logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.top__logo span,
.hero__name span,
.foot__logo span {
  color: var(--muted);
  font-weight: 500;
}
.top__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.top__nav > a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.top__nav > a:hover {
  color: var(--text);
}
.top__langs {
  display: flex;
  gap: 4px;
}
.top__langs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
}
.top__langs a[aria-current] {
  color: var(--bg);
  background: var(--text);
}

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 32px 56px;
}
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.25fr 1fr;
  }
}
.hero__name {
  font-size: clamp(3.5rem, 15vw, 7rem);
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__tagline {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero__lead {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
}
.badge {
  justify-self: center;
  inline-size: min(70vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--paper);
  box-shadow:
    0 0 0 8px var(--bg),
    0 0 0 12px var(--line);
}
.badge img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.block {
  padding-block: 48px;
}
.block__intro {
  color: var(--muted);
  max-width: 60ch;
  margin-block-end: 28px;
}

/* A game card wears its game's theme. The defaults below are the neutral card; a .game--<id> block
   overrides them, so the frame never needs to know what a game looks like. */
.game {
  --g-bg: var(--panel);
  --g-text: var(--text);
  --g-muted: var(--muted);
  --g-accent: var(--text);
  --g-accent-dark: #8c8e92;
  --g-ink: var(--bg);
  --g-display: var(--sans);
  --g-ui: var(--sans);
  --g-strip: var(--g-accent);
  background: var(--g-bg);
  color: var(--g-text);
  font-family: var(--g-ui);
  border-radius: var(--radius);
  overflow: hidden;
}
.game a {
  color: var(--g-accent);
  text-decoration-color: currentColor;
}
.game h3 {
  font-family: var(--g-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.game__strip {
  block-size: 6px;
  background: var(--g-strip);
}
.game__inner {
  display: grid;
}
@media (min-width: 760px) {
  .game__inner {
    grid-template-columns: 1fr 1fr;
  }
}
.game__pic {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 604 / 500;
  object-fit: cover;
  background: var(--g-ink);
}
.game__body {
  padding: 24px;
  align-self: center;
}
.chip {
  display: inline-block;
  font: 800 0.95rem var(--g-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--g-accent);
  color: var(--g-ink);
  padding: 3px 10px;
  border-radius: 6px;
  margin: 0 0 12px;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin: 0;
}
.buttons a:not(.button) {
  font-weight: 700;
}
.button {
  display: inline-block;
  background: var(--g-accent);
  color: var(--g-ink) !important;
  font: 800 1.35rem var(--g-display);
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--g-accent-dark);
}
.button:hover {
  filter: brightness(1.06);
}
.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--g-accent-dark);
}

/* Belt & Box: steel, safety yellow, hazard tape, the stencil lettering (src/ui and beltandbox.com). */
.game--belt-and-box {
  --g-bg: #262b31;
  --g-text: #ecede8;
  --g-muted: #a2aab3;
  --g-accent: #f3c319;
  --g-accent-dark: #b88f00;
  --g-ink: #1d2126;
  --g-display: 'Big Shoulders Stencil', 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --g-ui: 'Barlow Semi Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --g-strip: repeating-linear-gradient(-45deg, #f3c319 0 12px, #1d2126 12px 24px);
}
.game--belt-and-box .game__strip {
  block-size: 12px;
}

.files {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .files {
    grid-template-columns: 1fr 1fr;
  }
}
.file {
  background: var(--panel);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 22px;
}
.file__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 18px;
}
.file__label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.file__stamp {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 1px 10px;
  transform: rotate(-5deg);
}
.file dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  margin: 0;
  align-items: center;
}
.file dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.file dd {
  margin: 0;
}

/* A blacked-out bar that is still real text underneath: a screen reader says "withheld". */
.redacted {
  display: inline-block;
  vertical-align: middle;
  max-inline-size: 100%;
  block-size: 1.15em;
  overflow: hidden;
  white-space: nowrap;
  background: #08080a;
  color: transparent;
  border-radius: 3px;
  user-select: none;
}
.redacted[data-w='s'] {
  inline-size: 4.5em;
}
.redacted[data-w='m'] {
  inline-size: 7.5em;
}
.redacted[data-w='l'] {
  inline-size: 10.5em;
}

.shelf {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.shelf li {
  background: var(--panel);
  border-radius: var(--radius);
  border-inline-start: 6px solid var(--line);
  padding: 12px 16px;
}
.pause {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pause::before {
  content: '';
  box-sizing: content-box;
  inline-size: 4px;
  block-size: 14px;
  border-inline: 4px solid currentColor;
}
.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
}
.shelf__genre {
  font-weight: 700;
}
.shelf__note {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 70ch;
}

.foot {
  margin-block-start: 32px;
  border-block-start: 1px solid var(--line);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
}
.foot__inner p {
  margin: 0;
}
.foot__logo {
  font-size: 1.3rem;
  font-weight: 700;
}
.foot__line {
  color: var(--muted);
}
.foot__links {
  font-weight: 700;
}

.legal {
  max-width: 760px;
  padding-block: 40px 24px;
}
.legal h1 {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
}
.legal h2 {
  font-size: 1.6rem;
  margin-block-start: 1.6em;
}
.legal__date {
  color: var(--muted);
}
