/* Tokens of the ember theme, see DESIGN.md and qml/Look.qml. */
:root {
  color-scheme: dark;
  --window: #0b0c0f; --sidebar: #060709; --surface: #16171a; --surface-alt: #222328; --border: #303137; --text: #e8e8e8; --muted: #a3a3a3;
  --accent: #ff5436; --accent-hover: #ff7359; --accent-ink: #17140f;
  --r-small: 6px; --r: 12px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 56px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--window); color: var(--text); font: 16px/1.55 system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); flex-wrap: wrap; padding: var(--s3) var(--s5); background: var(--sidebar); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
main { max-width: 868px; margin: 0 auto; padding: 0 var(--s5) var(--s7); }
.hero { margin-top: var(--s7); }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 var(--s4); font-weight: 700; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.2; margin: 0 0 var(--s4); }
p { margin: 0 0 var(--s3); }
.lead { font-size: 19px; max-width: 60ch; margin: 0; }
.muted { color: var(--muted); font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s5); margin-top: var(--s6); }
.steps { margin: 0 0 var(--s4); padding-left: 1.4em; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps p { margin: 0 0 var(--s2); font-weight: 600; }
.steps li:has(> p:only-child) p { margin: 0; }
code { font: 14px/1.5 ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace; }
.cmd { display: flex; align-items: center; gap: var(--s2); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; background: var(--window); border: 1px solid var(--border); border-radius: var(--r-small); padding: var(--s3) var(--s4); }
.cmd button { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-small); padding: 0; background: none; color: var(--muted); cursor: pointer; }
.cmd button:hover { background: var(--surface-alt); color: var(--text); }
.cmd svg, .icons { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icons, .unseen { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--border); margin-bottom: var(--s5); }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--s2) 0; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
.panel:not([hidden]) + .panel { margin-top: var(--s6); }
.panel > :last-child { margin-bottom: 0; }
figure { margin: var(--s6) 0 0; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--border); }
@media (max-width: 560px) {
  main, header { padding-left: var(--s4); padding-right: var(--s4); }
  .card { padding: var(--s4); }
}
