:root {
  --accent-coral: #ef7d87;
  --accent-blue: #84a5df;
  --heading-brown: #7c5c45;
  --page-width: 1350px;
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  margin: 0;
  color: #333333;
  background: #ffffff;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.container,
.container.is-max-desktop,
.container.approach-wider {
  width: 100%;
  max-width: var(--page-width) !important;
}

.publication-hero {
  background: #eff5f4;
}

.publication-hero .hero-body {
  padding: 1.1rem 1.5rem 1rem;
}

.publication-title {
  max-width: none;
  margin: 0 auto !important;
  color: #222222;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem) !important;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.artvista-wordmark {
  color: var(--accent-blue);
  font-family: "Pacifico", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.artvista-wordmark span {
  color: var(--accent-coral);
}

.publication-venue {
  margin: 1.4rem 0 0.9rem !important;
  color: #666666;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 2rem !important;
  font-weight: 600;
}

.publication-authors {
  font-family: "Google Sans", "Noto Sans", sans-serif;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 2rem;
  margin-bottom: 1rem;
  color: #209cee;
  font-size: 1.22rem !important;
}

.author-block {
  display: inline-block;
  white-space: nowrap;
}

.author-list a,
.author-list a:hover {
  color: #209cee;
}

.author-list a:hover {
  text-decoration: underline;
}

.affiliations {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.55;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.4em;
  border-radius: 2em;
  color: #ffffff;
  background: #222222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pub-btn:hover {
  color: #ffffff;
  background: #3b3b3b;
  transform: translateY(-1px);
}

.pub-btn:focus-visible {
  outline: 3px solid rgba(32, 156, 238, 0.38);
  outline-offset: 3px;
}

.pub-btn.is-disabled {
  background: #8a8f91;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.teaser {
  background: #ffffff;
}

.teaser .hero-body {
  padding: 4.8rem 1.5rem 2.2rem;
}

.teaser figure {
  margin: 0;
}

.teaser img {
  display: block;
  width: 95%;
  height: auto;
  margin: 0 auto;
}

figcaption {
  margin: 0.85rem auto 0;
  color: #666666;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.abstract-section-custom {
  max-width: 950px;
  margin: 3.5rem auto;
  padding: 2.5rem 2.2rem 2.2rem;
  border-radius: 18px;
  background: #f6f6f6;
  box-shadow: 0 2px 16px rgba(60, 60, 60, 0.04);
  text-align: center;
}

.abstract-section-custom h2.title {
  margin-bottom: 0.7em;
  color: #333333;
  font-size: 2rem;
  font-weight: 700;
}

.abstract-section-custom .content {
  max-width: 800px;
  margin: 0 auto;
  color: #555555;
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

.paper-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-title {
  margin-bottom: 1rem !important;
  color: var(--heading-brown) !important;
  font-size: 2rem !important;
  text-align: left;
}

.paper-section .content {
  font-size: 1rem;
  line-height: 1.65;
}

.paper-figure {
  margin: 1.6rem auto 0;
  text-align: center;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.wide-figure img {
  width: 100%;
}

.results-figure {
  max-width: 820px;
}

.citation-section {
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}

.citation-section .container {
  max-width: 950px !important;
}

.citation-section h2 {
  color: #333333;
}

.citation-section pre {
  margin-top: 1.2rem;
  overflow-x: auto;
  border-radius: 4px;
  background: #f5f5f5;
  color: #333333;
  font-size: 0.9rem;
  line-height: 1.6;
}

.citation-section code {
  color: inherit;
  background: transparent;
}

.selectable {
  -webkit-user-select: all;
  user-select: all;
}

.footer {
  color: #555555;
  background: #fafafa;
  font-size: 0.92rem;
}

@media (min-width: 1350px) {
  .container,
  .container.is-max-desktop,
  .container.approach-wider {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 1349px) {
  .container.approach-wider {
    max-width: 100vw;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 900px) {
  .publication-hero .hero-body {
    padding: 1.5rem 1rem 2rem;
  }

  .publication-title {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem) !important;
    white-space: normal;
  }

  .publication-venue {
    font-size: 1.45rem !important;
  }

  .author-list {
    gap: 0.25rem 0.9rem;
    font-size: 1rem !important;
  }

  .affiliations {
    font-size: 0.88rem;
  }

  .publication-links {
    gap: 0.7rem;
  }

  .pub-btn {
    padding: 0.55em 1.05em;
    font-size: 0.95rem;
  }

  .teaser .hero-body {
    padding: 2.8rem 1rem 1.5rem;
  }

  .teaser img {
    width: 100%;
  }

  .abstract-section-custom {
    max-width: calc(100vw - 2rem);
    margin: 2.5rem auto;
    padding: 1.6rem 1.2rem;
  }

  .abstract-section-custom .content {
    font-size: 1rem;
  }

  .paper-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-title {
    font-size: 1.75rem !important;
  }

  .citation-section {
    padding: 2.75rem 1rem;
  }

  .citation-section pre {
    font-size: 0.78rem;
  }

  .citation-section code {
    display: block;
    min-width: 800px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pub-btn {
    transition: none;
  }
}
