@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url("../fonts/Inter-ExtraBold.woff2") format("woff2"); }
:root {
  --bg: #faf8fd;
  --text: #17121f;
  --muted: #645d70;
  --border: #e6dff0;
  --accent: #7437c4;
  --accent-soft: #efe6fb;
  --code-bg: #17121f;
  --code-text: #f3eefb;
  --inline-code: #efe9f7;
  --card: #ffffff;
  --button: #2c2536;
  --button-text: #f3eefb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0c14;
    --text: #f1edf7;
    --muted: #a39bb2;
    --border: #2b2435;
    --accent: #b48cf0;
    --accent-soft: #241a33;
    --code-bg: #07050a;
    --code-text: #f1edf7;
    --inline-code: #211b2b;
    --card: #18141f;
    --button: #2b2435;
    --button-text: #f1edf7;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0c14;
  --text: #f1edf7;
  --muted: #a39bb2;
  --border: #2b2435;
  --accent: #b48cf0;
  --accent-soft: #241a33;
  --code-bg: #07050a;
  --code-text: #f1edf7;
  --inline-code: #211b2b;
  --card: #18141f;
  --button: #2b2435;
  --button-text: #f1edf7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, -apple-system, system-ui, sans-serif;
  overflow-wrap: break-word;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
a { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span:last-child { color: var(--muted); font-weight: 600; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 0; }
nav a {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
nav a[aria-current="page"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; margin: 48px 0 14px; font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); }
h2 { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 12px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 8px; }
li strong { font-weight: 600; }
code {
  font: 0.88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--inline-code);
  padding: 1px 5px;
  border-radius: 5px;
}
pre {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 6px 0 16px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.cmd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  margin: 10px 0 14px;
}
.cmd code {
  flex: 1 1 auto;
  min-width: 0;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 6px 0;
  background: none;
  border-radius: 0;
  color: inherit;
}
.cmd button {
  flex: none;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--button);
  color: var(--button-text);
  font: 600 14px Inter, -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
.os {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.os button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  font: 600 14px Inter, -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
.os button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.os svg { width: 16px; height: 16px; fill: currentColor; }
.cmd .sh-cmd { color: #b48cf0; }
.cmd .sh-flag { color: #f0b35f; }
.cmd .sh-url { color: #7cc7ff; }
.cmd .sh-pipe { color: #8a8296; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 12px; }
footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer p { margin: 0; }
