/* demiguru.codeberg.page - one stylesheet, no external resources. */
:root {
  --bg: #fbfbfa;
  --fg: #24273a;
  --muted: #5b6078;
  --rule: #dcdde3;
  --code-bg: #f0f0f2;
  --link: #1e66f5;
  --link-visited: #7c4dbd;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e2030;
    --fg: #cad3f5;
    --muted: #a5adcb;
    --rule: #363a4f;
    --code-bg: #24273a;
    --link: #8aadf4;
    --link-visited: #c6a0f6;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
main, header.site, footer.site {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}
header.site { padding-top: 1.5rem; }
header.site a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 0.75rem; }
h1 { font-size: 2rem; margin-top: 1.5rem; }
h2 { font-size: 1.4rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.15rem; }
p, ul { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--link); }
a:visited { color: var(--link-visited); }
.meta { color: var(--muted); font-size: 0.95rem; margin-top: -0.25rem; }
code {
  font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.9em;
  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;
  line-height: 1.45;
}
pre code { background: none; padding: 0; font-size: 0.85rem; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { margin-bottom: 1rem; }
ul.posts .meta { display: block; margin-top: 0.15rem; }
