:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #1c1c1e;
  --secondary: #636366;
  --separator: #d1d1d6;
  --accent: #467000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --text: #f2f2f7;
    --secondary: #aeaeb2;
    --separator: #38383a;
    --accent: #c6f135;
  }
}

@media (prefers-contrast: more) {
  :root {
    --secondary: var(--text);
    --accent: #3a5c00;
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --accent: #d4ff4d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main,
header,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 24px;
}

.brand {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
}

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

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

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

p,
ul {
  margin: 0 0 1rem;
}

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

.meta {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  margin-bottom: 0.5rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 32px;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 0.9rem;
}

footer a {
  color: inherit;
}
