/* ============================================
   SYNTHWAVE THEME - Sage Elliott
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a1a;
  --bg-surface: #111125;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(179, 71, 217, 0.15);
  --border-hover: rgba(179, 71, 217, 0.4);
  --purple: #b347d9;
  --purple-light: #c96beb;
  --magenta: #ff2d95;
  --cyan: #06d6a0;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --glow-purple: rgba(179, 71, 217, 0.15);
  --glow-magenta: rgba(255, 45, 149, 0.1);
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--magenta);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.external::after {
  content: ' \2197';
  font-size: 0.75em;
  opacity: 0.6;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.75rem 0;
    border-radius: 0;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, var(--glow-purple), transparent),
    radial-gradient(ellipse 40% 40% at 80% 30%, var(--glow-magenta), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bio {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-bio a {
  color: var(--purple-light);
  border-bottom: 1px solid rgba(179, 71, 217, 0.3);
}

.hero-bio a:hover {
  color: var(--magenta);
  border-color: var(--magenta);
}

/* Social buttons */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--purple);
  background: rgba(179, 71, 217, 0.08);
  transform: translateY(-1px);
}

/* Hero photo */
.hero-photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow:
    0 0 40px var(--glow-purple),
    0 0 80px rgba(179, 71, 217, 0.08);
  transition: box-shadow 0.3s ease;
}

.hero-photo:hover {
  box-shadow:
    0 0 50px var(--glow-purple),
    0 0 100px rgba(179, 71, 217, 0.15);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrapper {
    order: -1;
  }
  .hero-photo {
    width: 220px;
    height: 220px;
  }
  .hero-bio {
    max-width: 100%;
  }
  .social-row {
    justify-content: center;
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 3rem 0;
}

.section-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple-light);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--magenta);
}

/* ============================================
   FEATURE GRID (What I Do)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-grid:last-child {
  border-bottom: none;
}

.feature-grid.reverse .feature-text {
  order: 2;
}

.feature-grid.reverse .feature-media {
  order: 1;
}

.feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(179, 71, 217, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.feature-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px var(--glow-purple);
}

.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.feature-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, var(--glow-purple), transparent 60%),
              radial-gradient(circle at 70% 30%, var(--glow-magenta), transparent 60%);
  opacity: 0.6;
}

.feature-placeholder span {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-grid.reverse .feature-text,
  .feature-grid.reverse .feature-media {
    order: unset;
  }
  .feature-media {
    order: -1;
  }
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px var(--glow-purple);
  color: inherit;
}

/* Card image or placeholder */
.card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

/* Placeholder gradient variations */
.card-placeholder.gradient-1 {
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0a2a1a 100%);
}
.card-placeholder.gradient-2 {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1045 50%, #1a0525 100%);
}
.card-placeholder.gradient-3 {
  background: linear-gradient(135deg, #0a1628 0%, #1a0a2e 50%, #0f2027 100%);
}
.card-placeholder.gradient-4 {
  background: linear-gradient(135deg, #16213e 0%, #1a0a2e 50%, #2d1045 100%);
}

.card-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, var(--glow-purple), transparent 60%),
              radial-gradient(circle at 70% 30%, var(--glow-magenta), transparent 60%);
  opacity: 0.5;
}

.card-placeholder span {
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-body .card-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.card-body .card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

/* Tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-light);
  background: rgba(179, 71, 217, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ============================================
   EVENTS / TALKS LIST
   ============================================ */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.event-item:hover {
  border-color: var(--border-hover);
  background: rgba(179, 71, 217, 0.04);
  transform: translateX(4px);
  color: inherit;
}

.event-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  white-space: nowrap;
  min-width: 90px;
}

.event-title {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
}

.event-tags {
  display: flex;
  gap: 0.4rem;
}

