:root {
  --bg: #f3f0eb;
  --paper: #ffffff;
  --paper-soft: #ece8e2;
  --text: #1b1816;
  --muted: #67605a;
  --line: rgba(0,0,0,0.08);
  --accent: #c98d2e;
  --accent-deep: #8c5c14;
  --shadow: 0 18px 50px rgba(24, 19, 10, 0.12);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.container.narrow { width: min(900px, calc(100% - 32px)); }
.container.wide { width: min(1200px, calc(100% - 32px)); }

.hero {
  position: relative;
  min-height: 64vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}
.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg {
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(10,10,16,0.18), rgba(11,11,18,0.48));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  padding: 52px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(248,250,248,0.98);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.hero-badge-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #b8edce;
  box-shadow: 0 0 13px rgba(184,237,206,0.76);
}
.hero h1 {
  margin: 18px auto 16px;
  max-width: 1080px;
  font-size: clamp(2.05rem, 4.3vw, 4.35rem);
  line-height: 1.08;
  font-weight: 800;
}
.authors {
  margin: 0;
  font-size: clamp(0.96rem, 1.45vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
}
.authors sup,
.affiliations sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}
.affiliations {
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 0.94rem;
  line-height: 1.45;
  opacity: 0.95;
}
.author-notes {
  margin: 7px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.82);
}
.hero-summary {
  max-width: 860px;
  margin: 24px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.94);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.button.primary {
  background: rgba(255,255,255,0.22);
}
.button:hover { transform: translateY(-1px); }

.teaser-wrap { padding: 26px 0 20px; }
.section { padding: 56px 0; }
.section-light { background: #efebe6; }
.section h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #38302b;
}
.section h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  line-height: 1.25;
}
.section-intro {
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.section-intro.center { text-align: center; }

.figure-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.teaser-card {
  padding: 16px;
  background: rgba(255,255,255,0.78);
}
.narrow p { font-size: 1.08rem; }

.result-block {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.result-block + .result-block { margin-top: 42px; }
.result-text {
  max-width: 900px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.result-text p { margin: 0 0 2px; color: var(--muted); }
.figure-caption {
  padding: 12px 18px 15px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.mini-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(28,23,16,0.08);
}
.mini-card h3 { font-size: 1.2rem; }
.mini-card p { margin: 0; color: var(--muted); }

.bibtex-box {
  position: relative;
  background: #161412;
  color: #f4efe7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bibtex-box pre {
  margin: 0;
  padding: 28px 24px 24px;
  overflow: auto;
  font-size: 0.96rem;
  line-height: 1.6;
}
.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  border-radius: 999px;
  background: #f2e4c5;
  color: #51360d;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn.copied { background: #d7f0d0; color: #244d17; }

.footer {
  padding: 24px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 44px 0 52px; }
  .authors { font-size: 0.92rem; }
  .affiliations { font-size: 0.82rem; }
  .button { width: 100%; justify-content: center; }
  .hero-actions { gap: 10px; }
  .section { padding: 46px 0; }
  .teaser-card { padding: 10px; }
  .figure-caption { padding: 10px 12px 13px; font-size: 0.82rem; }
}
