/* The hub header and footer sit inside every game's page, so every rule is scoped to them
   and resets the properties a game stylesheet is likely to set on its own elements. */
@font-face {
  font-family: 'Hub Display';
  src: url('fonts/bagel-fat-one-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}

.hub-bar,
.hub-foot {
  --hub-sofa: #1e5450;
  --hub-ink: #26202e;
  --hub-paper: #fbfcf8;
  --hub-throw: #e9b949;
  box-sizing: border-box;
  display: block;
  position: static;
  width: auto;
  margin: 0;
  font: 400 16px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.hub-bar *,
.hub-foot * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
}

.hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 6px 16px;
  background: var(--hub-sofa);
  color: #fff;
}
.hub-bar a {
  color: #fff;
  text-decoration: none;
}
.hub-bar .hub-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Hub Display', 'Arial Rounded MT Bold', system-ui, sans-serif;
  font-size: 19px;
}
.hub-bar .hub-tile {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--hub-ink);
  border-radius: 6px;
  background: var(--hub-throw);
  color: var(--hub-ink);
  font-size: 14px;
  line-height: 1;
}
.hub-bar .hub-all {
  font-weight: 700;
  font-size: 15px;
  padding: 6px 2px;
}
.hub-bar a:hover,
.hub-bar a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hub-foot {
  padding: 32px 16px 40px;
  background: var(--hub-sofa);
  color: #fff;
}
.hub-foot .hub-foot-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.hub-foot .hub-foot-title {
  font-family: 'Hub Display', 'Arial Rounded MT Bold', system-ui, sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.hub-foot .hub-foot-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}
.hub-foot a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hub-foot .hub-foot-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.85;
}

.hub-bar a:focus-visible,
.hub-foot a:focus-visible {
  outline: 3px solid var(--hub-throw);
  outline-offset: 2px;
  border-radius: 4px;
}
