* { box-sizing: border-box; }

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

body {
  font: 16px/1.6 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
  color: #111;
  background: #fff;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 6rem;
}

h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h1 a { color: inherit; text-decoration: none; }
h1 a:hover { text-decoration: underline; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0 0 3rem;
}

nav a { color: #0645ad; text-decoration: none; }
nav a:hover, nav a:focus { text-decoration: underline; }
nav a.active { color: #111; font-weight: 700; text-decoration: underline; }

a { color: #0645ad; }
a:hover { text-decoration: none; }

h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

h2:first-child { margin-top: 0; }

p { margin: 0 0 1.25rem; }

ul { list-style: none; margin: 0; padding: 0; }

li { margin: 0 0 1.5rem; }

.meta, .muted { color: #666; font-size: 0.9rem; }

.pub-title { font-weight: 700; }

form { margin: 2rem 0 0; max-width: 30rem; }

.field { margin: 0 0 1rem; }

label {
  display: block;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

input, textarea, button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #bbb;
  padding: 0.4rem 0.5rem;
  width: 100%;
}

textarea { resize: vertical; }

button {
  width: auto;
  border: 1px solid #111;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

button:hover { background: #111; color: #fff; }

footer { margin-top: 4rem; }

@media (prefers-color-scheme: dark) {
  body { background: #111; color: #e9e9e9; }
  nav a, a { color: #7cb7ff; }
  nav a.active { color: #fff; }
  .meta, .muted { color: #999; }
  input, textarea, button { border-color: #555; }
  button { border-color: #e9e9e9; }
  button:hover { background: #e9e9e9; color: #111; }
}