:root {
  --bg: #fbfaf8;
  --text: #1c1b19;
  --muted: #625f59;
  --line: #e2dfd9;
  --accent: #1f4e79;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --text: #ecebe8;
    --muted: #a3a09a;
    --line: #2e2d2b;
    --accent: #8fbce6;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.25rem;
}

nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 3rem 0 4rem; }

h1, h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.5rem; }

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

.portrait {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.5rem;
}

a { color: var(--accent); }

ul.links { list-style: none; padding: 0; }
ul.links li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font: 0.85rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
