:root {
  --text: #111;
  --muted: #666;
  --line: #e7e7e7;
  --soft: #f6f6f6;
  --link: #2458a6;
  --width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--width), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 76px 0 38px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 24px auto 0;
}

.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}

.author-name {
  font-size: 1rem;
  line-height: 1.35;
}

.author-affiliation {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 15px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.button:hover {
  border-color: #999;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.figure {
  margin: 30px 0 0;
}

.figure img {
  width: 100%;
}

.figure figcaption {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.teaser {
  max-width: 850px;
  margin: 6px auto 64px;
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.lede {
  font-size: 1.05rem;
}

.key-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.key-points div {
  padding: 18px 22px 18px 0;
}

.key-points div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.key-points strong,
.key-points span {
  display: block;
}

.key-points span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.method-properties,
.results-list {
  width: 100%;
  max-width: none;
  margin-top: 28px;
}

.method-properties p,
.results-list p {
  margin-bottom: 10px;
}

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

caption {
  margin-bottom: 10px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  padding-left: 0;
  text-align: left;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

th {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.qualitative {
  margin-top: 38px;
}

.result-note {
  margin-top: 28px !important;
}

pre {
  margin: 20px 0 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 5px;
  background: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner a + a {
  margin-left: 16px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.results-grid .figure {
  margin: 0;
}

.results-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.results-grid figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 800px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--width), calc(100% - 28px));
  }

  .topbar nav a[href="#overview"],
  .topbar nav a[href="#method"],
  .topbar nav a[href="#results"] {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 br {
    display: none;
  }

  .authors {
    gap: 14px 18px;
  }

  .author {
    min-width: 135px;
  }

  .section {
    padding: 40px 0;
  }

  .key-points {
    grid-template-columns: 1fr;
  }

  .key-points div,
  .key-points div + div {
    padding: 14px 0;
    border-left: 0;
  }

  .key-points div + div {
    border-top: 1px solid var(--line);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}
