:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #15221f;
  --muted: #5d6a65;
  --line: #dfe5df;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --warm: #f2efe8;
  --code: #101816;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  background: linear-gradient(180deg, #eef4f0 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.hero {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 46px;
  text-align: center;
}

.venue,
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  max-width: 1080px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  max-width: 880px;
}

.authors {
  margin: 24px auto 0;
  max-width: 820px;
  color: #24352f;
  font-size: 1.06rem;
}

.affiliations {
  margin: 8px auto 0;
  max-width: 760px;
  color: var(--muted);
}

.actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #bccac5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.button[aria-disabled="true"] {
  color: #74807b;
  cursor: default;
}

.figure-band {
  padding: 34px 0 6px;
}

.wide {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
}

.wide img,
.paper-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(27, 41, 35, 0.08);
  overflow: hidden;
}

.content-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 28px;
}

.abstract {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: #2f403a;
  font-size: 1.04rem;
}

.abstract p {
  margin: 0;
}

.stats {
  width: min(1120px, calc(100% - 40px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm);
}

.stats div {
  padding: 26px;
  min-height: 132px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.stats span {
  color: var(--muted);
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  background: #fff;
}

figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.citation-section {
  padding-bottom: 76px;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code);
  color: #eaf3ef;
  font-size: 0.92rem;
  line-height: 1.5;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 34px;
  }

  .section-heading,
  .abstract,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 12px;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  footer {
    flex-direction: column;
  }
}
