:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202a;
  background: #f4f7fb;
}

body {
  margin: 0;
  padding: 40px 24px;
}

main {
  width: min(980px, 100%);
  margin: 0 auto;
}

header {
  margin-bottom: 36px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  max-width: 700px;
  margin: 0;
  color: #4d5c6c;
  font-size: 1.05rem;
  line-height: 1.6;
}

section {
  margin-top: 28px;
}

.meta,
.routes,
.details {
  display: grid;
  gap: 12px;
}

.meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.routes {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.item,
.detail,
pre {
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #ffffff;
}

.item {
  padding: 16px 18px;
}

.route {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.route + p,
.detail p,
.item p {
  margin-top: 8px;
  font-size: 0.95rem;
}

.details {
  margin-top: 16px;
}

.detail {
  padding: 16px 18px;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

code,
.label {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  font-weight: 700;
}

a {
  color: #1f6fb9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

pre {
  overflow-x: auto;
  padding: 18px;
  line-height: 1.55;
}

.method {
  color: #0c7a43;
  white-space: nowrap;
}

.muted {
  color: #5f6f80;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #edf3f8;
    background: #101418;
  }

  p,
  .muted {
    color: #a8b5c2;
  }

  .item,
  .detail,
  pre {
    border-color: #2e3945;
    background: #171d23;
  }

  a {
    color: #8ab7e8;
  }

  .method {
    color: #73d99f;
  }
}
