:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1c2430;
  --muted: #5b6676;
  --border: #e3e6eb;
  --accent: #2563eb;
  --hero-bg: #0f172a;
  --hero-text: #f1f5f9;
  --hero-muted: #a5b1c2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131c2e;
    --text: #e5e9f0;
    --muted: #9aa5b5;
    --border: #233047;
    --accent: #7aa7ff;
    --hero-bg: #060a14;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 72px 0 64px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 8px;
  font-size: 1.15rem;
  max-width: 34em;
}

.meta {
  margin: 0 0 16px;
  color: var(--hero-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links a {
  color: var(--hero-text);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.95rem;
}

.links a:hover { background: rgba(255, 255, 255, 0.1); }

main section {
  padding: 48px 0 8px;
}

h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.timeline li:first-child { border-top: 0; padding-top: 0; }

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

.when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  padding-top: 2px;
}

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

.list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.list li:first-child { border-top: 0; padding-top: 0; }

.list a, .list strong { font-weight: 600; }

.list span { display: block; color: var(--muted); }

.footer {
  padding-top: 48px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .avatar { width: 96px; height: 96px; }
  h1 { font-size: 2rem; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
