:root {
  --color-bg: #0a0a0a;
  --color-bg-secondary: #141414;
  --color-bg-card: #1a1a1a;
  --color-text: #e5e5e5;
  --color-text-muted: #888;
  --color-accent: #dc2626;
  --color-accent-hover: #ef4444;
  --color-success: #22c55e;
  --color-border: #2a2a2a;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }

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

img { max-width: 100%; height: auto; }

/* Prose (markdown content) */
.prose {
  max-width: 72ch;
  font-size: 1.05rem;
  color: var(--color-text);
}
.prose :global(h2) { margin-top: 2.5em; margin-bottom: 0.75em; }
.prose :global(h3) { margin-top: 2em; margin-bottom: 0.6em; }
.prose :global(p) { margin: 0 0 1.25em; }
.prose :global(a) { text-decoration: underline; text-underline-offset: 3px; }
.prose :global(ul), .prose :global(ol) { padding-left: 1.5em; margin: 0 0 1.25em; }
.prose :global(li) { margin-bottom: 0.4em; }
.prose :global(blockquote) {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-muted);
  font-style: italic;
}
.prose :global(img) { border-radius: 8px; margin: 1.5em 0; }
.prose :global(strong) { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-success {
  background: var(--color-success);
  color: #000;
  font-weight: 700;
}
.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Cards */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--color-accent); }

/* Sections */
.section {
  padding: 4rem 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Blog post list */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
}
.post-card .post-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.post-card h3 a {
  color: #fff;
  text-decoration: none;
}
.post-card h3 a:hover { color: var(--color-accent); }
.post-card .post-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

/* Testimonial card */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 1rem;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.testimonial-card .author {
  font-style: normal;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.testimonial-card .role {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.5rem; }
  .post-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
}
