:root {
  --text: #1f2328;
  --muted: #59636e;
  --bg: #ffffff;
  --accent: #1a4f8b;
  --rule: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --muted: #a0a7b0;
    --bg: #16181c;
    --accent: #7fb2ec;
    --rule: #2c3036;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

main { padding-top: 56px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .role, .links, .meta, summary, footer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1 { font-size: 2rem; margin: 0; }
h2 { font-size: 1.3rem; margin-top: 2.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.intro { display: flex; gap: 24px; align-items: center; }
.photo { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.role { margin: 0.25rem 0; color: var(--muted); }
.links { margin: 0.5rem 0 0; font-size: 0.95rem; }

.paper { margin-bottom: 1.1rem; }
.paper p { margin: 0; }
.paper .title { font-weight: bold; }
.meta { color: var(--muted); font-size: 0.9rem; }
summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
details p { font-size: 0.95rem; margin-top: 0.4rem; }

ul { padding-left: 1.2rem; }
.teaching li { margin-bottom: 0.4rem; }
.years { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.years::before { content: "· "; }
.award { display: block; color: var(--muted); font-style: italic; font-size: 0.9rem; }

footer { margin-top: 3rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 560px) {
  .intro { flex-direction: column; align-items: flex-start; }
  .photo { width: 110px; height: 110px; }
  main { padding-top: 32px; }
}
