:root {
  --ink: #1a1a1a;
  --muted: #666;
  --accent: #0b5;
  --bg: #fff;
  --line: #e6e6e6;
  --maxw: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e8e8;
    --muted: #9a9a9a;
    --bg: #141414;
    --line: #2a2a2a;
  }
}

* { box-sizing: border-box; }

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

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

.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.tagline { color: var(--muted); margin: .25rem 0 0; font-size: .95rem; }

.site-footer {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

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

.article-list { list-style: none; padding: 0; }
.article-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.article-list a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.article-list p { color: var(--muted); margin: .35rem 0 .25rem; }
.article-list time { color: var(--muted); font-size: .8rem; }

.article header h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 .5rem; }
.byline { color: var(--muted); font-size: .9rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.byline .category { text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }

.affiliate-disclosure {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

.prose { font-size: 1.05rem; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose h2 { margin-top: 2rem; }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: 8px; background: #0002; }

.related { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.empty { color: var(--muted); }
