:root {
  color-scheme: dark;
  --background: #101723;
  --surface: #192231;
  --text: #f1f4f8;
  --muted: #bac5d4;
  --link: #9bc8ff;
  --border: #3c4c62;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: var(--link); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; border-radius: 2px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 10px 16px; background: var(--text); color: var(--background); z-index: 1; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { max-width: 1000px; margin: auto; padding: 24px 28px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--text); text-decoration: none; }
.publisher { display: block; font-size: 0.82rem; line-height: 1.6; color: var(--muted); font-weight: 400; margin-top: 4px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { min-height: 44px; padding: 7px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { background: var(--background); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
main, .site-footer { max-width: 760px; margin-inline: auto; padding-inline: 28px; }
main { padding-top: 42px; padding-bottom: 36px; }
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; color: var(--text); }
h1 { font-size: 2rem; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 2.2em 0 0.7em; }
h3 { font-size: 1.12rem; margin: 1.8em 0 0.6em; }
p, ul, ol, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.5em; }
li { padding-left: 0.1em; margin-bottom: 0.5em; }
li > ul, li > ol { margin-top: 0.5em; }
li > p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.subtitle, .updated, .muted { color: var(--muted); font-size: 0.9rem; }
.subtitle { margin-bottom: 26px; }
.contact-link { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 18px; margin: 8px 0 20px; font-weight: 600; }
blockquote, .callout { padding: 16px 20px; background: var(--surface); border-left: 3px solid var(--link); margin-inline: 0; }
code { font-size: 0.9em; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 16px; background: var(--surface); }
.table-scroll { overflow-x: auto; margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface); }
section, [id] { scroll-margin-top: 24px; }
.site-footer { padding-top: 24px; padding-bottom: 44px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.site-footer p { margin-bottom: 0.4em; }
@media (max-width: 600px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px 20px 16px; }
  nav { margin-left: -12px; }
  main, .site-footer { padding-inline: 20px; }
  main { padding-top: 30px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
}
