/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --text: #1a1a1a;
  --body: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #fafaf8;
  --card-bg: #ffffff;
  --accent: #1a6b3c;
  --accent-light: #e8f5ed;
  --warm: #c5873a;
  --warm-light: #fef7ee;
  --radius: 14px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding-bottom: 48px;
}

.venue-badge {
  display: inline-block;
  padding: 5px 20px;
  border: 2px solid var(--warm);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.05s;
  margin-top: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin: 18px 0 0;
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.12s;
}

.subtitle {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  margin-top: 10px;
  font-weight: 300;
  line-height: 1.45;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.22s;
}

.authors {
  margin-top: 28px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.32s;
}

.authors span {
  white-space: nowrap;
}

.authors span:not(:last-child)::after {
  content: ',  ';
}

.authors sup {
  font-size: 10px;
  vertical-align: super;
  color: var(--muted);
}

.affiliations {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.38s;
}

.aff {
  white-space: nowrap;
}

.aff-sep {
  margin: 0 6px;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .affiliations span { display: block; }
  .aff-sep { display: none; }
}

/* ── Links ── */
.links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.46s;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.link-btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.link-btn--outline:hover {
  border-color: var(--body);
}

.link-icon {
  font-size: 15px;
}

/* ── Hero Image ── */
.hero-img {
  margin-top: 40px;
  animation: fadeIn 1s ease both;
  animation-delay: 0.6s;
}

.hero-img img {
  width: 100%;
  border-radius: var(--radius);
}

/* ── Sections ── */
.section {
  margin-top: 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.75;
}

p {
  margin-top: 14px;
  line-height: 1.75;
  color: var(--body);
}

p:first-child, .lead:first-of-type { margin-top: 0; }

strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Figures ── */
.fig {
  margin: 32px 0;
}

.fig img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ── Highlight Cards ── */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.highlight-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.highlight-detail {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .highlights { grid-template-columns: 1fr; }
}

/* ── Result Blocks ── */
.result-block {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 24px;
}

.result-block h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.result-block p {
  font-size: 15.5px;
  margin-top: 0;
}

/* Domain grid */
.domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}

.domain-grid .fig {
  margin: 0;
}

.domain-text p {
  font-size: 15px;
}

@media (max-width: 640px) {
  .domain-grid { grid-template-columns: 1fr; }
}

/* ── DPO ── */
.dpo-wrap {
  margin: 28px auto;
  max-width: 700px;
}

.dpo-wrap img {
  width: 100%;
  border-radius: var(--radius);
}

/* ── BibTeX ── */
.bibtex {
  background: #f0f0ec;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Compact Tables ── */
.table-wrap.compact {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--bg);
}

.table-wrap.compact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap.compact th,
.table-wrap.compact td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-wrap.compact thead th {
  background: #f0f0ec;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.table-wrap.compact tbody tr:last-child td { border-bottom: none; }

.table-wrap.compact .method { font-weight: 600; }

.table-wrap.compact .best {
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
}

/* ── Responsiveness ── */
@media (max-width: 640px) {
  .container { padding: 28px 16px 60px; }
  .section { margin-top: 48px; }
  .result-block { padding: 20px 18px; }
}
