:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #5f6368;
  --accent: #0b5cad;
  --head: #1f77b4;
  --grasp: #ff7f0e;
  --card: #f5f6f8;
  --rule: #e3e5e8;
  --code-bg: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --fg: #e8e9eb;
    --muted: #a3a8ad;
    --accent: #6fb1f5;
    --card: #1c1e21;
    --rule: #2c2f33;
    --code-bg: #1c1e21;
  }
  img.figure { background: #ffffff; border-radius: 6px; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 980px; margin: 0 auto; padding: 0 16px 64px; }
header { text-align: center; padding: 48px 0 8px; }
h1 { font-size: 2.1rem; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
h1 .name { display: block; font-size: 3rem; letter-spacing: 0.02em; }
h2 { font-size: 1.45rem; margin: 48px 0 12px; padding-top: 8px; border-top: 1px solid var(--rule); }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.authors { font-size: 1.1rem; margin: 14px 0 2px; }
.authors a { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.affiliation { color: var(--muted); margin: 0 0 18px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.buttons a {
  display: inline-block; padding: 8px 18px; border-radius: 999px; text-decoration: none;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 0.95rem;
}
.buttons a:hover { opacity: 0.85; }
a { color: var(--accent); }
figure { margin: 18px 0; }
img.figure, video { width: 100%; height: auto; display: block; }
figcaption { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
.abstract { text-align: justify; hyphens: auto; }
.suites { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.suites h3 { margin: 12px 0 4px; }
.suites h3 .fn { font-weight: 400; font-size: 0.92rem; }
.tasks { padding: 0; margin: 0; list-style: none; }
.suites + figure { margin-top: 30px; }
.tasks li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.tasks .fn { color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.videos figure { margin: 0; }
.videos.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.videos video { border-radius: 6px; background: #000; }
.legend-head { color: var(--head); font-weight: 600; }
.legend-grasp { color: var(--grasp); font-weight: 600; }
pre {
  background: var(--code-bg); border-radius: 8px; padding: 14px 16px; overflow-x: auto;
  font-size: 0.85rem; line-height: 1.45; margin: 0;
}
.bibtex { position: relative; }
.bibtex button {
  position: absolute; top: 8px; right: 8px; font: inherit; font-size: 0.8rem;
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--bg); color: var(--fg); cursor: pointer;
}
footer { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 56px; }
.small { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px) {
    .abstract { text-align: left; }
  .videos.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { font-size: 16px; }
  h1 { font-size: 1.45rem; }
  h1 .name { font-size: 2.2rem; }
}
