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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-green: #3fb950;
  --tag-bg: #1f2937;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.cursor {
  animation: blink 1.2s step-end infinite;
  color: var(--accent-green);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

nav {
  display: flex;
  gap: 1.5rem;
}

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

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

/* Hero */
.hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Posts */
.posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.post-meta time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--tag-bg);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.read-more {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: opacity 0.15s;
}

.read-more:hover {
  opacity: 0.75;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Profile links */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.link-item:hover {
  border-color: var(--accent);
  background: #1a2332;
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.link-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.link-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
  flex-shrink: 0;
}

.link-item:hover .link-arrow {
  color: var(--accent);
}

/* Footer author (about page) */
.footer-about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-author {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-author {
  color: var(--text);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }

  nav {
    gap: 1rem;
  }
}
