/* Dark theme only (Johannes, 2026-11-02): one palette, no prefers-color-scheme switch. */
:root {
  color-scheme: dark;
  --bg: #0b0f14; --fg: #e6edf3; --muted: #9da7b3; --line: #263039;
  --accent: #6ea8ff; --card: #131a22; --code: #18212b; --on-accent: #0b0f14;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 2rem 0 0.75rem; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: 0.01em; }
nav a { margin-left: 1.25rem; color: var(--fg); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer a { color: var(--muted); }
.hero { padding: 2rem 0 0.5rem; }
.hero h1 { font-size: 2.4rem; letter-spacing: -0.01em; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
h2 + .card { margin-top: 0.75rem; }
.card h2 { margin-top: 0; }
.card h3 { margin-top: 0; font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 0.9rem; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 0.55rem 1.1rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }
.posts { list-style: none; padding: 0; margin: 0 0 1rem; }
.posts li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts time { display: block; color: var(--muted); font-size: 0.85rem; }
.posts a { font-size: 1.1rem; font-weight: 600; }
.posts .summary { margin: 0.2rem 0 0; color: var(--muted); }
article header h1 { margin-bottom: 0.25rem; }
article img { max-width: 100%; height: auto; }
blockquote { margin: 1rem 0; padding: 0.1rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }
code { background: var(--code); padding: 0.1em 0.35em; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: var(--code); padding: 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.back { margin-top: 2.5rem; }

/* focus areas on the start page: the list comes from content/index.md */
main section ul:not(.posts) { padding-left: 1.2rem; }
main section ul:not(.posts) li { margin: 0.7rem 0; }
