:root {
  --bg:         #0a0a0f;
  --bg-surface: #111118;
  --fg:         #d4d4d8;
  --fg-muted:   #71717a;
  --accent:     #4ade80;
  --border:     #27272a;
  --font:       ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ─────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s;
}

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

.nav-logo {
  color: var(--accent) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── Main layout ─────────────────────────────────────── */

main {
  flex: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.hero-eyebrow {
  color: var(--fg-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.hero-eyebrow .prompt {
  color: var(--accent);
  margin-right: 0.4em;
}

.hero h1 {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}

.hero-tagline {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 48ch;
}

/* ── Services ────────────────────────────────────────── */

.services {
  margin-bottom: 4rem;
}

.services h2,
.contact h2 {
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg-surface);
}

.service h3 {
  color: var(--fg);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.service p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ── Contact ─────────────────────────────────────────── */

.contact a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.15s;
}

.contact a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  color: var(--fg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

footer p {
  max-width: 72rem;
  margin: 0 auto;
}

/* ── Blog list ───────────────────────────────────────── */

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.post-list {
  list-style: none;
}

.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  gap: 2rem;
  align-items: baseline;
}

.post-list .date {
  color: var(--fg-muted);
  font-size: 0.8125rem;
  min-width: 10ch;
  flex-shrink: 0;
}

.post-list a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.post-list a:hover {
  color: var(--accent);
}

.empty {
  color: var(--fg-muted);
  font-size: 0.875rem;
}

/* ── Single post ─────────────────────────────────────── */

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 1.625rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-meta {
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

.post-content {
  max-width: 68ch;
  line-height: 1.85;
  font-size: 0.9375rem;
}

.post-content h2,
.post-content h3 {
  color: var(--fg);
  margin: 2.5rem 0 1rem;
  font-size: 1.1rem;
}

.post-content p {
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  font-size: 0.875em;
}

.post-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

.back-link {
  display: inline-block;
  margin-top: 3rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}
