:root {
  --bg: #fbfbf9;
  --fg: #1b1b1a;
  --muted: #6b6b66;
  --rule: #e4e4df;
  --accent: #2f5bd3;
  --measure: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #ececea;
    --muted: #9a9a94;
    --rule: #2c2c2a;
    --accent: #8aa8ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 14vh, 8rem) 1.25rem 4rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lede {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

section {
  margin-top: 3.5rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.projects li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.projects li:last-child {
  border-bottom: 1px solid var(--rule);
}

.projects p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.projects .placeholder {
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: currentColor;
}

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