/* Colours lifted from the original site's style.css (dark override of the
   MKDoc default theme) - background #333/#000, text #CCC, links #99F/#C6F. */

:root {
  --bg: #333;
  --content-bg: #000;
  --text: #ccc;
  --link: #99f;
  --link-visited: #c6f;
  --link-hover-bg: #ffc;
  --link-hover-text: #333;
  --muted: #999;
  --code-bg: #222;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, Geneva, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

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

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

a:hover,
a:focus {
  background: var(--link-hover-bg);
  color: var(--link-hover-text);
}

/* Header, chapter nav, body text and footer all share this column, so
   their left and right edges line up. */
.site-header,
nav.chapters,
main .content-inner,
footer.site-footer {
  max-width: 65em;
  margin: 0 auto;
  padding-left: 1em;
  padding-right: 1em;
}

.site-header {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.site-header .site-title {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}

.site-header .tagline {
  color: var(--muted);
  font-size: 0.9em;
}

nav.chapters {
  padding-top: 1em;
  padding-bottom: 1em;
}

nav.chapters ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.chapters li {
  white-space: nowrap;
}

main {
  background: var(--content-bg);
  padding: 1em 0 3em;
}

main h1 {
  margin-top: 0;
}

main code,
main pre {
  background: var(--code-bg);
  color: var(--text);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}

main pre {
  padding: 0.8em 1em;
  overflow-x: auto;
}

main pre code {
  padding: 0;
  background: none;
}

footer.site-footer {
  padding-top: 1em;
  padding-bottom: 1em;
  color: var(--muted);
  font-size: 0.85em;
}

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