:root {
  --bg: #111111;
  --fg: #d7d7d7;
  --muted: #9aa0a6;
  --accent: #9ecb8f;
  --border: #2a2a2a;
  --maxw: 78ch;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.65;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

header,
main,
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem;
}

header {
  border-bottom: 1px solid var(--border);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

nav {
  margin-top: 0.75rem;
}

nav a {
  margin-right: 1rem;
  white-space: nowrap;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 1.5rem;
}

p,
ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

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

.site-title {
  font-weight: 600;
}

.tagline {
  color: var(--muted);
}

.block {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.block:last-child {
  border-bottom: 0;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  color: var(--muted);
}

.list-plain {
  list-style: none;
  padding-left: 0;
}

.list-plain li {
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  nav a {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.35rem;
  }
}
