/* Shared across every page on spizzy.games. The palette started life inline in
   privacy.html and is the chalk-on-warm-paper look the app itself uses. */

:root {
  --bg: #fbfaf7;
  --fg: #22201c;
  --muted: #5d574e;
  --rule: #ddd8cf;
  --accent: #7a4b1e;
  --card: #f3efe7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --fg: #ece8e1;
    --muted: #a8a196;
    --rule: #37342f;
    --accent: #e0a86a;
    --card: #232120;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main { max-width: 42rem; margin: 0 auto; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .35rem; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
h2:first-of-type { border-top: 0; padding-top: 0; }

ul { padding-left: 1.2rem; }
li { margin: .35rem 0; }
a { color: var(--accent); }

code {
  font-size: .9em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  padding: .1em .35em;
  border-radius: 3px;
}

footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

.dates { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.lede { font-size: 1.05rem; }

/* --- Shared bits used by the landing and invite pages ------------------- */

.centred { text-align: center; }

/* Call-to-action buttons: the install links, and "open in the app". */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0;
}
.centred .actions { justify-content: center; }

.button {
  display: inline-block;
  padding: .7rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.button.primary {
  background: var(--accent);
  color: var(--bg);
}
.button.primary:hover { opacity: .88; }

/* Used where a store link does not exist yet, so the page says so rather than
   showing a button that goes nowhere. */
.pending {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: .95rem;
}

.game-list { list-style: none; padding: 0; }
.game-list li { margin: .5rem 0; }
.game-list b { font-weight: 600; }
