:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #dbe4f2;
  background: #0b0f1a;
  line-height: 1.65;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1100px;
  margin: auto;
  padding: 32px 24px;
}
header {
  border-bottom: 1px solid #293447;
}
header p {
  max-width: 680px;
  color: #a6b4cb;
}
.eyebrow {
  color: #a5b4fc;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 16px 0;
}
h2 {
  font-size: 1.55rem;
  color: #f1f5f9;
}
h3 {
  font-size: 1.1rem;
  color: #c7d2fe;
}
a {
  color: #a5b4fc;
  text-underline-offset: 4px;
}
nav {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
}
main {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
}
.contents {
  align-self: start;
  position: sticky;
  top: 20px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
section {
  scroll-margin-top: 24px;
  margin-bottom: 48px;
}
p,
li,
dd {
  max-width: 75ch;
}
li {
  margin: 0.45rem 0;
}
pre {
  padding: 18px;
  background: #141d2e;
  border: 1px solid #293447;
  border-radius: 12px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
code {
  font-family: ui-monospace, monospace;
  color: #c7d2fe;
}
aside {
  border-left: 3px solid #818cf8;
  background: #141d2e;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #293447;
  vertical-align: top;
}
th {
  color: #c7d2fe;
}
footer {
  border-top: 1px solid #293447;
  font-size: 0.85rem;
  color: #a6b4cb;
}
:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: #141d2e;
  padding: 8px;
}
@media (max-width: 760px) {
  main {
    display: block;
  }
  .contents {
    position: static;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 36px;
    gap: 10px 20px;
  }
  header,
  main,
  footer {
    padding: 24px 18px;
  }
}
@media print {
  :root {
    color: #111;
    background: white;
    color-scheme: light;
  }
  header,
  main,
  footer {
    max-width: none;
    padding: 0;
  }
  main {
    display: block;
  }
  nav,
  .contents,
  .skip {
    display: none;
  }
  section {
    break-inside: auto;
  }
  h1,
  h2,
  h3,
  a,
  code,
  th {
    color: #111;
  }
  pre,
  aside {
    background: #f4f4f4;
  }
  pre {
    border-color: #ddd;
  }
}
