:root { color-scheme: light; font-family: 'Avenir Next', Avenir, ui-rounded, system-ui, sans-serif; color: #383f39; background: #f5f0e5; --accent: #b94d35; --green: #344e44; }
* { box-sizing: border-box; }
body { margin: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.025' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #bf583d; outline-offset: 4px; }
header, main, footer { width: min(1080px, calc(100% - 64px)); margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; height: 82px; border-bottom: 1px solid #d5d0c2; }
header a { font-size: 14px; text-decoration: none; }
.bench { font-size: 10px; letter-spacing: 2px; }.bench span { color: var(--accent); margin-left: 9px; font-size: 17px; }
.intro { display: flex; justify-content: space-between; align-items: center; padding: 35px 0 32px; }
.eyebrow, .section-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.eyebrow { margin: 0 0 4px; color: #686e61; }
h1 { font: 86px/.95 Georgia, serif; letter-spacing: -5px; margin: 0; }
h1 span { display: inline-block; font-size: 44px; color: var(--accent); transform: rotate(12deg); margin-left: 18px; vertical-align: top; padding-top: 9px; }
.subtitle { font-size: 16px; margin: 15px 0 0; color: #686e61; }
.intro-note { font: italic 19px Georgia, serif; transform: rotate(-5deg); margin: 32px 20px 0 0; color: #797666; }
.intro-note svg { display: block; width: 100px; height: 55px; margin: 10px 0 -30px auto; fill: none; stroke: #9a9785; stroke-width: 1.5; }
.instrument { background: #365247; border-radius: 15px; border: 1px solid #253e34; padding: 0 24px; box-shadow: inset 0 2px #779180, 0 7px 0 #253c33, 0 15px 24px #3b423320; }
.machine-top { display: flex; align-items: center; justify-content: space-between; padding: 21px 4px 18px; color: #e8e9cc; font-size: 10px; letter-spacing: 1.8px; }
.brand { display: flex; align-items: center; gap: 12px; }.brand-mark { font-size: 24px; line-height: 1; color: #e5c786; }.edition { margin-left: 8px; opacity: .55; font-size: 9px; }.power { display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: 1.5px; }.power i { width: 6px; height: 6px; border-radius: 50%; background: #a6b7a0; }.playing .power i { background: #edca78; box-shadow: 0 0 7px #edca7870; }
.roll-instructions { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #e9dfc4; border-radius: 5px 5px 0 0; border-bottom: 1px solid #cbbd9e; color: #6c6959; }.roll-instructions p { margin: 0; font-size: 12px; }.roll-instructions b { color: #454e40; font-weight: 600; }.roll-instructions > span { font-size: 8px; letter-spacing: 1px; }
.roll-frame { border: solid #223c32; border-width: 0 4px 4px; box-shadow: 0 2px #6f8977; }.roll-scroller { overflow-x: auto; background: #fbf4de; overscroll-behavior-x: contain; }.paper { min-width: 650px; padding: 0 16px; background: linear-gradient(90deg, #b7a17b38, transparent 3%, transparent 97%, #b7a17b38), #fbf4de; }
.beat-ruler { display: grid; grid-template-columns: 44px repeat(16, 1fr); height: 30px; align-items: center; text-align: center; color: #8d8e78; font-size: 9px; border-bottom: 1px solid #d7cfb6; }
.note-row { display: grid; grid-template-columns: 44px repeat(16, 1fr); min-height: 35px; }.note-label { display: flex; align-items: center; font-size: 10px; color: #787f6a; gap: 5px; }.note-label small { font-size: 8px; opacity: .7; }.note { position: relative; padding: 0; border: 0; border-right: 1px solid #ddd7bf; border-bottom: 1px solid #ddd7bf; background: transparent; min-width: 0; border-radius: 0; }.note:nth-child(4n + 2) { border-left: 1px solid #bfbda5; }.note::before { content: ''; position: absolute; width: 5px; height: 5px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #c1bda680; }.note[aria-pressed=true]::before { width: 19px; height: 19px; background: var(--note-color, #b94d35); box-shadow: inset 0 1px 2px #542b3125, 0 1px #fff8; }.note.current { background: #dfb96744; }.note.current[aria-pressed=true]::before { outline: 3px solid #c7a55666; outline-offset: 3px; }.note:hover { background: #d8c9a340; }.note:focus-visible { outline-offset: -3px; z-index: 1; }.paper-bottom { display: flex; justify-content: space-between; padding: 14px 0 14px 44px; color: #94917b; font-size: 8px; letter-spacing: 1px; }.paper-bottom span:last-child { font: italic 11px Georgia, serif; letter-spacing: 0; }
.transport { display: flex; align-items: center; gap: 38px; padding: 24px 4px 19px; }.play { min-width: 188px; border: 1px solid #823821; border-radius: 7px; padding: 15px 20px; color: #fff4db; background: #c05b3e; box-shadow: inset 0 1px #e19c74, 0 3px #763b2a; font-size: 14px; font-weight: 600; }.play:hover { background: #cd6849; }.play:active { transform: translateY(2px); box-shadow: inset 0 1px #e19c74, 0 1px #763b2a; }#play-symbol { margin-right: 12px; font-size: 12px; }.tempo { width: 230px; }.tempo label, .voice label { display: flex; align-items: baseline; font-size: 9px; letter-spacing: 1.7px; color: #e1dec4; }.tempo output { margin-left: auto; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0; }.tempo label span { margin-left: 5px; font-size: 8px; opacity: .7; }.tempo input { width: 100%; accent-color: #e6c98e; height: 18px; margin: 5px 0 0; }.tempo-ends { display: flex; justify-content: space-between; font: italic 11px Georgia, serif; color: #d4d2b8; }.voice { margin-left: auto; }.voice label { margin-bottom: 8px; }.voice select { font-size: 16px; border-radius: 4px; padding: 8px 30px 8px 12px; border: 1px solid #7a8b76; background: #2b443a; color: #f0e7ce; }.machine-bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-top: 1px solid #71827155; font-size: 7px; letter-spacing: 1.8px; color: #c5c9b3; }.screws { font-size: 13px; color: #a8b19a; }
.workbench { display: flex; justify-content: space-between; gap: 20px; margin-top: 33px; }.section-label { font-size: 8px; color: #78796a; letter-spacing: 1.5px; }.presets { display: flex; gap: 8px; margin-top: 10px; }.presets button, .tools button { padding: 9px 12px; border: 1px solid #d4cdbd; background: transparent; border-radius: 4px; color: #575f52; font-size: 12px; min-height: 38px; }.presets button[aria-pressed=true] { background: #e7e7d7; border-color: #859580; color: #344e44; }.tools { display: flex; align-items: flex-end; gap: 6px; }.tools button { border-color: transparent; padding: 9px; }.tools button:first-child { color: #a14630; }.tools button:hover, .presets button:hover { background: #e7dfce; }.tools button:disabled { opacity: .35; cursor: default; }#status { font-size: 11px; color: #7b7a69; margin: 16px 0 30px; min-height: 18px; }.discovery { border-top: 1px solid #d5d0c2; display: flex; align-items: center; gap: 42px; padding: 24px 0; }.discovery-number { font-size: 8px; letter-spacing: 1.5px; color: #9a5239; }.discovery p { font-size: 13px; line-height: 1.8; margin: 0; }.discovery p em { font: italic 17px Georgia, serif; color: #7b7a69; }.discovery svg { width: 85px; height: 60px; margin-left: auto; stroke: #aaa991; stroke-width: 1; fill: none; }.discovery circle { fill: #b56246; stroke: none; }footer { padding: 22px 0 30px; border-top: 1px solid #d5d0c2; font-size: 10px; color: #777c6e; display: flex; justify-content: space-between; }
@media (max-width: 760px) { header, main, footer { width: calc(100% - 32px); }header { height: 62px; }.intro { padding: 26px 0; }h1 { font-size: 68px; }.intro-note { display: none; }.instrument { padding: 0 12px; border-radius: 10px; }.machine-top { padding: 16px 0; }.brand { font-size: 8px; gap: 6px; letter-spacing: 1px; }.edition { display: none; }.power { font-size: 6px; letter-spacing: .5px; }.roll-instructions { padding: 12px; }.roll-instructions p { font-size: 11px; max-width: 220px; line-height: 1.6; }.roll-instructions > span { display: none; }.transport { gap: 20px; flex-wrap: wrap; padding: 20px 2px; }.play { min-width: 155px; flex: 1; padding: 14px 12px; }.tempo { flex: 1; min-width: 120px; }.voice { display: flex; align-items: center; gap: 16px; margin-left: 0; width: 100%; }.voice label { margin-bottom: 0; }.voice select { flex: 1; }.machine-bottom { font-size: 5px; letter-spacing: 1px; }.workbench { flex-direction: column; gap: 12px; }.presets { gap: 6px; flex-wrap: wrap; }.presets button { font-size: 11px; padding: 9px; }.tools { align-self: flex-end; }.discovery { gap: 16px; }.discovery-number { max-width: 75px; line-height: 1.8; }.discovery svg { display: none; }footer { gap: 20px; font-size: 9px; }footer span:last-child { text-align: right; }.note-row { min-height: 39px; }.paper { min-width: 730px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.scroll-hint { display: none; }
@media (max-width: 760px) { .scroll-hint { display: block; margin-top: 3px; font-size: 10px; font-style: italic; } }
.tune-library { margin: 10px 0 32px; padding: 28px; border: 1px solid #d5cbbb; border-radius: 12px; background: #f8f3e8; box-shadow: 0 2px 0 #e5dece; }
.tune-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tune-library-heading .section-label { margin: 0 0 8px; color: #866349; letter-spacing: 1.7px; }
.tune-library-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0; font: 30px/1.2 Georgia, serif; color: #344e44; }
#tune-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 6px; border: 1px solid #c8cfbe; border-radius: 50%; font: 12px/1 ui-monospace, monospace; color: #52694f; }
.tune-library-intro { margin: 9px 0 0; font-size: 13px; color: #747362; }
.storage-note { font-size: 11px; color: #747362; display: flex; align-items: center; gap: 7px; }
.storage-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #829378; }
#save-tune-form { display: flex; align-items: flex-end; gap: 12px; }
.tune-name-field { flex: 1; min-width: 0; }
.tune-name-field label { display: block; font-size: 12px; font-weight: 600; color: #4f5c4e; margin-bottom: 9px; }
#tune-name { appearance: none; width: 100%; min-height: 50px; font: inherit; font-size: 16px; padding: 12px 15px; border: 1px solid #bdbca8; border-radius: 6px; background: #fffdf5; color: #383f39; box-shadow: inset 0 1px 2px #544b3010; }
#tune-name::placeholder { color: #888977; opacity: 1; }
#save-tune-form button { display: flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 50px; padding: 12px 22px; background: #365247; color: #f8efd7; border: 1px solid #253e34; border-radius: 6px; box-shadow: inset 0 1px #698171, 0 2px #253e34; font-size: 14px; font-weight: 600; }
#save-tune-form button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
#save-tune-form button:hover { background: #466658; }
#save-tune-form button:active { transform: translateY(1px); box-shadow: inset 0 1px #698171; }
#library-status { color: #6b715f; font-size: 12px; line-height: 1.6; margin: 14px 0 24px; }
#tunes-empty { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 25px 16px 4px; border-top: 1px dashed #d5cbbb; }
#tunes-empty[hidden] { display: none; }
#tunes-empty svg { width: 86px; flex-shrink: 0; fill: none; stroke: #d1c6ad; }
#tunes-empty circle { stroke: none; fill: #a4835b; }
#tunes-empty p { margin: 0; font: italic 17px/1.5 Georgia, serif; color: #626c56; }
#tunes-empty p span { display: block; margin-top: 5px; font: 12px/1.6 'Avenir Next', Avenir, system-ui, sans-serif; color: #7c7b69; }
#saved-tunes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.saved-tune { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 16px; background: #fffdf5; border: 1px solid #d4cdbd; border-radius: 7px; text-align: left; color: #383f39; }
.saved-tune:hover { border-color: #728674; }
.saved-tune svg { width: 100%; height: 72px; margin-bottom: 5px; background: #f2ead4; border-block: 1px dashed #c8bfa7; }
.saved-tune strong { font-size: 15px; overflow-wrap: anywhere; }
.saved-tune span { font-size: 11px; color: #656b5e; }
.saved-tune small { font-size: 11px; color: #a14630; margin-top: auto; padding-top: 8px; }
@media (max-width: 760px) { .tune-library { padding: 22px 18px; } .tune-library-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; } #saved-tunes { grid-template-columns: repeat(2, minmax(0, 1fr)); } #save-tune-form { flex-direction: column; align-items: stretch; } #save-tune-form button { align-self: flex-start; } #tunes-empty { align-items: flex-start; gap: 12px; padding-inline: 0; } #tunes-empty svg { width: 54px; margin-top: 4px; } }
@media (max-width: 420px) { #saved-tunes { grid-template-columns: 1fr; } }
