:root {
  color-scheme: light dark;
  --max-width: 42rem;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #666666;
  --accent: #1a5fb4;
  --border: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e8;
    --bg: #181818;
    --muted: #a0a0a0;
    --accent: #7aa6da;
    --border: #333333;
  }
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.site-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
}

.site-title a {
  color: var(--fg);
  text-decoration: none;
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  margin-right: 1.25rem;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

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

main {
  min-height: 50vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

a {
  color: var(--accent);
}

h1, h2, h3, h4 {
  line-height: 1.25;
}

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

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

.item-list li:last-child {
  border-bottom: none;
}

.date, .meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.summary {
  margin: 0.25rem 0 0 0;
  color: var(--muted);
}

.front-section {
  margin-bottom: 1.5rem;
}

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

pre {
  background: rgba(128, 128, 128, 0.1);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

pre code {
  font-size: 0.85rem;
}

img {
  max-width: 100%;
}

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

.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
