:root {
  --bg: #fbfaf7;
  --text: #1f1f1f;
  --muted: #5f5f5a;
  --line: #e4e1da;
  --accent: #1d4e89;
  --card: #ffffff;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --text: #e9e7e2;
    --muted: #a3a09a;
    --line: #2e2d2a;
    --accent: #8db5e8;
    --card: #1c1c1b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
main, header.site, footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}
header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font: 0.9rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header.site a { color: var(--muted); text-decoration: none; }
header.site a:hover { color: var(--accent); }

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

.intro {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2.5rem 0 1.5rem;
}
.intro img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--line);
}
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.3rem; font-weight: 600; }
.role {
  margin: 0;
  color: var(--muted);
  font: 0.95rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h2 {
  font: 600 0.8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 0 0 0.8rem; }
.meta { color: var(--muted); font-size: 0.92rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font: 0.92rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  margin-top: 1rem;
}

.projects { display: grid; gap: 0.9rem; }
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}
.project h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.project p { margin: 0; font-size: 0.95rem; color: var(--muted); }

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.85rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

article h1 { margin-top: 2.5rem; }
article figure { margin: 1.5rem 0; }
article blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

@media (max-width: 480px) {
  .intro { flex-direction: column; align-items: flex-start; gap: 1rem; }
  h1 { font-size: 1.6rem; }
}
