:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f7f8fa;
  --text: #24292f;
  --muted: #57606a;
  --line: #d0d7de;
  --link: #0969da;
  --visited: #8250df;
  --accent: #1a7f37;
  --code-bg: #f6f8fa;
  --focus: #9a6700;
}

html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 0.18rem solid var(--focus);
  outline-offset: 0.18rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  border: 0.0625rem solid var(--line);
  border-radius: 0.25rem;
  background: var(--panel);
  color: var(--text);
  padding: 0.4rem 0.65rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell,
.content {
  width: min(100% - 2rem, 76ch);
  margin-inline: auto;
}

.site-header {
  border-bottom: 0.0625rem solid var(--line);
  background: var(--panel);
}

.site-header .site-shell {
  padding-block: 0.85rem;
}

.site-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.site-title:visited {
  color: var(--text);
}

.content {
  padding-block: 2.25rem 4rem;
}

.back-link {
  margin-block: 0 1.25rem;
  font-size: 0.95rem;
}

.landing-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 1.5rem 2rem;
}

.landing-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.35rem;
  background: var(--panel);
  color: var(--link);
  font-weight: 700;
  line-height: 1.25;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
}

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

.landing-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  border-top: 0.0625rem solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .site-shell {
  padding-block: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 1.4rem;
  font-size: 2rem;
}

h2 {
  margin: 2.4rem 0 0.8rem;
  border-bottom: 0.0625rem solid var(--line);
  padding-bottom: 0.2rem;
  font-size: 1.45rem;
}

h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.18rem;
}

h4 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1rem;
}

.heading-anchor {
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 400;
  opacity: 0;
  text-decoration: none;
}

h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
h5:hover .heading-anchor,
h6:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

p,
ul,
ol,
blockquote,
pre,
table {
  margin-block: 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.25rem;
}

blockquote {
  border-left: 0.25rem solid var(--line);
  color: var(--muted);
  padding-left: 1rem;
}

code {
  border-radius: 0.25rem;
  background: var(--code-bg);
  padding: 0.08rem 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  border: 0.0625rem solid var(--line);
  border-radius: 0.35rem;
  background: var(--code-bg);
  padding: 1rem;
}

pre code {
  background: transparent;
  padding: 0;
}

hr {
  border: 0;
  border-top: 0.0625rem solid var(--line);
  margin-block: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border-bottom: 0.0625rem solid var(--line);
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 42rem) {
  .landing-nav {
    grid-template-columns: 1fr;
  }

  .content {
    padding-block-start: 1.6rem;
  }

  h1 {
    font-size: 1.65rem;
  }
}
