:root {
  --ink: #18202a;
  --muted: #66717f;
  --paper: #fffdf9;
  --canvas: #f5f3ee;
  --line: #ded9cf;
  --blue: #2f5fa7;
  --blue-dark: #204476;
  --blue-soft: #eaf1fb;
  --rose: #a34d58;
  --rose-soft: #faecee;
  --green: #5c742b;
  --green-soft: #edf3df;
  --shadow: 0 18px 48px rgba(42, 48, 56, .09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(222, 217, 207, .9);
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 116px) 16px 66px;
  background:
    radial-gradient(circle at 16% 20%, rgba(192, 211, 241, .78), transparent 29%),
    radial-gradient(circle at 87% 10%, rgba(239, 201, 205, .55), transparent 27%),
    linear-gradient(145deg, #fbfaf7, #f3efe8);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -280px;
  border: 60px solid rgba(92, 116, 43, .08);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 86px);
  line-height: .98;
  letter-spacing: -.045em;
}

.subtitle {
  max-width: 930px;
  margin: 20px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.3;
  font-weight: 500;
}

.authors {
  margin: 28px auto 0;
  font-size: 16px;
  font-weight: 650;
}

.affiliations {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
}

.button:hover {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button.secondary:hover {
  color: var(--blue-dark);
  background: #fff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.section {
  padding: 76px 0 0;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.2vw, 48px);
  line-height: 1.14;
  letter-spacing: -.025em;
}

.section-head p {
  margin: 14px auto 0;
  color: var(--muted);
}

.abstract-card,
.figure-card,
.audio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.abstract-card {
  max-width: 940px;
  margin: auto;
  padding: clamp(24px, 4vw, 42px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.abstract-card p {
  margin: 0;
}

.highlight {
  padding: 0 .12em;
  background: linear-gradient(transparent 58%, #dbe7f7 58%);
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: stretch;
}

.figure-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.figure-wrap {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fff;
}

.figure-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.figure-card:nth-child(2) .figure-wrap img {
  width: min(100%, 800px);
}

.figure-card figcaption {
  padding: 17px 20px 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.figure-card figcaption b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
}

.audio-card {
  overflow: hidden;
}

.audio-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #fbfaf7;
  font-size: 13px;
}

.audio-note b {
  color: var(--ink);
}

.legend-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px var(--rose-soft);
}

.table-scroll {
  width: 100%;
  max-height: min(72vh, 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.audio-table {
  width: 100%;
  min-width: 1500px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.audio-table th,
.audio-table td {
  padding: 13px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.audio-table thead th {
  position: sticky;
  top: 0;
  z-index: 9;
  color: #4b5663;
  background: #f3f1ec;
  font-size: 12px;
  line-height: 1.35;
}

.audio-table thead th:first-child {
  z-index: 11;
}

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

.audio-table th:last-child,
.audio-table td:last-child {
  border-right: 0;
}

.audio-table th:first-child,
.audio-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 8;
  width: 280px;
  min-width: 280px;
  text-align: left;
  background: var(--paper);
  box-shadow: 9px 0 15px rgba(39, 45, 52, .05);
}

.audio-table thead th:first-child {
  background: #f3f1ec;
}

.audio-table th.method-semi {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.audio-table td.method-semi {
  background: #f5f8fd;
}

.sample-id {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 800;
}

.lang {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  letter-spacing: .06em;
}

.lang.zh {
  background: var(--rose);
}

.transcript {
  color: #66717f;
  font-size: 12px;
  line-height: 1.45;
}

.audio-button {
  position: relative;
  width: 104px;
  min-height: 38px;
  padding: 0 11px 0 34px;
  overflow: hidden;
  border: 1px solid #c9ced4;
  border-radius: 999px;
  color: #384452;
  background: #fff;
  font: 700 12px/1 Inter, ui-sans-serif, sans-serif;
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s;
}

.audio-button::before {
  content: "▶";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 11px;
}

.audio-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.audio-button.playing {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.audio-button.playing::before {
  content: "Ⅱ";
  color: #fff;
  font-size: 10px;
}

.audio-button.error {
  color: #8b3039;
  border-color: #cc9097;
  background: #fff4f5;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.takeaway {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .62);
}

.takeaway .number {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 800;
}

.takeaway h3 {
  margin: 6px 0 8px;
  font-family: Georgia, serif;
  font-size: 19px;
}

.takeaway p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  margin-top: 80px;
  padding: 30px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 820px) {
  .nav-links a:not(:last-child) {
    display: none;
  }

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

  .section {
    padding-top: 58px;
  }

  .figure-wrap {
    min-height: 220px;
  }
}

@media (max-width: 520px) {

  .nav-inner,
  main {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 58px;
  }

  .authors {
    font-size: 14px;
  }

  .audio-table th:first-child,
  .audio-table td:first-child {
    width: 220px;
    min-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Current paper overview figure */
.method-main-figure .figure-wrap {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.method-main-figure .figure-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}