:root {
  --ink: #18202b;
  --muted: #5f6b7a;
  --line: #dce2ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --teal: #087f8c;
  --coral: #d95f59;
  --gold: #c9912a;
  --slate: #263241;
  --shadow: 0 16px 40px rgba(24, 32, 43, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.project-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
}

.hero-body {
  padding: 3rem 1.5rem 2.5rem;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.publication-title {
  color: var(--ink);
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  margin-bottom: 1.25rem !important;
}

.publication-authors {
  color: var(--slate);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

.affiliations,
.hero-summary,
.table-note,
figcaption {
  color: var(--muted);
}

.hero-summary {
  font-size: 1.08rem;
  margin: 1.35rem 0 1.65rem;
  max-width: 58rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.button.is-dark {
  background: var(--slate) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(38, 50, 65, 0.15);
  font-weight: 700 !important;
}

.button.is-dark:hover {
  background: var(--teal) !important;
  transform: translateY(-1px);
}

.method-figure {
  margin: 0;
}

.method-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

figcaption {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 0.7rem;
  text-align: center;
}

.section {
  padding: 3rem 1.5rem;
}

.section-muted {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.title.is-3 {
  color: var(--ink);
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem !important;
}

.publication-body {
  color: #334155;
  font-size: 1.08rem;
}

.section-intro {
  color: var(--muted);
  font-size: 1.02rem;
  margin: -0.5rem 0 1.35rem;
  max-width: 62rem;
}

.method-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.method-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 32, 43, 0.05);
  padding: 1.25rem;
}

.method-index {
  color: var(--gold);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.method-card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.method-card p {
  color: var(--muted);
}

.method-figure {
  margin-top: 2rem;
}

.audio-table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 32, 43, 0.05);
  overflow-x: auto;
}

.audio-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.audio-table th,
.audio-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.audio-table th {
  background: #edf2f6;
  color: var(--slate);
  font-size: 0.83rem;
  font-weight: 800;
}

.audio-table th span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.audio-table td {
  color: #2f3d4d;
  font-size: 0.92rem;
  font-weight: 650;
}

.audio-table tr:last-child td {
  border-bottom: 0;
}

.audio-table audio {
  display: block;
  height: 34px;
  width: 180px;
}

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

.copy-bibtex-btn {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
}

pre {
  background: #101820 !important;
  border-radius: 8px !important;
  color: #edf2f6 !important;
  overflow-x: auto;
  padding: 1.25rem !important;
}

code {
  background: transparent !important;
  color: inherit !important;
}

.footer {
  background: var(--slate);
  color: #d9e1ea;
  padding: 2rem 1.5rem;
}

.scroll-to-top {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 50%;
  bottom: 1.5rem;
  box-shadow: var(--shadow);
  color: white;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  opacity: 0;
  position: fixed;
  right: 1.5rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  visibility: hidden;
  width: 44px;
  z-index: 20;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
}

@media screen and (max-width: 980px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .publication-title {
    font-size: 2.2rem !important;
  }
}

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

  .publication-title {
    font-size: 1.82rem !important;
  }

  .publication-links {
    align-items: stretch;
    flex-direction: column;
  }

}
