/* Academic profile — Ljudmila Linnik. No external fonts or scripts. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b636e;
  --rule: #e4e1da;
  --accent: #1d5c63;      /* deep teal — clinical, calm */
  --accent-soft: #e6f0ef;
  --todo: #9a3412;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1b1f23;
    --text: #e6e6e3;
    --muted: #9aa3ad;
    --rule: #2c3238;
    --accent: #7cc4c9;
    --accent-soft: #1f2e30;
    --todo: #fb923c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px; }

header.top {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { font-family: var(--serif); font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav.sections a { margin-left: 18px; font-size: .92rem; color: var(--muted); text-decoration: none; }
nav.sections a:hover { color: var(--accent); }
.lang { font-size: .85rem; color: var(--muted); }
.lang a, .lang span { margin-left: 8px; }
.lang [aria-current] { color: var(--text); font-weight: 600; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 14px 16px; }

main.wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 64px;
}

aside.profile { position: sticky; top: 24px; align-self: start; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px; background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent); font-family: var(--serif); font-size: 3.2rem;
}
.profile h1 { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1.2; margin: 18px 0 4px; }
.profile .creds { color: var(--muted); margin: 0 0 12px; }
.profile .role { margin: 0 0 16px; font-size: .95rem; }
.profile ul.links { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.profile ul.links li { margin: 6px 0; }

section { margin-bottom: 44px; scroll-margin-top: 20px; }
section h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  margin: 0 0 16px; padding-bottom: 6px; border-bottom: 1px solid var(--rule);
}
.lede { font-size: 1.06rem; }

ol.timeline, ul.plain { list-style: none; padding: 0; margin: 0; }
ol.timeline li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
}
ol.timeline li:last-child { border-bottom: 0; }
.when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .92rem; }
.what strong { display: block; font-weight: 600; }
.what .org { color: var(--muted); }
.what .note { font-size: .9rem; color: var(--muted); }

ul.pubs { padding-left: 1.2em; margin: 0; }
ul.pubs li { margin: 0 0 14px; }
.pub-title { font-weight: 600; }
.pub-meta { color: var(--muted); font-size: .93rem; }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 16px 18px;
}
.todo { color: var(--todo); font-size: .85rem; font-style: italic; }

footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }

@media (max-width: 760px) {
  main.wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  aside.profile { position: static; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
  .profile h1 { margin-top: 0; font-size: 1.4rem; }
  .portrait { font-size: 2rem; }
  nav.sections { display: none; }
  ol.timeline li { grid-template-columns: 1fr; gap: 2px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img.portrait { display: block; height: auto; }
figure.photo { float: right; width: 200px; margin: 4px 0 16px 24px; }
figure.photo img { width: 100%; height: auto; border-radius: 6px; display: block; }
figure.photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
#awards::after { content: ""; display: block; clear: both; }
@media (max-width: 760px) { figure.photo { float: none; width: 100%; max-width: 320px; margin: 0 0 16px; } }
