:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #262c30;
  --muted: #626a72;
  --rule: #e5e7e9;
  --link: #285b8b;
  --link-hover: #a14e2c;
  --highlight: #faf7ef;
  --highlight-ink: #8a6834;
  --button-bg: #fff;
  --button-border: #d8dee4;
  --button-hover: #f0f5fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
::selection { background: #e1eaf3; color: #20374b; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; border-radius: 2px; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - 48px, 900px); margin-inline: auto; }
.pad { padding-inline: 20px; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 8px 14px; background: var(--bg); z-index: 2; }
.skip-link:focus { top: 12px; }

/* The introduction stays compact enough for the work to appear immediately. */
.top { padding-top: 80px; padding-bottom: 24px; }
h1 { font-size: 32px; font-weight: 400; line-height: 1.2; text-align: center; }
.bio { max-width: 760px; display: grid; gap: 12px; margin: 18px auto 0; }
.bio a { text-decoration: underline; }
.bio strong { font-weight: 700; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 19px; font-size: 13px; }
.links a, .paper .l a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--button-border); border-radius: 6px;
  color: var(--ink); background: var(--button-bg); line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.links a { min-height: 36px; padding: 7px 12px; }
.links a .icon, .paper .l a .icon { color: var(--muted); }
.links a:hover, .paper .l a:hover { color: var(--link); border-color: var(--link); background: var(--button-hover); }
.links a:hover .icon, .paper .l a:hover .icon { color: inherit; }

.research { padding-top: 12px; }
.research-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 400; }
.research-intro { color: var(--muted); font-size: 14px; max-width: 670px; margin-top: 10px; }
.filters { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.filters button { padding: 5px 0; border: 0; border-bottom: 1px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; }
.filters button:hover { color: var(--link); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters .count { font-size: 11px; margin-left: 4px; color: var(--muted); }
.highlight-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.highlight-key::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c5a567; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Paper figures keep their original proportions and are never cropped. */
.papers { margin-top: 22px; display: grid; gap: 5px; }
.paper { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 25px 20px; scroll-margin-top: 24px; border-radius: 5px; }
.paper.hl { background: var(--highlight); }
.thumb { width: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; background: #fff; }
.thumb img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.thumb:focus-visible { outline-offset: 4px; }
.paper .body { min-width: 0; }
.paper .t { font-size: 16px; font-weight: 700; line-height: 1.45; text-wrap: pretty; }
.paper .t a { color: var(--link); }
.paper .t a:hover { color: var(--link-hover); }
.paper .a { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 5px; }
.paper .a b { color: var(--ink); font-weight: 700; }
.contribution-note { margin-left: 4px; font-size: 11px; font-style: italic; white-space: nowrap; }
.paper .v { font-size: 13px; margin-top: 3px; }
.venue-note { color: var(--highlight-ink); font-weight: 700; }
.paper .l { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; margin-top: 9px; }
.paper .l a { min-height: 30px; padding: 5px 9px; gap: 5px; }
.paper .l .icon { width: 14px; height: 14px; }
.paper .l .todo { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; color: var(--muted); font-size: 12px; }
.paper .l .todo + .todo { margin-left: 5px; }
.paper .d { font-size: 14px; line-height: 1.65; margin-top: 7px; text-wrap: pretty; }
.sup { font-size: 10px; vertical-align: super; line-height: 0; }
.award { min-height: 145px; flex-direction: column; background: transparent; color: var(--muted); }
.award .place { font-family: Georgia, "Times New Roman", serif; color: var(--highlight-ink); font-size: 46px; line-height: 1.2; }
.award .place sup { font-size: 21px; }
.award .award-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-top: 7px; }
.award .award-event { font-size: 12px; margin-top: 3px; }
footer { margin-top: 38px; padding-top: 19px; padding-bottom: 35px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: 12px; }
footer a { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #191c1f;
    --ink: #e1e5e8;
    --muted: #a3adb6;
    --rule: #33393f;
    --link: #9bc1e5;
    --link-hover: #e5b08e;
    --highlight: #292821;
    --highlight-ink: #d0b67e;
    --button-bg: #22272b;
    --button-border: #46515b;
    --button-hover: #293847;
  }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 900px); }
  .pad { padding-inline: 12px; }
  .top { padding-top: 48px; padding-bottom: 24px; }
  .paper { grid-template-columns: 150px minmax(0, 1fr); gap: 21px; padding: 23px 12px; }
  .thumb { width: 150px; }
  .thumb img { max-height: 170px; }
  .research-heading { align-items: center; }
  .filters { gap: 13px; }
  .filters .count { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .bio { margin-top: 19px; }
  .links { gap: 8px; margin-top: 17px; }
  .links a { min-height: 38px; padding-inline: 10px; }
  .research-heading { flex-wrap: wrap; gap: 10px; }
  .paper { grid-template-columns: 1fr; gap: 17px; padding: 23px 16px; }
  .thumb { width: min(100%, 240px); justify-self: center; }
  .thumb img { max-height: 205px; }
  .paper .t { font-size: 16px; }
  .paper .a { font-size: 12.5px; }
  .paper .l a { min-height: 34px; }
  .award { min-height: 115px; }
  footer { flex-wrap: wrap; }
}

@media (pointer: coarse) { .links a, .paper .l a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .links a, .paper .l a { transition: none; }
}
@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --ink: #000;
    --muted: #555;
    --rule: #ccc;
    --link: #000;
    --highlight: #f5f5f5;
    --highlight-ink: #555;
    --button-bg: #fff;
    --button-border: #aaa;
  }
  .wrap { width: 100%; }
  .top { padding-top: 0; }
  .filters, .skip-link, footer .back-to-top { display: none; }
  .paper { break-inside: avoid; }
  .paper[hidden] { display: grid !important; }
  body { background: #fff; color: #000; }
}
