:root { color-scheme:light dark; --paper:#fff; --ink:#222; --muted:#555; --link:#254d82; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-padding-top:20px; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.6 Arial,Helvetica,sans-serif; }
a,.email-reveal { color:var(--link); text-decoration:underline; text-underline-offset:2px; }
a:hover,.email-reveal:hover { text-decoration-thickness:2px; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid var(--link); outline-offset:4px; }
[hidden] { display:none !important; }
.page { max-width:760px; margin:48px auto; padding:0 28px; }
.skip-link { position:absolute; left:16px; top:-80px; background:var(--paper); padding:8px; }
.skip-link:focus { top:8px; }
h1 { margin:0 0 3px; font-size:28px; line-height:1.25; }
h2 { margin:0 0 14px; font-size:18px; line-height:1.4; }
h3 { margin:20px 0 8px; font-size:16px; line-height:1.5; }
p { margin:0 0 16px; }
.identity { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:24px; }
.role { margin:5px 0 0; }
.portrait { display:block; width:96px; height:96px; flex-shrink:0; overflow:hidden; }
.portrait img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 47%; transform:scale(1.226667); }
.profile-links { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 18px; }
.email { overflow-wrap:anywhere; }
.email-reveal { border:0; background:none; padding:0; font:inherit; cursor:pointer; }
.recent-note { margin:22px 0 30px; }
.recent-note p { margin:0; font-size:14px; color:var(--muted); }
.section { margin:30px 0; }
.papers,.media-feature,.media-list,.archive-list { padding-left:21px; margin:0; }
.paper,.media-feature li,.media-item,.archive-list li { margin:0 0 16px; }
.papers.selected { position:relative; padding-right:92px; }
.paper-cover { display:block; position:absolute; top:0; right:0; width:70px; }
.paper-cover img { display:block; width:100%; height:auto; }
.paper h3 { margin:0 0 3px; font-weight:400; }
.paper p { margin:5px 0 0; }
.paper .citation { font-size:14px; color:var(--muted); }
.paper .resource-links { font-size:14px; }
.resource-links { display:flex; flex-wrap:wrap; gap:4px 16px; margin:8px 0 0; }
details { margin:16px 0; }
summary { cursor:pointer; }
summary h2 { display:inline; font:inherit; }
details[open] > summary { margin-bottom:18px; }
.bibliography h3,.clinical-body > h3 { margin-top:24px; }
.bibliography .paper h3 { margin-top:0; }
.entries,.dated-list,.credentials { list-style:none; padding:0; margin:0; }
.entries > li,.dated-list > li { display:flex; gap:14px; margin-bottom:16px; }
.when,.dated-list > li > time,.dated-list > li > .date { min-width:62px; font-size:14px; color:var(--muted); }
.sub,.dated-list small,.archive-list small { display:block; color:var(--muted); font-size:14px; }
.me { font-weight:400; }
.x { display:block; }
.media-kicker { display:block; font-size:14px; color:var(--muted); }
.media-kicker time::before { content:", "; }
.media-description { margin:5px 0 0; }
.research,.talks,.background,.clinical { margin:12px 0; }
.research-topic { margin-bottom:22px; }
.credentials { margin:20px 0; }
.credentials li { margin:6px 0; }
.credentials time { margin-right:12px; }
.footer { margin-top:32px; color:var(--muted); font-size:14px; }
@media (prefers-color-scheme:dark) {
 :root { --paper:#181818; --ink:#e7e7e7; --muted:#b8b8b8; --link:#a8c5ed; }
}
@media (max-width:480px) {
 .page { margin:28px auto; padding:0 20px; }
 h1 { font-size:26px; }
 .identity { gap:16px; }
 .portrait { width:72px; height:72px; }
 .role { font-size:14px; }
 .papers.selected { padding-right:0; }
 .paper-entry { position:relative; padding-right:68px; }
 .paper-cover { width:56px; }
 .entries > li,.dated-list > li { display:block; }
 .when,.dated-list > li > time,.dated-list > li > .date { display:block; margin-bottom:2px; }
}
@media print {
 :root { color-scheme:light; --paper:white; --ink:black; --muted:#333; --link:black; }
 body { font-size:11pt; }
 .page { max-width:none; margin:0; padding:0; }
 .paper,.media-feature li,.dated-list > li { break-inside:avoid; }
 .email-reveal { display:none; }
 #contact::after { content:"feelingmachines.net/kingson/#contact"; }
}
