:root {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --ink: #18201d;
  --muted: #59635f;
  --line: #d7e5f5;
  --accent: #0b5bd7;
  --accent-strong: #0847aa;
  --accent-soft: #e8f2ff;
  --code: #0d1624;
  --warn: #b94f1a;
  --shadow: 0 18px 60px rgba(18, 71, 140, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

nav,
main,
.hero-inner,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-size: 0.94rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 740;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 760;
}

.hero {
  padding: 76px 0 50px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

p {
  margin: 0 0 18px;
}

.lede {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.13rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 760;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.tight-section {
  padding-top: 34px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 34px;
  align-items: start;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.doc-card {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 12px 14px;
}

.install-block,
.example,
.doc-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.install-block {
  max-width: 760px;
  margin-top: 20px;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--code);
  color: #d8e2dc;
  padding: 11px 14px;
  font-size: 0.86rem;
}

.copy {
  min-width: 76px;
  border: 1px solid #607069;
  background: transparent;
  color: #ffffff;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.copy:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 91, 215, 0.35);
  outline-offset: 3px;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: var(--code);
  color: #f2faf5;
  padding: 18px;
  line-height: 1.5;
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.92rem;
}

p code,
li code,
td code {
  background: #e8f2ff;
  color: #0847aa;
  padding: 0.15em 0.32em;
}

.examples {
  display: grid;
  gap: 28px;
}

.example {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  align-items: stretch;
}

.example-copy {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.example-copy p,
.note,
.doc-section p,
.doc-card {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.note {
  font-size: 0.94rem;
}

.note strong {
  color: var(--warn);
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 16px;
}

.toc ul {
  margin: 0;
  padding-left: 18px;
}

.doc-stack {
  display: grid;
  gap: 24px;
}

.doc-section {
  padding: 24px;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}

.field-table th,
.field-table td {
  border-top: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.field-table th {
  color: var(--ink);
  font-weight: 760;
}

footer {
  padding: 34px 0 54px;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 860px) {
  nav,
  main,
  .hero-inner,
  footer {
    width: min(100% - 28px, 1120px);
  }

  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 44px;
  }

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

  .example-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .toc {
    position: static;
  }
}
