* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: #20242b;
  background: #ffffff;
}

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

a {
  color: inherit;
}

.container {
  width: min(980px, calc(100vw - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6e8eb;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #4a5563;
}

.page {
  padding: 3rem 0 5rem;
}

.hero {
  text-align: center;
  padding-top: 1rem;
}

.venue {
  margin: 0;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
}

h1 {
  margin: 1rem auto 0;
  max-width: 28ch;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.authors,
.logo-strip {
  margin: 1rem auto 0;
  max-width: 54rem;
}

.authors {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.logo-strip img {
  max-height: 38px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-strip img[src$="ucsd-full.png"] {
  max-height: 48px;
  max-width: 240px;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 0.7rem 1rem;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: #f6f8fb;
}

.section {
  margin-top: 3rem;
}

.figure-section {
  text-align: center;
}

.hero-figure {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.text-section p,
.caption {
  color: #465262;
  line-height: 1.75;
}

.caption {
  margin: 0.85rem auto 0;
  max-width: 52rem;
  font-size: 0.95rem;
  text-align: center;
}

.two-column,
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.highlight-box,
.result-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fafbfc;
}

.highlight-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.highlight-box p {
  margin: 0;
}

.result-card {
  padding: 1rem;
}

.result-card img {
  border: 1px solid #e6e8eb;
  border-radius: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

thead th {
  background: #f8fafc;
}

.ours-row {
  background: #fff8e7;
  font-weight: 600;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #10151b;
  color: #edf2f7;
}

code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .two-column,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding-top: 2rem;
  }

  h1 {
    max-width: none;
  }

  .logo-strip img {
    max-height: 32px;
    max-width: 150px;
  }

  .logo-strip img[src$="ucsd-full.png"] {
    max-height: 40px;
    max-width: 200px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
