/* ------- SHIFT project page styles ------- */
:root {
  --accent: #2f6fed;
  --text: #1a1a1a;
  --muted: #666;
  --bg: #ffffff;
  --border: #e6e6e6;
  --max: 900px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 90px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Title block ---- */
.hero { text-align: center; }
.hero h1 { font-size: 2.1rem; margin: 0 0 6px; line-height: 1.25; }
.hero .subtitle { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.hero .authors { font-size: 1.05rem; margin: 0 0 4px; }
.hero .affil { color: var(--muted); margin: 0 0 24px; }
.hero .authors a { color: var(--text); border-bottom: 1px dotted var(--muted); }

/* ---- Button row ---- */
.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.buttons a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  color: #fff;
  padding: 9px 18px;
  border-radius: 22px;
  font-size: 0.95rem;
}
.buttons a:hover { background: var(--accent); text-decoration: none; }

/* ---- Generic content ---- */
.section { margin-top: 48px; }
.section h2 { font-size: 1.4rem; text-align: center; margin-bottom: 18px; }

.teaser { text-align: center; margin: 40px 0 8px; }
.teaser img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.teaser .caption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

.abstract p { max-width: 760px; margin: 0 auto; text-align: justify; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery img { width: 100%; border-radius: 6px; border: 1px solid var(--border); }

/* ---- BibTeX ---- */
.bibtex pre {
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

footer { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 60px; }
footer a { color: var(--muted); text-decoration: underline; }
