/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #397EA8;
  --blue-light: #e8f3fa;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --sidebar-w: 240px;
}

html { font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

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

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: #f8fafc;
  border-right: 1px solid var(--border);
  padding: 40px 28px;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  object-fit: cover;
  margin-bottom: 12px;
}

.sidebar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sidebar-title {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.4;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  margin-top: 8px;
}

.nav-link {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-link:hover { background: var(--blue-light); text-decoration: none; color: var(--blue); }
.nav-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.sidebar-footer a { color: var(--muted); }
.sidebar-footer a:hover { color: var(--blue); }

/* === MAIN CONTENT === */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 56px 64px;
  max-width: 820px;
}

/* === PAGE HEADER === */
.page-header { margin-bottom: 40px; }
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-header .lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

/* === SECTION === */
.section { margin-bottom: 48px; }
.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* === JOB ENTRY === */
.job { display: flex; gap: 20px; margin-bottom: 28px; }
.job-date {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}
.job-content { flex: 1; }
.job-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 1px;
}
.job-company {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.job-bullets {
  list-style: none;
  padding: 0;
}
.job-bullets li {
  font-size: 13.5px;
  color: #374151;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
  line-height: 1.5;
}
.job-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* === SKILLS === */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-size: 12px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* === BLOG LIST === */
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.blog-item:first-child { border-top: 1px solid var(--border); }
.blog-meta {
  width: 110px;
  flex-shrink: 0;
}
.blog-date { font-size: 11.5px; color: var(--muted); }
.blog-tag {
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 500;
  margin-top: 3px;
}
.blog-content { flex: 1; }
.blog-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--blue); text-decoration: none; }
.blog-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* === BLOG POST === */
.post-header { margin-bottom: 36px; }
.post-header h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.post-meta { font-size: 12px; color: var(--muted); }
.post-body { font-size: 15px; line-height: 1.75; max-width: 620px; color: #374151; }
.post-body h2 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.post-body p { margin-bottom: 16px; }
.post-body ul { padding-left: 20px; margin-bottom: 16px; }
.post-body ul li { margin-bottom: 6px; }
.back-link { font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 32px; }
.back-link:hover { color: var(--blue); text-decoration: none; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { position: static; width: 100%; min-height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 24px 20px; }
  .main { margin-left: 0; padding: 32px 20px; }
  .job { flex-direction: column; gap: 4px; }
  .job-date { width: auto; }
}
