/* ---------- Design tokens ---------- */
:root {
  --accent: #2563eb;          /* single accent color — change to taste */
  --ink: #1a1a1a;             /* main text */
  --muted: #6b7280;           /* secondary text */
  --line: #e5e7eb;            /* hairline dividers */
  --bg: #ffffff;
  --max-width: 720px;
  --sidebar-width: 260px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }

/* ---------- Layout ---------- */
.layout {
  max-width: calc(var(--sidebar-width) + var(--max-width) + 80px);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 64px;
  text-align: left;
}
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  display: block;
  margin-bottom: 20px;
}
.name {
  font-size: 1.5rem;
  margin: 0 0 4px;
}
.tagline {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

/* ---------- Content ---------- */
.content { max-width: var(--max-width); }
.content section { margin-bottom: 48px; }
.content h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Experience entries */
.entry { margin-bottom: 28px; }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.entry-head h3 { margin: 0; font-size: 1.05rem; }
.dates { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.org { margin: 2px 0 8px; color: var(--muted); font-size: 0.95rem; }
.entry ul { margin: 0; padding-left: 18px; }
.entry li { margin-bottom: 4px; }

/* Skills as tags */
.tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.9rem;
}

/* Achievements */
.achievements { margin: 0; padding-left: 18px; }
.achievements li { margin-bottom: 10px; }

/* ---------- Responsive: stack on mobile ---------- */
@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
  .sidebar { position: static; }
  .avatar { width: 110px; height: 110px; }
}
