:root {
  --ink: #1a1a1a;
  --muted: #666;
  --accent: #0b5cff;
  --bg: #fdfdfd;
  --rule: #e5e5e5;
  --maxw: 42rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.site-header nav a {
  margin-left: 1rem;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  line-height: 1.2;
}

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

.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-list-desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f4f4f4;
  border-radius: 6px;
}

code {
  font-size: 0.9em;
}

.site-footer {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
