@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark Ambient Palette */
  --blog-bg: #07090e;
  --blog-panel-bg: rgba(13, 16, 23, 0.55);
  --blog-border: rgba(255, 255, 255, 0.08);
  --blog-border-hover: rgba(102, 252, 241, 0.25);

  /* Typography Colors */
  --text-main: #d1d7e0;
  --text-muted: #7d8590;
  --text-heading: #f0f6fc;

  /* Accents */
  --accent-cyan: #66fcf1;
  --accent-amber: #d97706;

  --pico-font-size: 92.5%;
  --pico-line-height: 1.68;
}

html, body {
  background-color: var(--blog-bg) !important;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Glow Elements - Enhanced Intensity */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  mix-blend-mode: screen;
}

.glow-cyan {
  top: -120px;
  left: -120px;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.35) 0%, rgba(102, 252, 241, 0) 70%);
}

.glow-amber {
  bottom: -120px;
  right: -120px;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(200, 125, 83, 0.30) 0%, rgba(200, 125, 83, 0) 70%);
}

.blog-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
}

/* 25% | 25% | 50% Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 24% 24% 1fr;
  gap: 1.25rem;
  align-items: start;
}

.col-1, .col-2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

/* Glassmorphic Panels */
.glass-panel {
  width: 100%;
  background: var(--blog-panel-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--blog-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.glass-panel:hover {
  border-color: var(--blog-border-hover);
}

/* Typography & Clean Monochrome Branding */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.015em;
}

h1 a, h2 a, h3 a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

h1 a:hover, h2 a:hover, h3 a:hover {
  color: var(--accent-cyan);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

/* Navigation Lists */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin-bottom: 0.4rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Reading Ergonomics (50% Column, 72ch Max Line Length) */
.reader-body {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.75;
}

.reader-body p {
  margin-bottom: 1.5rem;
}

.reader-body h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--blog-border);
  padding-bottom: 0.4rem;
}

/* Code Fonts (Fira Code & Monospace Stack) */
pre, code {
  font-family: 'Fira Code', 'IBM Plex Mono', 'Source Code Pro', Monaco, Consolas, monospace !important;
}

code:not(pre code) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.88em;
}

pre {
  background: #090c10 !important;
  border: 1px solid var(--blog-border);
  border-radius: 0.4rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(102, 252, 241, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(102, 252, 241, 0.2);
}

.meta-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 30% 1fr;
  }
  .col-2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .col-1 {
    position: static;
  }
}
