/* =================================================================
   Isthmus Sound Collective web guides. The printed manual's look, as
   one long page: a numbered contents column that stays put, chapters
   in double brackets, sections numbered 3.2, the drawn window with
   numbered controls. Each guide sets its plugin's colours in --p-*.
   ================================================================= */

@import url("/assets/fonts/fonts.css");

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f0;
  --fg: #191917;
  --dim: #6b6b64;
  --line: rgba(25, 25, 23, 0.14);
  --p-glass: #c7d89a;
  --p-on-glass: #10200e;
  --pixel: 'Silkscreen', ui-monospace, Menlo, Consolas, monospace;
  --text: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --name: 'Michroma', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --side: 260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--fg);
  font-family: var(--text); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

body > .wrap { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

/* ---- the contents column ---- */
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--fg); padding: 28px 22px 40px;
  font-size: 14px;
}
.side .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 6px; }
.side .brand img { width: 40px; height: 40px; image-rendering: pixelated; border: 1px solid var(--fg); }
.side .brand span { font-family: var(--name); font-size: 17px; letter-spacing: 0.02em; }
.side .what { font-family: var(--pixel); font-size: 10px; text-transform: uppercase; color: var(--dim); margin: 0 0 22px; letter-spacing: 0.04em; }
.side ol { list-style: none; margin: 0; padding: 0; }
.side > nav > ol > li { margin: 0 0 10px; }
.side a { text-decoration: none; display: block; padding: 2px 6px; margin: 0 -6px; border: 1px solid transparent; }
.side a:hover { background: var(--paper-2); }
.side a.on { background: var(--p-glass); color: var(--p-on-glass); border-color: var(--fg); }
.side .ch { font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }
.side .ch b { font-weight: 400; color: var(--dim); margin-right: 6px; }
.side a.on .ch b { color: inherit; }
.side ol ol { margin: 3px 0 0 0; padding-left: 14px; border-left: 1px solid var(--line); }
.side ol ol a { font-size: 13.5px; color: var(--dim); }
.side ol ol a.on { color: var(--p-on-glass); }
.side .pdf { display: inline-block; margin-top: 22px; font-family: var(--pixel); font-size: 11px; text-transform: uppercase; border: 1px solid var(--fg); padding: 6px 10px; text-decoration: none; }
.side .pdf:hover { background: var(--fg); color: #fff; }

/* ---- the page ---- */
/* centred in the space beside the contents column, so a wide screen has even margins, not an empty right third (Diego, 12 Nov 2026) */
main { padding: 56px clamp(20px, 5vw, 72px) 120px; max-width: 1180px; width: 100%; margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; border-bottom: 1px solid var(--fg); padding-bottom: 32px; margin-bottom: 24px; }
.hero h1 { font-family: var(--name); font-weight: 400; font-size: clamp(34px, 6vw, 64px); letter-spacing: 0.02em; margin: 0 0 10px; line-height: 1; }
.hero p { margin: 0; font-size: 21px; }
.hero .meta { font-family: var(--pixel); font-size: 11px; text-transform: uppercase; color: var(--dim); margin-top: 14px; letter-spacing: 0.04em; }
.hero img { width: 150px; image-rendering: pixelated; display: block; border: 1px solid var(--fg); }
.howto { font-size: 15px; color: var(--dim); margin: 0 0 8px; }

section.chapter { border-top: 1px solid var(--fg); padding-top: 26px; margin-top: 72px; }
.chapnum { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.04em; margin: 0 0 6px; }
.chapnum b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; background: var(--p-glass); color: var(--p-on-glass); border: 1px solid var(--fg); font-weight: 400; margin-right: 10px; }
h2 { font-weight: 300; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
h3 { font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 52px 0 12px; display: flex; gap: 14px; align-items: baseline; }
h3 .num { font-family: var(--pixel); font-size: 13px; color: var(--dim); font-weight: 400; min-width: 34px; }
p { margin: 0 0 14px; max-width: 40em; }
.lede { font-size: 21px; line-height: 1.45; }
.small { font-size: 14.5px; color: var(--dim); }
.k { font-family: var(--pixel); font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
kbd {
  font-family: var(--pixel); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em;
  display: inline-block; border: 1px solid var(--fg); border-bottom-width: 3px; padding: 1px 7px 0; background: #fff; white-space: nowrap;
}
code, .path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86em; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 5px; overflow-wrap: anywhere; }

.fig { margin: 22px 0 26px; max-width: 820px; }
.fig[style] { width: 100% !important; }
.fig.narrow { max-width: 420px; }
.fig.mid { max-width: 700px; }
.fig svg { display: block; width: 100%; height: auto; overflow: hidden; }

.keys { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 16px 40px; max-width: 100%; }
.keys.two { grid-template-columns: 1fr 1fr; }
.keys li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.keys .label { display: block; font-family: var(--pixel); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; margin: 3px 0 2px; }
.keys li > div { font-size: 16px; line-height: 1.5; }
.n { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--fg); color: #fff; font-family: var(--pixel); font-size: 12px; flex: none; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--fg); max-width: 100%; }
.steps li { padding: 18px 18px 22px; border-right: 1px solid var(--fg); }
.steps li:last-child { border-right: 0; }
.steps .big { font-family: var(--pixel); font-size: 34px; line-height: 1; display: block; margin-bottom: 14px; }
.steps h4 { margin: 0 0 6px; font-family: var(--pixel); font-weight: 400; font-size: 13px; text-transform: uppercase; }
.steps p { font-size: 15.5px; margin: 0; }

table.ref { border-collapse: collapse; width: 100%; max-width: 100%; margin: 10px 0 18px; font-size: 16px; }
table.ref th { text-align: left; font-family: var(--pixel); font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--dim); padding: 0 16px 8px 0; border-bottom: 1px solid var(--fg); }
table.ref td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
table.ref td:first-child { white-space: nowrap; }
table.ref td.name { font-family: var(--pixel); font-size: 13px; text-transform: uppercase; }
table.ref td.num { font-family: var(--pixel); font-size: 13px; color: var(--dim); text-align: right; padding-right: 0; }

