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

:root {
  --text: #2d2d2d;
  --text-secondary: #636363;
  --text-muted: #999;
  --bg: #f6f5f1;
  --surface: #fff;
  --border: #e0ddd6;
  --accent: #8b7355;
  --max-width: 620px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

/* Navigation */
header {
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 1rem;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.25rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.2;
}

.hero-founder {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.hero-founder a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.hero-founder a:hover {
  border-color: var(--text);
}

.tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Sections */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--text);
}

section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

section p strong {
  color: var(--text);
  font-weight: 600;
}

/* Story */
.story {
  border-top: 1px solid var(--border);
}

/* Projects */
.projects {
  border-top: 1px solid var(--border);
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.project-card:first-child {
  border-top: 1px solid var(--border);
}

.project-card:hover {
  opacity: 0.7;
}

.project-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.project-card-icon.sbproxy {
  background: #1d4ed8;
  color: #fff;
}

.project-card-icon.clictl {
  background: #fff;
  border: 1px solid var(--border);
}

.project-card-icon.clictl img {
  object-fit: contain;
}

.project-card-icon.mcptest {
  background: #047857;
  color: #fff;
}

.project-card-body {
  flex: 1;
  min-width: 0;
}

.project-card-body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.project-card-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.0625rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--bg-secondary, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: middle;
  text-transform: none;
}

.project-card-body p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0.125rem 0 0 0;
  line-height: 1.5;
}

.project-card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* Latest */
.latest {
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.latest-card {
  display: block;
  padding: 1.25rem 0;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.latest-card:hover {
  opacity: 0.7;
}

.latest-card .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.latest-card .post-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.4;
}

.latest-card .post-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.latest-card .read-more {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
}

.email-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

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

/* Footer */
footer {
  margin-top: 1rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-links svg {
  width: 18px;
  height: 18px;
}

/* Blog - Listing */
.blog-listing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-listing h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-list-item {
  display: block;
  padding: 1.25rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.blog-list-item:first-child {
  border-top: 1px solid var(--border);
}

.blog-list-item:hover {
  opacity: 0.7;
}

.blog-list-item .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-list-item .post-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text);
  margin: 0.25rem 0 0.375rem;
}

.blog-list-item .post-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.375rem;
}

.blog-list-item .read-more {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Blog - Post */
.blog-post {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.blog-back {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.blog-back:hover {
  color: var(--text);
}

.blog-post-header {
  margin-bottom: 1.5rem;
}

.blog-post-header .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-post-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0.25rem 0 0.375rem;
  color: var(--text);
  line-height: 1.3;
}

.blog-post-header .post-author {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.blog-post-body {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.blog-post-body p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.blog-post-body h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 400;
  font-style: italic;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.blog-post-body a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.blog-post-body a:hover {
  border-color: var(--text);
}

.blog-post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin: 1.25rem 0;
}

.blog-post-body blockquote p {
  color: var(--text);
  font-style: italic;
}

.blog-post-body ul, .blog-post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.blog-post-body li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    gap: 0.375rem;
  }
}
