:root {
  color-scheme: light;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --slate: #5b6578;
  --rule: #c8d0dc;
  --ruby: #cc342d;
  --ruby-dark: #a92621;
  --code: #20293a;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 3px solid var(--ruby);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 1rem;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  color: var(--ruby);
  font-size: 0.8rem;
}

nav {
  display: flex;
  gap: 2rem;
  color: var(--slate);
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
footer a:hover,
.start-copy > a:hover {
  color: var(--ruby-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: 690px;
  padding-block: 5rem;
  border-bottom: 1px solid var(--rule);
}

.hero > *,
.quick-start > * {
  min-width: 0;
}

.status {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  margin: 0 0 1.5rem;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ruby);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 670px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  font-weight: 700;
  line-height: 0.98;
}

.hero-lede {
  max-width: 590px;
  margin: 2rem 0 0;
  color: var(--slate);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary {
  border-color: var(--ruby);
  background: var(--ruby);
  color: white;
}

.button-primary:hover {
  border-color: var(--ruby-dark);
  background: var(--ruby-dark);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: var(--surface);
}

.support-list {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1.5fr;
  margin: 3.5rem 0 0;
  border-top: 1px solid var(--rule);
}

.support-list div {
  min-width: 0;
  padding: 1rem 1rem 0 0;
}

.support-list dt {
  color: var(--slate);
  font-size: 0.76rem;
}

.support-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.83rem;
  font-weight: 700;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.compute-panel {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 18px 18px 0 #e1e6ed;
}

.panel-bar,
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.panel-bar {
  border-bottom: 1px solid var(--rule);
}

.panel-state {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--slate);
}

.panel-state i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ruby);
}

.pipeline {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.pipeline-step {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.pipeline-step.result {
  border-color: var(--ruby);
  background: #fff7f6;
}

.step-label {
  color: var(--slate);
  font-size: 0.75rem;
}

output {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.connector {
  position: relative;
  height: 48px;
  margin-left: 1.5rem;
  border-left: 1px solid var(--rule);
}

.connector::after {
  position: absolute;
  bottom: -1px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  content: "";
  transform: rotate(45deg);
}

.connector span {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.68rem;
  transform: translateY(-50%);
}

pre {
  margin: 0;
  overflow-x: auto;
  background: var(--code);
  color: #f2f5f9;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.85;
}

.pipeline pre {
  padding: 1.25rem;
}

.code-dim,
.code-comment {
  color: #a6b1c3;
}

.code-ruby,
.code-string,
.code-symbol {
  color: #ff827c;
}

.panel-foot {
  border-top: 1px solid var(--rule);
  color: var(--slate);
}

.capabilities {
  padding-block: 8rem;
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.08;
}

.section-heading p,
.start-copy p,
.closing p {
  max-width: 560px;
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.capability-grid article {
  min-width: 0;
  padding: 2rem;
}

.capability-grid article + article {
  border-left: 1px solid var(--rule);
}

.capability-grid svg {
  width: 42px;
  height: 42px;
  margin-bottom: 2.5rem;
  fill: none;
  stroke: var(--ruby);
  stroke-width: 1.5;
}

h3 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 1.05rem;
}

.capability-grid p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.quick-start {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: 8rem;
  border-bottom: 1px solid var(--rule);
}

.start-copy p {
  margin-top: 1.75rem;
}

.start-copy > a {
  display: inline-block;
  margin-top: 2rem;
  color: var(--ruby-dark);
  font-weight: 700;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--code);
  box-shadow: 12px 12px 0 var(--rule);
}

.code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #4c566a;
  color: #a6b1c3;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.code-tabs span {
  padding: 0.75rem 1rem;
  border-right: 1px solid #4c566a;
}

.code-tabs span:last-child {
  background: #303a4c;
  color: white;
}

.code-window pre {
  min-height: 320px;
  padding: 2rem;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
}

.closing {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: end;
  padding-block: 7rem;
}

.closing div {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 120px;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}

footer > div {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .quick-start,
  .closing {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    gap: 4rem;
  }

  .section-heading {
    align-items: start;
  }

  .closing {
    align-items: start;
  }
}

@media (max-width: 660px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1180px);
  }

  .site-header {
    min-height: 64px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero,
  .capabilities,
  .quick-start,
  .closing {
    padding-block: 5rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .support-list {
    grid-template-columns: 1fr 1fr;
  }

  .support-list div:last-child {
    grid-column: 1 / -1;
  }

  .compute-panel {
    box-shadow: 8px 8px 0 #e1e6ed;
  }

  .pipeline {
    padding: 1rem;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article + article {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .code-window {
    box-shadow: 8px 8px 0 var(--rule);
  }

  .code-window pre {
    min-height: auto;
    padding: 1.25rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 2rem;
  }

  footer > div {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
