:root {
  --bg: #fbfaf7;
  --fg: #1c1c1c;
  --muted: #6b6b6b;
  --rule: #e4e1da;
  --accent: #2f5d8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #e8e6e1;
    --muted: #9a9790;
    --rule: #2c2b29;
    --accent: #8fb3d9;
  }
}

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

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
}

main, footer {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main { flex: 1; padding-top: 12vh; }

.mark { display: block; margin-bottom: 1.25rem; }

h1 {
  font-size: 2.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

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

p { margin: 0 0 1rem; }
.role { font-size: 1.15rem; font-weight: 500; color: var(--accent); margin: -0.25rem 0 0.75rem; letter-spacing: 0.01em; }
.lede { font-size: 1.1rem; }
.muted { color: var(--muted); }

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

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

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.work, .facts { list-style: none; padding: 0; margin: 0; }
.work li { margin-bottom: 1.25rem; }
.work p { margin: 0; color: var(--fg); }
.facts li { margin-bottom: 0.5rem; padding-left: 1rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.4rem; height: 1px; background: var(--muted); }
