:root {
  --bg: #fdfdfc;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e2e2df;
  --link: #1a4f8b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --fg: #e8e8e6;
    --muted: #9a9a97;
    --rule: #2e2e33;
    --link: #8ab4e8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  max-width: 38rem;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
  font-weight: 600;
}

h1 {
  margin-top: 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

p, ul, ol {
  margin: 0 0 1.1rem;
}

ul, ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

code, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
}

pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

nav {
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

nav a {
  margin-right: 1rem;
}

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

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

.posts li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.posts time {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
