:root {
  --ink: #1f2933;
  --heading: #0b3c69;
  --link: #2a7ab0;
  --muted: #6b7785;
  --rule: #e3e8ee;
  --bg: #ffffff;
  --serif: "EB Garamond", Cardo, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
}

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

/* ---------- layout ---------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* ---------- left column ---------- */
.profile { text-align: center; position: sticky; top: 48px; }

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rule);
  display: block;
  margin: 0 auto 24px;
}

.name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 14px;
  line-height: 1.2;
}

.role { margin: 0; color: var(--ink); }

.email {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  margin: 10px 0 0;
  word-break: break-all;
}

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.links a { color: var(--heading); display: inline-flex; align-items: center; }
.links a:hover { color: var(--link); text-decoration: none; }
.links svg { width: 24px; height: 24px; fill: currentColor; }

.links .cv {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ---------- right column ---------- */
.content section { margin-bottom: 40px; }

h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 14px;
  line-height: 1.2;
}

p { margin: 0 0 16px; }

ul.interests, ul.news { margin: 0; padding-left: 1.3em; }
ul.interests li, ul.news li { margin-bottom: 10px; }

.news .date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 8px;
  white-space: nowrap;
}

.muted { color: var(--muted); }

/* ---------- industry experience (timeline) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }

.tl-item {
  display: grid;
  grid-template-columns: 46px 30px minmax(0, 1fr);
  align-items: stretch;
}

.tl-year {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #b6c0cc;
  text-align: right;
  padding-top: 20px;
  white-space: nowrap;
}

/* vertical rail with a dot per entry */
.tl-rail { position: relative; }
.tl-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--rule);
}
.tl-item:first-child .tl-rail::before { top: 26px; }
.tl-item:last-child .tl-rail::before { bottom: auto; height: 26px; }
.tl-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--link);
}

.tl-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: #f5f7f9;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 14px 8px;
}

.tl-logo {
  width: 150px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.tl-logo img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
}
.tl-logo .monogram {
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.tl-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 14px;
}
.tl-org {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.tl-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--link);
  white-space: nowrap;
  justify-self: end;
}

.tl-points {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 0.95rem;
  color: var(--muted);
}
.tl-points li { margin-bottom: 4px; }
.tl-points a { color: var(--link); }

/* ---------- achievements ---------- */
.awards { list-style: none; margin: 0; padding: 0; }
.awards li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 18px;
  padding: 5px 0;
}
.awards .award { font-weight: 600; }
.awards .award-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  justify-self: end;
}

/* ---------- publications ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }

.pub-filter { display: flex; gap: 8px; }
.pub-filter button {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 5px 18px;
  border: none;
  border-radius: 6px;
  background: #eef4fa;
  color: var(--link);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pub-filter button:hover { background: #dbe8f5; }
.pub-filter button.active { background: var(--link); color: #fff; }

.pubs { list-style: none; margin: 0; padding: 0; }
.pub[hidden] { display: none; }
.pub.last-visible { border-bottom: none; }

.pub {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.pub:first-child { padding-top: 4px; }
.pub:last-child { border-bottom: none; }

.thumb {
  border: 1px solid var(--rule);
  background: #f7f9fb;
  overflow: hidden;
}
.thumb img { display: block; width: 100%; height: auto; }

.pub-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
.pub-title a { color: var(--link); }

.authors, .venue { margin: 0 0 8px; font-size: 0.95rem; }
.authors .me { color: var(--link); font-weight: 600; }
.venue { color: var(--muted); }

.pub-links { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pub-links a {
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: 4px;
  background: #eef4fa;
  color: var(--link);
}
.pub-links a:hover { background: #dbe8f5; text-decoration: none; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 18px; }
  .page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 22px 60px;
  }
  .profile { position: static; }
  h2 { font-size: 1.6rem; }
  .pub { grid-template-columns: 1fr; gap: 14px; }
  .thumb { max-width: 320px; }
  .tl-item { grid-template-columns: 38px 22px minmax(0, 1fr); }
  .tl-card { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .tl-logo { width: 120px; min-height: 44px; }
  .tl-logo img { max-height: 44px; }
}
