@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.25);
  --text: #111111;
  --text-secondary: #333;
  --text-dim: #888;
  --accent: #1a2b4a;
  --accent-soft: rgba(26, 43, 74, 0.04);
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ── Hero ── */
.hero {
  padding: 64px 0 48px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.hero-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-links a:hover { color: var(--accent); text-decoration: none; }
.hero-links .sep { color: var(--border); }
.hero-writing {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

/* ── Section ── */
section { padding: 40px 0; }

.section-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* ── Projects ── */
.project {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.project:first-of-type { border-top: none; }
.project:last-of-type { border-bottom: none; }
.project:hover { text-decoration: none; }
.project:hover .project-name { color: var(--accent); }
.project:hover .project-arrow { opacity: 1; transform: translateX(3px); }

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.project-arrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.project-tags span {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
}
footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; gap: 20px; }

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade { animation: fadeUp 0.5s ease both; }
.fade-d1 { animation-delay: 0.08s; }
.fade-d2 { animation-delay: 0.16s; }
.fade-d3 { animation-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 2rem; }
  .container { padding: 0 20px; }
  footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
