@font-face { font-family: Waldenburg; src: url('/fonts/kmrwaldenburg-book.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #e9e6de; --stone: #f0eee6; --stone-lit: #faf7ef; --stone-deep: #dcd8ce;
  --ink: #302d28; --body: #625b50; --gold: #806b3b; --line: #c9c3b7; --water: #526f78;
  --glass: #1c2c33; --wave-axis: #506068; --wave-left: #ddc791; --wave-right: #8dbfc6; --wave-cursor: #f1eee5;
  --font: Waldenburg, Georgia, serif;
  --plate-shadow: inset 1px 1px 0 #faf7ef, inset -1px -1px 0 #c8c1b5, 4px 7px 9px #4e473516, 15px 25px 38px -14px #4e47352e;
  --button-shadow: inset 1px 1px 0 #faf7ef, inset -1px -1px 0 #c1baad, 2px 4px 5px #4e473527;
  --pressed-shadow: inset 2px 3px 5px #4e473535, inset -1px -1px 0 #faf7ef;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.75 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; }
button, input, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--water); outline-offset: 5px; }
a { color: inherit; }
[hidden] { display: none !important; }
h1,h2,h3,p,dd { margin: 0; }
h2,h3,.lead { word-break: keep-all; overflow-wrap: anywhere; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; padding: 23px 5%; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--font); font-size: 19px; letter-spacing: .16em; text-decoration: none; }
.preview-label { font-size: 11px; color: var(--body); letter-spacing: .10em; display: flex; gap: 10px; align-items: center; }
.local-light { width: 5px; height: 5px; border-radius: 50%; background: #6d7957; }
main { max-width: 1440px; margin: auto; padding: 32px 5% 60px; }
.intro { display: flex; justify-content: space-between; gap: 36px; align-items: center; margin-bottom: 30px; }
.eyebrow,.desk-head,.plot-head,.path-tag,.file-chip,.limits,footer { font-family: 'SFMono-Regular', Menlo, monospace; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .15em; }
h1 { font: clamp(48px, 5.5vw, 72px)/1.08 var(--font); letter-spacing: -.045em; margin: 10px 0 14px; }
.gold-dot { color: var(--gold); }
.lead { font-size: clamp(19px, 2.1vw, 25px); letter-spacing: .025em; }
.intro-copy { margin-top: 10px; color: var(--body); font-size: 13px; }
.mobile-privacy { display: none; margin-top: 18px; color: var(--body); font-size: 11px; }
.privacy-stone { min-width: 230px; padding: 22px 0 22px 26px; border-left: 1px solid var(--line); }
.stone-mark { display: block; font: 10px 'SFMono-Regular', Menlo, monospace; letter-spacing: .12em; color: var(--gold); margin-bottom: 12px; }
.privacy-stone p { font-size: 14px; }
.privacy-stone > span:last-child { color: var(--body); font-size: 10px; }
.desk { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.desk[data-input-state="ready"] { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.7fr); }
.desk-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: .08em; color: var(--body); }
.drop-area { padding: 24px; border-radius: 28px; background: linear-gradient(145deg, var(--stone-lit), var(--stone) 65%); box-shadow: var(--plate-shadow); min-width: 0; }
.drop-area.is-dragging .drop-basin { outline: 2px solid var(--water); outline-offset: -6px; }
.tiny-engraving { color: var(--gold); }
.input-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.input-actions p,.drop-area > p { color: var(--body); font-size: 12px; }
.text-button { background: none; border: 0; color: var(--body); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; min-height: 44px; }
.text-button:hover { color: var(--ink); }
.drop-area .limits { font-size: 10px; line-height: 1.8; margin-top: 12px; }
.drop-area .status { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; overflow-wrap: anywhere; }
.desk[data-input-state="measuring"] .tiny-engraving { color: var(--water); }
.read-area { padding: 26px 28px; min-width: 0; border-radius: 28px; background: linear-gradient(145deg, var(--stone-lit), var(--stone) 65%); box-shadow: var(--plate-shadow); }
.read-title { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; margin: 24px 0 24px; }
.read-title h2 { font-size: 24px; font-weight: 400; }
.file-chip { color: var(--body); font-size: 9px; max-width: 100%; overflow-wrap: anywhere; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; }
.empty { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 344px; border-radius: 18px; background: linear-gradient(145deg, #1c2c33, #253a40); box-shadow: inset 3px 5px 12px #0b151954, inset -1px -1px 0 #faf7ef; padding: 30px 24px; gap: 10px; color: #dedbd0; }
.empty > span:last-child { font-size: 12px; color: #b5c1bf; max-width: 30em; }
.empty-instrument { display: flex; align-items: center; justify-content: center; width: 120px; height: 90px; gap: 12px; margin-bottom: 20px; }
.empty-instrument span { width: 2px; height: 28px; border-radius: 2px; background: #91a8aa; }
.empty-instrument span:nth-child(2) { height: 54px; background: #dac898; }
.plot-head { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--body); }
.plot { height: 200px; margin-top: 12px; padding: 12px; background: var(--glass); border-radius: 17px; border: 1px solid #c6beae; box-shadow: inset 3px 5px 12px #0b15197a, 0 1px 0 #faf7ef; }
.plot svg { display: block; width: 100%; height: 100%; }
.transport { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.play-button { border: 1px solid #cbc3b3; border-radius: 50%; background: linear-gradient(145deg, var(--stone-lit), #ddd6c7); min-width: 46px; min-height: 46px; color: var(--ink); box-shadow: var(--button-shadow); transition: transform 150ms ease, box-shadow 150ms ease; }
.play-button:active { transform: translateY(2px); box-shadow: var(--pressed-shadow); }
.seek-wrap { flex: 1; min-width: 0; }
input[type=range] { width: 100%; accent-color: var(--gold); cursor: pointer; }
output { font: 11px 'SFMono-Regular', Menlo, monospace; white-space: nowrap; }
.play-note { color: var(--body); font-size: 10px; margin: 7px 0 20px 58px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.metrics > div { padding: 16px 14px; min-width: 0; border-radius: 9px; background: linear-gradient(145deg, #e1ded4, #eeeae1); box-shadow: inset 1px 2px 4px #4e47351c, inset -1px -1px 0 #faf7ef; }
.metrics dt { font-size: 10px; color: var(--body); }
.metrics dd { font: 28px var(--font); margin-top: 8px; overflow-wrap: anywhere; }
.metrics small { display: block; font: 9px 'SFMono-Regular', Menlo, monospace; margin-top: 4px; color: var(--body); }
summary { cursor: pointer; font-size: 12px; padding: 12px 0; }
details p { color: var(--body); font-size: 12px; margin: 12px 0; overflow-wrap: anywhere; }
.measurement-detail { border-top: 1px solid var(--line); }
.candidate-tag { display: inline-block; color: var(--water); font-size: 10px; border: 1px solid #b8c5c3; border-radius: 12px; padding: 1px 7px; font-weight: 400; white-space: nowrap; }
.loudness-panel { margin: 18px 0 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.legend-m { color: var(--gold); } .legend-s { color: var(--water); }
.loudness-plot { min-height: 132px; margin-top: 14px; border-radius: 10px; background: #e5e2d8; box-shadow: inset 1px 2px 5px #4e47351f, inset -1px -1px 0 #faf7ef; }
.loudness-plot svg { display: block; height: 132px; width: 100%; }
.current-values,.small-note { color: var(--body); font-size: 11px; margin-top: 12px; overflow-wrap: anywhere; }
.plot-empty { padding: 40px 12px; color: var(--body); font-size: 12px; }
.music-section { margin-top: 50px; }
.psycho-section { margin-top: 50px; }
.psycho-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.bark-plot { margin: 18px 0; min-height: 120px; }
.bark-plot svg { display: block; width: 100%; height: auto; }
.bark-table-wrap { overflow-x: auto; }
.bark-table { width: 100%; border-collapse: collapse; color: var(--body); font-size: 11px; }
.bark-table th,.bark-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
#psycho-jumps { margin-top: 14px; }
.music-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 24px; }
.music-card { min-width: 0; padding: 26px; background: linear-gradient(145deg, var(--stone-lit), var(--stone) 65%); border-radius: 22px; box-shadow: var(--plate-shadow); }
.music-card h3 { font-size: 22px; font-weight: 400; margin: 22px 0 12px; }
.music-card > p { color: var(--body); font-size: 12px; }
.control-label { display: block; font-size: 11px; color: var(--body); margin: 16px 0 6px; }
select,input:not([type=file]):not([type=range]) { border: 1px solid #b9b09f; background: #e7e2d7; box-shadow: var(--pressed-shadow); color: var(--ink); padding: 10px 12px; border-radius: 7px; max-width: 100%; min-width: 0; font-size: 16px; }
.music-card select { width: 100%; }
.beat-plot { height: 36px; margin: 24px 0 16px; background: #e9e5db; border-radius: 5px; }
.beat-plot svg { display: block; height: 36px; width: 100%; }
.time-list { display: flex; flex-wrap: wrap; gap: 8px; }
.time-button { color: var(--ink); font: 11px 'SFMono-Regular', Menlo, monospace; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--stone-lit), var(--stone)); border-radius: 6px; box-shadow: var(--button-shadow); }
.time-button:hover { border-color: var(--gold); }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pager button { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; color: var(--body); padding: 6px 0; min-height: 44px; font-size: 11px; }
.pager > span { color: var(--body); font: 10px 'SFMono-Regular', Menlo, monospace; }
.chord-list { margin-top: 20px; }
.chord-button { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4px 15px; align-items: center; width: 100%; min-height: 64px; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); }
.chord-time { font: 10px 'SFMono-Regular', Menlo, monospace; color: var(--body); }
.chord-symbol { font: 19px var(--font); overflow-wrap: anywhere; }
.chord-alternatives { grid-column: 2; font-size: 10px; color: var(--body); }
.chord-button:hover .chord-symbol { color: var(--water); }
.music-conditions { margin-top: 24px; }
.draft-entry { display: flex; gap: 30px; justify-content: space-between; align-items: center; margin-top: 44px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.draft-entry > div { max-width: 660px; }
.draft-entry h2,.draft-section h2 { font-size: 27px; font-weight: 400; margin: 12px 0; }
.draft-entry p:last-child,.draft-section > p { color: var(--body); font-size: 12px; }
.solid-button { background: var(--ink); color: #eee9df; padding: 14px 22px; border: 0; border-radius: 9px; flex-shrink: 0; box-shadow: 0 3px 7px #302d2818; font-size: 13px; }
.draft-section { margin-top: 30px; padding: 30px; border-radius: 22px; background: linear-gradient(145deg, var(--stone-lit), var(--stone)); box-shadow: var(--plate-shadow); }
.draft-section > input { width: 100%; }
.draft-rows { margin-top: 24px; }
.draft-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.draft-controls { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px 16px; align-items: center; }
.draft-controls .control-label { margin: 0; }
.draft-controls input[aria-label] { grid-column: 2; }
.draft-controls input,.draft-controls select { width: 100%; }
.sheet-preview { background: #e5dfd1; border: 1px solid #c9bfab; border-radius: 8px; padding: 26px; margin-top: 28px; box-shadow: inset 0 1px 0 #f8f1e3, 0 8px 12px #51433308; }
.sheet-preview h3 { font-size: 25px; font-weight: 400; margin: 14px 0; }
.sheet-preview > p:not(.eyebrow) { font-size: 11px; color: var(--body); overflow-wrap: anywhere; }
.sheet-line { display: grid; grid-template-columns: 58px 110px minmax(0, 1fr); gap: 14px; align-items: center; border-top: 1px solid #c9bfab; padding: 18px 0; margin-top: 14px; }
.sheet-line strong { font: 20px var(--font); overflow-wrap: anywhere; }
.sheet-lyric { font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.next-section { margin-top: 58px; }
.next-head h2 { font: 30px/1.6 var(--font); margin: 12px 0; }
.next-head > p:last-child { color: var(--body); font-size: 12px; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 26px; }
.paths article { border-top: 1px solid var(--line); padding-top: 20px; }
.path-number { font: 14px var(--font); color: var(--gold); }
.paths h3 { font-size: 21px; font-weight: 400; margin: 10px 0 14px; }
.paths p { color: var(--body); font-size: 12px; }
.path-tag { display: block; font-size: 10px; color: var(--gold); margin-top: 20px; }
.path-link { display: inline-block; margin-top: 12px; padding: 8px 0; font-size: 12px; text-underline-offset: 4px; }
.feature-bridge { margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--body); font-size: 12px; }
.feature-bridge a { text-underline-offset: 4px; }
.product-step { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 36px; padding: 26px 0; border-top: 1px solid var(--line); }
.product-step > p { flex-basis: 100%; color: var(--body); font-size: 12px; }
.product-step .solid-button { display: inline-block; text-decoration: none; }
.product-step .text-button { display: inline-block; }
.scope { margin-top: 42px; border-top: 1px solid var(--line); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 9px; color: var(--body); padding: 25px 5%; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .desk,.desk[data-input-state="ready"] { grid-template-columns: minmax(0, 1fr); } .read-title h2 { font-size: 21px; } .empty { min-height: 220px; } }
@media (max-width: 860px) { .music-grid { grid-template-columns: 1fr; } .draft-entry { align-items: start; flex-direction: column; } .draft-row { grid-template-columns: 1fr; } .draft-row > button { justify-self: start; } }
@media (max-width: 660px) { main { padding: 26px 5% 50px; } .topbar { padding: 20px 5%; gap: 12px; } .intro { display: block; } .privacy-stone { display: none; } .mobile-privacy { display: block; } .drop-area { padding: 18px; border-radius: 24px; } .read-area { padding: 22px; border-radius: 24px; } .empty { min-height: 240px; } .paths { grid-template-columns: 1fr; gap: 26px; } .wordmark { font-size: 16px; } h1 { font-size: 60px; } .intro-copy br { display: none; } .plot { height: 175px; } .metrics > div { padding: 14px 10px; } }
@media (max-width: 660px) { .draft-section { padding: 22px; } .sheet-preview { padding: 18px; } .sheet-line { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; } .sheet-lyric { grid-column: 1 / -1; } .draft-controls { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
