/* RABBIDS public site stylesheet -- shared by every generated article and
   each project's hub page (backend/agent/render.py). Deliberately its own
   design system, not the internal dashboard's neumorphic one (see
   docs/research/neumorphic-dataviz.md, which is scoped to the dashboard):
   a plain, readable content-site look, system fonts only (no WOFF2 self-
   hosting yet -- avoids all font-loading CLS/LCP risk for v1), one flat
   accent color instead of soft shadows. Written once, copied into
   dist/assets/site.css on every deploy (backend/agent/deploy.py).
*/

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1f2320;
  --text-muted: #5b6560;
  --border: #e4e1da;
  --accent: #b5502f;
  --accent-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --surface: #1e2124;
    --text: #eceae6;
    --text-muted: #a3a9a5;
    --border: #33383b;
    --accent: #e08a63;
    --accent-contrast: #1a1210;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.site-nav a {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

main {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  max-width: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero .about {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--text-muted);
}

article h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

article p {
  margin: 1.15rem 0;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card h3 a {
  text-decoration: none;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.related {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.related .card-grid {
  padding: 0;
  max-width: none;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
