/* System neutrals and the system blue accent, like the app's Theme. */
:root {
  --ground: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --separator: #d2d2d7;
  --accent: #0071e3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --separator: #424245;
    --accent: #2997ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1.25rem;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--separator);
}

.wordmark {
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
}

.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--secondary); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

main { padding: 2rem 0 3rem; }

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin-top: 2.25rem; }
h3 { font-size: 1.1rem; margin-top: 1.75rem; }

.lede { font-size: 1.2rem; color: var(--secondary); }

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 0.9rem;
}
