:root {
  color-scheme: light;
  font-family: "Inter", "Source Sans 3", system-ui, sans-serif;
  color: #17282b;
  background: #f6f5f0;
  --detail: #4c5b59;
  --rule: #d7dcd4;
  --accent: #21644f;
  --surface: #fff;
  --display-font: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
main.wrap { padding-bottom: clamp(3rem, 7vw, 6rem); }

.paper-heading {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  margin-top: clamp(1rem, 4vw, 3.25rem);
  padding: clamp(1.25rem, 4vw, 3.5rem);
  color: #f5f8f3;
  background: radial-gradient(ellipse at top left, #25463f, #112526 72%);
  border: 1px solid #284840;
  border-radius: 1.5rem;
}

.paper-title {
  max-width: 24ch;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.65rem, 3.25vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.paper-acronym {
  display: block;
  margin-bottom: .65rem;
  color: #a6e6cc;
  font-size: clamp(4.3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.07em;
}

.review-notice {
  margin: 1.25rem 0 0;
  color: #c3d9d0;
  font-size: .9rem;
  line-height: 1.5;
}

.media {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: .75rem;
}

.highlight {
  border-color: #49665e;
  background: #0b171a;
  box-shadow: 0 .75rem 2rem #08151560;
}

.page-section {
  margin-top: clamp(2.5rem, 6vw, 4.75rem);
  padding-top: clamp(1.4rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule);
}

.page-section h2, .result-card h3 {
  margin: 0 0 1rem;
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.page-section h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.result-card h3 { font-size: clamp(1.2rem, 2.1vw, 1.65rem); }

.abstract-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.75fr);
  column-gap: 2rem;
  align-items: baseline;
}

.abstract {
  max-width: 73ch;
  margin: 0;
  color: #2c3b3a;
  font-size: clamp(1rem, 1.65vw, 1.12rem);
  line-height: 1.8;
  white-space: pre-line;
}

.pipeline { background: var(--surface); }

.results {
  display: grid;
  /* Give the wider high-speed clip more room for its sensor views. */
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.results > h2, .result-wide { grid-column: 1 / -1; }
.results > h2 { margin-bottom: 0; }

.result-card {
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  box-shadow: 0 .3rem 1.2rem #2037310a;
}

.result-card video { background: #112526; }
.caption { margin: .85rem 0 0; color: var(--detail); font-size: .94rem; line-height: 1.6; }
.caption.intro { margin: -.3rem 0 1.05rem; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.editor { max-width: 56rem; padding-block: 3rem; }
.editor h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; }
.editor .editor-intro { max-width: 64ch; color: var(--detail); line-height: 1.6; }
.row { display: grid; gap: .45rem; margin: 1rem 0; }
.row label { font-weight: 650; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; background: #fff; color: inherit; border: 1px solid #aab9c2; border-radius: .35rem; padding: .65rem .75rem; }
textarea { min-height: 12rem; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.actions button { border: 1px solid var(--accent); border-radius: .35rem; padding: .58rem .85rem; color: var(--accent); background: white; cursor: pointer; }
.actions button[type="submit"] { background: var(--accent); color: #fff; }
.status { min-height: 1.4rem; margin-top: .8rem; font-size: .9rem; color: var(--detail); }

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2rem); }
  .paper-heading, .abstract-section, .results { grid-template-columns: minmax(0, 1fr); }
  .paper-heading { border-radius: 1.1rem; }
  .paper-title { text-wrap: wrap; }
}
