:root { color-scheme: light dark; --fg: #111; --muted: #666; --bg: #fff; --link: #1a4f8b; --line: #ccc; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e6e6; --muted: #9a9a9a; --bg: #161616; --link: #8fb8e8; --line: #444; }
}
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.55 Georgia, "Times New Roman", serif; }
main { max-width: 54rem; margin: 0 auto; padding: 4rem 1.5rem; }
h1 { font-size: 2rem; font-weight: normal; margin: 0 0 1.25rem; }
h2 { font-size: 1.25rem; font-weight: normal; color: var(--fg); margin: 2.5rem 0 .9rem; }
p { margin: 0 0 .9rem; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ol, ul { padding-left: 1.4rem; margin: 0; }
ul ul { margin-top: .3rem; font-size: .9rem; }
ul ul li { margin: 0; }
li { margin: 0 0 1.1rem; padding-left: .2rem; }
.small { font-size: .9rem; color: var(--muted); }
.small a { color: var(--muted); text-decoration: underline; }
.foot { margin-top: 3.5rem; }
.pres { display: block; font-size: .9rem; line-height: 1.4; color: var(--muted); margin: .15rem 0; }
h1.paper { font-size: 1.5rem; line-height: 1.3; }
summary { cursor: pointer; }
details[open] summary { margin-bottom: 1rem; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.top > img { flex: none; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 4%; }
.icons { margin-top: 1rem; display: flex; gap: 1rem; }
.icons a { color: var(--muted); line-height: 0; }
.icons a.scholar { color: #4285F4; }
.icons a.linkedin { color: #0A66C2; }
.icons a:hover { opacity: .75; }
.icons svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 560px) {
  .top { flex-direction: column-reverse; gap: 1.25rem; }
  .top > img { width: 120px; height: 120px; }
}
.small b a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line); }
.small b a:hover { text-decoration-color: currentColor; }
.cat { text-align: right; margin: 1rem 0 0; line-height: 0; }
.cat img { height: auto; }
@media (prefers-color-scheme: dark) { .cat img, .cat-top img { background: #f4f3ef; border-radius: 6px; padding: 4px 6px; } }
.cat-top { position: relative; height: 0; margin: 0; line-height: 0; }
.cat-top img { position: absolute; left: 0; bottom: .5rem; height: auto; }
@media (max-width: 560px) { .cat-top { height: auto; margin: 0 0 .4rem; } .cat-top img { position: static; } }
