:root {
  --bg: #f9fafb;
  --ink: #0b0f14;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(11, 15, 20, 0.08);
  --card: #ffffff;
  --accent: #0070f3;
  --shadow: 0 20px 40px rgba(11, 15, 20, 0.08);
  --radius: 14px;
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 110px 0 80px;
}

.hero-inner {
  max-width: 720px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  margin-top: 18px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-top: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.project-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-thumb {
  height: 140px;
  border-radius: 12px;
  background: #f3f4f6;
  margin-bottom: 16px;
}

.project-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 112, 243, 0.08);
}

.about-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.about-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.writing-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.writing-item {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.fade-in {
  animation: fadeIn 0.7s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 800px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .footer-row {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding: 90px 0 60px;
  }
}
