/* Minimal, responsive, system-font stack with light/dark auto */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #666;
  --link: #0b57d0;
  --border: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --fg: #eaeaea;
    --muted: #bbb;
    --link: #8ab4f8;
    --border: #262626;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: 44rem;

  margin: 0 auto;
}
header.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.site-title {
  font-weight: 550;
  font-size: 1rem;
  margin: 0;
}
.site-title a { color: inherit; text-decoration: none; }
nav.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.75rem; }
nav.site-nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
nav.site-nav a:hover, nav.site-nav a:focus { background: var(--border); }
nav.site-nav a[aria-current="page"] {
  font-weight: 550;
  text-decoration: none;
}
nav.site-nav a:hover {
  text-decoration: underline;
  color: var(--link);
}
main { padding: 1.25rem 0 3rem; }
footer.site-footer {
  color: var(--muted);
  padding: 1rem 0 2rem;
}

h1, h2, h3 { line-height: 1.2; font-weight: 600;}
img, video { max-width: 100%; height: auto; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.all-posts { margin-top: 1rem; }

.post-list { display: grid; gap: 1rem; }
.post-item { padding: 0.75rem; border: 1px solid var(--border); border-radius: 6px; }
.post-item h3 { margin: 0 0 0.25rem; font-size: 1.125rem; }
.post-meta { color: var(--muted); font-size: 0.9rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { display: inline-block; color: var(--link); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.5rem; text-decoration: none; font-size: 0.9rem; }
.tag:hover, .tag:focus { background: var(--border); }
.tag-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1rem; }
.tag-cloud .count { color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

a { color: var(--fg); text-decoration: underline; }
a:hover, a:focus { color: var(--link); text-decoration: underline; }

.hero { margin: 1rem 0 2rem; }
.hero h1 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.hero p { color: var(--muted); margin: 0; }

.pagination { margin-top: 1rem; }
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
