:root {
  --color-bg: #FEF8F4;
  --color-surface: #ffffff;
  --color-text: #031259;
  --color-muted: #5a6485;
  --color-rule: #e7dfd6;
  --color-blue: #4386F3;
  --color-purple: #8164EC;
  --color-link: #3a5fd9;
  --color-link-hover: #6a4fd0;
  --gradient-brand: linear-gradient(90deg, #4386F3 0%, #8164EC 100%);
  --measure: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* Landing page */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 64px;
}

.wordmark {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tagline {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 0 32px;
  font-weight: 400;
}

.lede {
  font-size: 18px;
  margin: 0 0 24px;
  max-width: 56ch;
}

.published {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 32px;
}

.published a {
  color: var(--color-muted);
}

/* Legal pages */
.legal main {
  padding-top: 64px;
}

.legal .doc-meta {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.legal .version-line {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 16px;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 18px;
}

ul, ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

li > p {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--color-rule);
  margin: 40px 0;
}

blockquote {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-blue);
  background-color: var(--color-surface);
  border-radius: 0 6px 6px 0;
  color: var(--color-text);
}

blockquote p {
  margin-bottom: 8px;
}

blockquote p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

table thead {
  background-color: var(--color-surface);
}

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

th {
  font-weight: 600;
  color: var(--color-text);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  background-color: var(--color-surface);
  border-radius: 4px;
}

em {
  color: var(--color-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-rule);
  margin-top: 64px;
  padding: 32px 24px;
  font-size: 14px;
  color: var(--color-muted);
}

footer .footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer a {
  color: var(--color-muted);
}

footer a:hover, footer a:focus {
  color: var(--color-text);
}

/* 404 */
.notfound main {
  text-align: center;
  padding-top: 120px;
}

.notfound .code {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.notfound h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 600px) {
  main {
    padding: 40px 20px 64px;
  }

  .landing main {
    padding-top: 64px;
  }

  .wordmark {
    font-size: 36px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 21px;
    margin-top: 36px;
  }

  h3 {
    font-size: 17px;
  }

  body {
    font-size: 16px;
  }

  footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
