:root {
  --text: #1f2937;
  --muted: #5b6678;
  --line: #dbe3ed;
  --blue: #3273dc;
  --blue-hover: #215cb8;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

main,
footer {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.title {
  margin: 0 auto;
  max-width: 930px;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
}

.authors {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.author-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
  align-items: center;
}

.author-links a {
  color: #2e4d89;
  text-decoration: none;
}

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

.affiliations-list {
  margin-top: 0.5rem;
  color: #445268;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.affiliation {
  margin: 0.7rem 0 0;
  color: #374151;
  font-weight: 600;
}

.button-row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button-row a {
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.button-row a:hover {
  background: var(--blue-hover);
}

.section {
  margin: 1rem 0 2rem;
}

.teaser figure {
  margin: 0;
}

.teaser img,
.teaser svg {
  width: 75%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

figcaption {
  text-align: center;
  color: var(--muted);
  margin-top: 0.7rem;
  font-size: 0.98rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.7rem;
}

.content p {
  margin: 0;
  color: #2f3a4a;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.results-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  background: #fbfdff;
}

.results-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: #0f3f8f;
}

.results-grid p {
  margin: 0;
  color: #4d5b70;
}

.result-figure {
  margin: 1rem 0 0;
}

.result-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
}

.bibtex-section {
  position: relative;
}

.copy-btn {
  position: absolute;
  right: 0;
  top: 0.1rem;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.copy-btn:hover {
  background: #f4f7fb;
}

pre {
  margin: 0;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

footer a {
  color: var(--blue);
}

@media (max-width: 820px) {
  .author-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .copy-btn {
    position: static;
    margin-bottom: 0.6rem;
  }

  .teaser {
    overflow-x: auto;
  }

  .teaser svg {
    min-width: 0;
  }
}
