:root {
  --paper: #f5f4f1;
  --ink: #0e0e0e;
  --muted: #686868;
  --rule: rgba(14, 14, 14, 0.17);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.topbar,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  height: 86px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark img {
  border-radius: 9px;
}

.navlinks,
footer div {
  display: flex;
  gap: 28px;
}

.navlinks a,
footer a {
  text-decoration: none;
  color: var(--muted);
}

.navlinks a:hover,
.navlinks a.active,
footer a:hover {
  color: var(--ink);
}

.hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 112px 0 100px;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 700px;
  margin: 42px 0 0;
  color: #343434;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}

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

.button.secondary {
  border: 1px solid var(--rule);
}

.feature-grid {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.feature-grid article {
  padding: 46px 34px 52px 0;
}

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

.feature-number {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

h2 {
  margin: 28px 0 12px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.feature-grid p,
.document-page p,
.document-page li {
  color: #494949;
}

.platforms {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.platforms p {
  color: var(--muted);
}

.platforms div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.document-page {
  width: min(calc(100% - 48px), 820px);
  margin: 0 auto;
  padding: 100px 0 110px;
}

.document-page h1 {
  font-size: clamp(58px, 8vw, 92px);
}

.document-page section {
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--rule);
}

.document-page section h2 {
  margin-top: 0;
}

.document-page p,
.document-page li {
  font-size: 18px;
}

.updated {
  margin-top: 22px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding: 24px;
  background: var(--ink);
  color: white;
  border-radius: 14px;
  text-decoration: none;
}

.contact-card span {
  color: #cfcfcf;
}

footer {
  min-height: 92px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .topbar,
  footer,
  .hero,
  .feature-grid,
  .platforms,
  .document-page {
    width: min(calc(100% - 32px), var(--max));
  }

  .topbar {
    height: 72px;
  }

  .navlinks {
    gap: 18px;
  }

  .hero,
  .document-page {
    padding-top: 72px;
  }

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

  .feature-grid article,
  .feature-grid article + article {
    padding: 34px 0;
    border-left: 0;
  }

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

  .contact-card {
    flex-direction: column;
    overflow-wrap: anywhere;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111111;
    --ink: #f2f2ef;
    --muted: #a4a4a0;
    --rule: rgba(255, 255, 255, 0.18);
  }

  .lede,
  .feature-grid p,
  .document-page p,
  .document-page li {
    color: #c2c2bd;
  }

  .button.primary,
  .contact-card {
    background: #f2f2ef;
    color: #111111;
  }

  .contact-card span {
    color: #5a5a5a;
  }
}
