:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #4c5157;
  --link: #12529a;
  --line: #d9dde2;
}

* { box-sizing: border-box; }
body { margin: 0; background: white; color: var(--ink); font: 1rem/1.6 Arial, sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
figure, h1, h2, p { margin: 0; }
img, video { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.shell { width: min(1000px, calc(100% - 40px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  font-size: .9rem;
}
.brand { color: var(--ink); font-weight: 700; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 24px); }
nav a { padding-block: 8px; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { padding-block: clamp(32px, 6vw, 58px) clamp(25px, 4vw, 36px); text-align: center; }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
.hero-subtitle {
  max-width: 58ch;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.section { padding-block: clamp(24px, 4vw, 38px); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.section p { max-width: 82ch; margin-top: 12px; }
.paper-figure, .demo-figure { margin-top: 20px; }
.paper-figure a { display: block; }
figcaption { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.demo-figure video { aspect-ratio: 2528 / 560; background: #101719; }
footer { border-top: 1px solid var(--line); }

@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { font-size: .82rem; }
  .demo-figure video { min-height: 130px; }
}
