/* Shared style for project pages under /projects/ */
:root {
  --bg: #ffffff;
  --soft: #f4f5f7;
  --text: #10131a;
  --muted: #5b6372;
  --line: rgba(16, 19, 26, 0.10);
  --accent: #2f6bff;
  --btn: #10131a;
  --btn-text: #ffffff;
  --badge-bg: #fff4d6;
  --badge-text: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --soft: #161b24;
    --text: #eef1f6;
    --muted: #98a2b3;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #7aa2ff;
    --btn: #eef1f6;
    --btn-text: #0d1117;
    --badge-bg: rgba(255, 196, 64, 0.14);
    --badge-text: #ffcf6b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 20px 0 0; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--accent); }

.hero { text-align: center; padding: 36px 0 8px; }
.hero h1 { font-size: clamp(24px, 5vw, 38px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.015em; }
.authors { font-size: 16px; margin: 0 0 4px; }
.authors a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.venue { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.award {
  display: inline-block; margin: 6px 0 0; font-size: 13px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-text);
}
.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.buttons a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.buttons a:hover { transform: translateY(-1px); opacity: .9; }
.buttons svg { width: 16px; height: 16px; fill: currentColor; }

figure { margin: 28px 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; }
figure.narrow img { max-width: 520px; margin: 0 auto; }
figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }

section { padding: 12px 0; }
h2 { font-size: 22px; margin: 28px 0 10px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 15px; margin-bottom: 2px; }
.stat span { font-size: 14px; color: var(--muted); }

pre.bib {
  background: var(--soft); border-radius: 12px; padding: 16px;
  font-size: 13px; overflow-x: auto; line-height: 1.5;
}

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