:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #2d6cdf;
  --border: #e6e6e6;
  --maxw: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #e7e7e7;
    --muted: #9aa0a6;
    --accent: #6ea8ff;
    --border: #2a2d31;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

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

.site-header nav a {
  margin-left: 1rem;
  color: var(--muted);
}
.site-header nav a:first-child { margin-left: 0; }

main { min-height: 60vh; }

.content h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
.content h2 { margin-top: 2.2rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.content img { max-width: 100%; height: auto; }

.content blockquote {
  margin: 1.5rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: rgba(127, 127, 127, .06);
}

.content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(127, 127, 127, .12);
}
.content code { font-size: .92em; }

.meta { color: var(--muted); margin-top: -.5rem; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list time { color: var(--muted); white-space: nowrap; }

.back { margin-top: 2.5rem; }

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer a { color: var(--muted); }
