:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #59616d;
  --line: #dfe4ea;
  --paper: #ffffff;
  --wash: #f6f7f5;
  --soft-blue: #eef5f8;
  --soft-green: #eef6f0;
  --blue: #1d6d94;
  --green: #34775a;
  --orange: #cf6d32;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.62;
}

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

a:hover {
  text-decoration: underline;
}

main {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 1080px;
  margin: 0 auto 18px;
  font-size: clamp(2.2rem, 6.2vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin-bottom: 14px;
}

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

figure {
  margin-bottom: 0;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

section,
.hero-inner,
.chapter-label {
  width: min(1120px, 100%);
  margin-inline: auto;
}

section {
  padding: 54px 20px;
}

.hero {
  display: grid;
  min-height: 56svh;
  place-items: center;
  padding: 62px 20px 46px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), #fff 72%),
    var(--soft-blue);
  border-bottom: 1px solid var(--line);
}

.venue {
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tagline {
  max-width: 740px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.18rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.links a {
  min-width: 104px;
  padding: 9px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  font-weight: 800;
}

.links a:nth-child(2) {
  background: var(--blue);
}

.links a:nth-child(3) {
  background: var(--green);
}

.teaser {
  padding-top: 34px;
  padding-bottom: 42px;
  background: #fff;
}

.teaser figure {
  width: min(980px, 100%);
  margin-inline: auto;
}

.chapter {
  width: 100%;
  max-width: none;
}

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

.chapter-intro {
  background: var(--wash);
}

.chapter-method {
  background: #fff;
}

.chapter-tasks {
  background: var(--soft-green);
}

.chapter-paper {
  background: #fff;
}

.chapter-label {
  padding: 34px 20px 0;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head {
  max-width: 920px;
  margin-bottom: 26px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.03rem;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.highlight-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.highlight-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.highlight-item p {
  margin-bottom: 0;
  font-weight: 700;
}

.abstract {
  padding-top: 22px;
  padding-bottom: 24px;
  max-width: 960px;
}

.motivation {
  padding-top: 44px;
}

.motivation .section-head {
  padding: 28px;
  border-left: 5px solid var(--orange);
  background: #fff;
}

.motivation-grid,
.formula-grid {
  display: grid;
  gap: 16px;
}

.motivation-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: stretch;
}

.motivation-stack {
  display: grid;
  gap: 16px;
}

.motivation-grid article,
.formula-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.motivation-grid article {
  min-width: 0;
}

.motivation-grid .answer-card {
  border-color: rgba(52, 119, 90, 0.34);
  background: #f7fbf6;
}

.prior-card {
  display: flex;
  flex-direction: column;
}

.prior-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 4px 0 14px;
}

.prior-methods > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fafb;
}

.prior-methods p:last-child {
  margin-bottom: 0;
}

.method-label {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-equation {
  overflow-x: auto;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #e8edf1;
  border-radius: 6px;
  background: #fff;
  font-size: 0.86rem;
}

.mini-equation mjx-container {
  margin: 0.35em 0 !important;
}

.wide-figure {
  width: min(1000px, 100%);
  margin: 36px auto 0;
}

.wide-figure img,
.teaser img,
.task-block img {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.formula-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.formula-card {
  overflow-x: auto;
}

.formula-card p:last-child {
  margin-bottom: 0;
}

.equation {
  overflow-x: auto;
  padding: 4px 0;
}

.task-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid rgba(52, 119, 90, 0.22);
}

.task-block:first-of-type {
  border-top: 0;
  padding-top: 12px;
}

.task-block > div {
  position: sticky;
  top: 24px;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.citation {
  padding-top: 18px;
}

.citation-note {
  color: var(--muted);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f7f9;
  color: #222;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .highlight-list,
  .motivation-grid,
  .formula-grid,
  .task-block {
    grid-template-columns: 1fr;
  }

  .task-block > div {
    position: static;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  section {
    padding: 42px 16px;
  }

  .hero {
    padding: 48px 16px 36px;
  }

  .chapter-label {
    padding-inline: 16px;
  }

  .motivation .section-head {
    padding: 20px;
  }

  .highlight-item {
    min-height: auto;
  }

  .pdf-viewer {
    min-height: 460px;
  }
}
