/* Shared look of the static pages (How to play, FAQ, Press, Privacy). The game itself does not use it. */

:root {
  --bg: #f3eee3;
  --surface: #fbf8f1;
  --ink: #1f2a24;
  --muted: #5f6b66;
  --line: #ddd6c4;
  --accent: #1f6f52;
  --accent-ink: #ffffff;
  --code: #fffdf7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131917;
    --surface: #1a2220;
    --ink: #e6ece7;
    --muted: #97a59f;
    --line: #2b3531;
    --accent: #7cc4a2;
    --accent-ink: #0b1411;
    --code: #1d2522;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

/* Header: name on the left, Play on the right, page links under them on phones. */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 20px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}

.site-name img {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.play-sm {
  margin-left: auto;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-nav {
    order: 3;
    width: 100%;
  }
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
}

h2 {
  font-size: 21px;
  margin: 32px 0 8px;
  color: var(--accent);
}

h3 {
  font-size: 17px;
  margin: 20px 0 4px;
}

p,
li {
  margin: 0 0 10px;
}

.lead {
  font-size: 19px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

img.wide {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 8px 0 4px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 4px 0 12px;
}

th,
td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

code,
pre {
  font: 15px 'SF Mono', Menlo, Consolas, monospace;
  background: var(--code);
  border-radius: 5px;
}

code {
  padding: 1px 4px;
}

pre {
  padding: 10px 12px;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  line-height: 1.45;
}

.play {
  display: inline-block;
  margin: 10px 0;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

/* FAQ: one question per <details>, closed by default. */
details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

details > summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}

details > summary::marker {
  color: var(--accent);
}

details[open] > summary {
  margin-bottom: 8px;
}

details p:last-child {
  margin-bottom: 4px;
}

/* Press: screenshots side by side, downloads as a list. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.shots figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}

video {
  display: block;
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}

.facts th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
}

.tr {
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-foot-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}

.site-foot p {
  margin: 0 0 6px;
}

.site-foot a {
  color: var(--muted);
}
