:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-accent: #0066cc;
  --color-border: #e0e0e0;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Terminal Header */
.terminal-header {
  margin-bottom: 4rem;
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-symbol {
  color: var(--color-text-muted);
}

.name {
  color: var(--color-text);
}

.cursor {
  display: inline-block;
  width: 0.6rem;
  height: 1.5rem;
  background: var(--color-text);
  animation: blink 1s step-end infinite;
}

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

/* Hero Image */
.hero-image {
  margin-bottom: 3rem;
}

.hero-image img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Main Content */
main {
  min-height: 60vh;
}

/* Introduction */
.intro {
  margin-bottom: 4rem;
}

.intro p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

/* Section Headers */
.section-header {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* GitHub Achievements */
.achievements-section {
  margin-bottom: 4rem;
}

.achievements-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.achievement-item {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  cursor: default;
}

.achievement-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  z-index: 10;
}

.achievement-item::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  z-index: 10;
}

.achievement-item:hover::after,
.achievement-item:hover::before {
  opacity: 1;
  visibility: visible;
}

.achievement-tier {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Pinned Repositories */
.repos-section {
  margin-bottom: 4rem;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .repos-grid {
    grid-template-columns: 1fr;
  }
}

.repo-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.repo-card:hover {
  border-color: var(--color-text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.repo-header {
  margin-bottom: 0.5rem;
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
}

.repo-description {
  flex: 1;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.repo-language {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3572A5;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.repo-icon {
  width: 14px;
  height: 14px;
}

/* Blog Posts */
.posts-section {
  margin-bottom: 4rem;
}

.posts-list {
  list-style: none;
}

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

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

.post-link {
  text-decoration: none;
  display: block;
}

.post-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pin-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

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

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-source {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Loading State */
.posts-loading {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 1rem 0;
}

.posts-error {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #c00;
  padding: 1rem 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.links a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.copyright {
  margin-left: auto;
}

.made-with {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.claude-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.claude-link:hover {
  color: var(--color-text);
}

.claude-logo {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 2rem 1rem;
  }

  .terminal-prompt {
    font-size: 1.25rem;
  }

  .cursor {
    width: 0.5rem;
    height: 1.25rem;
  }

  .intro p {
    font-size: 1rem;
  }
}
