:root {
  color-scheme: dark;
  --background: #141718;
  --surface: #1b2021;
  --ink: #f3eee2;
  --muted: #c0c5bc;
  --cyan: #a3eee6;
  --amber: #f2b46b;
  --line: #3a4545;
  font-family: system-ui, sans-serif;
  background: var(--background);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 4rem, 75rem); margin-inline: auto; }
a { color: var(--cyan); text-underline-offset: .23em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
p { margin: 0; line-height: 1.65; }
h1, h2, h3, h4, figure { margin: 0; }
[id] { scroll-margin-top: 1.25rem; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .5rem .8rem; background: var(--surface); z-index: 2; }
.skip:focus { transform: translateY(0); }
.site-header { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-size: 1.38rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 450; }
.site-header nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem clamp(.75rem, 3vw, 2.4rem); font-size: .94rem; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 12fr) minmax(0, 23fr); grid-template-areas: "eyebrow ." "intro instrument" "actions actions"; align-items: start; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 0; padding-block: clamp(2.7rem, 6vw, 5.6rem); }
.hero > .eyebrow { grid-area: eyebrow; margin-bottom: .78rem; }
.hero h1 { margin-top: 0; }
.intro { grid-area: intro; }
.eyebrow { color: var(--cyan); font-size: .83rem; font-weight: 730; text-transform: uppercase; letter-spacing: .13em; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 6vw, 5.65rem); line-height: .99; letter-spacing: -.055em; margin: .78rem 0 1.45rem; }
h1 em { color: var(--cyan); }
.lede { max-width: 31rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-actions { margin-top: 1.5rem; grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; align-self: end; }
.instrument { grid-area: instrument; }
.instrument video { display: block; width: 100%; height: auto; background: #0a0b0b; outline: 1px solid #fff; box-shadow: 0 16px 50px #06090980; }
.hero-caption { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; text-align: center; margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.hero-caption span:nth-child(2) a { color: var(--amber); }
.hero-caption strong { grid-column: 1 / -1; color: var(--ink); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.045em; line-height: 1.05; }
.status { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 2rem; padding: 1.2rem clamp(1rem, 4vw, 2.5rem); background: var(--surface); border-left: 2px solid var(--amber); }
.status h2 { font-size: 1.85rem; }
.status p { color: var(--muted); }
.chapter { max-width: 52rem; padding-block: clamp(1.9rem, 4vw, 3.1rem); border-bottom: 1px solid var(--line); }
#install { border-top: 1px solid var(--line); }
.chapter h3 { font-size: clamp(1.85rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: .8rem; }
.chapter h4 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.chapter p, .chapter ol { max-width: 69ch; color: var(--muted); }
.chapter p + p { margin-top: .65rem; }
.chapter strong { color: var(--ink); }
.chapter ol { padding-left: 1.4rem; line-height: 1.65; }
.chapter code { color: var(--cyan); overflow-wrap: anywhere; }
.manual { padding-block: clamp(2.5rem, 6vw, 4rem); }
.manual-header { max-width: 52rem; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.manual-toc { max-width: 52rem; margin-top: 1.5rem; padding: 1.35rem clamp(1.15rem, 4vw, 2rem); background: var(--surface); border: 1px solid var(--line); }
.manual-toc h3 { font: 700 1.1rem system-ui, sans-serif; margin-bottom: .7rem; }
.manual-toc ol { columns: 2; column-gap: 2.25rem; margin: 0; padding-left: 1.4rem; line-height: 1.8; }
.manual-toc li { break-inside: avoid; }
.manual-figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.1rem 0 0; }
.manual-figures.paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figure-frame { display: inline-block; max-width: 100%; background: #101314; border: 1px solid var(--line); vertical-align: top; }
.figure-frame img { display: block; max-width: 100%; height: auto; }
.paired .figure-frame { display: flex; align-items: center; justify-content: center; height: clamp(10rem, 20vw, 14rem); padding: .85rem; }
.paired .figure-frame img { width: 100%; height: 100%; object-fit: contain; }
.audio-figures .figure-frame { height: 6.5rem; }
.cutoff .figure-frame { padding: .45rem; }
.cutoff .figure-frame img { width: 10rem; }
.manual-figures figcaption { color: var(--muted); margin-top: .45rem; font-size: .9rem; line-height: 1.4; }
.manual > p:last-child { margin-top: 1.45rem; }
@media (max-width: 48rem) {
  .instrument { margin-top: 1.5rem; }
  .wrap { width: calc(100% - 2.25rem); }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "intro" "instrument" "actions"; grid-template-rows: auto; }
}
@media (max-width: 32rem) {
  .manual-toc ol { columns: 1; }
  .manual-figures.paired { grid-template-columns: 1fr; }
  .hero-caption { gap: .5rem; }
}
@media (max-width: 22rem) {
  .site-header { gap: .65rem; }
  .site-header nav { font-size: .85rem; gap: .35rem .65rem; }
  h1 { font-size: 2.65rem; }
}

.chapter .contact-preview { color: #9ac8ff; font-weight: 650; }
@media (min-width: 48.01rem) {
  h1 { font-size: clamp(2.65rem, 5.15vw, 5rem); }
}

@media (min-width: 48.01rem) { .hero-actions { flex-wrap: nowrap; } }

.credit-card { background: #101819; color: #f5eee2; padding: clamp(1.25rem, 4vw, 2.75rem); font-family: Arial, sans-serif; }
.credit-card .credit-name { color: #f5eee2; font: bold clamp(2.2rem, 5vw, 3.8rem)/1.15 Georgia, serif; }
.credit-name span { display: inline-block; color: #a4e6d9; font: normal .52em/1.2 Arial, sans-serif; }
.credit-card dl { margin: 1.4rem 0 0; padding-top: 1.3rem; border-top: 1px solid #4e6763; }
.credit-card dt { color: #a4e6d9; font-size: 1.1rem; }
.credit-card dd { margin: .25rem 0 1.15rem; font-size: clamp(1.1rem, 2.2vw, 1.6rem); overflow-wrap: anywhere; }
.credit-card dd:last-child { margin-bottom: 0; }
