:root {
  --page-bg: #f7fbff;
  --panel-bg: #ffffff;
  --muted-bg: #f2f7fc;
  --text: #152238;
  --muted: #526276;
  --line: #dbe7f3;
  --accent: #0787d8;
  --accent-dark: #0c3c82;
  --accent-soft: #dcefff;
  --shadow: 0 16px 50px rgba(20, 54, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: "Noto Sans", "Google Sans", BlinkMacSystemFont, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent-dark);
}

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

.site-container {
  max-width: 1180px;
  width: min(1180px, calc(100% - 32px));
}

.site-container.narrow {
  max-width: 900px;
}

.site-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(7, 135, 216, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f4faff 56%, #eaf6ff 100%);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 54px;
}

.top-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}

.brand {
  display: inline-flex;
  max-width: 210px;
}

.brand img {
  display: block;
  height: auto;
  width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
}

.hero-copy h1 {
  color: var(--text);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.55rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.03;
  margin: 14px 0 18px;
  overflow-wrap: normal;
}

.hero-copy {
  min-width: 0;
}

.venue-badge {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 820px;
  overflow-wrap: break-word;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.08rem;
  gap: 7px 12px;
  line-height: 1.55;
  margin-bottom: 12px;
  min-width: 0;
  overflow-wrap: break-word;
}

.publication-authors span:not(:last-child)::after {
  color: var(--muted);
  content: ",";
}

.publication-authors sup,
.affiliations sup {
  font-size: 0.68em;
  line-height: 0;
}

.affiliations {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 22px;
  overflow-wrap: break-word;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.publication-links .button {
  box-shadow: 0 8px 24px rgba(12, 60, 130, 0.16);
  font-weight: 700;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 12px;
}

.comparison-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-grid figure,
.paper-figure,
.idea-grid article {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-grid figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.comparison-grid figure.highlight {
  border-color: rgba(7, 135, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(7, 135, 216, 0.12);
}

.comparison-grid img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.comparison-grid figcaption {
  background: rgba(8, 24, 45, 0.78);
  bottom: 0;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  left: 0;
  padding: 7px 10px;
  position: absolute;
  right: 0;
}

.section {
  padding: 64px 0;
}

.section-muted {
  background: var(--muted-bg);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-title {
  color: var(--text);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 900px;
}

.section-heading p,
.publication-body p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.publication-body p + p {
  margin-top: 1.1rem;
}

.paper-figure {
  box-shadow: 0 8px 28px rgba(20, 54, 95, 0.08);
  margin: 0;
  overflow: hidden;
}

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

.paper-figure figcaption {
  color: var(--muted);
  font-size: 0.96rem;
  padding: 12px 16px 16px;
}

.idea-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.idea-grid article {
  padding: 22px;
}

.idea-grid h3 {
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.idea-grid p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.result-block {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 54, 95, 0.08);
  margin-top: 18px;
  overflow: hidden;
}

.result-block summary {
  color: var(--text);
  cursor: pointer;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  list-style-position: inside;
  padding: 18px 22px;
}

.result-block[open] summary {
  border-bottom: 1px solid var(--line);
}

.result-stack {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.bibtex-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.bibtex-header .section-title {
  margin-bottom: 0;
}

.bibtex-box {
  background: #08182d;
  border-radius: 8px;
  color: #eaf6ff;
  font-size: 0.92rem;
  margin-top: 18px;
  overflow-x: auto;
  padding: 20px;
  white-space: pre-wrap;
}

.bibtex-box code {
  overflow-wrap: anywhere;
  white-space: inherit;
}

.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 32px 0;
}

.footer p + p {
  margin-top: 8px;
}

@media screen and (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 850px;
  }

  .hero-visual {
    max-width: 720px;
  }

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

@media screen and (max-width: 700px) {
  .site-container {
    max-width: 1180px;
    width: calc(100% - 24px);
  }

  .site-hero {
    padding-top: 14px;
    padding-bottom: 38px;
  }

  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
  }

  .hero-grid {
    gap: 28px;
  }

  .brand {
    max-width: 170px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: 1.78rem;
    line-height: 1.13;
  }

  .hero-subtitle,
  .section-heading p,
  .publication-body p {
    font-size: 1rem;
  }

  .publication-authors {
    font-size: 0.95rem;
    gap: 5px 9px;
  }

  .affiliations {
    font-size: 0.9rem;
  }

  .publication-links .button {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .comparison-grid {
    gap: 8px;
  }

  .section {
    padding: 44px 0;
  }

  .paper-figure figcaption,
  .result-block summary {
    font-size: 0.96rem;
  }

  .result-stack {
    padding: 12px;
  }
}
