:root {
  --bg: #ffffff;
  --ink: #172033;
  --muted: #5b667a;
  --line: #d7e8fb;
  --blue-25: #f5fbff;
  --blue-50: #eef8ff;
  --blue-100: #dceeff;
  --blue-200: #b8dcff;
  --blue-500: #2c7fd2;
  --blue-700: #185b9e;
  --link: #0a5fa8;
  --link-hover: #083f75;
  --green-500: #2b9c70;
  --amber-500: #bb7a25;
  --shadow: 0 24px 70px rgba(34, 93, 150, 0.12);
  --radius: 8px;
  --maxw: 1120px;
  color-scheme: light;
}

* {
  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;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}

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

.container {
  width: min(var(--maxw), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  padding: 62px 0 20px;
}

.hero-inner {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  color: var(--blue-700);
}

.subtitle {
  max-width: 820px;
  margin: 18px auto 0;
  color: #334155;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
  text-wrap: balance;
}

.authors {
  max-width: 900px;
  margin: 24px auto 0;
  color: #243047;
  line-height: 1.75;
  text-wrap: balance;
}

.authors p {
  margin: 0;
}

.author-list {
  font-size: 1.03rem;
  font-weight: 500;
}

.author-line {
  display: block;
}

.author-line + .author-line {
  margin-top: 1px;
}

.author-list a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(10, 95, 168, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    background 160ms ease-out,
    color 160ms ease-out,
    text-decoration-color 160ms ease-out;
}

.author-list a:hover {
  color: var(--link-hover);
  background: var(--blue-50);
  border-radius: 4px;
  text-decoration-color: currentColor;
}

.author-list sup {
  color: var(--muted);
  font-weight: 400;
}

.affiliations,
.notes {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.affiliations {
  margin-top: 12px !important;
}

.notes {
  margin-top: 6px !important;
}

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

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(44, 127, 210, 0.09);
  transition:
    background 160ms ease-out,
    border-color 160ms ease-out,
    color 160ms ease-out,
    transform 160ms ease-out;
}

.button:hover {
  border-color: var(--blue-500);
  background: #e5f3ff;
  color: var(--blue-700);
  text-decoration: none;
  transform: translateY(-1px);
}

.button-disabled {
  cursor: not-allowed;
  color: #6d7b8f;
  background: #f2f6fa;
  border-color: #dbe4ee;
  box-shadow: none;
}

.button-disabled:hover {
  transform: none;
  color: #5d6c81;
  background: #eef4fa;
  border-color: var(--blue-200);
}

.button-icon,
.button-icon svg {
  width: 15px;
  height: 15px;
  display: inline-flex;
  flex: 0 0 auto;
}

.button-icon svg {
  fill: currentColor;
}

.teaser-section {
  padding: 18px 0 42px;
}

.teaser,
.wide-figure {
  margin: 0;
}

.teaser {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.teaser img {
  width: 100%;
  background: white;
}

figcaption {
  padding: 18px 22px 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--blue-25), #ffffff);
  border-top: 1px solid rgba(215, 232, 251, 0.72);
  border-bottom: 1px solid rgba(215, 232, 251, 0.72);
}

.text-grid,
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 54px;
  align-items: start;
}

h2 {
  margin: 0;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.prose p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-note {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.claim-grid,
.metric-grid,
.method-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.claim-card,
.method-flow article,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(34, 93, 150, 0.08);
}

.claim-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-weight: 900;
}

.claim-card p,
.method-flow p {
  margin: 0;
  color: var(--muted);
}

.method-flow {
  margin-bottom: 28px;
}

.method-flow article:nth-child(2) {
  border-color: #f2d4a3;
  background: #fffaf2;
}

.method-flow article:nth-child(2) h3 {
  color: var(--amber-500);
}

.method-flow article:nth-child(3) {
  border-color: #c8eadc;
  background: #f5fffa;
}

.method-flow article:nth-child(3) h3 {
  color: var(--green-500);
}

.wide-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wide-figure img {
  width: 100%;
  background: white;
}

.equation-panel {
  margin-top: 22px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background: var(--blue-50);
  padding: 18px 20px;
}

.equation-label {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.equation {
  margin: 0;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #20304c;
  font-size: clamp(0.86rem, 2.5vw, 1.05rem);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  color: var(--blue-700);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.bibtex-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101828;
  color: #eef6ff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bibtex-card pre {
  margin: 0;
  padding: 62px 22px 22px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.footer-note p {
  max-width: 900px;
  line-height: 1.65;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--blue-700);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 48px;
  }

  .text-grid,
  .split-panel,
  .claim-grid,
  .metric-grid,
  .method-flow {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .button-row {
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .hero-inner {
    width: min(100% - 24px, 1120px);
  }

  figcaption {
    padding: 14px 14px 16px;
  }

  .claim-card,
  .method-flow article,
  .metric-card {
    padding: 18px;
  }

  .hero {
    padding-top: 34px;
  }

  .subtitle {
    margin-top: 16px;
  }

  .authors {
    margin-top: 20px;
  }

  .button-row {
    margin-top: 18px;
    gap: 8px 6px;
  }

  .button {
    min-height: 38px;
    gap: 6px;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .button-icon,
  .button-icon svg {
    width: 13px;
    height: 13px;
  }
}
