:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --bg: #fafafa;
  --accent: #1e3a8a;
  --rule: #e4e4e4;
  --code-bg: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --fg-muted: #9aa3ad;
    --bg: #0f1115;
    --accent: #93c5fd;
    --rule: #232730;
    --code-bg: #1c2029;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

header { margin-bottom: 2.5rem; }

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.role {
  font-size: 1.05rem;
  margin: 0;
  color: var(--fg);
}

.location {
  margin: 0.2rem 0 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

section {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

section:first-of-type {
  border-top: none;
  padding-top: 0;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

section > ul > li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.6rem;
}

section > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-muted);
}

.project { margin-bottom: 1.75rem; }
.project:last-child { margin-bottom: 0; }
.project p { margin: 0; }

.timeline li {
  padding-left: 0;
  margin-bottom: 1rem;
}

.timeline li::before { display: none; }

.timeline .when {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15rem;
}

.contacts li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.contacts li::before { display: none; }

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

a:hover { text-decoration-thickness: 2px; }

code {
  background: var(--code-bg);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono",
               "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
  font-style: italic;
  font-size: 0.95rem;
}

footer p { margin: 0; }

@media (max-width: 480px) {
  main { padding: 2.5rem 1.25rem 2rem; }
  h1 { font-size: 1.6rem; }
  body { font-size: 16px; }
}