@media (max-width: 600px) {
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================
   STATS ROW
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--purple-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 500px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EVENT EXTRAS (badges, arrows, year nav)
   ============================================ */
.event-item.upcoming {
  border-color: rgba(179, 71, 217, 0.25);
  background: rgba(179, 71, 217, 0.04);
}

.event-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.event-item:hover .event-arrow {
  transform: translateX(4px);
  color: var(--purple-light);
}

.event-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(6, 214, 160, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.year-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.year-link:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(179, 71, 217, 0.08);
  transform: translateY(-1px);
}

.title-count {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.6em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================
   PAGE CONTENT (listing pages)
   ============================================ */
.page-wrapper {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 2rem;
  min-height: 80vh;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

/* ============================================
   BLOG POST LAYOUT
   ============================================ */
.blog-post {
  padding-bottom: 2rem;
}

/* Blog Header */
.blog-header {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 2rem 2.5rem;
}

.blog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(179, 71, 217, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.blog-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fafafa;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-meta .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.blog-meta .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-meta .meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blog-meta .author-name {
  color: var(--text);
  font-weight: 600;
}

.blog-meta .meta-details {
  color: var(--text-dim);
}

/* Blog Hero Image */
.blog-hero-img {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.blog-hero-img img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* Blog Body + Layout */
.blog-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-body {
  max-width: 700px;
  padding-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.blog-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fafafa;
  margin: 3rem 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

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

.blog-body a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.blog-body a:hover {
  color: var(--magenta);
}

.blog-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Lists */
.blog-body ul, .blog-body ol {
  margin: 0 0 1.5rem 1.25rem;
}

.blog-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.blog-body li::marker {
  color: var(--purple-light);
}

/* Blockquote */
.blog-body blockquote {
  border-left: 3px solid var(--purple);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  background: rgba(179, 71, 217, 0.04);
  border-radius: 0 8px 8px 0;
}

.blog-body blockquote p {
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0;
}

/* Inline code */
.blog-body code {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(179, 71, 217, 0.1);
  color: var(--purple-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Code blocks — macOS window style
   Target only block-level code: div.highlighter-rouge (not inline code > .highlighter-rouge)
   and figure.highlight. The inner div.highlight should NOT get its own box. */
.blog-body div.highlighter-rouge,
.blog-body figure.highlight {
  position: relative;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c18;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.blog-body div.highlighter-rouge::before,
.blog-body figure.highlight::before {
  content: '';
  display: block;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-image:
    radial-gradient(circle at 16px 50%, #ef4444 4.5px, transparent 4.5px),
    radial-gradient(circle at 34px 50%, #eab308 4.5px, transparent 4.5px),
    radial-gradient(circle at 52px 50%, #22c55e 4.5px, transparent 4.5px);
  background-repeat: no-repeat;
}

/* Inner div.highlight inside highlighter-rouge should be transparent, no border/box */
.blog-body div.highlighter-rouge div.highlight,
.blog-body figure.highlight div.highlight {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  overflow: visible;
}

.blog-body div.highlighter-rouge div.highlight::before,
.blog-body figure.highlight div.highlight::before {
  display: none;
}

.blog-body div.highlighter-rouge pre,
.blog-body figure.highlight pre {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0;
  line-height: 1.7;
}

.blog-body div.highlighter-rouge pre code,
.blog-body figure.highlight pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
}

/* Code block GitHub footer — added by JS */
.code-block-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: right;
}

.code-block-footer a {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.code-block-footer a:hover {
  color: var(--purple-light);
}

/* Standalone pre (not wrapped) */
.blog-body > pre {
  background: #0c0c18;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  line-height: 1.7;
}

.blog-body > pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
}

/* Images in body */
.blog-body img {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 2rem 0;
  width: 100%;
}

/* Tables */
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  display: table;
  overflow-x: auto;
  background: transparent;
}

.blog-body th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #fafafa;
  font-weight: 600;
  border-bottom: 2px solid rgba(179, 71, 217, 0.2);
}

.blog-body td {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

/* Horizontal rule */
.blog-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Author Bio */
.blog-author-bio {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.blog-author-bio .bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.blog-author-bio .bio-content {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.blog-author-bio .bio-content strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.blog-author-bio .bio-content p {
  margin: 0 0 0.5rem;
}

.blog-author-bio .bio-links {
  display: flex;
  gap: 1rem;
}

.blog-author-bio .bio-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-author-bio .bio-links a:hover {
  color: var(--purple-light);
}

@media (max-width: 600px) {
  .blog-author-bio {
    flex-direction: column;
    text-align: center;
  }
  .blog-author-bio .bio-links {
    justify-content: center;
  }
}

/* ============================================
   TAG FILTER BUTTONS
   ============================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(179, 71, 217, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--glow-purple);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(179, 71, 217, 0.08);
  color: var(--text);
}

/* ============================================
   ABOUT TIMELINE
   ============================================ */
.about-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--magenta), var(--purple));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--purple);
  box-shadow: 0 0 8px var(--glow-purple);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  border-color: var(--magenta);
  box-shadow: 0 0 12px var(--glow-magenta);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.timeline-role {
  font-size: 0.9rem;
  color: var(--purple-light);
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   LINK CARDS (organizer, links pages)
   ============================================ */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: var(--border-hover);
  background: rgba(179, 71, 217, 0.04);
  transform: translateX(4px);
  color: inherit;
}

.link-card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.link-card-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.link-card:hover .link-card-arrow {
  transform: translateX(4px);
  color: var(--purple-light);
}

/* Page subtitle */
.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ============================================
   ANIMATED GRID BACKGROUND
   ============================================ */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--purple) 1px, transparent 1px),
    linear-gradient(90deg, var(--purple) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* ============================================
   UTILITY
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(179, 71, 217, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(179, 71, 217, 0.5);
}

/* Selection color */
::selection {
  background: rgba(179, 71, 217, 0.3);
  color: #fff;
}