/* robertogeuke.nl — the only stylesheet */

:root {
  --text: #111;
  --bg: #fff;
  --muted: #555;
  --link: #0645ad;
  --visited: #551a8b;
  --code-bg: #f2f2f2;
  --rule: #ccc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ddd;
    --bg: #161616;
    --muted: #999;
    --link: #8ab4f8;
    --visited: #c58af9;
    --code-bg: #262626;
    --rule: #444;
  }
}

body {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

a { color: var(--link); }
a:visited { color: var(--visited); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.2rem 0;
}

/* Header */
header { display: flex; align-items: center; gap: 1rem; }
header p { margin: 0; }
.name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text) !important;
  text-decoration: none;
}
.tagline { color: var(--muted); }

/* Posts */
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 0.3rem; }
h3 { margin-top: 1.8rem; }
.date, .tags { color: var(--muted); margin: 0; }
.tags { font-size: 0.95rem; }
.date + .tags + *, .date + :not(.tags) { margin-top: 1.5rem; }

/* Post lists */
.posts { list-style: none; padding: 0; }
.posts li { margin: 0.4rem 0; }
.posts .date {
  display: inline-block;
  min-width: 6.5rem;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Code */
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
code { background: var(--code-bg); padding: 0.1rem 0.3rem; border-radius: 3px; }
pre {
  background: var(--code-bg);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  line-height: 1.45;
  border-radius: 3px;
}
pre code { padding: 0; background: none; }

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