/* Ableton Python SDK — docs site. Single stylesheet, no build step. */
:root {
  --bg: #17181b;
  --bg-side: #111214;
  --bg-card: #1e2024;
  --bg-code: #0e0f11;
  --fg: #d7dae0;
  --fg-dim: #9aa0aa;
  --fg-faint: #6b7079;
  --line: #2a2d33;
  --accent: #ffb454;       /* warm Ableton-ish amber */
  --accent-2: #5b9cff;
  --radius: 10px;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- top bar (mobile) ---- */
.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-side);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.menu-btn { font-size: 22px; cursor: pointer; color: var(--fg); }
.brand { font-weight: 700; font-size: 16px; color: var(--fg); letter-spacing: -.2px; line-height: 1.25; }
.brand span { color: var(--accent); }

/* ---- layout ---- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--bg-side);
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { display: block; font-size: 17px; margin: 0 8px 22px; }
.sidebar h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--fg-faint); margin: 22px 8px 8px;
}
.sidebar a {
  display: block; padding: 7px 10px; border-radius: 8px;
  color: var(--fg-dim); font-size: 14.5px;
}
.sidebar a:hover { background: var(--bg-card); color: var(--fg); text-decoration: none; }
.sidebar a.active { background: rgba(255,180,84,.12); color: var(--accent); font-weight: 600; }

.content {
  flex: 1; min-width: 0;
  padding: 52px 48px 96px;
  max-width: 860px;
  margin: 0 auto;
}

/* ---- typography ---- */
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.5px; }
h2 { font-size: 23px; margin: 46px 0 14px; padding-top: 8px; letter-spacing: -.3px; }
h3 { font-size: 17px; margin: 30px 0 10px; color: var(--fg); }
.lede { font-size: 19px; color: var(--fg-dim); margin: 0 0 8px; }
p, li { color: var(--fg); }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
strong { color: #fff; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }

/* ---- code ---- */
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-code); border: 1px solid var(--line);
  padding: 1.5px 6px; border-radius: 5px; color: #f0d9a8;
}
pre {
  background: var(--bg-code); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
  margin: 16px 0; line-height: 1.55;
}
pre code { background: none; border: none; padding: 0; color: #d7dae0; font-size: 13.5px; }
.tok-c { color: #6b7079; }   /* comment */
.tok-k { color: #ff9d6b; }   /* keyword */
.tok-s { color: #9fd28a; }   /* string */
.tok-f { color: #c8a6ff; }   /* function/name */

/* ---- callouts ---- */
.note, .warn, .tip {
  border: 1px solid var(--line); border-left-width: 3px;
  border-radius: 8px; padding: 12px 16px; margin: 18px 0;
  background: var(--bg-card); font-size: 15px;
}
.note { border-left-color: var(--accent-2); }
.warn { border-left-color: #ff6b6b; }
.tip  { border-left-color: var(--accent); }
.note strong, .warn strong, .tip strong { color: #fff; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--fg-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
td code { font-size: .85em; }

/* ---- hero (landing) ---- */
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 44px; }
.hero .lede { font-size: 21px; max-width: 620px; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: rgba(255,180,84,.1);
  border: 1px solid rgba(255,180,84,.3); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 9px; font-weight: 600; font-size: 15px;
}
.btn.primary { background: var(--accent); color: #1a1206; }
.btn.primary:hover { background: #ffc370; text-decoration: none; }
.btn.ghost { border: 1px solid var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--fg-faint); text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--fg-dim); font-size: 14.5px; }

/* ---- screenshot placeholders ---- */
figure.shot { margin: 22px 0; }
.shot-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 200px; padding: 28px;
  background: repeating-linear-gradient(45deg, #1c1e22, #1c1e22 12px, #1a1c20 12px, #1a1c20 24px);
  border: 2px dashed #3a3e45; border-radius: var(--radius); text-align: center;
}
.shot-ph .cam { font-size: 30px; opacity: .8; }
.shot-ph strong { color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.shot-ph span.desc { color: var(--fg-dim); font-size: 14.5px; max-width: 460px; }
.shot-ph code { font-size: .8em; }
figure.shot img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
figure.shot figcaption { color: var(--fg-faint); font-size: 13px; text-align: center; margin-top: 8px; }

/* ---- footer ---- */
.foot { margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-faint); font-size: 13.5px; }
.foot a { color: var(--fg-dim); }
.pager { display: flex; justify-content: space-between; margin-top: 40px; gap: 16px; }
.pager a { flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg-dim); }
.pager a:hover { border-color: var(--fg-faint); color: var(--fg); text-decoration: none; }
.pager a.next { text-align: right; }
.pager small { display: block; color: var(--fg-faint); font-size: 12px; }

/* ---- responsive ---- */
#nav-toggle { display: none; }
@media (max-width: 880px) {
  .topbar { display: flex; }
  .sidebar {
    position: fixed; top: 49px; bottom: 0; left: 0; height: auto; z-index: 30;
    transform: translateX(-100%); transition: transform .2s ease; width: 240px;
  }
  #nav-toggle:checked ~ .layout .sidebar { transform: translateX(0); }
  .sidebar .brand { display: none; }
  .content { padding: 32px 22px 80px; }
  .hero h1 { font-size: 34px; }
}
