:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background: #faf9f6;
  color: #242424;
}

* { box-sizing: border-box; }

body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem;
  overflow-wrap: anywhere;
}

a { color: #185b85; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid #bbb;
}

.site-title { font-size: 1.15rem; font-weight: 700; }
main { padding: 1.5rem 0 2.5rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.post-list { list-style: none; padding: 0; }
.post-list li { margin-block: 1.5rem; }
.post-list h2, .post-list h3 { margin-bottom: 0.35rem; }
.post-list p { margin-top: 0; }
img, video { max-width: 100%; height: auto; }
pre { overflow-x: auto; padding: 1rem; }
code { font-size: 0.95em; }
.site-footer { border-top: 1px solid #bbb; padding-top: 1rem; font-size: 0.9rem; }

.skip-link { position: absolute; top: -10rem; }
.skip-link:focus { position: static; display: inline-block; margin-bottom: 1rem; }

@media (prefers-color-scheme: dark) {
  :root { background: #191b1d; color: #eee; }
  a { color: #94cef0; }
  .site-header, .site-footer { border-color: #555; }
}
