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

:root {
  --bg: #0c0c0c;
  --bg2: #111111;
  --bg3: #181818;
  --border: #242424;
  --text: #e8e8e2;
  --muted: #666660;
  --accent: #b8f55a;
  --accent2: #5af5c8;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Layout ── */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.nav-logo {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); text-decoration: none; letter-spacing: 0.02em;
}
.nav-logo span { color: var(--muted); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.hero-tag::before {
  content: ''; display: block;
  width: 20px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: var(--sans); font-size: clamp(32px, 5vw, 44px);
  font-weight: 300; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal; color: var(--muted);
}
.hero-desc {
  font-size: 15px; color: var(--muted); line-height: 1.8;
  max-width: 520px; margin-bottom: 36px;
}
.hero-desc strong { color: var(--text); font-weight: 400; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.18s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
  background: var(--accent); color: #0c0c0c;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 2px;
  margin-top: 40px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Section commons ── */
section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 40px; }
.section-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; display: block;
  width: 14px; height: 1px; background: var(--accent);
}
.section-title {
  font-size: 22px; font-weight: 300;
  letter-spacing: -0.02em; color: var(--text);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 560px) { .about-grid { grid-template-columns: 1fr; } }
.stack-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px;
}
.stack-block h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 2px;
  transition: all 0.15s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.learning { border-style: dashed; color: var(--accent2); border-color: var(--accent2); opacity: 0.7; }

/* ── Projects ── */
.project-list { display: flex; flex-direction: column; gap: 1px; }
.project-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px;
  transition: border-color 0.18s, background 0.18s;
  cursor: default;
}
.project-item:hover {
  border-color: #333;
  background: var(--bg3);
}
.project-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 10px;
}
.project-name {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--text); letter-spacing: 0.01em;
}
.project-status {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.status-planned { color: var(--muted); border: 1px solid var(--border); }
.status-building { color: var(--accent); border: 1px solid rgba(184,245,90,0.3); background: rgba(184,245,90,0.05); }
.status-done { color: var(--accent2); border: 1px solid rgba(90,245,200,0.3); background: rgba(90,245,200,0.05); }
.project-desc {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  margin-bottom: 16px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-links { display: flex; gap: 10px; margin-top: 14px; }
.project-link {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.15s;
}
.project-link:hover { color: var(--text); }
.project-link svg { width: 11px; height: 11px; }

/* ── Blog ── */
.blog-list { display: flex; flex-direction: column; gap: 1px; }
.blog-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 22px 24px;
  border-radius: 2px;
  text-decoration: none;
  display: block;
  transition: all 0.18s;
}
.blog-item:hover { border-color: #333; background: var(--bg3); }
.blog-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.blog-meta .category {
  color: var(--accent2); border: 1px solid rgba(90,245,200,0.25);
  padding: 1px 7px; border-radius: 2px;
}
.blog-title {
  font-size: 15px; font-weight: 400; color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 6px;
}
.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; }
.coming-soon-note {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--border);
  padding: 20px 24px; border-radius: 2px;
  text-align: center;
  margin-top: 1px;
}

/* ── Blog post page ── */
.back-btn {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 40px; cursor: pointer;
  transition: color 0.15s;
  background: none; border: none;
}
.back-btn:hover { color: var(--text); }
.post-header { margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
.post-tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent2); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.post-title { font-size: clamp(22px, 4vw, 30px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 14px; }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.post-body { max-width: 620px; }
.post-body h2 { font-size: 18px; font-weight: 400; margin: 36px 0 14px; letter-spacing: -0.01em; }
.post-body p { margin-bottom: 18px; color: #c8c8c2; line-height: 1.8; }
.post-body code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 2px; color: var(--accent);
}
.post-body pre {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 2px; padding: 20px 22px; margin: 22px 0;
  overflow-x: auto;
}
.post-body pre code {
  background: none; border: none; padding: 0;
  font-size: 13px; color: var(--text); line-height: 1.65;
}
.post-body ul { padding-left: 20px; margin-bottom: 18px; color: #c8c8c2; }
.post-body li { margin-bottom: 6px; }

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; margin-top: 4px;
}
.contact-item {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 18px 20px; text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  transition: all 0.18s; border-radius: 2px;
}
.contact-item:hover { border-color: #333; background: var(--bg3); }
.contact-platform { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-handle { font-family: var(--mono); font-size: 13px; color: var(--text); }

/* ── Footer ── */
footer {
  padding: 32px 0;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: space-between;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Divider text ── */
.inline-cmd {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); background: var(--bg2);
  border: 1px solid var(--border); border-radius: 2px;
  padding: 2px 8px;
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .hero { padding: 56px 0 48px; }
  footer { flex-direction: column; gap: 6px; text-align: center; }
}
