:root {
  color-scheme: dark;
  --background: #141218;
  --surface: #1d1b20;
  --text: #e6e0e9;
  --muted: #cac4d0;
  --border: #49454f;
  --accent: #d0bcff;
  --on-accent: #381e72;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 24px;
  z-index: 2;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--on-accent);
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  border-bottom: 1px solid var(--border);
}
.header-content {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}
.brand svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
}
.intro {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px 32px;
}
h1 {
  max-width: 660px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro-copy p {
  margin-top: 20px;
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
}
.entry-actions {
  width: 100%;
  max-width: 320px;
  justify-self: end;
}
.entry-actions .button + .button {
  margin-top: 12px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.button:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--muted);
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover {
  background: #e8def8;
  border-color: #e8def8;
  color: var(--on-accent);
}
.entry-actions p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.preview {
  margin: 0;
}
.preview a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.preview img {
  display: block;
  width: 100%;
  height: auto;
}
.preview figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.preview figcaption a {
  display: inline;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.details {
  margin-top: 40px;
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
.details h2,
.start h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.feature-list {
  margin: 24px 0 0;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding-block: 20px;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}
.feature-row dt {
  font-weight: 550;
}
.feature-row dd {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}
.feature-row dd a {
  color: var(--text);
}
.start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
.start p {
  margin-top: 8px;
  color: var(--muted);
}
.start .button {
  flex-shrink: 0;
}
.site-footer {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  font-size: 14px;
  color: var(--muted);
}
.footer-content nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.footer-content a {
  text-decoration: none;
}
.footer-content a:hover {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-content {
    min-height: 64px;
    gap: 16px;
  }
  .site-nav {
    gap: 16px;
  }
  .site-nav .features-link {
    display: none;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px 24px;
  }
  .intro-copy p {
    font-size: 16px;
    margin-top: 16px;
  }
  .entry-actions {
    max-width: none;
  }
  .entry-actions p {
    max-width: 400px;
  }
  .preview figcaption {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 16px;
  }
  .details {
    margin-top: 24px;
    padding-block: 24px;
  }
  .start {
    align-items: stretch;
    flex-direction: column;
    padding-block: 24px;
  }
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Public documentation and legal pages share the landing's navigation and palette. */
.document-page {
  min-height: 100vh;
}
.section-nav {
  border-bottom: 1px solid var(--border);
}
.section-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
}
.section-nav a {
  padding-block: 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.section-nav a:hover {
  color: var(--text);
}
.section-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--text);
}
.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  grid-template-areas: "heading outline" "article outline";
  align-items: start;
  gap: 32px 64px;
  max-width: 1040px;
  padding-block: 48px 64px;
}
.document-header {
  grid-area: heading;
}
.document-header h1 {
  font-size: clamp(30px, 3.2vw, 40px);
}
.document-header .subtitle {
  margin-top: 16px;
  color: var(--muted);
}
.document-header .updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.page-outline {
  grid-area: outline;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 4px 8px 4px 24px;
  border-left: 1px solid var(--border);
  font-size: 14px;
}
.page-outline h2 {
  font-size: 14px;
  font-weight: 600;
}
.page-outline ul {
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.page-outline a {
  display: block;
  padding-block: 4px;
  color: var(--muted);
  text-decoration: none;
}
.page-outline a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.document-body {
  grid-area: article;
  min-width: 0;
}
.document-body section + section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.document-body h2 {
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.document-body h3 {
  margin-block: 24px 12px;
  font-size: 17px;
  font-weight: 550;
  line-height: 1.4;
}
.document-body p + p {
  margin-top: 12px;
}
.document-body ul,
.document-body ol {
  margin-block: 16px;
  padding-left: 24px;
}
.document-body li + li {
  margin-top: 8px;
}
.document-body section > :last-child {
  margin-bottom: 0;
}
.document-body a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.document-body a:hover {
  color: var(--text);
}
.document-body strong {
  font-weight: 600;
}
.document-body code {
  padding: 2px 6px;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.document-body .steps {
  padding-left: 24px;
}
.steps li {
  padding-left: 8px;
}
.steps li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.document-body .steps li + li {
  margin-top: 16px;
}
.note {
  margin-top: 24px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--muted);
  color: var(--muted);
}
.contact-address {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
}
.questions {
  margin: 0;
}
.questions > div {
  padding-block: 20px;
}
.questions > div:first-child {
  padding-top: 0;
}
.questions > div + div {
  border-top: 1px solid var(--border);
}
.questions > div:last-child {
  padding-bottom: 0;
}
.questions dt {
  font-weight: 550;
}
.questions dd {
  margin: 8px 0 0;
  color: var(--muted);
}
.document-page .site-footer {
  margin-top: 0;
}
@media (max-width: 800px) {
  .document-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "outline" "article";
    gap: 24px;
    padding-block: 32px 40px;
  }
  .page-outline {
    position: static;
    max-height: none;
    padding: 20px 0;
    border: 0;
    border-block: 1px solid var(--border);
  }
  .page-outline ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
  }
  .document-body h2 {
    font-size: 21px;
  }
  .document-body section + section {
    margin-top: 24px;
    padding-top: 24px;
  }
}
@media (max-width: 400px) {
  .section-nav .container {
    gap: 0 16px;
  }
  .section-nav a {
    font-size: 13px;
  }
  .page-outline ul {
    column-gap: 16px;
  }
}
