:root[data-theme="light"] {
  --paper: #f7f8fa;
  --ink: #1d222b;
  --ink-2: #424b59;
  --muted: #626b78;
  --line: #dfe2e7;
  --red: #ed5939;
  --red-ink: #bd381d;
  --f: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-lcd: ui-monospace, monospace;
  color-scheme: light;
}
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; font: 16px/1.6 var(--f); color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { text-underline-offset: 4px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 5px; }
.ck-wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 5; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.ck-header { display: flex; align-items: center; gap: 34px; min-height: 96px; border-bottom: 1px solid var(--line); }
.ck-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.version { margin-left: 3px; padding: 2px 8px; color: var(--muted); background: #e9ecf0; border-radius: 5px; font: 500 12px/1.5 var(--f); letter-spacing: 0; }
.brand-keys { display: flex; gap: 3px; margin-right: 4px; }
.brand-keys i { display: block; width: 7px; height: 21px; background: var(--ink); border-radius: 2px; }
.brand-keys i:last-child { background: var(--red); transform: translateY(-5px); }
.ck-header nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; }
.ck-header nav a { text-decoration: none; }
.ck-header nav a:hover { color: var(--red-ink); }
.support-link { color: var(--red-ink); }
.lang { font-size: 13px; }
.lang button { min-height: 44px; padding: 0 6px; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; padding-block: 74px 82px; }
.eyebrow { margin: 0 0 23px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(48px, 5.5vw, 76px); font-weight: 600; line-height: 1.03; letter-spacing: -.065em; }
h1 em { color: var(--red-ink); font-style: normal; }
.hero-description { max-width: 37ch; margin-bottom: 30px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.hero-credit { max-width: 42ch; margin: -7px 0 28px; padding-left: 13px; border-left: 2px solid var(--red); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.hero-credit a { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 25px; align-items: center; }
.ck-button { display: inline-flex; justify-content: center; align-items: center; background: var(--ink); color: white; min-height: 52px; padding: 14px 22px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 600; transition: background .15s; }
.ck-button:hover { background: #a7321b; }
.text-link { font-size: 14px; font-weight: 500; }
.hero-note { margin: 17px 0 0; font-size: 12px; color: var(--muted); }
.demo { min-width: 0; margin: 0; }
.demo-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.demo-label { font-size: 14px; font-weight: 600; }
.demo-scale { color: var(--muted); font: 11px/1.5 ui-monospace, monospace; letter-spacing: .02em; }
.chord-types { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 15px; }
.chord-types > span { margin-right: 6px; font-size: 13px; color: var(--muted); }
.chord-types button { min-width: 40px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-2); font: 500 13px/1.5 var(--f); cursor: pointer; }
.chord-types button:hover { border-color: var(--red-ink); }
.chord-types button[aria-pressed="true"] { color: var(--ink); border-color: var(--red); background: #ed593914; }
.chord-readout { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 16px 0 6px; }
#chord-name { font-size: 39px; font-weight: 500; letter-spacing: -.05em; line-height: 1.15; }
#chord-notes { color: var(--muted); font: 14px/1.5 ui-monospace, monospace; }
.chord-device { max-width: 470px; margin: 4px auto 10px; filter: drop-shadow(0 16px 12px #20263210); }
.chord-device .mc.focus .key:not(.lit), .chord-device .mc.focus .knob:not(.lit) { opacity: .65; }
.chord-device .mc.focus .lb, .chord-device .mc.focus .lb2, .chord-device .mc.focus .name, .chord-device .mc.focus .mc-tape { opacity: .65; }
.demo noscript img { max-width: 100%; height: auto; }
.trig-keys { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.trig-keys button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 6px 0; color: var(--ink-2); background: #e9ecf0; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.trig-keys small { font: 10px/1.4 var(--f); opacity: .8; }
.trig-keys b { font: 600 11px/1.4 var(--f); }
.trig-keys button:nth-child(8), .trig-keys button:nth-child(15) { border-left-color: #8d96a3; }
.trig-keys button:hover { border-color: var(--red-ink); }
.trig-keys button[aria-pressed="true"] { background: var(--red); color: #221a17; }
.demo figcaption { margin-top: 15px; color: var(--ink-2); text-align: center; font-size: 12px; line-height: 1.65; }
.demo-hint { display: block; color: var(--muted); }
.new-section { padding-block: 54px 66px; border-top: 1px solid var(--line); }
.section-heading { display: flex; flex-direction: column; }
.section-heading .eyebrow, .guide-intro .eyebrow { margin-bottom: 11px; }
h2 { font-size: clamp(32px, 3.3vw, 43px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; }
.section-heading h2 { margin-bottom: 38px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; }
.feature-number { font: 12px/1.5 ui-monospace, monospace; color: var(--red-ink); margin-bottom: 17px; }
.feature h3 { margin-bottom: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.feature p { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; }
.feature-foot, .palette-chips { margin-top: auto; font-size: 12px; }
.check { font-size: 17px; margin-right: 6px; color: var(--red-ink); }
.palette-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.palette-chips span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; letter-spacing: .04em; }
.performance-types { font: 11px/1.7 ui-monospace, monospace; }
.install-panel { display: flex; align-items: center; gap: 48px; justify-content: space-between; padding: 39px 42px; background: #e9edf2; border-radius: 8px; }
.install-panel > div { max-width: 680px; }
.install-panel .eyebrow { margin-bottom: 13px; color: var(--red-ink); }
.install-panel h2 { font-size: 30px; margin-bottom: 17px; }
.install-panel p { color: var(--ink-2); margin-bottom: 10px; }
.install-panel .install-detail { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.install-panel .ck-button { flex-shrink: 0; }
.guide-section { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; padding-block: 90px; }
.guide-intro h2 { margin-bottom: 18px; }
.guide-intro p:not(.eyebrow) { color: var(--muted); max-width: 22ch; }
.guide-items { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: 17px; padding: 21px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 14px; font-size: 24px; font-weight: 300; }
details[open] summary::after { content: "−"; }
.guide-number { font: 11px/1.5 ui-monospace, monospace; color: var(--muted); }
.guide-content { padding: 0 0 20px 32px; color: var(--ink-2); font-size: 15px; }
.guide-content p { margin-bottom: 15px; }
.guide-content ol { padding-left: 19px; margin-top: 0; }
.guide-content li { padding-left: 4px; margin-bottom: 12px; }
.control-list { margin: 20px 0; }
.control-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.control-list dt { font-size: 13px; font-weight: 600; }
.control-list dt small { display: block; font-weight: 400; }
.control-list dd { margin: 0; }
.ck-footer { border-top: 1px solid var(--line); padding-block: 30px 42px; display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.ck-footer .ck-brand { margin-bottom: 13px; font-size: 16px; }
.ck-footer p { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.ck-footer > .text-link { font-size: 12px; margin-top: 4px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; }
.source-button { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; text-decoration: none; }
.source-button:hover { border-color: var(--ink-2); }
@media (min-width: 1500px) { .hero { padding-block: 90px 100px; } }
@media (max-width: 1100px) {
  .ck-wrap { width: calc(100% - 64px); }
  .hero { gap: 34px; }
  h1 { font-size: 58px; }
  .features { gap: 25px; }
  .guide-section { gap: 40px; }
  .trig-keys { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
}
@media (max-width: 760px) {
  .ck-wrap { width: calc(100% - 40px); }
  .ck-header { display: grid; grid-template-columns: 1fr auto; min-height: 80px; gap: 4px 18px; padding-block: 12px; }
  .ck-brand { font-size: 18px; }
  .ck-header nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 8px 20px; margin-left: 0; font-size: 13px; }
  .ck-header .lang { grid-column: 2; grid-row: 1; margin-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 44px 48px; }
  h1 { font-size: clamp(48px, 10vw, 68px); }
  .hero .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .hero-description { font-size: 17px; max-width: 44ch; }
  .hero-note { font-size: 11px; }
  .demo { max-width: 540px; width: 100%; margin-inline: auto; }
  .trig-keys button { min-height: 48px; }
  .trig-keys small { font-size: 11px; }
  .trig-keys b { font-size: 12px; }
  .features { grid-template-columns: 1fr; gap: 29px; }
  .feature { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
  .feature:last-child { padding-bottom: 0; border-bottom: 0; }
  .feature-number { margin-bottom: 11px; }
  .new-section { padding-block: 39px 45px; }
  .section-heading h2 { margin-bottom: 29px; }
  .install-panel { flex-direction: column; align-items: flex-start; gap: 25px; padding: 27px 24px; }
  .install-panel h2 { font-size: 28px; }
  .guide-section { grid-template-columns: 1fr; gap: 29px; padding-block: 52px; }
  .guide-intro p:not(.eyebrow) { max-width: none; }
  .guide-content { padding-left: 0; }
  .control-list > div { grid-template-columns: 125px 1fr; }
  .ck-footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .ck-header { column-gap: 10px; }
  .ck-header .ck-brand { gap: 5px; font-size: 16px; }
  .brand-keys { display: none; }
  .demo-scale { font-size: 10px; }
  #chord-notes { font-size: 12px; }
  .control-list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
