:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1c1e21;
  --muted: #55595f;
  --accent: #0a5397;
  --rule: #d9dce0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --text: #e8e8e6;
    --muted: #a3a8ae;
    --accent: #8fbfef;
    --rule: #33373d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-text {
  flex: 1 1 auto;
}

.portrait {
  flex-shrink: 0;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
}

@media (max-width: 480px) {
  header {
    gap: 1rem;
  }
  .portrait {
    width: 5.5rem;
    height: 5.5rem;
  }
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2 {
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.25rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  margin: 1.3rem 0 0.3rem;
  font-size: 1.05rem;
}

p {
  margin: 0.4rem 0 0.9rem;
}

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

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

.tagline {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  color: var(--muted);
}

nav ul.links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

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

ul.pubs li {
  margin: 0 0 1.05rem;
}

ul.pubs .title {
  font-weight: 600;
}

ul.pubs .venue {
  color: var(--muted);
}

a.doi {
  display: inline-block;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

footer {
  margin-top: 2.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}
