:root {
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #7a7a7a;
    --bg: #121212;
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

a {
  color: inherit;
}

h1 {
  font-size: 1.4rem;
  font-weight: 650;
  margin: 0 0 1rem;
}

nav a {
  margin-right: 1.25rem;
  text-decoration: none;
  color: var(--muted);
}

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

.posts {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
}

.posts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.35rem 0;
}

.posts a {
  text-decoration: none;
}

.posts a:hover {
  text-decoration: underline;
}

.date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.home {
  text-decoration: none;
  color: var(--muted);
}

.home:hover {
  color: var(--text);
}

.post h1 {
  margin: 2rem 0 0.25rem;
  font-size: 1.6rem;
}

.post .date {
  display: block;
  margin: 0 0 2.5rem;
}

article img {
  max-width: 100%;
}

article pre {
  overflow-x: auto;
  padding: 1rem;
  background: rgba(127, 127, 127, 0.12);
  border-radius: 6px;
  font-size: 0.9rem;
}

article code {
  font-size: 0.92em;
}

article blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--muted);
  color: var(--muted);
}
