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

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

:root {
  --void-black: #0f0f0f;
  --pure-black: #000000;
  --charcoal: #2c2c2c;
  --pure-white: #ffffff;
  --ghost-white: rgba(255,255,255,0.6);
  --whisper-white: rgba(255,255,255,0.5);
  --phantom-white: rgba(255,255,255,0.2);
  --border-mist-12: rgba(255,255,255,0.12);
  --border-mist-10: rgba(255,255,255,0.10);
  --border-mist-08: rgba(255,255,255,0.08);
  --border-mist-06: rgba(255,255,255,0.06);
  --border-mist-04: rgba(255,255,255,0.04);
  --cobalt: #0007cd;
  --cyan: #00ffff;
  --cyan-glow: rgba(0,255,255,0.12);
  --signal-blue: #0089ff;
  --ocean-blue: #0096ff;
  --near-black: oklch(0.145 0 0);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --max-width: 1200px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 37px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--void-black);
  color: var(--ghost-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.gh-nav { position: sticky; top: 0; z-index: 100; background: var(--void-black); border-bottom: 1px solid var(--border-mist-06); backdrop-filter: blur(12px); }
.gh-nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.gh-nav-logo { font-size: 20px; font-weight: 400; color: var(--pure-white); letter-spacing: -0.02em; }
.gh-nav-logo span { color: var(--cyan); }
.gh-nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.gh-nav-links a { color: var(--ghost-white); font-size: 14px; letter-spacing: 0.02em; transition: color 0.2s; }
.gh-nav-links a:hover { color: var(--pure-white); }
.gh-nav-cta { background: var(--pure-white); color: var(--near-black); padding: 8px 24px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; border: none; cursor: pointer; }

.gh-hero { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px 80px; text-align: center; position: relative; }
.gh-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse at center, var(--cyan-glow) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.gh-hero-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.7px; color: var(--cyan); margin-bottom: 24px; position: relative; z-index: 1; }
.gh-hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 400; line-height: 0.87; color: var(--pure-white); margin-bottom: 24px; position: relative; z-index: 1; }
.gh-hero-subtitle { font-size: 18px; line-height: 1.63; color: var(--ghost-white); max-width: 600px; margin: 0 auto 40px; position: relative; z-index: 1; }
.gh-hero-cta { display: inline-flex; gap: 16px; position: relative; z-index: 1; }
.gh-btn-primary { background: var(--pure-white); color: var(--near-black); padding: 12px 32px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 500; border: none; cursor: pointer; display: inline-block; }
.gh-btn-primary:hover { opacity: 0.9; color: var(--near-black); }
.gh-btn-secondary { background: var(--cyan-glow); color: var(--cyan); padding: 12px 32px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 500; border: 1px solid var(--ocean-blue); cursor: pointer; display: inline-block; }
.gh-btn-secondary:hover { background: rgba(0,255,255,0.2); }

.gh-section { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; }
.gh-section-header { margin-bottom: 48px; }
.gh-section-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.7px; color: var(--cyan); margin-bottom: 16px; }
.gh-section-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 400; line-height: 1.0; color: var(--pure-white); }

.gh-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.gh-card { background: var(--pure-black); border: 1px solid var(--border-mist-10); border-radius: var(--radius-md); padding: 32px; transition: border-color 0.3s, box-shadow 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.gh-card:hover { border-color: var(--border-mist-12); box-shadow: 0 0 0 1px var(--border-mist-10), 0 0 40px var(--cyan-glow); }
.gh-card:hover::before { opacity: 1; }
.gh-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity 0.3s; }
.gh-card-meta { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.gh-card-title { font-size: 1.5rem; font-weight: 500; line-height: 1.2; color: var(--pure-white); margin-bottom: 12px; }
.gh-card-excerpt { font-size: 15px; line-height: 1.63; color: var(--ghost-white); margin-bottom: 20px; }
.gh-card-author { font-size: 13px; color: var(--whisper-white); display: flex; align-items: center; gap: 8px; }
.gh-card-author-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--border-mist-10); }

.gh-post { max-width: 720px; margin: 0 auto; padding: 80px 24px 120px; }
.gh-post-header { margin-bottom: 48px; }
.gh-post-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.7px; color: var(--cyan); margin-bottom: 16px; display: inline-block; }
.gh-post-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 0.87; color: var(--pure-white); margin-bottom: 24px; }
.gh-post-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ghost-white); }
.gh-post-meta-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--border-mist-10); border: 1px solid var(--border-mist-08); }

.gh-content { font-size: 18px; line-height: 1.8; color: var(--ghost-white); }
.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 { font-weight: 400; color: var(--pure-white); line-height: 1.0; margin-top: 2em; margin-bottom: 0.5em; }
.gh-content h1 { font-size: 2.5rem; line-height: 0.87; }
.gh-content h2 { font-size: 2rem; }
.gh-content h3 { font-size: 1.5rem; }
.gh-content p { margin-bottom: 1.5em; }
.gh-content strong { color: var(--pure-white); font-weight: 500; }
.gh-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.gh-content blockquote { border-left: 2px solid var(--cyan); padding: 16px 24px; margin: 2em 0; background: var(--border-mist-04); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--pure-white); font-style: italic; }
.gh-content blockquote p:last-child { margin-bottom: 0; }
.gh-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--border-mist-06); padding: 2px 6px; border-radius: var(--radius-sm); letter-spacing: -0.28px; color: var(--cyan); }
.gh-content pre { background: var(--pure-black); border: 1px solid var(--border-mist-10); border-radius: var(--radius-md); padding: 24px; margin: 2em 0; overflow-x: auto; }
.gh-content pre code { background: none; padding: 0; font-size: 14px; line-height: 1.5; color: var(--ghost-white); }
.gh-content img { max-width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-mist-08); margin: 2em 0; }
.gh-content hr { border: none; border-top: 1px solid var(--border-mist-06); margin: 3em 0; }

.gh-footer { border-top: 1px solid var(--border-mist-06); padding: 40px 24px; text-align: center; font-size: 14px; color: var(--whisper-white); font-family: var(--font-mono); }
.gh-footer a { color: var(--cyan); }

.gh-pagination { display: flex; justify-content: center; gap: 16px; margin-top: 48px; }
.gh-pagination a, .gh-pagination span { padding: 10px 24px; border: 1px solid var(--border-mist-10); border-radius: var(--radius-md); color: var(--ghost-white); font-size: 14px; }
.gh-pagination a:hover { border-color: var(--border-mist-12); background: var(--border-mist-04); color: var(--pure-white); }

.gh-cursor { display: inline-block; width: 2px; height: 1em; background: var(--cyan); animation: glow-pulse 1.5s ease-in-out infinite; vertical-align: text-bottom; margin-left: 2px; }
@keyframes glow-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

@media (max-width: 768px) {
  .gh-nav-links { display: none; }
  .gh-hero { padding: 80px 20px 60px; }
  .gh-section { padding: 60px 20px; }
  .gh-card-grid { grid-template-columns: 1fr; }
  .gh-post { padding: 60px 20px 80px; }
  .gh-hero-title { font-size: 2.5rem; }
}
