:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --border: #ddd7cd;
  --text: #171613;
  --muted: #6d665f;
  --blue: #2458a8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

figure figcaption {
  margin-top: 18px;
  line-height: 1.5;
}

.paper-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.paper-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 42px 22px 80px;
}

header {
  text-align: center;
  margin-bottom: 52px;
}

.title-main {
  margin: 0;
  font-family: "STIX Two Text", serif;
  font-size: clamp(50px, 7vw, 70px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.title-sub {
  margin-top: 12px;
  font-family: "STIX Two Text", serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  color: #3b3835;
}

.authors {
  margin: 38px auto 10px;
  max-width: 920px;
  font-size: 22px;
  line-height: 1.9;
  font-weight: 500;
}

.affiliation {
  margin-top: 2px;
  min-height: 56px;
}

.affiliation-logo {
  display: block;
  margin: 0 auto;
  height: 64px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}

.btns {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(20,25,30,0.04);
}

.btn i {
  color: var(--blue);
}

main {
  margin-top: 10px;
}

section {
  margin-top: 28px;
  padding: 34px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20,25,30,0.045);
}

h2 {
  margin: 0 0 24px;
  font-family: "STIX Two Text", serif;
  font-size: 34px;
}

p {
  margin: 0 0 18px;
  color: #302c27;
  font-size: 17.5px;
  line-height: 1.95;
}

.abstract {
  font-size: 18.5px;
}

figure {
  margin: 38px 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  background: #f8f7f4;
  border: 1px solid #e3ddd3;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.85;
}

.demo-container {
  margin-top: 30px;
}

.demo-controls {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid #e2ddd5;
  border-radius: 18px 18px 0 0;
  background: #faf8f4;
}

.demo-control {
  flex: 1;
  min-width: 240px;
}

.demo-control label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.demo-control select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d9d3ca;
  background: #fff;
  font-size: 15px;
}

.demo-panel {
  border: 1px solid #e2ddd5;
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 32px;
  background: #fff;
}

.demo-image-wrap {
  display: flex;
  justify-content: center;
}

.demo-image-wrap img {
  width: 100%;
  max-width: 760px;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.demo-results {
  margin-top: 34px;
}

.caption-label {
  font-family: "STIX Two Text", serif;
  font-size: 26px;
  font-weight: 600;
  color: #143c84;
  text-decoration: underline;
  margin-bottom: 8px;
}

.caption-text {
  font-family: "STIX Two Text", serif;
  font-size: 22px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 22px;
}

.qa-list {
  border-top: 1px solid #ece7df;
}

.qa-row {
  padding: 22px 0;
}

.qa-question-line,
.qa-answer-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.qa-answer-line {
  margin-top: 14px;
}

.q-label,
.a-label {
  font-family: "STIX Two Text", serif;
  font-size: 22px;
  font-weight: 700;
  color: #143c84;
}

.qa-question,
.qa-answer {
  font-size: 20px;
  line-height: 1.7;
}

footer {
  padding: 36px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {

  .page {
    padding: 18px 14px 50px;
  }

  section {
    padding: 24px 20px;
  }

  .demo-image-wrap img {
    height: auto;
  }

  .qa-row {
    grid-template-columns: 1fr;
  }

}
