@font-face { font-family: "Besley"; src: url(/assets/fonts/besley-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo"; src: url(/assets/fonts/chivo-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo"; src: url(/assets/fonts/chivo-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* Layout: the design system's wide page (1120px) with a contents rail and one reading column near 66 characters. */
:root {
  --page: #ffffff; --surface: #ffffff; --well: #f2f2f2; --band: #f5f5f5; --source-wash: #ddefea; --ink: #171717; --ink-2: #4a4a4a; --ink-3: #686868; --on-ink: #ffffff; --rule: #e1e1e1; --rule-strong: #8a8a8a; --source: #006b61; --source-deep: #00524a; --caution: #7a4e00; --caution-wash: #fbf0d7; --fault: #a3261e; --fault-wash: #fbe7e4;
  --font-display: "Besley", "Clarendon URW", Clarendon, Rockwell, Georgia, serif;
  --font-text: "Chivo", "Franklin Gothic Medium", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-1: 3px; --radius-2: 6px; --wide: 1120px; --measure: 46rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #121212; --surface: #181818; --well: #1f1f1f; --band: #1c1c1c; --source-wash: #123029; --ink: #ededed; --ink-2: #b4b4b4; --ink-3: #959595; --on-ink: #121212; --rule: #2c2c2c; --rule-strong: #757575; --source: #5bc9b7; --source-deep: #86dccd; --caution: #e9bb63; --caution-wash: #2a2210; --fault: #ff9184; --fault-wash: #321815; color-scheme: dark; } }
:root[data-theme="dark"] {
  --page: #121212; --surface: #181818; --well: #1f1f1f; --band: #1c1c1c; --source-wash: #123029; --ink: #ededed; --ink-2: #b4b4b4; --ink-3: #959595; --on-ink: #121212; --rule: #2c2c2c; --rule-strong: #757575; --source: #5bc9b7; --source-deep: #86dccd; --caution: #e9bb63; --caution-wash: #2a2210; --fault: #ff9184; --fault-wash: #321815; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/27px var(--font-text); }
a { color: var(--ink); text-underline-offset: 2px; } a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--rule); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--page); border-bottom: 1px solid var(--rule); }
.top-inner { max-width: var(--wide); margin: 0 auto; padding: 12px 16px; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark .logo { display: block; height: 26px; width: auto; } .logo-word { fill: var(--ink); } .logo-box { stroke: var(--source); } .logo-numeral { fill: var(--source); }
@media (forced-colors: active) { .logo-word, .logo-numeral { fill: CanvasText; } .logo-box { stroke: CanvasText; } }
.mark span { font: 600 14px/20px var(--font-text); color: var(--ink-2); }
.top nav { display: flex; gap: 20px; font: 400 15px/23px var(--font-text); margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; } .top nav a:hover { color: var(--ink); }
.shell { max-width: var(--wide); margin: 0 auto; padding-inline: 16px; padding-block: 32px 64px; display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 48px; }
.side { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font: 400 15px/23px var(--font-text); }
.side details > summary { display: none; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-label { margin: 0 0 6px; font: 600 14px/20px var(--font-text); color: var(--ink-2); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 3px 10px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.side a:hover { color: var(--ink); text-decoration: underline; }
.side a[aria-current="page"] { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
main { min-width: 0; max-width: var(--measure); }
main h1 { font: 600 36px/42px var(--font-display); letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
main h2 { font: 600 26px/32px var(--font-display); letter-spacing: -0.005em; margin: 48px 0 12px; text-wrap: balance; }
main h3 { font: 600 19px/26px var(--font-text); margin: 32px 0 8px; text-wrap: balance; }
main h1 + p { font: 400 20px/30px var(--font-text); color: var(--ink-2); }
main [id] { scroll-margin-top: 84px; }
.anchor { margin-left: 8px; color: var(--rule-strong); text-decoration: none; font: 400 0.8em var(--font-text); opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
p, ul, ol { margin: 0 0 16px; } li + li { margin-top: 4px; }
strong { font-weight: 600; }
code { font: 0.86em/1.5 var(--font-code); background: var(--well); padding: 1px 5px; border-radius: var(--radius-1); overflow-wrap: anywhere; }
.code { margin: 0 0 20px; border: 1px solid var(--rule); border-radius: var(--radius-2); background: var(--well); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; border-bottom: 1px solid var(--rule); background: var(--surface); font: 600 13px/19px var(--font-text); color: var(--ink-2); }
.copy { font: 600 13px/19px var(--font-text); color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.55; overflow-wrap: normal; white-space: pre; }
.src { color: var(--source); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--rule); border-radius: var(--radius-2); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font: 400 15px/23px var(--font-text); font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: 0; }
th { font: 600 14px/20px var(--font-text); color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); background: var(--surface); }
blockquote { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--rule-strong); background: var(--well); border-radius: 0 var(--radius-2) var(--radius-2) 0; color: var(--ink-2); }
blockquote p:last-child { margin: 0; }
.note { padding: 10px 14px; background: var(--caution-wash); border-radius: var(--radius-2); color: var(--ink); font: 400 15px/23px var(--font-text); }
.note strong { color: var(--caution); }
.foot { max-width: var(--wide); margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--rule); color: var(--ink-3); font: 400 13px/19px var(--font-text); }
.foot p { margin: 0 0 6px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 16px 48px; }
  .side { position: static; max-height: none; }
  .side details > summary { display: block; cursor: pointer; font: 600 14px/20px var(--font-text); color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .side .nav-groups { padding-top: 12px; }
  main h1 { font-size: 30px; line-height: 36px; }
  main h2 { font-size: 23px; line-height: 29px; }
  .top nav { margin-left: 0; gap: 14px; }
  .top nav a.out { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
