:root {
  --bg: rgb(25, 25, 25);
  --nav: rgb(0, 0, 0);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgb(32, 32, 32);
  --width: 920px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
}

main {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.title-block {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.venue {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

.brand {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.authors {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.affiliations {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 40rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.affiliations li + li {
  margin-top: 0.15rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--text);
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
}

.links a:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.links .icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.bullets li + li {
  margin-top: 0.75rem;
}

.bullets strong {
  color: var(--text);
  font-weight: 600;
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 640px) {
  .title-block {
    padding-top: 2.5rem;
  }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

tr.ours td {
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

pre code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.copy-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}
