/* Self-contained styles — plain CSS, no Tailwind / no kit dependency, so
 * this template builds with nothing but @voltro/web. Swap in
 * @voltro/ui-shadcn/tokens.css if you want the design system. */

:root {
  --bg: #ffffff;
  --fg: #18181b;
  --muted: #71717a;
  --accent: #7c3aed;
  --border: #e4e4e7;
  --maxw: 42rem;
}

:root.dark {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --accent: #a78bfa;
  --border: #27272a;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100vh; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 6rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; margin: 0; }

.site-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.site-header .brand { color: var(--fg); font-weight: 600; }
.site-header .spacer { flex: 1; }
.site-header .lang { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.site-header .lang .label { color: var(--muted); }
.site-header .lang a { color: var(--fg); font-weight: 400; }
.site-header .lang a[aria-current='true'] { color: var(--accent); font-weight: 600; }

.muted { color: var(--muted); font-size: 0.9rem; }

.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.post-list a { font-size: 1.25rem; font-weight: 600; color: var(--fg); }
.post-list p { margin: 0.35rem 0 0; color: var(--muted); }

article p { margin: 1.1rem 0; }

/* The reading-progress island — a fixed bar pinned to the top. */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  transition: width 80ms linear;
  z-index: 50;
}
