:root {
  --ink: #101820;
  --muted: #596772;
  --line: #dce3e7;
  --paper: #fbfcfa;
  --blue: #22b7f2;
  --blue-deep: #138bc5;
  --blue-pale: #eaf8fe;
  --display: "Bricolage Grotesque", sans-serif;
  --paper-title: "Source Sans 3", "Source Sans Pro", sans-serif;
  --body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), #8cddff);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.disabled {
  color: #98a2a9;
  cursor: default;
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: calc(100vh - 68px);
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
}

.halo {
  position: absolute;
  top: -340px;
  left: 50%;
  width: 820px;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 183, 242, 0.14), rgba(34, 183, 242, 0) 68%);
  transform: translateX(-50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: enter 650ms cubic-bezier(0.2, 0.7, 0, 1) both;
}

h1 {
  margin: 0;
  font-family: var(--paper-title);
}

.project-name {
  display: block;
  color: var(--ink);
  font-size: clamp(70px, 10vw, 126px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.project-name > span {
  color: var(--blue);
}

.paper-title {
  display: block;
  max-width: 960px;
  margin: 38px auto 0;
  font-size: clamp(32px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.affiliation {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.code-link,
.button.paper-link {
  color: white;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.button.code-link:hover,
.button.paper-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  transform: translateY(-2px);
}

.button.bibtex-link:hover {
  color: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
}

.why-section,
.citation-section {
  padding: 112px 24px;
}

.why-section {
  border-top: 1px solid #d5edf8;
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48)),
    linear-gradient(135deg, var(--blue-pale), #f2fbff);
}

.section-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.why-section h2,
.citation-section h2 {
  margin: 0;
  font-family: var(--paper-title);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.why-section .section-inner > p:last-child {
  max-width: 820px;
  margin: 34px 0 0;
  color: #40505b;
  font-size: 18px;
  line-height: 1.8;
}

.citation-section {
  background: var(--paper);
}

.citation-inner pre {
  margin: 34px 0 0;
  padding: 26px;
  overflow-x: auto;
  color: #d9edf6;
  background: #101820;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
}

.citation-inner code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: #78858d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: calc(100vh - 76px);
    padding: 56px 16px;
  }

  .paper-title {
    margin-top: 30px;
  }

  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .why-section,
  .citation-section {
    padding: 78px 16px;
  }

  .why-section .section-inner > p:last-child {
    margin-top: 26px;
    font-size: 15px;
  }

  .citation-inner pre {
    margin-top: 26px;
    padding: 18px;
  }

  footer {
    width: calc(100% - 30px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
