:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #1c211f;
  --muted: #5e6762;
  --accent: #1e524d;
  --line: #e4ddd2;
  --width: 1080px;
  --pad: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c211f;
  --ink: #f5f2eb;
  --muted: #b7c2bc;
  --accent: #9eccc0;
  --line: #2e3834;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1c211f;
    --ink: #f5f2eb;
    --muted: #b7c2bc;
    --accent: #9eccc0;
    --line: #2e3834;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #1c211f;
  --muted: #5e6762;
  --accent: #1e524d;
  --line: #e4ddd2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  body,
  header,
  .theme,
  a {
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(var(--width), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

@media (min-width: 800px) {
  :root {
    --pad: 40px;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 28px;
  min-height: 72px;
  padding: 10px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  color: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.company {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.theme {
  appearance: none;
  justify-self: end;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.theme:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 799px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand theme"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .nav {
    grid-area: nav;
    justify-content: flex-start;
  }

  .theme {
    grid-area: theme;
  }
}

.hero {
  padding: clamp(4.5rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 6rem);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  max-width: 11em;
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero p {
  max-width: 68ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.45;
}

section {
  padding: 5.5rem 0;
  scroll-margin-top: 8rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lede {
  max-width: 68ch;
  margin-top: 1rem;
  color: var(--muted);
}

.rows,
.facts,
.builds,
.pipeline {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.rows li,
.facts li,
.builds li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.rows li:last-child,
.facts li:last-child,
.builds li:last-child {
  border-bottom: 1px solid var(--line);
}

.rows li {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 8px 32px;
  align-items: baseline;
}

.label {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .rows li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.facts {
  max-width: 68ch;
}

.facts li {
  padding-top: 1.35rem;
}

.pipeline {
  display: grid;
  gap: 0;
}

.pipeline li {
  position: relative;
  padding: 0 0 2rem 3rem;
  border-left: 1px solid var(--line);
}

.pipeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.step {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.pipeline h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pipeline p {
  margin-top: 0.4rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }

  .pipeline li,
  .pipeline li:last-child {
    position: relative;
    padding: 0;
    border-left: 0;
  }

  .pipeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 32px;
    right: -28px;
    height: 1px;
    background: var(--line);
  }

  .step {
    position: relative;
    z-index: 1;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 1.25rem;
  }
}

.table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
}

.compare table {
  min-width: 0;
}

.compare th:last-child,
.compare td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.compare .yes {
  color: var(--accent);
  font-weight: 600;
}

.compare .no {
  color: var(--muted);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  padding-bottom: 1rem;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 0.95rem 1.25rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  background: var(--paper);
}

.measuring {
  color: var(--muted);
}

@media (max-width: 720px) {
  #benchmarks .table-wrap {
    overflow: visible;
  }

  #benchmark-table {
    min-width: 0;
  }

  #benchmark-table caption {
    display: block;
  }

  #benchmark-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  #benchmark-table,
  #benchmark-table tbody,
  #benchmark-table tr,
  #benchmark-table th,
  #benchmark-table td {
    display: block;
  }

  #benchmark-table tr {
    padding: 1rem 0;
  }

  #benchmark-table th[scope="row"] {
    position: static;
    padding: 0 0 0.35rem;
    border: 0;
    font-weight: 600;
  }

  #benchmark-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0.2rem 0;
    border: 0;
  }

  #benchmark-table td::before {
    content: attr(data-label);
    color: var(--muted);
  }
}

.builds h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.builds p {
  margin-top: 0.35rem;
  color: var(--muted);
}

footer {
  padding: 0 0 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer .wrap {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.foundation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: baseline;
  margin: 0 0 0.85rem;
}

.foundation a {
  color: var(--ink);
  text-decoration: none;
}

.foundation a:hover {
  color: var(--accent);
}

.prose {
  padding: 4.5rem 0 5rem;
  font-family: var(--font), "Noto Serif Hebrew", "Noto Sans Hebrew", David, "Arial Hebrew", "Times New Roman", serif;
}

.prose h1 {
  max-width: 18em;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
}

.prose p,
.prose ul,
.prose blockquote {
  max-width: 68ch;
  margin-top: 1.25rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.prose [dir="rtl"] {
  unicode-bidi: isolate;
  font-family: "Noto Serif Hebrew", "Noto Sans Hebrew", David, "Arial Hebrew", "Times New Roman", serif;
}
