:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-hover: #1a1a1e;
  --border: #23232a;
  --border-hover: #38383f;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #ea580c;
  --accent-dim: #c2410c;
  --accent-hover: #fb923c;
  --accent-glow: rgba(234, 88, 12, 0.08);
}

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

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  width: 100%;
  padding: 80px 24px 48px;
}

/* Header */
header {
  margin-bottom: 48px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.name-row h1 {
  margin-bottom: 0;
}

.greeting {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}

/* Avatar */
.avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(234, 88, 12, 0.2));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* About */
.about {
  margin-bottom: 48px;
}

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

.about p:last-child {
  margin-bottom: 0;
}

.about .highlight {
  color: var(--text);
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.inline-link {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.inline-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

/* Tech stack pills */
.stack {
  margin-bottom: 48px;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  transition: all 0.2s;
  background: var(--surface);
}

.pill:hover {
  border-color: var(--accent-dim);
  color: var(--accent-hover);
  background: var(--accent-glow);
}

/* Philosophy */
.philosophy {
  margin-bottom: 48px;
}

.manifesto {
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.manifesto p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
}

/* Section titles */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Writing */
.writing {
  margin-bottom: 48px;
}

.writing-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  background: var(--surface);
  transition: all 0.2s;
  margin-bottom: 10px;
}

.writing-item:last-child {
  margin-bottom: 0;
}

.writing-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.writing-title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.writing-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Project card */
.project {
  margin-bottom: 48px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  transition: all 0.2s;
  margin-bottom: 10px;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 2px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-glow);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-links {
  display: flex;
  gap: 8px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  transition: all 0.2s;
}

.link-chip:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Social links */
.links {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 48px 20px 32px;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stack-pills {
    gap: 6px;
  }
}
