*, *::before, *::after { box-sizing: border-box; }

:root {
  --text: #111;
  --bg: #fff;
  --muted: #666;
  --link: #0070f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eee;
    --bg: #111;
    --muted: #999;
    --link: #4ea3ff;
  }
}

body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 2rem 1.5rem;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

h1 { font-size: 1.6rem; margin-top: 1.5rem; }
h2 { font-size: 1.25rem; }

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

time, .updated { display: block; color: var(--muted); font-size: 0.9rem; }

section { margin-bottom: 2.5rem; }
section h2 { border-bottom: 1px solid currentColor; padding-bottom: 0.25rem; }

ul { list-style: none; padding: 0; margin: 0; }
li { margin-bottom: 1rem; }

.article-date { color: var(--muted); font-size: 0.85rem; margin-left: 0.5rem; }
.article-desc { display: block; color: var(--muted); font-size: 0.9rem; }

img { max-width: 100%; height: auto; }
pre { overflow-x: auto; padding: 1rem; background: #f4f4f4; border-radius: 4px; }
@media (prefers-color-scheme: dark) { pre { background: #222; } }
code { font-size: 0.9em; }
blockquote { border-left: 3px solid var(--muted); margin-left: 0; padding-left: 1rem; color: var(--muted); }
