:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3fb950;
  --accent-hover: #56d364;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --content-width: 720px;
  --space-section: 4rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: 1.25rem;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.site-header, main, .site-footer {
  max-width: var(--content-width);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.wordmark {
  color: var(--text);
  font-weight: 600;
}

.wordmark:hover {
  color: var(--accent);
  text-decoration: none;
}

main > section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--border);
}

main > section:first-child {
  border-top: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.hero {
  padding-block: 3rem var(--space-section);
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero .title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--text);
  margin: 0.25rem 0 1rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 0 1rem;
}

.hero .meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--bg);
  text-decoration: none;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}

.section-title::before {
  content: "// ";
}

.section > p {
  margin: 0 0 1rem;
  max-width: 65ch;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin: 0 0 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 6px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-dates {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.timeline-company {
  font-weight: 400;
  color: var(--text-muted);
}

.timeline-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.timeline-summary {
  margin: 0;
  color: var(--text);
  max-width: 65ch;
}

.skills {
  margin: 0;
}

.skills-group {
  margin: 0 0 1.25rem;
}

.skills dt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.skills dd {
  margin: 0;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
}

.education {
  color: var(--text-muted);
}

.education strong {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
