:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #6b6a66;
  --accent: #2f5d50;
  --rule: #e4e1da;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --fg: #ecebe6;
    --muted: #9b9a94;
    --accent: #8cc3b0;
    --rule: #2c2b28;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 ui-serif, Georgia, "Times New Roman", serif;
}

main {
  flex: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 18vh 1.5rem 3rem;
}

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

.lede { margin: 0; color: var(--muted); font-size: 1.15rem; }

h2 {
  margin: 3.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font: 600 0.75rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.projects { list-style: none; margin: 0; padding: 0; }
.projects li + li { margin-top: 1.5rem; }
.projects p { margin: 0.25rem 0 0; color: var(--muted); }
.projects a { font-weight: 600; font-size: 1.15rem; }

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

footer {
  max-width: 38rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font: 0.875rem ui-sans-serif, system-ui, sans-serif;
}
