:root {
  --text: #16161a;
  --muted: #75757e;
  --rule: #e8e8ea;
  --bg: #ffffff;
  --accent: #16161a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2.5rem 1.5rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.wordmark {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.site-header nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

/* Typography */
h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.125rem;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
  text-underline-offset: 0.15em;
}

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

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: #f5f5f6;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

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

pre code {
  background: none;
  padding: 0;
}

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

table {
  border-collapse: collapse;
  margin: 0 0 1rem;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}

/* Metadata and listings */
.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.post-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.35rem 0;
}

.post-list .meta {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
