/* Reset and base styles */
:root {
  --bg-primary: #0a1929;
  --text-primary: #e6edf3;
  --text-secondary: #8b95a5;
  --accent: #58a6ff;
  --border: #1d3244;
  --hover-bg: rgba(88, 166, 255, 0.05);
  --section-bg: rgba(29, 50, 68, 0.3);
  --highlight-color: #58a6ff;
}

@font-face{
  font-family: 'Space Grotesk';
  src: url('/assets/font/SpaceGrotesk-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Space Grotesk';
  src: url('/assets/font/SpaceGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Space Grotesk';
  src: url('/assets/font/SpaceGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Space Grotesk';
  src: url('/assets/font/SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Header styles */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title h1 {
  margin: 0;
}

.site-name {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
}

.site-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Navigation styles */
.main-navigation {
  margin-top: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--section-bg);
  color: var(--text-secondary);
}

/* Main content styles */
.main-content {
  min-height: calc(100vh - 200px);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Blog-specific styles */
.post-list {
  list-style: none;
  padding: 0;
}

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

.post-list li:last-child {
  border-bottom: none;
}

.post-list h3 {
  margin-bottom: 0.5rem;
}

.post-list h3 a {
  text-decoration: none;
  color: var(--text-secondary);
}

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

.post-date {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 0.5rem;
}

/* Article styles for individual posts */
article h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

article .post-meta {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--text-primary);
}

/* Code styling */
code {
  background-color: var(--bg-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--bg-primary);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

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

/* Footer styles */
.site-footer {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .main-navigation {
    margin-top: 1rem;
  }
  
  .nav-menu {
    justify-content: center;
    gap: 1rem;
  }
  
  .content-container {
    padding: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}
