/* Shared chrome for the hub and every game page. Same palette as the games. */
@font-face {
  font-family: 'Baloo 2';
  src: url('./fonts/baloo2-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --ink: #10262f;
  --ink2: #17323d;
  --gold: #f6b323;
  --goldd: #c8871a;
  --paper: #fdf6e6;
  --mute: #7e9099;
  --line: rgba(253, 246, 230, .14);
  --maxw: 60rem;
  --font: 'Baloo 2', Verdana, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--paper); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: .95rem; font-weight: 700; }
header.site nav a { color: var(--mute); text-decoration: none; }
header.site nav a:hover { color: var(--paper); }

.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 .2em; font-weight: 800; line-height: 1.05; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #c9d7dd; margin: 0 auto 1.6em; max-width: 40rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.badge {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .84rem; font-weight: 700; color: #cfe0e6;
  background: rgba(253, 246, 230, .04);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 14px;
  font-weight: 800; text-decoration: none; font-size: 1.02rem;
  background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--goldd);
}
.btn.ghost { background: transparent; color: var(--paper); box-shadow: none; border: 2px solid var(--line); }
.btn.soon { background: #43535b; color: #cbd7dc; box-shadow: none; cursor: default; }

section { padding: 44px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.5rem; margin: 0 0 .6em; font-weight: 800; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px;
}
.card h3 { margin: 0 0 .35em; font-size: 1.1rem; font-weight: 800; }
.card p { margin: 0; color: #b9cad1; font-size: .95rem; }

.gamecard { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.gamecard img { width: 76px; height: 76px; border-radius: 16px; flex: none; }
.gamecard .meta { font-size: .82rem; color: var(--mute); font-weight: 700; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.2rem; }
.prose p, .prose li { color: #cfdde2; }
.prose code { background: rgba(253,246,230,.1); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.draft { background: rgba(246,179,35,.12); border: 1px solid var(--goldd); border-radius: 12px; padding: 14px 16px; font-size: .92rem; }

footer.site { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--mute); font-size: .88rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 16px; }
footer.site a { color: var(--mute); text-decoration: none; }
footer.site a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
