/* BEACON project page — v1 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #faf7f0;
  --surface: #fdfbf6;
  --text: #1a1612;
  --text-soft: #3a3328;
  --text-muted: #78695a;

  --accent: #b5552a;
  --accent-rgb: 181, 85, 42;
  --accent-soft: rgba(181, 85, 42, 0.10);

  --border: rgba(60, 45, 25, 0.14);
  --border-hi: rgba(60, 45, 25, 0.28);

  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.16), 0 2px 6px -2px rgba(15, 23, 42, 0.06);

  --max-w: 880px;
  --pad-x: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.32);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

/* LAYOUT */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--text);
}

section p {
  color: var(--text-soft);
}

/* HERO */
#hero {
  padding: 72px 0 48px;
  text-align: center;
}

.paper-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto 24px;
}

.paper-title .acronym {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.authors {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.authors .author {
  color: var(--text);
  border-bottom: none;
  font-weight: 500;
}

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

.authors .aff {
  font-size: 0.7em;
  color: var(--text-muted);
  margin-left: 1px;
}

.affiliations {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* LINK BUTTONS */
.link-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-link:hover {
  background: var(--accent-soft);
  border-color: var(--border-hi);
  color: var(--accent);
}

.btn-link:active {
  transform: translateY(1px);
}

.btn-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ABSTRACT */
#abstract p {
  font-size: 17px;
  line-height: 1.7;
}

/* FIGURE */
.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.figure figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}

.figure figcaption strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* SUPPLEMENTARY VIDEO */
.video-figure {
  margin: 0 auto;
}

.video-figure video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-md);
}

/* CITATION */
.bibtex-wrap {
  position: relative;
}

#bibtex {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  padding-right: 96px;
  font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre;
}

#bibtex code {
  font: inherit;
  color: inherit;
  background: transparent;
}

.bibtex-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bibtex-copy:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--border-hi);
}

.bibtex-copy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* FOOTER */
#site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x) 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

#site-footer p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

#site-footer a {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(60, 45, 25, 0.18);
}

#site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* TOAST NOTIFICATION */
#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  text-align: center;
}

#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  #hero {
    padding: 48px 0 32px;
  }

  .paper-title {
    font-size: 26px;
  }

  section {
    padding: 36px 0;
  }

  section h2 {
    font-size: 20px;
  }

  .btn-link {
    padding: 9px 14px;
    font-size: 14px;
  }
}