/* Panda Game Club — one stylesheet for every page. Cozy palette borrowed from Compost Kings. */
:root {
  --cream: #faf0d8;
  --card: #fffaf0;
  --ink: #3a2a1d;
  --ink-soft: #6b5846;
  --leaf: #6aa84f;
  --leaf-dark: #3f7a2e;
  --soil: #4a3326;
  --line: #eadcbf;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1f1a15;
    --card: #2a231c;
    --ink: #f4ead6;
    --ink-soft: #c8b89e;
    --leaf: #8cc66f;
    --leaf-dark: #a6d98b;
    --soil: #3b2a20;
    --line: #3d3228;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

a { color: var(--leaf-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 28px 56px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-mark { font-size: 1.6rem; line-height: 1; }
.site-nav { display: flex; gap: 18px; font-weight: 700; font-size: 0.95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Type */
h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 36px 0 10px; font-weight: 800; }
h3 { font-size: 1.05rem; margin: 22px 0 4px; font-weight: 800; }
p { margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.game-card {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.game-card img {
  width: 104px;
  height: 104px;
  max-width: 100%;
  border-radius: 23%;
  box-shadow: 0 6px 18px rgba(58, 42, 29, 0.18);
  flex: none;
}
.game-card .body { flex: 1 1 260px; min-width: 0; }
.game-card h2 { margin: 0 0 4px; }

.hero-icon {
  width: 132px;
  height: 132px;
  max-width: 100%;
  border-radius: 23%;
  box-shadow: 0 8px 24px rgba(58, 42, 29, 0.2);
  margin-bottom: 18px;
}

/* Badges and buttons */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.button.secondary { background: var(--line); color: var(--ink); }
.button:hover { filter: brightness(1.05); }

/* Lists */
.features { padding-left: 1.2em; margin: 0 0 14px; }
.features li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); }
