:root {
  --color-text:   #1a1a1a;
  --color-muted:  #666;
  --color-accent: #2348a0;
  --color-bg:     #fff;
  --color-rule:   #e6e6e6;
  --color-code:   #f4f4f4;
  --max-width:    720px;
  --font-body:    Charter, Georgia, "Times New Roman", serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

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

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: 2rem;
}

.site-name {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

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

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 { font-size: 1.85rem; margin: 0 0 1rem; }
h2 { font-size: 1.3rem;  margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-code);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--color-code);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.45;
}

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

.hero {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

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

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.post-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

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

@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .site-header nav a:first-child { margin-left: 0; }
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.8rem; }
}
