:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --rule: #2a2a2a;
  --accent: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

header.site .brand {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  border-bottom: none;
}

header.site nav a {
  margin-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: none;
}

header.site nav a:hover { color: var(--fg); }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent);
}

h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.05rem; margin: 2.5rem 0 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }

p.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

ul.tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

ul.tags li a {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

ul.tags li a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

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

ul.posts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule);
}

ul.posts li a {
  border-bottom: none;
  flex: 1;
}

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

article header h1 { margin-bottom: 0.25rem; }
article header time { color: var(--muted); font-size: 0.9rem; }
article p { margin: 1rem 0; }
article blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

footer.site a { color: var(--muted); border-bottom: none; }
footer.site a:hover { color: var(--fg); }

@media (max-width: 480px) {
  body { padding: 2rem 1rem 3rem; font-size: 17px; }
  header.site { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  header.site nav a { margin-left: 0; margin-right: 1rem; }
  ul.posts li { flex-direction: column; gap: 0.15rem; }
}
