:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121826;
  --bg-card: #1a2236;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --border: #2d3748;
  --code-bg: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--accent);
}

.hero {
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 2rem;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.article-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.article-card h2 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h2 a:hover {
  color: var(--accent);
}

.article-card .meta {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

article {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  margin-top: 2rem;
}

article h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
}

article .meta {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 1.65rem;
  color: #f1f5f9;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

article h3 {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

article ul, article ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

article li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

pre code {
  background: transparent;
  padding: 0;
}

a.context-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s;
}

a.context-link:hover {
  color: #7dd3fc;
}

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