@font-face { font-family: "Allo"; src: url("/fonts/Allo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --g0: #ffffff;
  --g1: #f3f3f2;
  --g2: #ececeb;
  --g3: #e2e2e0;
  --g4: #cfcfcc;
  --g5: #a3a3a0;
  --g6: #6e6e6b;
  --g7: #3a3a38;
  --k0: #19191a;
  --k1: #111112;
  --k2: #080809;
  --on-dark-dim: #9a9a97;
  --ok: #ffa45c;
  --sans: "Allo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--g2); color: var(--k1); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--k1); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--g4); }
a:hover { text-decoration-color: var(--k1); }

.top { position: sticky; top: 0; z-index: 2; background: rgba(236, 236, 235, 0.85); backdrop-filter: blur(8px); }
.top-in { max-width: 1152px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--k1); text-decoration: none; letter-spacing: -0.01em; font-size: 18px; }
.brand img { image-rendering: pixelated; display: block; }
.top nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--g1); font-size: 14px; }
.top nav a { color: var(--k1); text-decoration: none; padding: 6px 14px; border-radius: 999px; }
.top nav a:hover { background: var(--g0); }

.shell { max-width: 1152px; margin: 8px auto 0; padding: 0 12px; }
.frame { background: var(--g0); border-radius: 40px; padding: 16px; box-shadow: 0 40px 80px -40px rgba(10, 10, 12, 0.18); }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 24px; }

.side { align-self: start; position: sticky; top: 84px; }
.side summary { display: none; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--g6); font-size: 14px; text-decoration: none; }
.side li a:hover { color: var(--k1); background: var(--g1); }
.side li a[aria-current="page"] { color: var(--k1); background: var(--g1); }

.prose { min-width: 0; padding: 16px clamp(0px, 3vw, 32px) 24px; }
.prose > * { max-width: 720px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; font-variation-settings: "wght" 380, "opsz" 32; margin: 0 0 10px; }
.lede { color: var(--g6); font-size: 18px; margin: 0 0 32px; }
.prose h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 500; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--g7); }
.prose strong { font-weight: 500; color: var(--k1); }
.prose code { font: 14px var(--mono); background: var(--g1); padding: 2px 7px; border-radius: 8px; overflow-wrap: anywhere; }
.prose pre { background: linear-gradient(180deg, var(--k0), var(--k2)); color: var(--on-dark-dim); border-radius: 20px; padding: 22px 26px; overflow-x: auto; box-shadow: 0 24px 48px -18px rgba(10, 10, 12, 0.45); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; line-height: 1.75; overflow-wrap: normal; }

.table { overflow-x: auto; background: var(--g1); border-radius: 20px; padding: 8px 4px; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 18px; white-space: nowrap; }
td:last-child, th:last-child { white-space: normal; }
th { color: var(--g5); font-weight: 400; font-size: 13px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 64px; font-size: 15px; }
.foot { padding: 176px 20px 0; }
.foot-in { position: relative; max-width: 1152px; margin: 24px auto 48px; padding: 16px 24px; border-radius: 28px; background: var(--g1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--g6); }
.foot-note { display: flex; align-items: center; gap: 14px; max-width: 480px; }
.foot-note p { margin: 0; line-height: 1.45; }
.foot-note strong { font-weight: 500; color: var(--k1); }
.foot-note .cf { display: block; width: 57px; height: 26px; flex: none; }
.foot-links { display: flex; gap: 20px; }
.peek { pointer-events: none; position: absolute; bottom: 100%; left: 32px; height: 154px; width: min(170px, 34vw); overflow: hidden; }
.peek img { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; transform-origin: bottom; transform: translateY(calc((1 - var(--peek, 0)) * 100%)) rotate(calc((1 - var(--peek, 0)) * -10deg)); }
.dragon { display: inline-block; width: 64px; height: 20px; margin-left: 6px; vertical-align: -5px; }
.dragon svg { display: block; width: 64px; height: 20px; fill: #ffa45c; }
.dragon .eye { fill: var(--k1); }
.dragon .inhale { fill: #fff3dc; animation: inhale 2.4s step-end infinite; }
.dragon .wing-up { animation: wing-up 2.4s step-end infinite; }
.dragon .wing-down { animation: wing-down 2.4s step-end infinite; }
.dragon .fire { opacity: 0; fill: #ff6a1a; }
.dragon .fire.hot { fill: #fff3dc; }
.dragon .fire-1 { animation: fire-1 2.4s step-end infinite; }
.dragon .fire-2 { animation: fire-2 2.4s step-end infinite; }
.dragon .fire-3 { animation: fire-3 2.4s step-end infinite; }
.dragon .fire-4 { animation: fire-4 2.4s step-end infinite; }
@keyframes wing-up { 0%, 25%, 50%, 75% { opacity: 1; } 12.5%, 37.5%, 62.5%, 87.5% { opacity: 0; } }
@keyframes wing-down { 0%, 25%, 50%, 75% { opacity: 0; } 12.5%, 37.5%, 62.5%, 87.5% { opacity: 1; } }
@keyframes inhale { 0%, 40%, 75%, 100% { opacity: 0; } 45%, 70% { opacity: 1; } }
@keyframes fire-1 { 0%, 50% { opacity: 0; } 52%, 82% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes fire-2 { 0%, 54% { opacity: 0; } 56%, 80% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes fire-3 { 0%, 58% { opacity: 0; } 60%, 78% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes fire-4 { 0%, 62% { opacity: 0; } 64%, 74% { opacity: 0.8; } 76%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dragon * { animation: none !important; } .peek img { transform: none; } }
.foot a { color: var(--g6); text-decoration: none; }
.foot a:hover { color: var(--k1); }

@media (max-width: 760px) {
  .frame { border-radius: 30px; padding: 10px; }
  .layout { grid-template-columns: 1fr; padding: 12px; gap: 16px; }
  .side { position: static; background: var(--g1); border-radius: 20px; padding: 6px; }
  .side summary { display: block; cursor: pointer; padding: 6px 12px; font-size: 14px; color: var(--g6); }
  .prose { padding: 8px 6px 16px; }
}

.prose pre.code { position: relative; color: #d6d6d3; }
.prose pre.code .lang { position: absolute; top: 12px; right: 18px; font: 11px/1 var(--mono); color: #6e6e6b; letter-spacing: 0.04em; text-transform: uppercase; }
.t-comment { color: #6e6e6b; font-style: italic; }
.t-string { color: #b8d4a8; }
.t-key { color: #f0f0ee; }
.t-number { color: #ffa45c; }
.t-keyword { color: #c4a7e7; }
.t-type { color: #8fc1e3; }
.t-fn { color: #f0f0ee; }
.t-var { color: #8fc1e3; }
.t-cmd { color: #ffa45c; }
.t-flag { color: #c4a7e7; }
.t-punct { color: #8a8a87; }
.t-pass { color: #ffa45c; font-weight: 500; }
.t-fail { color: #7a7a77; }
.t-head { color: #f0f0ee; }
