/* docs.liuska.dev: Liuska palette (brand/README.md). No external requests. */
:root {
  --bg: #F6F3EC; --surface: #FFFFFF; --text: #141414; --muted: #55524C; --line: #DDD6C8;
  --link: #1F5FBF; --accent: #D7372F; --code-bg: #EFEBE2; --pre-bg: #141414; --pre-text: #E9E4D8;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414; --surface: #1C1C1C; --text: #F1EDE4; --muted: #ABA59A; --line: #34322E;
    --link: #8FB0FF; --code-bg: #26241F; --pre-bg: #0C0C0C; --pre-text: #E9E4D8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: flex-end; gap: 8px; color: var(--text); text-decoration: none; }
.logo { height: 24px; width: auto; display: block; }
.brand-docs { font-weight: 600; color: var(--muted); font-size: 15px; line-height: 1; padding-bottom: 1px; }
.top-links { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.top-links a { color: var(--text); text-decoration: none; font-size: 15px; }
.to-contents { display: none; }
@media (max-width: 760px) { .to-contents { display: inline; } }
.top-links a.cta { background: var(--text); color: var(--bg); padding: 6px 12px; border-radius: 8px; font-weight: 600; }

.layout { display: flex; flex-wrap: wrap; gap: 0 48px; max-width: 1240px; margin: 0 auto; padding: 24px; }
.sidebar { flex: 1 1 220px; max-width: 260px; font-size: 15px; }
.sidebar ul { list-style: none; margin: 0 0 20px; padding: 0; }
.sidebar li a { display: block; padding: 4px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.sidebar li a:hover { background: var(--code-bg); }
.sidebar li a[aria-current="page"] { background: var(--code-bg); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav-h { margin: 0 0 6px; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.content { flex: 999 1 560px; min-width: 0; max-width: 860px; }
@media (max-width: 760px) {
  .sidebar { order: 2; max-width: none; flex-basis: 100%; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; scroll-margin-top: 64px; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 2px; }
}

.content h1 { font-size: 2.3rem; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 20px; }
.content h2 { font-size: 1.5rem; line-height: 1.25; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.content h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.content h2, .content h3, .content h4 { scroll-margin-top: 72px; }
.content img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.content code { font: .88em/1.5 var(--mono); background: var(--code-bg); padding: .12em .35em; border-radius: 4px; }
.content pre { background: var(--pre-bg); color: var(--pre-text); padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.content pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.content blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.content table { display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: 15px; max-width: 100%; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--code-bg); }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.foot { border-top: 1px solid var(--line); padding: 16px 24px; color: var(--muted); font-size: 14px; text-align: center; }

/* highlight.js tokens, tuned for the dark code blocks */
.hljs-comment, .hljs-quote { color: #8A8478; font-style: italic; }
.hljs-string, .hljs-attr + .hljs-string, .hljs-template-variable { color: #A8D08D; }
.hljs-attr, .hljs-attribute, .hljs-property { color: #8FB0FF; }
.hljs-number, .hljs-literal { color: #F5B459; }
.hljs-keyword, .hljs-built_in, .hljs-selector-tag { color: #F08A82; }
.hljs-title, .hljs-section, .hljs-name { color: #F1EDE4; font-weight: 600; }
.hljs-variable, .hljs-params { color: #E9E4D8; }
.hljs-meta { color: #B9B3A6; }
