:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --surface: #fff;
  --ink: #202332;
  --muted: #51596b;
  --line: #d9dbe5;
  --blue: #2849dd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: var(--blue); text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.container { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.035em; }
.wordmark span { color: var(--blue); }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: var(--ink); }
nav a[aria-current] { color: var(--blue); font-weight: 700; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3rem, 9vw, 8rem); }
.article { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 5rem); }

h1, h2 { line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.045em; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; margin: 0 0 .5rem; }
p { max-width: 65ch; margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; }
.article section { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.75rem; }
.caption { color: var(--muted); font-weight: 650; font-size: .85rem; margin-bottom: .5rem; }

.button { display: inline-block; background: var(--blue); color: #fff; padding: .65rem 1rem; border-radius: .5rem; text-decoration: none; font-weight: 650; margin-top: .25rem; }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.15rem, 4vw, 2.25rem); box-shadow: 0 .45rem 1.5rem #2528440b; }
table { width: 100%; border-collapse: collapse; margin-top: 1.15rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
tr > :first-child { text-align: left; }
thead th { color: var(--muted); font-size: .85rem; }
tbody th { font-weight: 550; }
tbody tr:last-child > * { border-bottom: 0; }

.page-footer { border-top: 1px solid var(--line); padding-block: 1.25rem 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 47rem) {
  .hero { grid-template-columns: 1fr; }
}

.sample-link { margin: 1rem 0 0; }
.demo {
  display: grid;
  grid-template-columns: 1fr minmax(13rem, 21rem);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 6vw, 4rem);
}
.demo h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.demo video { display: block; width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--line); }
@media (max-width: 47rem) {
  .demo { grid-template-columns: 1fr; }
  .demo video { max-width: 21rem; }
}

.workflow { margin: .75rem 0 1.25rem; padding-inline-start: 1.5rem; }
.workflow li + li { margin-top: .35rem; }
