/* Shared styling for the games site. Deliberately one small file, no build step:
   these pages exist to be reachable by an App Store reviewer for years, so the
   fewer moving parts between the HTML and the browser, the better. */

:root {
  --paper: #ede3cf;
  --paper-deep: #e4d9c2;
  --ink: #1e2a44;
  --ink-soft: #5a6273;
  --rule: #c3b696;
  --accent: #9c3b31;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

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

h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

.sub {
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 2rem;
}

.updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

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

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

.game-list { list-style: none; padding: 0; }

.game-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.game-list a { font-size: 1.2rem; text-decoration: none; font-weight: bold; }
.game-list span { display: block; color: var(--ink-soft); font-style: italic; }

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17181c;
    --paper-deep: #1e2025;
    --ink: #e8e2d4;
    --ink-soft: #a09a8c;
    --rule: #3a3d45;
    --accent: #d98071;
  }
}
