:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #eef7fb;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #079bc5;
  --accent-dark: #057a9b;
  --nav: #0f172a;
  --shadow: none;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: max-content;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
  text-decoration: none;
}

.site-nav .github-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  color: var(--surface);
  background: var(--nav);
}

.site-nav .github-button:hover {
  color: var(--surface);
  background: #253044;
}

.page-shell {
  padding: 56px 0 72px;
}

.content {
  max-width: 860px;
}

.docs-home .content {
  max-width: none;
}

.content > h1:first-child {
  margin-top: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.content > p:first-of-type {
  max-width: 740px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.03em;
}

h2 {
  margin-top: 46px;
  font-size: 28px;
}

h3 {
  margin-top: 28px;
  font-size: 21px;
}

p,
li {
  max-width: 780px;
}

ul,
ol {
  padding-left: 1.35rem;
}

code {
  padding: 0.16em 0.38em;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92em;
}

pre {
  max-width: 860px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f172a;
  color: #eef6ff;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0 34px;
}

th,
td {
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.doc-hero {
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.doc-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.doc-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.button:hover {
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
}

.button--secondary {
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.button--secondary:hover {
  background: #dff3fa;
  color: var(--accent-dark);
}

.screenshot-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: start;
  margin: 18px 0 10px;
}

.screenshot-preview a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.screenshot-preview a:hover {
  border-color: rgba(7, 155, 197, 0.42);
  text-decoration: none;
}

.screenshot-preview img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.screenshot-preview__mobile {
  display: grid;
  gap: 16px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.doc-card {
  display: block;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-card:hover {
  border-color: rgba(7, 155, 197, 0.38);
  text-decoration: none;
}

.doc-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.doc-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 24px, 1120px);
  }

  .site-header__inner {
    display: block;
    padding: 12px 0;
  }

  .site-nav {
    margin-top: 10px;
  }

  .page-shell {
    padding-top: 28px;
  }

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

  .screenshot-preview {
    grid-template-columns: 1fr;
  }

  .screenshot-preview__mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    display: block;
  }
}
