:root {
  color-scheme: dark;
  --fg: #c9d1d9;
  --bg: #0d1117;
  --muted: #8b949e;
  --accent: #3fb950;
  --rule: #30363d;
}

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  font: 0.975rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { background: var(--accent); color: var(--bg); text-decoration: none; }

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}
header a { color: var(--accent); font-weight: bold; text-decoration: none; }
header a:hover { background: none; color: var(--accent); }
header a::before { content: "> "; color: var(--muted); }
header a::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  header a::after { animation: none; }
}

h1, h2, h3 { color: #f0f6fc; font-size: 1.35rem; line-height: 1.3; }
h1::before { content: "# "; color: var(--accent); }
h2::before { content: "## "; color: var(--accent); }
h3::before { content: "### "; color: var(--accent); }

time { color: var(--muted); font-size: 0.9em; }

.entries { list-style: none; padding: 0; }
.entries li { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0.35rem 0; }
.entries time { min-width: 10rem; }

code, pre { background: #161b22; border: 1px solid var(--rule); border-radius: 4px; }
code { padding: 0.1em 0.35em; }
pre { padding: 1rem; overflow-x: auto; }
pre code { border: 0; padding: 0; }

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

article img { max-width: 100%; border: 1px solid var(--rule); }

::selection { background: var(--accent); color: var(--bg); }
