:root {
  --ink: #111111;
  --paper: #f8f8f4;
  --muted: #6b6b68;
  --border: #d8d8cf;
  --accent: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

a:hover {
  text-decoration-color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

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

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

nav a.active {
  color: var(--ink);
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
}

.content-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}

.content-block h1,
.content-block h2 {
  font-weight: 600;
  margin-top: 0;
}

.content-block ul {
  padding-left: 1.25rem;
}

article {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .page {
    padding-top: 2rem;
  }
}
