/* LocalAIZone — starter theme stylesheet.
   Deliberately minimal. Dark, terminal-ish, reader-friendly. */

:root {
  --bg: #0b0d10;
  --bg-raised: #12161c;
  --fg: #e6ecf0;
  --fg-muted: #8a95a3;
  --accent: #5ee28a;
  --accent-dim: #2f6a43;
  --border: #1f252d;
  --maxw: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--fg-muted); font-size: 0.9em; }
.lede  { color: var(--fg-muted); font-size: 1.05em; }

.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav .brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.site-nav .nav-item { position: relative; }
.site-nav .nav-item.has-submenu > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: var(--fg-muted);
  vertical-align: middle;
  transform: translateY(2px);
}
.site-nav .submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 180px;
  margin: 0;
  padding: 6px 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 10;
}
.site-nav .nav-item:hover > .submenu,
.site-nav .nav-item:focus-within > .submenu { display: block; }
.site-nav .submenu li { display: block; }
.site-nav .submenu a {
  display: block;
  padding: 6px 14px;
  color: var(--fg);
  white-space: nowrap;
}
.site-nav .submenu a:hover { background: rgba(255, 255, 255, 0.05); }

.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero h1 { font-size: 2rem; margin-bottom: 6px; }
.hero .lede { margin-top: 0; }

.recent { margin-top: 48px; }
.recent h2 { font-size: 1.1rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.post-list a { font-size: 1.1rem; }

.post-header h1 { margin-bottom: 6px; }
.post-body { font-size: 1.02rem; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }

.post-body pre {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 0.9em;
}
.post-body code {
  background: var(--bg-raised);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}
.post-body pre code { background: transparent; padding: 0; }

.post-sources {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-sources h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.post-sources ul { list-style: none; padding: 0; }
.post-sources li { padding: 4px 0; }

.post-footer { margin-top: 24px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.85em;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 64px;
  text-align: center;
}
