:root {
  --text: #3b3b3b;
  --muted: #6a6a6a;
  --accent: #168d83;
  --line: #dddddd;
  --code: #f5f5f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

main,
footer {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.paper-header {
  padding: 58px 0 82px;
  text-align: center;
}

h1 {
  max-width: 920px;
  margin: 0 auto 25px;
  color: #303030;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.authors {
  max-width: 850px;
  margin: 0 auto 8px;
  color: var(--accent);
  font-size: 1.15rem;
}

.authors span { white-space: nowrap; }

.affiliation {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.venue {
  margin: 36px 0 15px;
  color: #363636;
  font-size: 1.45rem;
  font-weight: 700;
}

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  display: inline-flex;
  min-height: 39px;
  padding: 7px 16px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: white;
  background: #3b3b3b;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease;
}

.links a:hover,
.links a:focus-visible { background: var(--accent); }

section { margin: 0 0 76px; }

h2 {
  margin: 0 0 20px;
  color: #333;
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
}

section > p {
  margin: 0;
  text-align: justify;
}

figure { margin: 34px 0 76px; }

figure img {
  display: block;
  width: 100%;
  height: auto;
}

.sensor-strip {
  max-width: 790px;
  margin: -30px auto 76px;
}

.sensor-strip img {
  max-height: 150px;
  object-fit: contain;
}

.teaser img {
  max-height: 690px;
  object-fit: contain;
  background: #050505;
}

figcaption {
  max-width: 850px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  text-align: center;
}

.table-wrap {
  margin-top: 30px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

caption {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .85rem;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child { text-align: left; }

thead th {
  border-top: 2px solid #555;
  border-bottom: 1px solid #777;
}

.best { background: #eef8f7; }
.best strong { color: var(--accent); }

pre {
  margin: 0;
  padding: 22px 25px;
  overflow-x: auto;
  border-radius: 5px;
  background: var(--code);
  font-size: .84rem;
  line-height: 1.55;
}

footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

footer p { margin: 0; }

:focus-visible {
  outline: 3px solid #8cd4cd;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  main, footer { width: min(100% - 28px, 960px); }
  .paper-header { padding: 40px 0 60px; }
  h1 { font-size: 2.15rem; }
  .authors { font-size: 1rem; }
  section { margin-bottom: 58px; }
  h2 { font-size: 1.65rem; }
  section > p { text-align: left; }
  figure { margin-bottom: 58px; }
  th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
