:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --link: #1565c0;
  --link-hover: #0d47a1;
  --border: #e8e8e8;
  --font-sans: "DM Sans", sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --max-width: 720px;
  --nav-height: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Top navigation — blue hyperlink text */
.site-header {
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--link);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--link-hover);
  text-decoration: underline;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.page {
  padding: 4rem 0 5rem;
}

.about {
  padding: 0 0 5rem;
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.about p {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-portrait {
  display: block;
  width: min(12rem, 48vw);
  height: auto;
  margin: 0 0 1.5rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero h1,
.page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.hero p,
.page p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.page-intro {
  margin: 0 0 2.5rem;
  max-width: 36ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Career timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.25rem 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.3rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text);
}

.timeline-date {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.timeline-body .timeline-role {
  margin: 0 0 0.65rem;
  max-width: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.timeline-body li {
  position: relative;
  padding-left: 0.9rem;
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 48ch;
}

.timeline-body li:last-child {
  margin-bottom: 0;
}

.timeline-body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.timeline-body--with-media {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.timeline-copy {
  flex: 1;
  min-width: 0;
}

.timeline-media {
  flex-shrink: 0;
  width: min(11rem, 42vw);
  height: auto;
  margin-top: 0.15rem;
}

.timeline-media--pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding: 1rem 1.5rem;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero {
    padding: 2.5rem 0 1.75rem;
  }

  .page {
    padding: 2.5rem 0 3.5rem;
  }

  .about {
    padding: 0 0 3.5rem;
  }

  .timeline-body--with-media {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-media {
    width: min(14rem, 70vw);
  }
}
