:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --link: #0060c7;
  --code-bg: #f2f2f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --text: #e8e8ed;
    --muted: #9a9aa0;
    --rule: #3a3a3e;
    --link: #5aa9ff;
    --code-bg: #26262a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.6;
}

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

header.site {
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  padding-top: 16px;
  padding-bottom: 16px;
}

header.site a {
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

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

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

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

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.lead {
  font-size: 19px;
}

.summary {
  border-left: 3px solid var(--rule);
  padding-left: 16px;
}

nav.links a {
  margin-right: 20px;
}

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

footer.site .wrap {
  padding-top: 20px;
  padding-bottom: 32px;
}

footer.site a {
  color: var(--muted);
  margin-left: 16px;
}
