:root {
  --ink: #16181d;
  --muted: #5b6470;
  --faint: #8a929c;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --accent: #2f5fde;
  --accent-soft: #eef2fe;
  --maxw: 760px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; }
.hero .role { color: var(--accent); font-weight: 600; font-size: 17px; margin: 0 0 24px; }
.lead { font-size: 19px; color: var(--muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg);
}
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: #2450c4; }

/* ---- Sections ---- */
main { padding-bottom: 80px; }
section { margin-top: 56px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; margin: 0 0 20px; }
h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }

/* ---- CV / timeline ---- */
.entry { padding: 22px 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; }
.entry .meta { color: var(--faint); font-size: 14px; font-weight: 500; }
.entry .org { color: var(--muted); font-weight: 600; }
.entry p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 99px;
}

/* ---- Blog list ---- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:first-child { border-top: 0; }
.post-list a { display: block; padding: 20px 0; color: var(--ink); }
.post-list a:hover { text-decoration: none; }
.post-list a:hover .post-title { color: var(--accent); }
.post-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.post-date { color: var(--faint); font-size: 14px; margin-top: 2px; }

/* ---- Article ---- */
article h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
article .post-date { font-size: 15px; margin-bottom: 36px; }
article h2 { font-size: 22px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 12px; }
article h3 { font-size: 18px; margin: 28px 0 8px; }
article p, article li { color: #2c313a; font-size: 18px; }
article blockquote {
  margin: 24px 0; padding: 6px 20px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---- Contact ---- */
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.contact-row .label { color: var(--faint); width: 90px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--faint); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: 32px; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-toggle { display: block; }
}
