/* enrai-AI research — global styles. Plain CSS, minimal, readable on small screens. */

:root {
  --bg: #0e0f11;
  --fg: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #a1c4ff;
  --accent-hover: #cfe0ff;
  --border: #232428;
  --code-bg: #17181b;
  --max-w: 720px;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    'ui-sans-serif', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif;
  line-height: 1.6;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}
.brand span {
  color: var(--muted);
  font-weight: 400;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
}

/* Content */
.content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Hero */
.hero h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.hero p {
  color: var(--muted);
}
.hero-cta {
  margin-top: 1.25rem;
}
.hero-cta a {
  color: var(--accent);
  text-decoration: none;
}
.hero-cta a:hover {
  color: var(--accent-hover);
}

/* Post list */
.recent h2,
section > h1 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.post-list li + li {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}
.post-list a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.post-list h2,
.post-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--fg);
}
.post-list a:hover h2,
.post-list a:hover h3 {
  color: var(--accent);
}
.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Prose */
.prose {
  line-height: 1.7;
}
.prose h1 {
  font-size: 1.75rem;
  line-height: 1.25;
}
.prose h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.prose a {
  color: var(--accent);
}
.prose a:hover {
  color: var(--accent-hover);
}
.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
.prose pre {
  background: var(--code-bg);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}
.prose pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}
.prose blockquote {
  border-left: 3px solid var(--border);
  color: var(--muted);
  padding-left: 1rem;
  margin: 1.25rem 0;
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose th {
  background: var(--code-bg);
}

/* Post header / footer */
.post-header {
  margin-bottom: 1.5rem;
}
.post-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
