:root {
  color-scheme: light dark;
  --text: #1f1f24;
  --muted: #5c5c66;
  --line: #dcdce2;
  --link: #9c3a5c;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececf0;
    --muted: #a5a5b0;
    --line: #3a3a42;
    --link: #e58aa8;
    --bg: #17171a;
  }
}

* {
  box-sizing: border-box;
}

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

header,
main,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

header .site-name {
  margin-right: auto;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

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

h1 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.9rem;
  line-height: 1.2;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.3rem 0;
}
