/* The homepage's stylesheet (site/template.html): the README as GitHub
   shows it, in light and dark, under a header with the mark and the links
   to the source. */

:root {
  --fg: #1f2328;
  --muted: #59636e;
  --bg: #ffffff;
  --subtle: #f6f8fa;
  --border: #d1d9e0;
  --link: #0969da;
  --button-fg: #ffffff;
  --button-bg: #1f2328;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f0f6fc;
    --muted: #9198a1;
    --bg: #0d1117;
    --subtle: #151b23;
    --border: #3d444d;
    --link: #4493f8;
    --button-fg: #0d1117;
    --button-bg: #f0f6fc;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--fg); }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* The header: the mark on the left, the links to the source on the right. */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.mark img { display: block; width: 205px; height: auto; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
.button:hover { background: var(--subtle); text-decoration: none; }
.button.primary { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-fg); }
.button.primary:hover { opacity: 0.88; background: var(--button-bg); }

/* The README, as rendered by GitHub's Markdown API. */
.readme { padding-top: 32px; padding-bottom: 48px; }
.readme > :first-child { margin-top: 0; }
.readme h2, .readme h3 { position: relative; line-height: 1.25; font-weight: 600; }
.readme h2 { margin: 40px 0 16px; padding-bottom: 0.3em; font-size: 1.5em; border-bottom: 1px solid var(--border); }
.readme h3 { margin: 28px 0 12px; font-size: 1.25em; }
.readme .anchor {
  position: absolute;
  left: -0.9em;
  color: var(--muted);
  opacity: 0;
  text-decoration: none;
}
.readme h2:hover .anchor, .readme h3:hover .anchor { opacity: 1; }
.readme p, .readme ul, .readme ol, .readme table, .readme pre { margin: 0 0 16px; }
.readme img { max-width: 100%; height: auto; border-radius: 6px; }
.readme code {
  padding: 0.2em 0.4em;
  font: 85%/1.45 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: var(--subtle);
  border-radius: 6px;
}
.readme pre {
  padding: 16px;
  overflow: auto;
  background: var(--subtle);
  border-radius: 6px;
}
.readme pre code { padding: 0; background: none; font-size: 85%; }
.readme table { border-collapse: collapse; display: block; overflow: auto; max-width: 100%; }
.readme th, .readme td { padding: 6px 13px; border: 1px solid var(--border); }
.readme th { font-weight: 600; }
.readme tr:nth-child(2n) td { background: var(--subtle); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 8px; padding-top: 24px; padding-bottom: 32px; }
