* { box-sizing: border-box; }

:root {
  --bg: #fbfbf8;
  --paper: #ffffff;
  --text: #252a26;
  --heading: #1e2420;
  --muted: #69726b;
  --green: #40644f;
  --green-dark: #2e4e3c;
  --sage: #98aa9d;
  --soft: #f2f5f2;
  --line: #dfe5e0;
  --line-light: #eaeeea;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page-width {
  width: min(980px, calc(100% - 44px));
  margin-inline: auto;
}

.site-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}
.brand {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
}
nav { display: flex; gap: 22px; color: var(--muted); font-size: 12.5px; }
nav a:hover, .site-footer a:hover { color: var(--green-dark); }

.hero {
  padding: 52px 0 30px;
  text-align: center;
}
.venue {
  margin: 0;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1 {
  max-width: 875px;
  margin: 15px auto 0;
  color: var(--heading);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(31px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.018em;
}
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 17px;
  margin-top: 20px;
  font-size: 14.5px;
}
.authors a { color: var(--green-dark); font-weight: 650; }
.authors sup, .affiliations sup { font-size: .64em; }
.affiliations {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.affiliations span { margin: 0 7px; color: #a9b0aa; }
.tagline {
  margin: 21px auto 0;
  color: #505851;
  font-size: 14.5px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
}
.project-link {
  min-width: 86px;
  padding: 7px 14px;
  border: 1px solid #d6ddd7;
  border-radius: 6px;
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 650;
  transition: transform .15s ease, border-color .15s ease;
}
.project-link:hover { transform: translateY(-1px); border-color: #b9c6bc; }
.project-link.primary { border-color: var(--green); background: var(--green); color: #fff; }

.teaser {
  margin-top: 15px;
  margin-bottom: 0;
  padding-bottom: 42px;
}
.teaser img {
  width: 100%;
  border-radius: 4px;
}
figcaption {
  max-width: 900px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.content-flow {
  border-top: 1px solid var(--line);
}
.paper-section {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 38px;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}
.section-label {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section-label > span { display: block; margin-bottom: 9px; }
.section-label h2 {
  margin: 0;
  color: var(--heading);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.014em;
  text-transform: none;
}
.section-body { min-width: 0; }
.prose p {
  margin: 0 0 13px;
  color: #4e5750;
  font-size: 14.5px;
  line-height: 1.72;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--green-dark); }
.section-intro {
  max-width: 690px;
  margin: 0 0 22px;
  color: #515a53;
  font-size: 14px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.method-steps article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.72);
}
.method-steps article > span {
  color: var(--sage);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.method-steps h3 {
  margin: 8px 0 7px;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.35;
}
.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.58;
}
.equation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #e3e9e4;
  border-radius: 7px;
  background: #e3e9e4;
}
.equation-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--soft);
}
.equation-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.equation-row code {
  color: #294a38;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 16px;
}

.result-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.result-main article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}
.result-main article > span {
  color: var(--muted);
  font-size: 11.5px;
}
.result-main article > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 1px;
  font-size: 28px;
  line-height: 1.15;
}
.result-main em { color: #7a817c; font-style: normal; font-weight: 500; }
.result-main b { color: #9aa49c; font-weight: 500; }
.result-main strong { color: var(--green-dark); font-weight: 700; }
.result-main small { color: var(--muted); font-size: 10.8px; }
.result-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.result-secondary > div {
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: #f8faf8;
}
.result-secondary span, .result-secondary small { display: block; color: var(--muted); font-size: 10.5px; }
.result-secondary strong { display: block; margin: 4px 0 1px; color: var(--green-dark); font-size: 14px; }
.scope-inline {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 2px solid #c8d5cb;
  color: var(--muted);
  font-size: 12.5px;
}
.scope-inline strong { color: var(--green-dark); }

.citation-box { position: relative; }
pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7f5;
  color: #3d453f;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border: 1px solid #d3dbd4;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font: 600 10.5px Inter, sans-serif;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 11.5px;
}
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 17px; }

@media (max-width: 820px) {
  nav { display: none; }
  .paper-section { grid-template-columns: 1fr; gap: 18px; padding: 40px 0; }
  .section-label h2 { max-width: 520px; font-size: 25px; }
  .method-steps, .result-secondary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .page-width { width: min(100% - 28px, 980px); }
  .hero { padding-top: 38px; }
  h1 { font-size: 30px; }
  .authors { font-size: 13px; }
  .tagline { font-size: 13.5px; }
  .teaser { padding-bottom: 32px; }
  .method-steps, .equation-row, .result-main, .result-secondary { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; gap: 20px; }
}
