:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --fg: #f4f4f5;
  --muted: #9aa0a6;
  --accent: #6ea8fe;
  --border: #262a33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  font-weight: 600;
}

.topnav-links {
  display: flex;
  gap: 1.25rem;
}

.topnav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.topnav-links a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

.tagline {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hero-links a:hover {
  text-decoration: underline;
}

/* Sections */
.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--fg);
}

/* Roles / timeline entries */
.role {
  margin-bottom: 2rem;
}

.role:last-child {
  margin-bottom: 0;
}

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.role h3 {
  margin: 0;
  font-size: 1.1rem;
}

.role-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.role-dates {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.role-title {
  font-style: italic;
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}

.role h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}

.role ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}

.role li {
  margin-bottom: 0.5rem;
  color: var(--fg);
}

/* Skills */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--fg);
}

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

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2.5rem 1.5rem;
}

@media (max-width: 500px) {
  .topnav-links {
    gap: 0.75rem;
  }
  .topnav-links a {
    font-size: 0.8rem;
  }
}
