@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Premium minimal design */
:root {
  --bg: #fefefe;
  --bg-subtle: #fafafa;
  --text: #0a0a0a;
  --text-muted: #525252; /* neutral-600 */
  --text-light: #737373; /* neutral-500 */
  --border: #e5e5e5; /* neutral-200 */
  --border-light: #f5f5f5; /* neutral-100 */
  --accent: #1d4ed8; /* blue-700 */
  --accent-hover: #1e40af; /* blue-800 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html { 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.65;
  font-size: clamp(15px, 1.6vw, 16px);
  letter-spacing: -0.011em;
}

.container { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.brand { font-weight: 600; letter-spacing: -0.025em; font-size: 1.125rem; }
.brand a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
.brand a:hover { color: var(--accent); }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.2s ease; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.hero { margin: 56px 0 48px; }
h1 { font-size: clamp(32px, 5.5vw, 42px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.035em; font-weight: 700; }
.subtitle { color: var(--text-muted); font-size: 1.05rem; line-height: 1.5; margin-bottom: 8px; }
.location { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }

.links { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; }
.link-pill { 
  display: inline-flex; align-items: center; gap: 6px; 
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; 
  color: var(--text-muted); text-decoration: none; background: var(--bg); 
  font-size: 0.9rem; font-weight: 500; 
  transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.link-pill:hover { 
  border-color: var(--accent); color: var(--accent); 
  transform: translateY(-1px); box-shadow: var(--shadow);
}

.section { margin: 56px 0; }
.section-title { 
  font-size: 0.9rem; font-weight: 600; color: var(--text); 
  text-transform: uppercase; letter-spacing: 0.05em; 
  margin-bottom: 24px; 
}

.post-list { display: grid; gap: 8px; }
.post-item { 
  display: flex; align-items: baseline; gap: 16px; 
  padding: 16px 0; text-decoration: none; 
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.post-item:hover { transform: translateX(4px); }
.post-item:last-child { border-bottom: none; }
.post-title { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.post-date { color: var(--text-light); font-size: 0.85rem; min-width: 88px; font-weight: 500; }

.footer { margin: 56px 0 12px; color: var(--muted); font-size: 0.85rem; text-align: center; }

article.post h1 { font-size: clamp(26px, 4.5vw, 34px); margin-bottom: 10px; }
article.post .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
article.post p { margin: 12px 0; }
article.post a { color: var(--accent); }

@media (max-width: 640px) {
  .container { padding: 32px 20px; }
  .header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .nav { gap: 20px; }
  .hero { margin: 40px 0 32px; }
  .section { margin: 40px 0; }
  .links { gap: 10px; }
  .grid { gap: 16px; }
  .card { padding: 20px; }
}

/* Projects grid & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { 
  display: block; padding: 24px; 
  border: 1px solid var(--border-light); border-radius: 16px; 
  background: var(--bg); text-decoration: none; color: var(--text); 
  transition: all 0.3s ease; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.card:hover { 
  border-color: var(--border); background: var(--bg-subtle); 
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 600; }
.card .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; font-weight: 500; }
.card .desc { margin-top: 8px; color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; }
.actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.action-pill { 
  display: inline-flex; align-items: center; 
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; 
  color: var(--text-muted); text-decoration: none; background: var(--bg-subtle); 
  font-size: 0.8rem; font-weight: 500; 
  transition: all 0.2s ease;
}
.action-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--bg); }
.eyebrow { 
  display: inline-block; color: var(--text-light); 
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; 
  margin-bottom: 8px; font-weight: 600;
}
.section-actions { margin-top: 20px; }
.section-actions a { 
  color: var(--accent); text-decoration: none; font-weight: 600; 
  font-size: 0.9rem; transition: color 0.2s ease;
}
.section-actions a:hover { color: var(--accent-hover); }
