:root {
  --ink: #1a2436;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg: #ffffff;
  --panel: #f4f8fc;
  --link: #0b66c3;
  --mark: #fff0b3;
  --mark-ink: #1a2436;
  --sky-top: #4aa9ef;
  --sky-bottom: #9bd6f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8;
    --muted: #a7b2c3;
    --line: #2b3546;
    --bg: #121823;
    --panel: #1a2230;
    --link: #7cc0ff;
    --mark: #5c4b12;
    --mark-ink: #fff3c4;
  }
}

* { box-sizing: border-box; }

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

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

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

/* Header: the game's sky, its icon and three links. */
header.site {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  color: #0f1b2d;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

header.site img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header.site .name {
  font-weight: 800;
  font-size: 22px;
  color: inherit;
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 15px;
}

header.site nav a {
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
}

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

main { padding: 34px 0 56px; }

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 38px 0 8px;
}

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

p { margin: 10px 0; }

ul { padding-left: 22px; }

li { margin: 6px 0; }

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

.meta {
  color: var(--muted);
  margin: 0 0 22px;
}

/* The short version at the top of a page. */
.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0 8px;
}

.summary h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

/* Details still to be filled in before the site goes live. */
mark.fill {
  background: var(--mark);
  /* Its own dark colour: never the grey of the text around it. */
  color: var(--mark-ink);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
}

/* Home page. */
.hero {
  text-align: center;
  padding: 26px 0 8px;
}

.hero img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.hero h1 { margin-top: 22px; font-size: 38px; }

.hero .tagline {
  font-size: 20px;
  color: var(--muted);
  margin: 6px 0 22px;
}

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.links a {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover { border-color: var(--link); }

/* The same buttons, lined up with the text above them. */
.links.start { justify-content: flex-start; }

/* A game on the Yomad Games home page: its icon, its name and a line about it. */
a.game {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

a.game:hover { border-color: var(--link); }

a.game img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

a.game .about {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

a.game strong { font-size: 19px; }

a.game .about span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 40px;
}

/* On a narrow phone the footer wraps between its links, never inside "Privacy Policy". */
footer.site a { color: inherit; white-space: nowrap; }
