@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;600;700&display=swap');

:root {
  --bg: #0a0a0f;
  --text: #d8d0f0;
  --text-bright: #f5f0ff;
  --text-muted: #a09ab8;
  --text-dim: #6a6480;
  --accent: #8b7bb5;
  --green: #4ade80;
  --pink: #e879a8;
  --cyan: #67e8f9;
  --border: rgba(139, 123, 181, 0.15);
  --border-hover: rgba(139, 123, 181, 0.3);
  --card-bg: rgba(15, 15, 25, 0.8);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.wide-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 1.25rem 2.5rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(139, 123, 181, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0;
}

.site-header h1 {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.site-header a {
  color: var(--text-bright);
  text-decoration: none;
  transition: color 0.3s;
}

.site-header a:hover {
  color: #a78bfa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-bright);
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

strong {
  color: var(--text-bright);
  font-weight: 600;
}

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

li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Links */
a {
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #c4b5fd;
}

/* Blog specific */
.blog-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.blog-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(139, 123, 181, 0.5);
}

.blog-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

/* Post cards */
.posts-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

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

.post-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.post-card h2 a {
  color: var(--text-bright);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: #a78bfa;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--green);
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.read-more:hover {
  color: #22c55e;
  text-decoration: none;
}

/* Article styling */
.article-header {
  text-align: center;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(139, 123, 181, 0.4);
}

.article-meta {
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.article-content {
  padding-bottom: 3rem;
}

/* Navigation */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

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

/* CTA */
.cta-section {
  border: 1px solid var(--border);
  background: rgba(15, 15, 25, 0.6);
  padding: 2.5rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-section h3 {
  margin-bottom: 1rem;
  margin-top: 0;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--green);
  background: rgba(74, 222, 128, 0.08);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
  text-decoration: none;
}

.cta-button:hover {
  background: rgba(74, 222, 128, 0.15);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.25);
  color: var(--green);
  text-decoration: none;
}

/* Code blocks */
pre, code {
  font-family: 'Space Mono', monospace;
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid var(--border);
}

code {
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
}

pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .site-header {
    padding: 1rem 1.5rem;
  }
  
  .blog-title {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-card {
    padding: 1.5rem;
  }
  
  .cta-section {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 1.75rem;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .post-card {
    padding: 1rem;
  }
}
