/* veshovda.no: one stylesheet, light and dark from the system setting. */
:root {
  --bg: #ffffff;
  --fg: #1c1e21;
  --muted: #5f6368;
  --link: #0b57d0;
  --rule: #e3e5e8;
  --code-bg: #f4f5f7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e6e7e9;
    --muted: #a0a4aa;
    --link: #8ab4f8;
    --rule: #2c2f35;
    --code-bg: #1f2227;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
header.site .home {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
header.site .home img { border-radius: 50%; }
header.site nav a { margin-left: 1rem; }
header.site nav a:first-child { margin-left: 0; }
main { padding-top: 1.5rem; }
h1 { line-height: 1.25; margin: 0.5rem 0 1rem; }
h2, h3 { line-height: 1.3; margin-top: 2rem; }
.lead { color: var(--muted); font-size: 1.125rem; }
.meta, time { color: var(--muted); }
ul.posts { list-style: none; padding: 0; }
ul.posts li { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
ul.posts time { display: inline-block; min-width: 9.5rem; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 0.9rem 1rem; border-radius: 6px; overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin: 1rem 0; padding: 0 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
footer.site { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
