@font-face{font-family:DM Sans;src:url(fonts/dm-sans.woff2) format('woff2');font-weight:100 1000;font-display:swap}
@font-face{font-family:Instrument Serif;src:url(fonts/instrument-serif.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Instrument Serif;src:url(fonts/instrument-serif-italic.woff2) format('woff2');font-weight:400;font-style:italic;font-display:swap}
:root{--bg:#f6f6f6;--paper:#fff;--ink:#242424;--muted:#666;--line:#e2e2e2;--soft:#f3f3f3;--accent:#a45f39;--accent-pale:#f6eade;--serif:'Instrument Serif',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}
*{box-sizing:border-box}/* 115% scales the interface consistently, including the canvas drawing coordinates. */
html{font-size:115%;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:0.875rem var(--sans);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;transition:background .15s,color .15s}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid #444;outline-offset:0.25rem}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:500}svg{display:block;width:1.125rem;height:1.125rem;flex-shrink:0}sup{line-height:0}[hidden]{display:none!important}.wrap{max-width:77.5rem;padding:0 2.5rem;margin:0 auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.skip-link{position:fixed;top:-6.25rem;left:1.25rem;background:var(--ink);color:white;padding:0.75rem;z-index:20}.skip-link:focus{top:0.625rem}
.site-header{height:5.375rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:1.5rem}.brand{display:flex;align-items:center;gap:1.125rem}.brand-mark{font-family:var(--serif);font-size:2.6875rem;letter-spacing:-0.1875rem}.brand-mark sup{font-size:1.3125rem;letter-spacing:0;margin-left:0.1875rem}.brand-caption{font-size:0.5625rem;letter-spacing:1.7px;max-width:4.0625rem;line-height:1.7}.header-note{font-size:0.6875rem;color:var(--muted)}
.paper-hero{padding:3rem 0 2.5rem;max-width:62.5rem}.paper-kicker,.eyebrow{font-size:0.625rem;letter-spacing:1.6px;font-weight:600;color:var(--muted);line-height:1.5}.paper-hero h1{font-family:var(--serif);font-size:clamp(2.125rem,4.37vw,3.125rem);font-weight:400;line-height:1.12;letter-spacing:-.0.375rem;margin:0.9375rem 0 1.125rem;max-width:58.75rem}.paper-hero h1 em{font-weight:400}.hero-description{max-width:47.5rem;color:var(--muted);font-size:0.875rem;line-height:1.8}
.listening-room{background:var(--paper);border:1px solid #d8d8d8;border-radius:0.75rem;box-shadow:0 0.375rem 1.5rem #00000003;overflow:clip;scroll-margin-top:1.25rem;margin-bottom:2.5rem}.room-heading{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.75rem 1.875rem}.room-heading h2{font-size:1.375rem;font-weight:550;line-height:1.35;margin:0 0 0.625rem}.room-description{font-size:0.8125rem;color:var(--muted);line-height:1.7}.btn{display:inline-flex;gap:0.5rem;align-items:center;justify-content:center;min-height:2.5rem;padding:0.5625rem 0.8125rem;font-size:0.75rem;font-weight:500;border-radius:0.375rem;white-space:nowrap}.btn-outline{border:1px solid #d3d3d3;background:white}.btn-outline:hover{background:var(--soft);border-color:#aaa}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:0.375rem;color:#555;flex-shrink:0}.icon-button:hover{background:#eee}.icon-button.small{width:2rem;height:2rem}.icon-button.small svg{width:0.9375rem;height:0.9375rem}
.case-selection{padding:1.5rem 1.875rem;background:#fafafa;border-top:1px solid var(--line)}.step-heading{display:flex;align-items:center;gap:0.75rem;margin-bottom:1.25rem}.step-number{width:1.75rem;height:1.75rem;border:1px solid #cecece;border-radius:50%;display:grid;place-items:center;font-size:0.625rem;color:#555;flex-shrink:0;font-variant-numeric:tabular-nums}.step-heading h3{font-size:1.0625rem;font-weight:550;line-height:1.4}.step-heading p{font-size:0.75rem;color:var(--muted);line-height:1.7;margin-top:0.25rem}.selection-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.75rem;align-items:start}.field-label{font-size:0.8125rem;font-weight:600}.field-help{font-size:0.6875rem;color:var(--muted);margin-top:0.375rem;line-height:1.6}.song-actions{display:flex;align-items:center;gap:0.375rem;margin-top:0.75rem}select{min-width:0;width:100%;max-width:100%;background:white;border:1px solid #ccc;border-radius:0.375rem;padding:0.6875rem 1.875rem 0.6875rem 0.75rem;font-size:0.8125rem;text-overflow:ellipsis}.label-row{display:flex;justify-content:space-between;align-items:center;gap:0.625rem}.soft-number{font-size:0.6875rem;color:var(--muted)}.selection-heading>.btn{margin-left:auto;font-size:0.6875rem;min-height:2.25rem}.reference-card{margin-top:0.75rem;background:white;border:1px solid #d6d6d6;border-radius:0.5rem;overflow:hidden}.reference-list{display:flex;flex-wrap:wrap;gap:0.375rem;padding:0.625rem 0.75rem}.reference-option{display:flex;align-items:center;gap:0.5rem;max-width:100%;overflow-wrap:anywhere;min-height:2.25rem;border:1px solid transparent;border-radius:0.3125rem;padding:0.5rem 0.625rem;font-size:0.75rem;text-align:left;background:transparent}.reference-option:hover{background:#f5f5f5}.reference-option.selected{background:#ededed;color:#222;font-weight:550}.reference-option .dot{width:0.75rem;height:0.75rem;background:white;border:1px solid #aaa;border-radius:50%;flex-shrink:0}.reference-option.selected .dot{border:0.25rem solid #333}.reference-description{font-size:0.6875rem;color:var(--muted);line-height:1.7;padding:0 1rem 0.75rem}.reference-description:empty{display:none}.reference-player{border-top:1px solid var(--line);min-width:0}.reference-play{display:flex;gap:0.75rem;align-items:center;text-align:left;width:100%;padding:1rem 0.875rem}.reference-play strong{font-size:0.75rem;font-weight:500;display:block}.reference-play small{font-size:0.625rem;color:var(--muted);display:block;margin-top:0.3125rem}.round-play{display:grid;place-items:center;width:2rem;height:2rem;border:1px solid #ccc;border-radius:50%;flex-shrink:0}.round-play svg{width:0.875rem;height:0.875rem}.reference-play[aria-pressed=true] .round-play{background:#262626;color:white;border-color:#262626}.thin-range{width:calc(100% - 1.75rem);margin:0 0.875rem 0.875rem;accent-color:#444;cursor:pointer;height:1rem}
.case-context{display:flex;align-items:center;gap:1.125rem;padding:0.875rem 1.875rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f1f1f1;position:sticky;top:0;z-index:4}.case-context .eyebrow{font-size:0.5625rem;white-space:nowrap}.case-names{display:flex;gap:0.75rem;align-items:center;min-width:0;font-size:0.75rem;overflow-wrap:anywhere}.case-names strong{font-weight:500;min-width:0}.context-arrow{color:#888}.context-note{font-size:0.625rem;color:var(--muted);margin-left:auto;white-space:nowrap}
.listen-section,.inspection-section{padding:1.625rem 1.875rem}.listen-section{scroll-margin-top:4.0625rem}.performance-top{display:flex;align-items:center;justify-content:space-between;gap:1rem}.mode-switch{display:flex;gap:0.3125rem;padding:0.25rem;background:var(--soft);border-radius:0.5rem}.mode-switch button{padding:0.625rem 0.9375rem;border-radius:0.3125rem;color:#555;font-size:0.8125rem;min-height:2.5rem}.mode-switch button span{font-size:0.6875rem;margin-left:0.4375rem}.mode-switch button.selected{background:#292929;color:#fff;box-shadow:0 2px 0.3125rem #0001}.mode-switch button:not(.selected):not(:disabled):hover{background:#e3e3e3}.keyboard-hint{font-size:0.625rem;color:var(--muted);white-space:nowrap}kbd{font:0.625rem var(--sans);border:1px solid #ddd;border-radius:0.1875rem;padding:0.1875rem 0.375rem;margin-right:0.25rem}.transport{display:flex;gap:1.125rem;align-items:center;margin:1.5rem 0}.play-main{height:3.25rem;width:3.25rem;border-radius:50%;background:#262626;color:white;display:grid;place-items:center;flex-shrink:0}.play-main:hover{background:#555}.play-main svg{width:1.375rem;height:1.375rem}.transport-body{flex:1;min-width:0}.track-caption{font-size:0.75rem;display:flex;justify-content:space-between;gap:0.75rem;color:#555}.time-code{font-size:0.75rem;font-variant-numeric:tabular-nums;white-space:nowrap}.slash{color:#aaa}.waveform-wrap{height:2.625rem;position:relative;margin-top:0.5rem}.waveform-wrap canvas{width:100%;height:2.625rem;display:block}.waveform-wrap input,.overview-wrap input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}.waveform-wrap:focus-within,.overview-wrap:focus-within{outline:2px solid #555;outline-offset:0.1875rem}
.comparison-section{padding-top:1.25rem;border-top:1px solid var(--line)}.section-topline{display:flex;gap:0.875rem;align-items:baseline;justify-content:space-between;margin-bottom:0.875rem}.section-topline h4{font-size:0.8125rem;font-weight:550}.section-topline>p{font-size:0.6875rem;color:var(--muted)}.baseline-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(11.875rem,1fr));gap:0.75rem}.empty-comparison{grid-column:1/-1;padding:0.9375rem 1.125rem;background:#fafafa;border-radius:0.375rem;display:flex;align-items:center;gap:0.75rem;color:#777}.empty-comparison p{font-size:0.75rem;line-height:1.7}.baseline-card{border:1px solid var(--line);border-radius:0.4375rem;padding:1.125rem}.system-number{font-size:0.5625rem;color:var(--muted);letter-spacing:1.2px}.baseline-card h3{font-size:0.9375rem;margin:0.5625rem 0 0.375rem}.baseline-card button{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;margin-top:0.875rem;border-top:1px solid var(--line);padding-top:0.75rem;min-height:2.25rem;width:100%}.baseline-card:has(button[aria-pressed=true]){border-color:#444;background:#fafafa}.baseline-card button svg{width:0.9375rem;height:0.9375rem}
.inspection-section{border-top:1px solid var(--line)}.inspection-section>.step-heading>.btn{margin-left:auto}.score-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 0 0.75rem;gap:0.75rem}.score-tab{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem}.score-tab svg{width:1rem;height:1rem}.score-controls{display:flex;align-items:center;gap:0.25rem}.check-control{display:flex;align-items:center;gap:0.375rem;font-size:0.6875rem;color:var(--muted);margin-right:0.75rem}.check-control input{accent-color:#444;width:0.875rem;height:0.875rem;margin:0}.zoom-label{font-size:0.6875rem;min-width:1.875rem;text-align:center;font-variant-numeric:tabular-nums}.piano-surface{height:25rem;position:relative;border:1px solid var(--line);border-radius:0.375rem;overflow:hidden;background:#fafafa}.piano-surface canvas{width:100%;height:100%;display:block;cursor:crosshair;touch-action:pan-y}.note-tooltip{position:absolute;pointer-events:none;max-width:13.75rem;background:#262626f5;color:white;padding:0.625rem 0.75rem;border-radius:0.375rem;font-size:0.6875rem;line-height:1.7;z-index:2;box-shadow:0 0.3125rem 1.25rem #0002}.score-foot{display:flex;justify-content:space-between;gap:0.875rem;font-size:0.625rem;color:var(--muted);padding:0.75rem 0;line-height:1.7}.score-foot>span:first-child{display:flex;align-items:center;gap:0.4375rem;flex-wrap:wrap}.legend-note,.legend-melisma{display:inline-block;width:0.75rem;height:0.375rem;border-radius:2px;background:#888}.legend-melisma{background:#b27b54;margin-left:0.75rem}.overview-wrap{height:2.25rem;position:relative;border:1px solid var(--line);border-radius:0.25rem;overflow:hidden}.overview-wrap canvas{width:100%;height:100%;display:block}.overview-wrap input{cursor:ew-resize}.playback-tools{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.midi-controls,.secondary-tools{display:flex;gap:0.9375rem;align-items:center}.switch-button{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;padding:0.5rem 0}.switch-track{width:1.75rem;height:1rem;border-radius:1.25rem;background:#ccc;position:relative}.switch-track:after{content:'';width:0.75rem;height:0.75rem;position:absolute;left:2px;top:2px;border-radius:50%;background:white;transition:transform .15s}.switch-button[aria-checked=true] .switch-track{background:#333}.switch-button[aria-checked=true] .switch-track:after{transform:translateX(0.75rem)}#midi-volume{width:3.875rem;accent-color:#444;cursor:pointer}.text-button{display:inline-flex;align-items:center;gap:0.375rem;font-size:0.6875rem;color:var(--muted);padding:0.5rem 0;white-space:nowrap}.text-button svg{width:0.875rem;height:0.875rem}.text-button.on,.text-button[aria-pressed=true]{color:#222;font-weight:600}.text-button:hover{color:#111}
.lyrics-section{padding-top:1.5rem}.lyrics-heading{display:flex;justify-content:space-between;align-items:center;gap:1.25rem;margin-bottom:1rem}.lyrics-heading h3{font-size:1.0625rem;font-weight:550;line-height:1.4}.lyrics-heading p{font-size:0.6875rem;color:var(--muted);line-height:1.7;text-align:right}.copper-text{color:var(--accent)}.lyric-lines{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:1.5rem;row-gap:0.25rem}.lyric-line{display:flex;align-items:center;gap:0.875rem;padding:0.625rem;border:1px solid transparent;border-radius:0.375rem;min-height:3.625rem;min-width:0}.lyric-line.current{background:#f3f3f3;border-color:#e5e5e5}.phrase-time{font-size:0.6875rem;color:var(--muted);font-variant-numeric:tabular-nums;padding:0.5rem 0.25rem;flex-shrink:0}.phrase-time:hover{color:#111;background:#eaeaea;border-radius:0.25rem}.syllables{display:flex;gap:0.25rem;flex-wrap:wrap;min-width:0}.syllable{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:1.6875rem;min-height:2.5rem;position:relative;padding:0.1875rem 0.1875rem 0.4375rem;gap:0.25rem;border-radius:0.25rem}.syllable small{font-size:0.625rem;color:var(--muted);min-height:0.75rem}.syllable>span{font-size:1.0625rem;line-height:1.3}.syllable.melisma:after{content:'';position:absolute;bottom:2px;left:0.1875rem;right:0.1875rem;border-bottom:2px solid #b27b54}.syllable.melisma>span{color:var(--accent)}.syllable:hover,.syllable.active{background:#e4e4e4}.syllable.melisma.active{background:var(--accent-pale)}.syllable.selected{box-shadow:0 0 0 1px #777}.syllable .note-total{position:absolute;top:1.0625rem;right:-0.1875rem;font-size:0.5rem;color:var(--accent)}.score-disclaimer{display:flex;align-items:center;gap:0.5rem;color:var(--muted);font-size:0.625rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--line);line-height:1.7}.score-disclaimer>svg{width:0.875rem;height:0.875rem}.score-disclaimer a{margin-left:auto;white-space:nowrap;text-decoration:underline;text-underline-offset:0.1875rem}.score-disclaimer a span{margin-left:0.5rem}
.site-footer{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding-bottom:1.875rem;font-size:0.625rem;color:var(--muted)}.footer-brand{font-family:var(--serif);font-size:1.75rem;color:#444}.footer-brand sup{font-size:1rem}.footer-brand span{font:0.625rem var(--sans);margin-left:0.9375rem}.back-top{font-size:0.6875rem}.toast{position:fixed;bottom:1.5625rem;left:50%;transform:translate(-50%,1.25rem);opacity:0;pointer-events:none;background:#262626;color:white;padding:0.75rem 1.25rem;border-radius:0.5rem;font-size:0.75rem;max-width:90vw;text-align:center;transition:opacity .2s,transform .2s;z-index:10}.toast.visible{opacity:1;transform:translate(-50%,0)}.noscript{padding:1.5625rem;text-align:center}.no-data{padding:2.5rem;text-align:center;line-height:1.8}
@media(min-width:1500px){.wrap{max-width:82.5rem}.piano-surface{height:26.875rem}}
@media(max-width:1000px){.wrap{padding-left:1.75rem;padding-right:1.75rem}.header-note{display:none}.selection-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem}.keyboard-hint{display:none}.context-note{display:none}.lyric-lines{column-gap:0.75rem}}
@media(max-width:700px){.wrap{padding-left:1rem;padding-right:1rem}.site-header{height:4.625rem;gap:0.75rem}.brand-caption{display:none}.brand-mark{font-size:2.25rem}.brand-mark sup{font-size:1.125rem}.paper-hero{padding:1.875rem 0}.paper-hero h1{font-size:2.1875rem}.hero-description{font-size:0.8125rem}.paper-kicker{font-size:0.5625rem}.room-heading{padding:1.375rem 1.125rem;align-items:flex-start;flex-wrap:wrap;gap:0.9375rem}.room-heading h2{font-size:1.25rem}.selection-heading{flex-wrap:wrap}.selection-heading>.btn{margin-left:2.375rem}.case-selection,.listen-section,.inspection-section{padding:1.375rem 1.125rem}.selection-grid{grid-template-columns:minmax(0,1fr);gap:1.375rem}.reference-play{padding:0.75rem 0.875rem}.reference-player .thin-range{margin-bottom:0.5rem}.case-context{padding:0.75rem 1.125rem;gap:0.375rem;flex-wrap:wrap}.case-context .eyebrow{width:100%;font-size:0.5rem}.case-names{font-size:0.6875rem;gap:0.5625rem}.step-heading{gap:0.625rem;align-items:flex-start}.step-heading h3{font-size:1rem}.step-heading p{font-size:0.6875rem}.mode-switch{width:100%;gap:0.1875rem}.mode-switch button{flex:1;padding:0.5625rem 0.3125rem;font-size:0.75rem}.mode-switch button span{display:block;font-size:0.625rem;margin:0.25rem 0 0}.transport{gap:0.625rem;margin:1.25rem 0}.play-main{width:2.75rem;height:2.75rem}.transport>.icon-button{width:1.875rem}.track-caption{font-size:0.625rem;flex-wrap:wrap;gap:0.1875rem}.time-code{font-size:0.625rem}.section-topline{flex-wrap:wrap;gap:0.3125rem}.baseline-grid{grid-template-columns:minmax(0,1fr)}.inspection-section>.step-heading{flex-wrap:wrap}.inspection-section>.step-heading>div{flex:1;min-width:11.25rem}.inspection-section>.step-heading>.btn{margin-left:2.375rem;font-size:0.6875rem;min-height:2.25rem}.score-tab{font-size:0.6875rem}.score-controls{gap:0}.check-control{font-size:0.625rem;margin-right:0.25rem}.icon-button.small{width:1.75rem}.zoom-label{min-width:1.625rem;font-size:0.625rem}.piano-surface{height:22.5rem}.score-foot{flex-wrap:wrap;gap:0.1875rem;font-size:0.5625rem}.playback-tools{flex-wrap:wrap;gap:0.3125rem}.midi-controls,.secondary-tools{gap:0.75rem;flex-wrap:wrap}.lyrics-heading{align-items:flex-start;flex-wrap:wrap;gap:0.5rem}.lyrics-heading h3{font-size:1rem}.lyrics-heading p{text-align:left;font-size:0.625rem}.lyric-lines{grid-template-columns:minmax(0,1fr)}.lyric-line{padding:0.5rem 0.1875rem;gap:0.5rem}.score-disclaimer{flex-wrap:wrap}.score-disclaimer a{margin-left:1.375rem}.site-footer{flex-wrap:wrap;gap:0.875rem;font-size:0.5625rem}.footer-brand span{font-size:0.5625rem}.back-top{margin-left:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

@media(max-width:420px){.site-header{height:auto;min-height:5.3rem;flex-wrap:wrap;padding-top:.8rem;padding-bottom:.8rem;gap:.6rem}.score-toolbar{flex-wrap:wrap}.score-controls{margin-left:auto}.mode-switch button span{overflow-wrap:anywhere}.case-names{flex-wrap:wrap}}
