:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #16181C;
  --text-dim: #5B6472;
  --accent: #1F4D3A;
  --accent-soft: #EAF1ED;
  --line: #D8D7D1;
  --sidebar-w: 270px;
  --max: 1060px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.68;
}

/* ---------- Top bar ---------- */
.topbar {
  max-width: var(--max); margin: 0 auto; padding: 32px 36px 26px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-size: 16px; font-weight: 800; }
.top-links { display: flex; align-items: center; gap: 28px; }
.top-links a { font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-links a:hover { text-decoration: underline; }
.top-links a.resume { color: var(--text); }

.page {
  max-width: var(--max); margin: 0 auto; padding: 52px 36px 80px;
  display: flex; gap: 64px; align-items: flex-start;
}

a { color: var(--accent); }

/* ---------- Sidebar ---------- */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 48px; }
.avatar {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: center 65%;
  background: var(--accent-soft); border: 1px solid var(--line); display: block; margin-bottom: 26px;
}

.sidebar h1 { font-size: 23px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.sidebar .role { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent); line-height: 1.5; }
.sidebar .loc { margin: 0 0 18px; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.sidebar .tagline { margin: 0 0 16px; font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.6; }
.sidebar .skill-ticker {
  margin: 0; font-size: 12px; color: var(--text-dim); font-weight: 600; letter-spacing: 0.01em;
  padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.7;
}

/* ---------- Content ---------- */
.content { flex: 1; min-width: 0; }

.summary { margin-bottom: 48px; }
.summary p { margin: 0 0 16px; font-size: 14.5px; color: var(--text); }
.summary p.closer { font-weight: 600; color: var(--accent); margin: 20px 0 16px; }

.personality-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.personality-list li { font-size: 13.8px; color: var(--text-dim); line-height: 1.6; }
.personality-list strong { color: var(--text); font-weight: 600; }

section { margin-bottom: 44px; }
section h2 {
  font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
  margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.summary h2 { margin-bottom: 20px; }

/* ---------- Shipped in Production — plain list, README style ---------- */
.shipped-list { margin: 0; padding-left: 22px; }
.shipped-list li { font-size: 14px; color: var(--text-dim); line-height: 1.75; margin-bottom: 16px; }
.shipped-list li:last-child { margin-bottom: 0; }
.shipped-list strong { color: var(--text); font-weight: 700; }

/* ---------- Projects table ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.3px; border: 1px solid var(--line); }
.data-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text-dim); font-weight: 700; padding: 12px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.data-table th:last-child { border-right: none; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.data-table td:last-child { border-right: none; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--surface); }

.proj-table td:first-child { font-weight: 700; white-space: nowrap; }
.proj-table td:first-child a { color: var(--text); text-decoration: none; }
.proj-table td:first-child a:hover { color: var(--accent); text-decoration: underline; }
.proj-table td:nth-child(2) { color: var(--text-dim); }
.proj-table td:last-child { color: var(--text-dim); white-space: nowrap; font-size: 12.5px; }

/* ---------- Experience ---------- */
.exp-item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-bottom: 28px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-when { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.exp-when span { font-weight: 400; opacity: 0.8; }
.exp-body strong { font-size: 15px; font-weight: 700; }
.exp-body .muted { font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.exp-body .org { display: block; font-size: 13px; color: var(--accent); font-weight: 600; margin: 4px 0 10px; }
.exp-body ul { margin: 0; padding-left: 20px; }
.exp-body li { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; margin-bottom: 8px; }
.exp-body li:last-child { margin-bottom: 0; }

/* ---------- Skills (README style) ---------- */
.skills-box { border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; background: var(--surface); }
.skills-box ul { margin: 0; padding-left: 20px; }
.skills-box li { font-size: 13.8px; color: var(--text-dim); line-height: 2.1; }
.skills-box strong { color: var(--text); font-weight: 700; }

@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .top-links { flex-wrap: wrap; gap: 16px; }
  .page { flex-direction: column; gap: 36px; }
  .sidebar { width: 100%; position: static; }
  .avatar { width: 130px; }
  .exp-item { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
}

@media print {
  body { font-size: 12px; }
  .top-links a.resume { display: none; }
}
