:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --link: #2a6080;
  --border: #e0e0e0;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #e8e8e8;
    --muted: #999999;
    --link: #5ba3c9;
    --border: #2a2a2a;
  }
}

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

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

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  margin-bottom: 2.5rem;
}

header a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

p {
  margin: 0.75rem 0;
}

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

ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}

li {
  margin-bottom: 0.35rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

footer {
  margin-top: 3rem;
  font-size: 0.825rem;
  color: var(--muted);
}

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

/* Index page */
.app-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.hero {
  margin: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2rem;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.nav-links li {
  margin-bottom: 0.75rem;
}

.nav-links a {
  font-size: 1.05rem;
}
