/* The site wears the game's own palette and type so the store listing, the game and the
   legal pages read as one thing. Values come from DESIGN.md: Baloo 2 on headings, Inter on
   sentences, Sky Tint behind, Bone White on the card, Sky Blue as the one accent. */

:root {
  --sky: #ebf5ff;
  --card: #fafdff;
  --ink: #0a0d12;
  --body: #242a35;
  --graphite: #535862;
  --line: #dbe7f3;
  --accent: #0099ff;
  --navy: #0a2e61;
  --gold: #ffc83d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0c1016;
    --card: #141a22;
    --ink: #f2f6fa;
    --body: #c3ccd7;
    --graphite: #93979f;
    --line: #232c37;
    --accent: #4db5ff;
    --navy: #cce7ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Baloo 2", "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.bar nav { display: flex; gap: 20px; }
.bar nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.bar nav a:hover { text-decoration: underline; }

/* Home */

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 8px;
  text-align: center;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: block;
  margin: 0 auto 24px;
}

.hero h1 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}

.hero p.lead {
  font-size: 19px;
  color: var(--graphite);
  margin: 0 auto 32px;
  max-width: 34em;
}

.store {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  min-height: 48px;
}

.store:hover { filter: brightness(1.06); }

.panels {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 20px 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
}

.panel h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}

.panel p { margin: 0; font-size: 15.5px; color: var(--graphite); }
.panel p + p { margin-top: 10px; }

/* Legal documents */

.doc {
  max-width: 820px;
  margin: 24px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px clamp(20px, 5vw, 48px);
}

.doc h1 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}

.doc h2 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 38px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.doc h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 6px;
  color: var(--ink);
}

.doc p { margin: 0 0 16px; }
.doc p.meta { color: var(--graphite); font-size: 14.5px; margin-bottom: 28px; }
.doc a { word-break: break-word; }

/* Footer */

footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  text-align: center;
  color: var(--graphite);
  font-size: 14.5px;
}

footer p { margin: 0; }
