:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --border: #e4e4e0;
  --accent: #0f766e;
  --accent-soft: #e6f4f2;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1111;
    --surface: #161a1a;
    --text: #ececec;
    --muted: #9aa0a6;
    --border: #262c2c;
    --accent: #2dd4bf;
    --accent-soft: #10302c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}

.avatar {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 { margin: 0; font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; }
.headline { margin: 4px 0 0; font-size: 1.05rem; }
.meta { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

.links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.links a {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
}
.links a:hover { border-color: var(--accent); text-decoration: none; }

section { margin-bottom: 44px; }

h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
}

h3 { margin: 0; font-size: 1.02rem; }

.cards { display: grid; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.card p { margin: 6px 0 0; }
.card.highlight { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }

.when { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0 !important; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 26px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline p { margin: 6px 0 0; }
.role { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.company { color: var(--accent); font-weight: 600; }
.company::before { content: "· "; color: var(--muted); font-weight: 400; }

.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
}

footer { border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 560px) {
  .page { padding-top: 40px; }
  .hero { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.8rem; }
}
