:root {
  --bg: #fbfaf7;
  --text: #1d1d1b;
  --muted: #6b6a66;
  --line: #e4e1da;
  --accent: #1f5f8b;
  --code-bg: #f0eee8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --text: #e8e6e1;
    --muted: #9b9993;
    --line: #2e2d2a;
    --accent: #7fb6dd;
    --code-bg: #222120;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
  font-family: system-ui, sans-serif;
}
.site-title { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 1rem; font-size: .95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--text); }

main { padding: 1.5rem 0 3rem; }

h1, h2, h3 { font-family: system-ui, sans-serif; line-height: 1.25; }
h1 { font-size: 1.7rem; margin: .5rem 0 1rem; }
.section-title { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-top: 2rem; }
h2.year { font-size: 1rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .25rem; margin-top: 2.5rem; }

.entry { margin: 1.25rem 0 1.75rem; }
.entry time, .meta { font-family: system-ui, sans-serif; font-size: .85rem; color: var(--muted); }
.entry h2 { font-size: 1.2rem; margin: .15rem 0 .35rem; }
.entry h2 a { color: var(--text); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); }
.entry p { margin: 0; }

.post .content h2 { font-size: 1.2rem; margin-top: 2rem; }
.gelezen { background: var(--code-bg); padding: .75rem 1.25rem; border-radius: 6px; margin: 1.5rem 0; }
.gelezen h2 { font-size: 1rem; margin: .25rem 0 .5rem; }
.gelezen ul { margin: 0; padding-left: 1.1rem; }
.gelezen li { margin: .4rem 0; }
.gelezen .note { display: block; color: var(--muted); font-size: .95rem; }
.gelezen .note p { margin: 0; }

.archive-note { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
.tags a { display: inline-block; margin: 0 1rem .5rem 0; }

.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-family: system-ui, sans-serif; font-size: .9rem; }

code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; font-size: .9em; }
pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 6px; }
pre code { padding: 0; background: none; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }

.site-footer {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-family: system-ui, sans-serif;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
