/* guitar.css — the guitar demonstration's own pieces, on top of the app's
   styles (../css/app.css) so the two look like one family. */

.eyebrow {
  margin: 0 0 4px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.head .sub { max-width: 60ch; }
.tune-facts { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.row.tight { margin-top: 10px; }

.mixer { display: flex; flex-direction: column; gap: 10px; }
.voice {
  display: grid; grid-template-columns: minmax(9.5em, auto) 1fr 3.2em;
  gap: 4px 14px; align-items: center;
}
.voice output { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.voice.is-off input[type=range], .voice.is-off output { opacity: 0.4; }
/* On a phone, each slider gets the full width under its name: a short slider
   is hard to set finely with a thumb. */
@media (max-width: 480px) {
  .mixer { gap: 14px; }
  .voice { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .voice input[type=range] { grid-column: 1 / -1; grid-row: 2; }
}
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.toggle small { color: var(--muted); font-size: 12.5px; }
.sub-h {
  margin: 16px 0 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- now ---------- */
.now { display: flex; gap: 22px; align-items: center; }
.now-shape { flex: 0 0 auto; }
.now-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.now-label { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.now-chord {
  font-size: 44px; line-height: 1.05; font-weight: 600; color: var(--skin);
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.next-chord { font-size: 20px; color: var(--text); margin-bottom: 10px; }
.strum-dots { display: flex; gap: 6px; }
.strum-dots span {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line);
}
.strum-dots span.rest { opacity: 0.35; }
.strum-dots span.accent { color: var(--text); }
.strum-dots span.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- chart ---------- */
.chart { display: flex; flex-direction: column; gap: 10px; }
.part { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.part-name {
  font-size: 13px; font-weight: 700; color: var(--accent);
  padding-top: 10px; text-align: center;
}
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bar {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 7px 6px;
  min-width: 0;
  transition: border-color .1s, background .1s;
}
.bar .ch { font-size: 17px; font-weight: 600; color: var(--text); white-space: nowrap; }
.bar .ch i { font-style: normal; color: var(--muted); font-weight: 400; margin: 0 3px; }
.bar .abc {
  font: 11px/1.3 ui-monospace, Menlo, Consolas, monospace;
  color: var(--muted);   /* wraps at its space on a phone: BAB / d^cd */
}
.bar.on { border-color: var(--accent); background: rgba(61, 170, 109, 0.16); }

.bar.on .ch { color: var(--skin); }
@media (min-width: 620px) {
  .bars { grid-template-columns: repeat(8, 1fr); }
  .bar .ch { font-size: 15px; }
}

/* ---------- chord diagrams ---------- */
.shapes { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.diagram svg { display: block; }
.diagram .nm { fill: var(--text); font: 600 13px ui-sans-serif, -apple-system, sans-serif; }
.diagram .fret { stroke: var(--line); }
.diagram .nut { stroke: var(--muted); }
.diagram .str { stroke: #7a7d6c; }
.diagram .dot { fill: var(--accent); }
.diagram .dot.drone { fill: var(--skin); }
.diagram .mark { fill: none; stroke: var(--muted); }
.diagram .mark.drone { fill: var(--skin); stroke: var(--skin); }
.diagram .x { stroke: var(--muted); }
.diagram .num { fill: var(--muted); font: 10px ui-sans-serif, -apple-system, sans-serif; }

.foot a, .blurb a { color: var(--accent); }
.foot p { margin: 0 0 6px; }

@media (max-width: 420px) {
  .now { gap: 14px; }
  .now-chord { font-size: 36px; }
}