.note { border: 1px solid var(--fg); background: var(--p-glass); color: var(--p-on-glass); padding: 16px 20px; max-width: 760px; margin: 18px 0; font-size: 16px; }
.note .label, .box .label { display: block; font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.box { border: 1px solid var(--fg); padding: 16px 20px; max-width: 760px; margin: 18px 0; font-size: 16px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 100%; }
ol.plain { padding-left: 22px; max-width: 40em; }
ol.plain li { margin-bottom: 8px; }

.foot { margin-top: 96px; border-top: 1px solid var(--fg); padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--pixel); font-size: 11px; text-transform: uppercase; color: var(--dim); }
.foot a { text-decoration: none; }

/* ---- phones and narrow windows: the contents fold into a bar at the top ---- */
.menu { display: none; }
@media (max-width: 860px) {
  body > .wrap { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--fg); padding: 14px 16px; }
  .side nav, .side .pdf, .side .what { display: none; }
  .side.open nav, .side.open .pdf { display: block; }
  .side.open nav { margin-top: 16px; }
  .side .top { display: flex; justify-content: space-between; align-items: center; }
  .side .brand { margin: 0; }
  .menu { display: inline-block; font-family: var(--pixel); font-size: 11px; text-transform: uppercase; border: 1px solid var(--fg); background: #fff; padding: 6px 10px; cursor: pointer; color: var(--fg); }
  main { padding: 32px 16px 80px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { width: 96px; order: -1; }
  .keys.two, .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--fg); }
  table.ref td:first-child { white-space: normal; }
  section.chapter { margin-top: 56px; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--fg); }
  .steps li:last-child { border-bottom: 0; }
}

@media print {
  .side { display: none; }
  body > .wrap { display: block; }
}
