/* Maschine2LR site. Dark like Lightroom and the editor;
   one amber accent (the lit pad of the logo). System faces only - nothing
   is fetched from anywhere. Headlines and the small uppercase legends use
   Bahnschrift, the DIN-style face Windows ships, which is the register the
   hardware itself is labelled in. */
:root {
  --ground: #121316;
  --panel: #1a1c1f;
  --surface: #202225;
  --surface-2: #2a2d31;
  --ink: #ecedf0;
  --ink-soft: #a3aab5;
  --ink-faint: #6b727d;
  --rule: #2c3036;
  --accent: #e8a33d;
  --accent-hi: #f6c46a;
  --accent-ink: #1a1a1a;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --display: Bahnschrift, "Segoe UI Variable Display", "Avenir Next Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0 0 0.45em; font-weight: 600; letter-spacing: -0.005em; }
h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.0; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 21px; margin-bottom: 0.3em; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }

/* The legend: the printed label above a group of controls on the unit
   (GROUPS, TRANSPORT, SCREEN KNOBS). Here it stands above each group of
   content. The short amber bar is one lit LED of the touch strip. */
.legend, .eyebrow {
  font-family: var(--display); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.legend::before, .eyebrow::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); flex: none; }

/* ---- header ------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; }
.brand b { color: var(--accent); font-weight: inherit; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.top nav a.cta { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .top nav a.sec { display: none; } }

/* ---- page frame -------------------------------------------------------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
/* Grid and flex children keep their content's width unless told not to; on a
   phone that pushed things past the edge. */
.hero > *, .cols > *, .gallery > *, .spec > li, .flow > *, figure { min-width: 0; }
.band { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.band > h2 { max-width: 22ch; }
figure { margin: 0 0 24px; }
figure img { border-radius: 6px; border: 1px solid var(--rule); }
figcaption { font-size: 14px; color: var(--ink-faint); margin-top: 10px; max-width: 70ch; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 6px;
  border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600;
  background: var(--surface); font-family: var(--display); font-size: 17px; letter-spacing: 0.02em;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: var(--accent-hi); }

/* ---- hero -------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px 48px; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 24px; }
.hero-media { margin: 0; }
.hero-media img { border-radius: 10px; }

/* ---- video: two portrait Shorts, kept to a sensible height ----------- */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 24px; justify-items: center; margin: 8px 0 12px; }
.video-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.video-grid video { max-height: min(70vh, 640px); width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--rule); background: #000; }
.video-grid figcaption { max-width: 34ch; text-align: center; }
.video .note { text-align: center; margin: 0 auto; }

/* ---- signal path ------------------------------------------------------ */
.flow { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0 32px; }
.node { border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; background: transparent; }
.node strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.node span { color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.node.accent { border-color: var(--accent); }
.arrow { text-align: center; color: var(--ink-faint); font-family: var(--mono); font-size: 13px; line-height: 1.3; align-self: center; }
.cols { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
.cols p { max-width: 62ch; }

/* ---- what you get: a spec list, not cards ---------------------------- */
.spec { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.spec li { border-top: 1px solid var(--rule); padding: 22px 0 26px; }
.spec p { color: var(--ink-soft); margin: 0; font-size: 16px; max-width: 48ch; }

/* ---- comparison ------------------------------------------------------- */
.intro { max-width: 70ch; color: var(--ink-soft); font-size: 18px; }
.table-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15.5px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 20%; }
.compare td:nth-child(2) { color: var(--ink-soft); }
.compare td:nth-child(3) { color: var(--ink); }
.note { color: var(--ink-faint); font-size: 15px; max-width: 70ch; }

/* ---- editor ----------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
.plain { padding-left: 20px; }
.plain li { margin-bottom: 8px; }

/* ---- questions -------------------------------------------------------- */
.faq { margin: 0; }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); max-width: 70ch; }

/* ---- get -------------------------------------------------------------- */
.get { text-align: center; }
.get .legend { justify-content: center; }
.get h2 { margin-left: auto; margin-right: auto; }
.get p { margin-left: auto; margin-right: auto; max-width: 56ch; }
.get .actions { justify-content: center; }

.foot { border-top: 1px solid var(--rule); margin-top: 40px; padding: 24px clamp(16px, 4vw, 48px) 48px; color: var(--ink-faint); font-size: 13.5px; }
.foot p { max-width: 90ch; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .cols { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- manual ------------------------------------------------------------ */
.manual-layout { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1fr; gap: 32px; }
.manual-toc { font-size: 14.5px; padding-top: 32px; }
.manual-toc ul { list-style: none; margin: 0; padding: 0; }
.manual-toc ul ul { padding-left: 14px; }
.manual-toc li { margin: 4px 0; }
.manual-toc a { color: var(--ink-soft); text-decoration: none; }
.manual-toc a:hover { color: var(--ink); }
.manual-body { max-width: 72ch; padding: 32px 0 48px; }
.manual-body h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 0.6em; }
.manual-body h2 { font-size: clamp(26px, 3vw, 34px); }
.manual-body h3 { font-size: 21px; }
/* The header is sticky; a link to a heading must land below it, not under it. */
.manual-body h1, .manual-body h2, .manual-body h3 { scroll-margin-top: 72px; }
.manual-body h2 { margin-top: 2.2em; padding-top: 0.8em; border-top: 1px solid var(--rule); }
.manual-body h3 { margin-top: 1.6em; }
.manual-body hr { display: none; }
.manual-body figure { margin: 24px 0; }
.manual-body figure img { background: var(--surface); }
.manual-body pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.45; }
.manual-body code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.manual-body pre code { background: none; padding: 0; font-size: inherit; }
.manual-body table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.manual-body th, .manual-body td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.manual-body th { color: var(--ink-soft); font-weight: 600; }
.manual-body blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink-soft); }
.manual-body blockquote p:last-child { margin-bottom: 0; }
.manual-body li { margin-bottom: 6px; }
.manual-body li p { margin-bottom: 6px; }
@media (min-width: 1000px) {
  .manual-layout { grid-template-columns: 320px 1fr; }
  .manual-toc { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 18px; scrollbar-gutter: stable; }
}

/* ---- download ---------------------------------------------------------- */
.download .release-line { color: var(--ink-soft); font-size: 17px; }
.download .donate p { max-width: 68ch; }
.download .btn { cursor: pointer; }
.download .notes { color: var(--ink-soft); max-width: 68ch; }
.download .notes ul { padding-left: 20px; }
.download code { font-family: var(--mono); font-size: 0.85em; word-break: break-all; }

/* ---- scrollbars: thin and in the page's own greys -------------------- */
.manual-toc, .manual-body pre, .manual-body table, .table-wrap { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.manual-toc::-webkit-scrollbar, .manual-body pre::-webkit-scrollbar, .manual-body table::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.manual-toc::-webkit-scrollbar-thumb, .manual-body pre::-webkit-scrollbar-thumb, .manual-body table::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.manual-toc::-webkit-scrollbar-thumb:hover, .manual-body pre::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
.manual-toc::-webkit-scrollbar-track, .manual-body pre::-webkit-scrollbar-track { background: transparent; }
html { scrollbar-color: var(--surface-2) var(--ground); }

/* ---- zoom: any picture in the main column opens at full size ---------- */
main img.zoomable { cursor: zoom-in; }
main img.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; cursor: zoom-out; }
dialog.zoom::backdrop { background: rgba(8, 9, 11, 0.92); }
dialog.zoom img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: min(100vw - 32px, 1968px); max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
dialog.zoom .zoom-caption { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: var(--ink-soft); font-size: 14px; padding: 0 24px; }
dialog.zoom .zoom-close { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
