
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border-radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--background-primary);
  line-height: 1.6;
}

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

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.is-max-desktop { max-width: 960px; }
.columns.is-centered { display: flex; justify-content: center; }
.column { width: 100%; }
.is-four-fifths { max-width: 820px; }
.has-text-centered { text-align: center; }
.has-text-justified { text-align: justify; }
.is-size-5 { font-size: 1.16rem; }

.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light,
.section.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body { padding: 4rem 1.5rem; }
.publication-header .hero-body { padding: 5rem 1.5rem 3rem; }
.teaser .hero-body { padding-top: 1rem; }

.publication-title {
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  letter-spacing: 0;
}

.title.is-3 {
  font-size: 2rem;
  font-weight: 750;
  margin: 0 0 1.6rem;
  letter-spacing: 0;
}

.publication-authors {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.author-block {
  display: inline-block;
  margin-right: 0.35rem;
}

.publication-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button .icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.6rem;
}

.button.is-dark {
  background: var(--text-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover { background: var(--primary-hover); }

.section {
  padding: 4rem 1.5rem;
}

.content {
  font-size: 1.04rem;
  color: var(--text-secondary);
}

.content p {
  margin: 0 0 1.2rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 1.2rem auto 0;
  max-width: 850px;
}

.publication-figure {
  margin: 0 auto 2rem;
}

.publication-figure img,
.paper-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.paper-figure.narrow {
  max-width: 760px;
  margin: 0 auto;
}

figcaption {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.figure-grid .publication-figure {
  margin-bottom: 0;
}

pre {
  overflow-x: auto;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  background: var(--background-accent);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary-color);
  color: #fff;
  border: 0;
  border-radius: var(--border-radius);
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-bibtex-btn i {
  margin-right: 0.6rem;
}

.copy-bibtex-btn.copied { background: #10b981; }

.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  color: var(--text-secondary);
}

@media screen and (max-width: 780px) {
  .hero-body,
  .publication-header .hero-body,
  .section {
    padding: 2.5rem 1rem;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .publication-links {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
