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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #0f0f0f;
  --green: #00ff41;
  --green-dim: #00cc33;
  --green-glow: rgba(0, 255, 65, 0.15);
  --green-subtle: rgba(0, 255, 65, 0.08);
  --text-primary: #c0c0c0;
  --text-secondary: #808080;
  --text-muted: #505050;
  --border: #1e1e1e;
  --border-hover: #2a2a2a;
  --red: #ff3333;
  --yellow: #ffcc00;
  --blue: #00aaff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--green);
  color: var(--bg-primary);
}

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

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--green-glow);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

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

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
}

.site-logo .prompt {
  color: var(--text-muted);
  margin-right: 2px;
}

.site-logo:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--green);
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green);
  text-shadow: none;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Main */
.site-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  flex: 1;
}

/* Home hero */
.hero {
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.hero-greeting {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero h1 .highlight {
  color: var(--green);
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 700px;
}

.hero-bio p {
  margin-bottom: 1rem;
}

/* Section titles */
.section-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title .accent {
  color: var(--green);
}

/* Blog post cards */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
  gap: 1rem;
}

.post-item:hover {
  border-color: var(--green-dim);
  background: var(--green-subtle);
}

.post-item a {
  color: var(--text-primary);
  font-size: 0.95rem;
  flex: 1;
}

.post-item:hover a {
  color: var(--green);
}

.post-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--green-dim);
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
}

.view-all {
  margin-top: 1.5rem;
  text-align: right;
}

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

.view-all a:hover {
  color: var(--green);
}

/* Blog listing page */
.blog-listing {
  margin-top: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: -1px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--green-dim);
  background: var(--green-subtle);
  text-shadow: none;
}

.post-card .post-date {
  margin-bottom: 0.4rem;
}

.post-card-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.post-card:hover .post-card-title {
  color: var(--green);
}

.post-card-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-card-tags .post-tag {
  margin-left: 0;
}

.blog-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.blog-year:first-child {
  margin-top: 0;
}

/* Single post */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  gap: 1.5rem;
}

.post-content {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.post-content h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: #e0e0e0;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.post-content h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #d0d0d0;
  margin: 2rem 0 0.8rem;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.2rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--bg-tertiary);
  color: var(--green);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.post-content blockquote {
  border-left: 2px solid var(--green-dim);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  background: var(--green-subtle);
}

.post-content img {
  max-width: 100%;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.post-content a {
  border-bottom: 1px solid var(--green-dim);
}

.post-content a:hover {
  border-bottom-color: var(--green);
}

/* Post CTA */
.post-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
}

.post-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

.cta-prompt {
  font-size: 0.75rem;
  color: var(--green-dim);
  margin-bottom: 0.6rem;
}

.cta-text {
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--bg-primary);
  background: var(--green);
  border: none;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.cta-button:hover {
  color: var(--bg-primary);
  background: #fff;
  text-shadow: none;
  box-shadow: 0 0 12px var(--green-glow);
}

/* Consultation page */
.consult-intro {
  margin-bottom: 2.5rem;
}

.consult-intro p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 700px;
}

.consult-topics {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.consult-topics li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.consult-topics li::before {
  content: '>';
  color: var(--green);
  margin-right: 0.8rem;
  font-weight: bold;
}

.consult-booking-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.calendly-embed {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  min-height: 700px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.social-icons a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  color: var(--green);
  border-color: var(--green-dim);
  background: var(--green-subtle);
  text-shadow: none;
}

.social-icons svg {
  width: 16px;
  height: 16px;
}

.hero-social {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

/* Page title */
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* Mobile */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav {
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .post-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .site-content {
    padding: 2rem 1.2rem;
  }
}

/* Cursor blink animation */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--green);
  margin-left: 3px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Syntax highlighting (rouge - monokai-ish) */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: var(--red); }
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .se { color: var(--yellow); }
.highlight .nf,
.highlight .nb { color: var(--green); }
.highlight .c,
.highlight .c1,
.highlight .cm { color: var(--text-muted); font-style: italic; }
.highlight .mi,
.highlight .mf { color: var(--blue); }
.highlight .o,
.highlight .p { color: var(--text-secondary); }
.highlight .na { color: var(--green-dim); }
.highlight .nc,
.highlight .nn { color: var(--blue); }
