:root {
  --ink: #1a1a1a;
  --text: #3d3d3d;
  --muted: #8a8a8a;
  --line: #e8e8e8;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 112px 24px 128px;
  animation: enter 0.8s ease-out both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #cfcfcf;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

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

/* Header */

header {
  display: flex;
  align-items: center;
  gap: 18px;
}

header img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 2px;
}

.bio {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  margin: 40px 0 0;
}

nav {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--ink);
}

/* Sections: label column + content column */

section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 4px 0 0;
}

h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h3 a {
  text-decoration: none;
}

h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.date {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Roles within a company: a quiet vertical thread */

.roles {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.roles > li {
  position: relative;
  padding: 0 0 32px 22px;
}

.roles > li:last-child {
  padding-bottom: 0;
}

.roles > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  bottom: -9px;
  width: 1px;
  background: var(--line);
}

.roles > li:last-child::before {
  display: none;
}

.roles > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4c4c4;
}

.roles > li:first-child::after {
  background: var(--ink);
}

.roles ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.roles ul li + li {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

@media (max-width: 560px) {
  main {
    padding-top: 64px;
  }

  section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .row {
    flex-direction: column;
    gap: 0;
  }
}
