:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e5e5ea;
  --accent: #b35300;
  --brand: #ff8524;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --text: #f2f2f7;
    --muted: #a1a1a6;
    --rule: #2c2c2e;
    --accent: #ff9938;
    --brand: #ff9938;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

header.site {
  padding-top: 24px;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

header.site a.home {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

header.site a.home::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--brand);
}

nav a { margin-left: 16px; }
nav a:first-child { margin-left: 0; }

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

h1 { font-size: 2rem; line-height: 1.2; margin: 32px 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

p, ul { margin: 0 0 16px; }
ul { padding-left: 1.25em; }
li { margin-bottom: 6px; }

.subtitle { font-size: 1.25rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-style: italic; }

.links { list-style: none; padding: 0; margin: 32px 0; }
.links li { margin-bottom: 12px; font-size: 1.1rem; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }
