/* SPDX-License-Identifier: AGPL-3.0-only */
/* The tokens of the design system: see design/README.md. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0a0f1c;
  --text-2: #566070;
  --nav: #2a3242;
  --border: #e4e7ec;
  --divider: #eef0f3;
  --subtle: #f9fafb;
  --accent: #2950f5;
  --accent-bg: #edf1fe;
  --warning: #a15c07;
  --warning-bg: #fef4e6;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family:
    "Geist",
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

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

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 24px;
}

.site-header {
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.lang {
  color: var(--nav);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

main {
  padding-top: 56px;
  padding-bottom: 72px;
}

h1 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  margin: 40px 0 8px;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 550;
}

.hero {
  font-size: 52px;
}

.lead {
  color: var(--text-2);
  font-size: 18.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--subtle);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* The home page is wider than the reading pages, for the preview of the product. */
.home .wrap {
  max-width: 1120px;
}

.intro {
  max-width: 760px;
}

.home main > h2 {
  margin-top: 64px;
}

.preview {
  margin: 48px 0 0;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 15, 28, 0.06);
}

.preview figcaption {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.integrations {
  align-items: center;
  gap: 12px 24px;
  margin-top: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
}

.nowrap {
  white-space: nowrap;
}

.updated {
  color: var(--text-2);
  font-size: 14.5px;
}

.draft {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 14.5px;
  font-weight: 500;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
}

dt {
  color: var(--text-2);
}

dd {
  margin: 0;
}

.table {
  margin: 0 0 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--subtle);
  font-weight: 600;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--divider);
  background: var(--subtle);
  color: var(--text-2);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer a[aria-current="page"] {
  color: var(--ink);
  font-weight: 550;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .steps,
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 16px;
  }

  main {
    padding-top: 40px;
  }

  h1 {
    font-size: 32px;
  }

  .hero {
    font-size: 36px;
  }

  .preview {
    margin-top: 32px;
  }

  .home main > h2 {
    margin-top: 48px;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  dd {
    margin-bottom: 10px;
  }
}
