/* Minimal academic project-page styles. */

:root {
  --text: #222;
  --muted: #666;
  --accent: #1a5fb4;
  --accent-hover: #1c71d8;
  --bg: #fff;
  --bg-soft: #f6f7f9;
  --border: #e5e7eb;
  --max-width: 880px;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Hero ----------------------------------------------------------- */

.hero {
  padding: 64px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero .venue {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.18;
  font-weight: 600;
  margin: 0 auto 12px;
  max-width: 760px;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 720px;
}

.authors {
  font-size: 17px;
  margin-bottom: 6px;
}

.authors a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}

.authors a:hover { color: var(--accent); }

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

.affiliations {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 28px;
}

.affiliations .sup { font-size: 11px; vertical-align: super; color: var(--accent); }

/* --- Link bar ------------------------------------------------------- */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.link-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.link-btn .icon {
  font-size: 15px;
  line-height: 1;
}

/* --- Sections ------------------------------------------------------- */

section {
  padding: 48px 0 16px;
}

section h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
}

section p { margin: 0 0 16px; }

.tldr {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 0 0 28px;
}

.tldr strong { color: var(--accent); }

/* --- Figure --------------------------------------------------------- */

figure {
  margin: 24px 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  margin-top: 12px;
  line-height: 1.55;
}

figcaption strong { color: var(--text); }

/* --- Results table -------------------------------------------------- */

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 24px;
}

.results-table th,
.results-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.results-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

.results-table td.num {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 14px;
}

/* --- BibTeX --------------------------------------------------------- */

.bibtex {
  position: relative;
  background: #0d1117;
  color: #e6edf3;
  border-radius: 6px;
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
}

.copy-btn:hover { background: #30363d; }
.copy-btn.copied { background: var(--accent); border-color: var(--accent); }

/* --- Footer --------------------------------------------------------- */

footer {
  text-align: center;
  padding: 40px 24px 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

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

/* --- Mobile --------------------------------------------------------- */

@media (max-width: 600px) {
  .hero { padding: 40px 18px 24px; }
  .hero h1 { font-size: 28px; }
  .hero .subtitle { font-size: 18px; }
  section h2 { font-size: 22px; }
  .tldr { font-size: 17px; padding: 16px 18px; }
  body { font-size: 16px; }
}
